REVIEW
From Noisy Traces to Root Causes: Structural Trajectory Analysis and Causal Extraction for Agent Optimization
Computation and Language · Submitted 8 Jul 2026 · 19 references
Pith's verdict: STRACE applies program-analysis concepts to LLM agent optimization with strong empirical results, but the ablation undercuts the headline causal-localization mechanism.
Why Pith says this
Highlight any text to comment on it.
Referee report
The paper
The paper claims
Causal Slicing Finds Root Causes in Agent Traces, Boosting Success 1.4x
The reading
What carries the argument
Textual Execution Dependency Graph (EDG): a text-based node-edge map of data and control dependencies among agent modules, inferred from source code. Used as a structural prior for backward slicing and root-cause isolation.
Extended reading notes
Core claim
The central discovery is that the context-noise trade-off in agent optimization — the tension between feeding full traces (too noisy) and truncating them (loses causal evidence) — can be broken by constructing a dependency graph of the agent's modules and performing backward causal slicing from the failure manifestation point. This remaps optimization targets from symptom nodes to root-cause nodes: in the case study, 12 of 25 selected traces had their attributed failure module corrected to an upstream component. The EDG itself need not be perfectly accurate; perturbation experiments show that adding or removing 25% of edges causes only marginal performance change (56% to 54% at worst), while
Load-bearing premise
The entire causal localization mechanism depends on an LLM reliably constructing a faithful dependency graph from the agent's source code. If the LLM misses a critical data or control dependency, the backward slicing will not find the true root cause, and the optimizer will patch the wrong module.
Editorial extensions
If this is right
- Agent optimization frameworks can shift from symptom-level patching to structural root-cause repair, potentially reducing the number of brittle, overfit prompt updates in production agent systems.
- The dependency-graph approach generalizes beyond prompt optimization to harness engineering — localized diagnoses could guide updates to tool-use policies, skills, and other editable agent components.
- If the EDG construction step can be automated reliably across arbitrary agent codebases, this method becomes a plug-in diagnostic layer for any agent system with sufficient implementation visibility.
- The robustness to graph perturbation (25% edge noise causing minimal degradation) suggests that approximate structural priors suffice, lowering the barrier to adoption for systems with partial or noisy code visibility.
Reading between the lines
- The backward-slicing approach implicitly assumes that agent failures are predominantly single-root-cause events. If failures are frequently caused by the interaction of two or more modules jointly (a combinatorial defect), tracing backward from the manifestation node along individual dependency paths may still miss the true cause.
- The framework's requirement for codebase-level visibility means it is best suited for open-source or internally-developed agent systems. Fully black-box API-based agents (e.g., commercial computer-use agents) would need an alternative structural prior source, such as inferring dependencies from trace patterns alone.
- The stability under graph perturbation raises a question the paper does not fully address: if adding 10% of random edges improves performance (56% to 62%), the added edges may occasionally capture real dependencies the LLM missed, suggesting that the base graph construction is conservative and could benefit from complementary static analysis tools.
- The method's effectiveness on formal verification (VeruSAGE-Bench) versus its more modest gains on web navigation (WebArena) suggests that causal localization provides the most value when failures propagate through deep, structured reasoning chains rather than through exploratory, stateful web interactions.
Original abstract
The optimization of long-horizon agents increasingly relies on reflection-based mechanisms, where a large language model (LLM) acts as an optimizer to diagnose agent failures and improve agent policies. However, real execution traces are difficult to use directly for optimization: large trace collections are often redundant and heterogeneous, making optimization inefficient and prone to overfitting to low-value failures; meanwhile, each individual trajectory also contains many irrelevant steps, while naive context reduction methods such as truncation or sliding windows can discard causally important evidence and produce misleading optimization signals. To resolve this dilemma, we introduce STRACE (Structural TRajectory Analysis and Causal Extraction), a framework that constructs high signal-noise optimization contexts for more precise and effective optimization. At the batch level, STRACE mines failure patterns to filter redundant traces and retain representative failures; within each selected trace, it performs causal localization over a textual dependency graph to remove non-causal steps and identify the true root-cause module for optimization. Empirical results demonstrate that STRACE significantly outperforms standard context-filtering baselines. Notably, on a challenging formal verification task (VeruSAGE-Bench), it successfully optimizes human-expert designed agents, delivering $1.4\times$ success-rate improvement (42.5% to 58.5%). The code is available at https://github.com/moomight/STRACE .
Figures
Figures reproduced from arXiv:2607.07702 by the authors.
References
How the literature uses it
What this paper does with the arXiv papers it cites
What it cites · 7 sentences without a confident label
Uses the method or tool of 4 papers
-
For VeruSAGE-Bench, we use the hierarchical router-executor multi-agent framework [ref] with 16 optimizable modules and [ref] as the backbone.
VeruSAGE: A Study of Agent-Based Verification for Rust Systems · Experimental Setup · 0.97
-
For HotpotQA, we use a DSPy-based [ref] four-stage multi-hop reasoning workflow with 4 optimizable modules and [ref] .
GPT-4o System Card · Experimental Setup · 1.00
-
For HotpotQA, we use a DSPy-based [ref] four-stage multi-hop reasoning workflow with 4 optimizable modules and [ref] .
GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning · Experimental Setup · 1.00
Cites as support 3 papers
-
Feeding the full trajectory (a) overwhelms the optimizer with irrelevant successful steps and low-SNR context, inviting spurious correlations and hallucinated prompt patches [ref] .
TextGrad: Automatic "Differentiation" via Text · Introduction · 0.97
-
In realistic settings, batched execution trajectories contain heterogeneous failures with different frequencies, severities, and causes [ref] .
AgentRx: Diagnosing AI Agent Failures from Execution Trajectories · Introduction · 0.96
-
This dilemma exposes a fundamental reality of agentic workflows: the node where an error manifests (the downstream symptom) is often not the node where it originates (the upstream root cause) [ref] .
AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems? · Introduction · 0.99
Cites as background 19 papers
-
To handle complex workflows, recent frameworks leverage reflexive feedback [ref] or modular textual gradients [ref] to optimize multi-stage pipelines.
Automatic Prompt Optimization with "Gradient Descent" and Beam Search · Automated Prompt Optimization · 0.82
-
To handle complex workflows, recent frameworks leverage reflexive feedback [ref] or modular textual gradients [ref] to optimize multi-stage pipelines.
Reflexion: Language Agents with Verbal Reinforcement Learning · Automated Prompt Optimization · 0.82
-
A predominant paradigm for optimizing such agent systems is reflexive optimization [ref] , which uses an LLM to diagnose agent-system failures and evolve agent policies based on historical feedback derived from agent trajectories.
Large Language Models as Optimizers · Introduction · 0.89
Discussion
Disagree with the review, or know something it missed? Leave a comment, highlight any passage above to comment on it, or challenge this review formally.