CarryOn: Learning What to Keep in Context for Long-Horizon LLM Agents
Lihuan Li, Ruiyi Yang, Jiru Wang, Yifan Duan, Xiachong Lin, Hao Xue, Yang Song, Flora Salim
Abstract
Long-horizon LLM agents can coordinate tools and applications to complete complex, multi-step tasks. As their interaction histories grow, effective context management becomes essential for reliable and efficient execution. Existing methods reduce context through summarization, pruning, or history selection. However, shorter contexts do not necessarily support better decisions: summaries can omit exact details needed for later actions, while retaining entire interactions can carry substantial irrelevant information. We propose CarryOn, a lightweight context manager that pairs compact execution state with fine-grained, source-linked evidence. A learned selector and adaptive retention policy keep relevant evidence available without additional LLM calls for context management. We introduce two complementary evaluation metrics: Sα prioritizes task success while accounting for resource use, and normalized cost per success (NCS) measures the resources spent per successful task. Across AppWorld, OfficeBench, and Tau2 Telecom with three LLM Actors, CarryOn achieves 75.7% macro-averaged task success, exceeding the strongest baseline by 6.7 percentage points. It also achieves the best average scores on both metrics.
Create a lesson
Related papers
Forget Freely, Grep Later: Lossless, Index-Free Memory for Long-Horizon LLM Agents
Shared title terminology · Ziyan Yang, Taiwei Shi, Jieyu Zhao
From Repositories to Training Environments: Scaling Long-Horizon Coding Agents with Environment Evolution Loop
Shared title terminology · Yang Tian, Tianyu Zheng, Xiyuan Yang et al.
Gamer: A Generalist Vision-Language-Action Foundation Model for Long-Horizon Real-Time Game Agent
Shared title terminology · Run Luo, Kuan Zhang, Qi Deng et al.
Breaking the Long Horizon: Short-Horizon Process Supervision for Long-Form Generation in LLMs
Shared title terminology · Heyang Xu, HanWen Hao, Qianren Mao et al.
LongCat Recall Sparse Attention: Co-Designing Key Organization and Retrieval for Long-Context Inference
Shared title terminology · Hao Zhang, Bin Xiao, Kefeng Zhang
LoopCache: Accelerating Long-Context Self-Speculative Decoding for Looped Transformers
Shared title terminology · Zizhuo Fu, Haochen Huang, Shengxuan Qiu et al.