Pith. Sign in

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.

T0 · AI review

How this review was made: An AI referee (glm-5.2) read the paper on July 9, 2026 and answered a fixed list of questions about it. T0 is the starting level every paper gets. The levels describe how deeply Pith has checked the paper, never the authors.

  1. T0 AI review An AI read the paper and answered a fixed list of questions.
  2. T1 Audit Automatic checks that the references and files the paper relies on exist and match.
  3. T2 Compute The paper's code or calculations re-run with the same results.
  4. T3 Formal statement The claims written out in a formal math language a computer can read.
  5. T4 Proof Those claims proved, and the proof checked by computer.

How Pith checks papers →

· 4 major objections · 7 minor · Ask about this paper · Read the full review →
Challenge this review Comment (0) Read on arXiv ↗
Cite ▾
arXiv ID2607.07702 (version 1)
Pith IDNGOF4PL2, Pith's permanent record of this paper and its review
CitationChenyuan Yang, Jiahang Xu, Peng Cheng, Xuan Feng, Ying Chang, Yuqing Yang. "From Noisy Traces to Root Causes: Structural Trajectory Analysis and Causal Extraction for Agent Optimization." arXiv:2607.07702 (2026). https://pith.science/paper/NGOF4PL2
Cite this reviewBibTeX for Pith's review of this paper
Claim paper

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

When LLM-based agents fail at long-horizon tasks, the visible error often appears far downstream from its actual origin — a crash at step 50 might stem from a bad parameter generated at step 5. This paper proposes STRACE, a framework that treats execution traces not as flat logs but as dependency graphs, enabling backward causal slicing to isolate the true root-cause module for optimization. The core mechanism is a textual Execution Dependency Graph (EDG) — a lightweight map of data and control flow between agent components, inferred from source code by an LLM. Using the EDG, STRACE traces failures backward from their manifestation point, pruning irrelevant steps and identifying the upstream module whose logical defect triggered the downstream symptom. It then synthesizes generalized heuristics and injects them into the root-cause module's prompt. On a formal verification benchmark (VeruSAGE-Bench), this approach lifted success rates from 42.5% to 58.5%, a 1.4x improvement over human-expert-designed agents, while keeping optimization costs bounded even as training traces scaled to 453.

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

Editorial extensions of the paper, not claims the author makes directly.

  • 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
Figure 1. Comparison of context construction strate
Figure 2. Illustration of the STRACE framework. The system optimizes long-horizon agents via four phases: (1) Structural Modeling, which constructs execution topology; (2) Failure Pattern Mining and Trace Filtering, which compresses failures into representative traces; (3) Causal Localization, which performs causal context distillation and root cause isolation; and (4) Inductive Policy Optimization, which injects heuristics into identified root cause modules. tify the atomic functional modules (the vertex set V). Simultaneously, it infers the textual edges E by analyzing the artifacts these…
Figure 3. Success rate on 50 independent tasks and
Figure 4. Distinguishing Symptoms from Root Causes. Top: Causal localization remaps 25 traces from 5 manifest nodes to 6 targets, exposing an up￾stream source. Bottom: A compute_repair loop is traced to assertion_reasoning_pipeline, enabling a targeted policy optimization to bypass the recursive path. 4.4 Case Study: Tracing Symptoms to Root Causes To empirically validate the distinction between symptom (vm) and cause (vr), we present two anal￾yses from the VeruSAGE-Bench optimization pro￾cess in
Figure 5. Visualization of a Failure Summarization Map generated during the optimization of the IronKV project. STRACE first parses raw traces into structured execution records containing the global task outcome, local node status, and module invocation sequence. The map then summarizes the trace corpus along two analytical dimensions: Statistical Severity, which estimates the conditional probability of global failure given each local node error, and Structural Path Patterns, which identifies recurring pathological trajectories such as self-loops, oscillations, and dead ends. These aggregated…
Figure 6. Instruction for Phase 1–Structural Modeling.
Figure 7. Instruction for Phase 2 – Failure Pattern Mining and Trace Filtering.
Figure 8. Instruction for Phase 3 – Causal Localization.
Figure 9. Instruction for Phase 4 – Inductive Policy Optimization.

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

Each citing sentence is taken from the citing paper's LaTeX source and typed by Pith's classifier. A label appears at probability 0.8 or more (0.95 for support), a contest at 0.7 or more; the quoted words are the citing authors'. How each label was checked · JSON

What it cites · 7 sentences without a confident label

Uses the method or tool of 4 papers
Cites as support 3 papers
Cites as background 19 papers

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.