Multi-turn agent systems based on Large Language Models (LLMs) have been increasingly popular for software engineering tasks. While LLM agents show decent effectiveness, the high computational cost of input tokens due to the ever-growing trajectory remains an efficiency concern for their applications. Efficiency is largely neglected in existing studies and agent products, and this paper fills the gap by introducing an inference-time trajectory reduction approach to reduce the cost of agents.
Through analyzing existing agent trajectories, we demonstrate that useless, redundant, and expired information is widespread in all trajectories, which can be identified and reduced without harming the agent’s performance. We then design a simple yet effective trajectory reduction approach, AgentDiet, which automatically removes such waste information. We implement AgentDiet on a top-performing coding agent, and the evaluation on two LLMs and two benchmarks shows that AgentDiet can reduce input tokens by 39.9% ~ 59.7%, or the final computational cost by 21.1% ~ 35.9%, while maintaining the same agent performance. This indicates that trajectory reduction is a promising direction for agent systems.
Tue 7 JulDisplayed time zone: Eastern Time (US & Canada) change
14:00 - 15:30 | AgentsIdeas, Visions and Reflections / Industry Papers / Research Papers at MB 3.270 Chair(s): Michael Pradel CISPA Helmholtz Center for Information Security | ||
14:00 20mTalk | RocketMQ-A2A: Reliable Session-Level Replayable Event Streams for Large-Scale Multi-Agent Collaboration Industry Papers Li Zhou Alibaba Cloud Computing, Shuo Zhang Alibaba Cloud Computing, Juntao Ji Alibaba Cloud Computing Co. Ltd., Shijie Zhang Alibaba Cloud Computing, Ke Zhao Alibaba Cloud Computing, Yubao Fu Alibaba Cloud Computing Co. Ltd., Qingshan Lin Alibaba Cloud Computing Co. Ltd. | ||
14:20 10mTalk | AgentReputation: A Decentralized Agentic AI Reputation Framework Ideas, Visions and Reflections Mohd Sameen Chishti Norwegian University of Science and Technology NTNU, Damilare Peter Oyinloye Norwegian University of Science and Technology, Jingyue Li Norwegian University of Science and Technology (NTNU) | ||
14:30 10mTalk | Evaluating Privilege Usage of Agents on Real-World Tools Ideas, Visions and Reflections Quan Zhang East China Normal University, Lianhang Fu School of Software, Xinjiang University, Lvsi Lian East China Normal University, Gwihwan Go Tsinghua University, YujueWang Tsinghua University, Chijin Zhou East China Normal University, Yu Jiang Tsinghua University, Geguang Pu East China Normal University, China | ||
14:40 20mTalk | AgentBound: Securing Execution Boundaries of AI Agents Research Papers Christoph Buehler University of St. Gallen, Matteo Biagiola University of St. Gallen and Università della Svizzera italiana, Luca Di Grazia University of St. Gallen, Guido Salvaneschi University of St. Gallen Link to publication DOI Media Attached | ||
15:00 10mTalk | AIMS: A Content-Aware Resource Management Approach for AI Assistant Systems Ideas, Visions and Reflections Chiming Duan Peking University, Tong Jia Institute for Artificial Intelligence, Peking University, Beijing, China, Minghua He Peking University, Pei Xiao Peking University, Lingzhe Zhang Peking University, China, Zhewei Zhong Bytedance, Xin Zhang Bytedance, Ying Li School of Software and Microelectronics, Peking University, Beijing, China | ||
15:10 20mTalk | Reducing Cost of LLM Agents with Trajectory Reduction Research Papers Yuan-An Xiao Peking University, Pengfei Gao ByteDance, Chao Peng Tencent, Yingfei Xiong Peking University Pre-print | ||