ZICQ
中 Log in / Sign up
Newsroom Agentic #LLMs & Foundation Models #Intelligent Agents #PHREEQC #Hugging Face #AI Reasoning

Hugging Face Study Reveals Impact of Retrieved Tool Outputs on LLM Agents' Accuracy

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version

Summary:Hugging Face's research investigates the accuracy degradation of LLM agents when handling lengthy tool outputs. Using the PHREEQC geochemical simulator, the study finds that GPT-5.1 and GPT-5.2 lose 11.3 and 7.9 percentage points in accuracy when reading reports through section indices rather than in context, while Claude Opus 4.6 and Claude Sonnet 4.6 show no detectable cost. The research reveals that agents tend to rely on their own higher-precision output files during retrieval, leading to ev


Background and Problem

As Large Language Model (LLM) agents are increasingly applied to complex tasks, effectively handling lengthy tool outputs has become a critical challenge. Traditional methods save long outputs in files, and the agent retrieves or reads these files on demand. However, this approach may lead to accuracy degradation.

Methodology

The research team used the PHREEQC geochemical simulator as the test tool. The simulator's reports are 846.8k characters long and highly deterministic, making it easy to trace each output value. The agents were tasked with answering 158 execution-verified multiple-choice questions.

Key Findings

  1. Accuracy Loss: When agents read reports through section indices rather than in context, GPT-5.1 and GPT-5.2 lost 11.3 and 7.9 percentage points in accuracy, respectively, while Claude Opus 4.6 and Claude Sonnet 4.6 showed no detectable cost.

  2. Evidence Substitution Error: During retrieval, GPT models tend to skip the report and rely on their own higher-precision output files, misrounding to a neighboring option. This phenomenon is termed evidence substitution error.

  3. Improvement Strategies: By explicitly naming the authoritative output, the accuracy of GPT models increased by 6.3-7.9 percentage points. For GPT-5.1 and GPT-5.2, inlining outputs that fit works as well, while asking for correct rounding does not.

Engineering Trade-offs and Recommendations

  • Importance of Context Management: Agents should prioritize context management strategies when handling long outputs to avoid over-reliance on retrieval mechanisms.

  • Output Naming and Inlining: For critical outputs, explicit naming or inlining can effectively reduce evidence substitution errors.

  • Model Selection: Claude models exhibit more stable performance when handling long outputs and may be more suitable for applications requiring high accuracy.

Developer Recommendations

  1. Optimize Retrieval Strategies: When designing agents, evaluate the impact of different retrieval strategies on accuracy to avoid excessive reliance on file retrieval.

  2. Enhance Output Validation: For critical tasks, it is recommended to perform additional validation on agent outputs to ensure reliability.

  3. Model Selection and Tuning: Choose the appropriate model based on task requirements and perform targeted tuning to improve overall performance.

Conclusion

The study demonstrates that LLM agents face significant risks of accuracy loss when handling lengthy tool outputs. By optimizing context management strategies and output processing methods, the decision accuracy of agents can be effectively improved.


Source: Hugging Face Daily Papers (2026-10-19)

— END —

Tags: #LLMs & Foundation Models #Intelligent Agents #PHREEQC #Hugging Face #AI Reasoning

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

Community Comments

Loading live comments and annotations…