arXiv:2610.26836cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.26836

Same Simulation, Different Evidence: Where Retrieved Tool Output Costs LLM Agents Accuracy

Ke Zhang, Sahchit Chundur, Jerry Peprah Owusu, Mohammad Javad Abdolhosseini Qomi, Maziar Raissi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLM agents that compute the right answer can still answer wrongly. Agent harnesses increasingly keep long tool outputs out of the context window, saving them to files that the agent searches or reads on demand. We ask where this costs accuracy with a real scientific tool: PHREEQC, a widely used geochemistry simulator from the USGS, whose reports reach 846.8k characters and whose determinism lets every printed value be traced. Agents use it to answer 158 execution-verified multiple-choice items. When agents read the simulator's report through a section index rather than in context, GPT-5.1 and GPT-5.2 lose 11.3 and 7.9 points of accuracy, while Claude Opus 4.6 and Claude Sonnet 4.6 show no detectable cost. Re-running all 11,007 logged simulator calls shows that both GPT models compute the keyed value about as often as before; what changes is the evidence they answer from. Under retrieval they often skip the report, answer from their own higher-precision output files, and misround to a neighboring option, a failure we call evidence substitution. With the simulation held fixed, retrieval still costs GPT-5.2 9.4 points. For GPT-5.4, more frequent correct simulations mask an evidence-use loss of about ten points, leaving a net change indistinguishable from zero. Naming the authoritative output raises accuracy by 6.3–7.9 points over plain retrieval for the three GPT models; for GPT-5.1 and GPT-5.2, inlining outputs that fit works as well, while asking for correct rounding does not. Context-management choices in agent harnesses should be judged by where accuracy is lost, not only by final accuracy.

1 Introduction

LLM agents increasingly call tools whose outputs are long, such as logs, search results, and simulator reports. A harness must choose how such output reaches the model: paste it into the context, truncated to a fixed budget (inline), or save it to a file that the agent reads through an outline, a search tool, or ranged reads (retrieval). File-based delivery can reduce context usage by loading selected portions on demand (Rajasekaran et al., 2025). Yet Sen et al. (2026) find that delivering search results as files lowers accuracy in most of the harness-model pairs they test, without identifying why, and models do not always use context that contains everything they need (Xie et al., 2026; Joren et al., 2025). What remains unknown is where the loss arises: a wrong answer rarely shows whether the agent computed the wrong value, never saw the right one, or saw it and still answered wrongly.

A deterministic simulator makes this observable. We study LLM agents operating PHREEQC, an aqueous-geochemistry simulator (Parkhurst and Appelo, 2013) whose section-structured reports reach 846.8k characters, on 158 multiple-choice items whose answer keys we re-verified by execution (Section 2.1). We change only how the simulator's report reaches the agent: inline, or as a table of contents (TOC) of its sections from which the agent reads line ranges.

We re-run every input an agent wrote and search every tool result it received, and so tell for each trajectory whether its simulation produced the keyed value (build), whether the value reached the agent (exposure), and whether the agent then answered correctly from it (closure). Each stage points to a different remedy: a build defect to better simulation inputs, an exposure or closure loss to a change in what and how the agent reads. We therefore first locate the loss and then test the location by intervening on that stage. Four results follow.

  1. The cost of retrieval depends on the model. Pooled over runs, TOC changes accuracy relative to inline output by -0.6 to +0.2 pp for Claude Opus 4.6, Claude Sonnet 4.6, and GPT-5.4, with intervals that include zero, and by -11.3 and -7.9 pp for GPT-5.1 and GPT-

Figure

Figure 1: Same simulation, different evidence (item 121, GPT-5.1). The agent's simulation writes the keyed value to the report, at the options' precision, and to its own output file, with more digits. Under TOC the agent reads only its own file and truncates 2.75065 to the distractor 2.750 (evidence substitution), even when told how to round; told to answer from the report, it answers correctly. Right: for GPT-5.1 and GPT-5.2, report skipping over all 158 items, and wrong answers once the keyed value is seen (100 minus closure) on the 137 numeric items.

5.2. Keyword search, which uses no simulator-specific structure, does no better (Section 3).

  1. The loss lies in what agents read, not in what they compute. GPT-5.1 and GPT-5.2 produce the keyed value about equally often under every interface. Under retrieval, however, they often skip the report and answer from their own SELECTED_OUTPUT files, which print more digits, and they truncate such values to a neighboring option in about three of four cases. We call this evidence substitution (Figure 1). Holding the simulation fixed and changing only the delivery, TOC still costs GPT-5.2 9.4 pp (Section 4).

  2. A null net effect can hide the loss. GPT-5.4 substitutes evidence too and loses about ten points to it on numeric items, but computes the keyed value more often under retrieval, so its net change is indistinguishable from zero.

  3. Intervening on what agents read removes the closure loss. An instruction to answer from the report cuts report skipping to under 2% and raises closure to 99% without changing build; relative to all TOC runs, accuracy rises by +6.3 (GPT-5.1), +7.9 (GPT-5.2), and +7.8 pp (GPT-5.4). Inlining reports that fit has the same effect; an instruction that only asks for correct rounding has none (Section 5).

References (33)