Student or educator? Sign up with your school email and get 6 months of Pro free.
Cited by 9

The DOI matches its Crossref record; 9 of the 9 references it cites were found in a registry or an index.

Reducing Cost of LLM Agents with Trajectory Reduction

Xiao, Yuan-An, Gao, Pengfei, Peng, Chao, Xiong, Yingfei·2026·Proceedings of the ACM on Software Engineering

Published version of a preprint

Abstract

Multi-turn agent systems based on Large Language Models (LLMs) have become increasingly popular for software engineering tasks. While LLM agents demonstrate promising effectiveness, the high computational cost of input tokens due to ever-growing trajectories remains a significant efficiency concern. Efficiency has been largely overlooked in existing studies and agent products, and this paper addresses this gap by introducing an inference-time trajectory reduction approach that reduces computational costs. By analyzing existing agent trajectories, we demonstrate that useless, redundant, and expired information is widespread across trajectories. Such waste can be identified and reduced without compromising the agent's performance. We propose a simple yet effective trajectory reduction approach, AgentDiet, which automatically removes such waste during agent execution. We implement AgentDiet on a top-performing coding agent, and our evaluation on two LLMs and two benchmarks shows that AgentDiet can reduce input tokens by 39.9%-59.7% and the total computational cost by 21.1%-35.9%, while maintaining the same agent performance. These results indicate that inference-time trajectory reduction is a promising direction for agent systems.

Overview

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3797084

Cites

9 of 9 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 9 references

Research works printed but not linked: 38

  1. 10.1145/3597503.3639183 · DOI · Paper page
  2. Anthropic. 2025. Claude Code: Deep coding at terminal velocity. https://www.anthropic.com/claude-code
  3. 10.1109/ICSE55347.2025.00157 · DOI
  4. 10.48550/arXiv.2501.16214 · DOI
  5. 10.48550/arXiv.2509.09853 · DOI · Paper page
  6. 10.48550/arXiv.2509.01947 · DOI
  7. 10.48550/arXiv.2507.23370 · DOI
  8. 10.1109/ICSE48619.2023.00125 · DOI · Paper page
  9. Carlos E. Jimenez John Yang Alexander Wettig Shunyu Yao Kexin Pei Ofir Press and Karthik Narasimhan. 2024. SWE- bench: Can Language Models Resolve Real-World GitHub Issues? arXiv:2310.06770 [cs] doi:10.48550/arXiv.2310.06770 10.48550/arXiv.2310.06770 · DOI · Paper page
  10. 10.1007/s10664-024- · DOI
  11. 10.18653/v1/2025.acl-long.1324 · DOI
  12. 10.18653/v1/2023.emnlp-main.391 · DOI · Paper page
  13. 10.1609/aaai.v39i23.34639 · DOI
  14. 10.1145/3796507 · DOI
  15. 10.1162/tacl_a_00638 · DOI · Paper page
  16. 10.18653/v1/2025.findings-acl.800 · DOI
  17. 10.48550/arXiv · DOI
  18. Dangfeng Pan Zhensu Sun Cenyuan Zhang David Lo and Xiaoning Du. 2025. The Hidden Cost of Readability: How Code Formatting Silently Consumes Your LLM Budget. (2025). doi:10.48550/arXiv.2508.13666 10.48550/arXiv.2508.13666 · DOI
  19. 10.18653/v1/2024 · DOI
  20. 10.1145/3663529 · DOI
  21. Yihao Qin Shangwen Wang Yiling Lou Jinhao Dong Kaixin Wang Xiaoling Li and Xiaoguang Mao. 2024. AgentFL: Scaling LLM-based Fault Localization to Project-Level Context. arXiv preprint arXiv:2403.16362 (2024). doi:10.48550/ arXiv.2403.16362 10.48550/arXiv.2403.16362 · DOI · Paper page
  22. 10.1145/3520312.3534869 · DOI
  23. 10.1145/3715773 · DOI
  24. 10.1145/3468264.3468545 · DOI
  25. 10.48550/arXiv.1706.03762 · DOI · Paper page
  26. Xingyao Wang Yangyi Chen Lifan Yuan Yizhe Zhang Yunzhu Li Hao Peng and Heng Ji. 2024. Executable Code Actions Elicit Better LLM Agents. arXiv:2402.01030 [cs] doi:10.48550/arXiv.2402.01030 10.48550/arXiv.2402.01030 · DOI · Paper page
  27. Xingyao Wang Boxuan Li Yufan Song Frank F. Xu Xiangru Tang Mingchen Zhuge Jiayi Pan Yueqi Song Bowen Li Jaskirat Singh Hoang H. Tran Fuqiang Li Ren Ma Mingzhang Zheng Bill Qian Yanjun Shao Niklas Muennighoff Yizhe Zhang Binyuan Hui Junyang Lin Robert Brennan Hao Peng Heng Ji and Graham Neubig. 2024. OpenHands: An Open Platform for AI Software Developers as Generalist Agents. arXiv:2407.16741 [cs] doi:10.48550/arXiv.2407.16741 10.48550/arXiv.2407.16741 · DOI · Paper page
  28. 10.1145/3643753 · DOI · Paper page
  29. 10.48550/arXiv.2311.08377 · DOI · Paper page
  30. 10.1145/3715754 · DOI · Paper page
  31. 10.1145/3650212.3680323 · DOI
  32. 10.48550/arXiv.2310.04408 · DOI
  33. 10.1145/3735636 · DOI
  34. 10.52202/079017-1601 · DOI · Paper page
  35. Daoguang Zan Zhirong Huang Wei Liu Hanwu Chen Linhao Zhang Shulin Xin Lu Chen Qi Liu Xiaojian Zhong Aoyan Li et al. 2025. Multi-SWE-bench: A Multilingual Benchmark for Issue Resolving. arXiv preprint arXiv:2504.02605 (2025). doi:10.48550/arXiv.2504.02605 10.48550/arXiv.2504.02605 · DOI · Paper page
  36. 10.1145/3650212.3680384 · DOI · Paper page
  37. 10.1145/3540250.3549094 · DOI · Paper page
  38. 10.48550/arXiv.2505.14582 · DOI

Cited by

See all 9

Metadata

Authors
Xiao, Y.-A., Gao, P., Peng, C., & Xiong, Y.
Venue
Proceedings of the ACM on Software Engineering
Published
2026-06-30
Volume
3
Issue
FSE
Pages
1241-1263
ISSN
2994-970X
Cited by
6
References
9
Language
en
Funders
  • National Natural Science Foundation of China (92582202)
  • National Key Research and Development Program of China (2022YFB4501902)

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Reducing Cost of LLM Agents with Trajectory Reduction. https://app.cochat.ai/papers/10.1145/3797084
The paper
Xiao, Y.-A., Gao, P., Peng, C., & Xiong, Y. (2026). Reducing Cost of LLM Agents with Trajectory Reduction. Proceedings of the ACM on Software Engineering. https://doi.org/10.1145/3797084

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.