Back to AI Research

AI Research

Trace Integrity for LLM Data Agents: A Vision for A... | AI Research

Key Takeaways

  • Trace Integrity for LLM Data Agents: A Vision for Auditable Structured Reasoning in Real-World Systems proposes a new reliability standard for LLM-based data...
  • Answer accuracy is an insufficient reliability signal for LLM data agents.
  • In structured-data tasks, a benchmark-correct answer can be produced by an invalid trace.
  • We operationalize Trace Integrity with execution contracts, structured artifacts that bind user intent to schema elements, operator plans, assumptions, executable queries, verification status, and final-answer linkage.
  • We also introduce CAIT (Correct Answer / Invalid Trace) Rate, which measures how often answer-only evaluation counts computationally unsupported outputs as successes.
Paper AbstractExpand

Answer accuracy is an insufficient reliability signal for LLM data agents. In structured-data tasks, a benchmark-correct answer can be produced by an invalid trace. This paper introduces Trace Integrity, a deployment reliability criterion for evaluating whether the computation recorded behind an answer is explicit, executable, schema-valid, operator-faithful, replayable, answer-consistent, and auditable. We identify the Structure Gap as the deployment failure mode that makes Trace Integrity necessary: natural-language reasoning and free-form rationales do not reliably specify the operator-level programs required by real-world systems. We operationalize Trace Integrity with execution contracts, structured artifacts that bind user intent to schema elements, operator plans, assumptions, executable queries, verification status, and final-answer linkage. We also introduce CAIT (Correct Answer / Invalid Trace) Rate, which measures how often answer-only evaluation counts computationally unsupported outputs as successes. In an empirical demonstration on BIRD Mini-Dev, Direct SQL, Operation Summary + SQL, and Contract-First SQL achieve answer accuracies of 20%, 22%, and 24%, while their Trace Integrity Pass Rates are 39%, 43%, and 40% and their CAIT Rates remain high at 55%, 59.1%, and 45.8%, showing that answer accuracy, trace validity, and silent-failure risk are distinct evaluation signals. Real-world LLM data agents should, therefore, be evaluated not only by whether their outputs match a reference answer, but by whether those outputs are backed by auditable computation.

Trace Integrity for LLM Data Agents: A Vision for Auditable Structured Reasoning in Real-World Systems proposes a new reliability standard for LLM-based data agents. The authors, Srimonti Dutta and Akshata Kishore Moharir of WAI USA Research Labs, argue that measuring only the final answer accuracy of an LLM is insufficient for real-world systems, as models can produce correct answers through invalid or unfaithful computational steps.

The Structure Gap and Silent Failures

The authors identify a "Structure Gap"—a mismatch between natural-language reasoning and the precise, operator-level programs (such as SQL queries) required for structured data tasks. Because LLMs generate text, they may produce a plausible explanation while silently failing to apply the correct filters, joins, or aggregations. This creates a "silent failure" where an agent returns a correct answer based on an incorrect or unverified computation. The paper notes that in operational settings like business intelligence or clinical analytics, users often lack the ability to reconstruct the query, making it critical that the underlying computation is transparent and auditable.

Operationalizing Trace Integrity

To address this, the authors introduce "Trace Integrity," a criterion for evaluating whether the computation behind an answer is explicit, executable, schema-valid, operator-faithful, replayable, answer-consistent, and auditable.
They operationalize this through "execution contracts"—structured artifacts that bind user intent to specific schema elements, operator plans, and assumptions. By following the "Isolation Principle," agents are encouraged to define these computational commitments before accessing data values. This separation prevents the model from retrospectively justifying an answer based on the data it has already seen, ensuring the plan remains independent of the result.

Evaluating Hidden Risks with CAIT

The paper introduces the "Correct Answer / Invalid Trace" (CAIT) Rate to measure how often systems receive credit for correct answers that are not supported by a valid computational trace. In an empirical demonstration using 100 examples from the BIRD Mini-Dev dataset, the authors compared three methods: Direct SQL, Operation Summary + SQL, and Contract-First SQL.
The results showed that while answer accuracy ranged from 20% to 24%, the CAIT rates remained high, between 45.8% and 59.1%. This indicates that a significant portion of "successful" answers are backed by flawed logic. The authors conclude that answer accuracy and trace validity are distinct signals; therefore, deployment teams should monitor both to avoid overestimating system reliability.

Limitations and Scope

The authors characterize this work as a vision and a proof-of-concept rather than a comprehensive benchmark. The study is limited to a single model (Claude Haiku 4.5) and a small, stratified sample of the BIRD Mini-Dev dataset. The authors note that their validator focuses on identifying specific, inspectable failures—such as missing filters or incorrect joins—rather than proving full semantic equivalence, which serves the study's goal of diagnosing why a system's computation might diverge from its final output.

Comments (0)

No comments yet

Be the first to share your thoughts!