paper-with-me

홈 › Papers

ContextPilot: Teaching Agents for Proactive Context Management via Fine-grained RL

2026-08-28 · Zhuoshi Pan, Qizhi Pei, Junru Lu, Honglin Lin, H. Vicky Zhao, Di Yin, Xing Sun arxiv

Long-horizon agentic tasks require large language models (LLMs) to iteratively retrieve, integrate, and maintain dispersed information across multi-turn interactions, but preserving all interaction histories leads to a continuously growing working context. Recent proactive context management methods allow models to edit their own working context with specialized tools, yet they still face three key limitations: (1) a limited toolset restricted to search, deletion, and summarization, with no support for global planning, long-term memory, and adaptive compression; (2) inefficient exploration that treats context management actions uniformly despite their heterogeneous impacts on final outcomes; and (3) coarse-grained credit assignment that assigns the final trajectory-level reward to all intermediate context editing actions during RL. To bridge these gaps, we introduce ContextPilot, a proactive context management framework for long-horizon agentic reasoning. Our approach systematically augments the toolset with planning, long-term memory, and soft context offloading tools. We further propose an RL method tailored for context management, which uses context and entropy variation to identify critical editing decisions for branch sampling and estimates action-level advantages from all branched trajectories that pass through the corresponding context editing action. Experiments on long-context QA and deep search tasks show that ContextPilot achieves stronger performance with a more compact working context, consistently outperforming existing baselines across various base models and benchmarks. Code is available at https://github.com/Tencent/ContextPilot.

📄 PDF Abstract BibTeX arXiv:2608.28476

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

ContextPilot: Fast Long-Context Inference via Context Reuse

2025-11-05 · Yinsicheng Jiang, Yeqi Huang, Liang Cheng, Cheng Deng 외 arxiv

AI applications increasingly depend on long-context inference, where LLMs consume substantial context to support stronger reasoning. Common examples include retrieval-augmented generation, agent memory layers, and multi-…

SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agents

2026-06-26 · Shuzheng Gao, Wenhao Zeng, Zhaojian Yu, Jianqiao Wangni 외 arxiv

Long-horizon software engineering agents often need to manage lengthy and noisy interaction histories under limited context budgets. Existing memory management methods typically rely on static compression workflows or im…

AgentFold: Long-Horizon Web Agents with Proactive Context Management

2025-10-28 · Rui Ye, Zhongwang Zhang, Kuan Li, Huifeng Yin 외 arxiv

LLM-based web agents show immense promise for information seeking, yet their effectiveness on long-horizon tasks is hindered by a fundamental trade-off in context management. Prevailing ReAct-based agents suffer from con…

Context as a Tool: Context Management for Long-Horizon SWE-Agents

2025-12-26 · Shukai Liu, Jian Yang, Bo Jiang, Yizhi Li 외 arxiv

Agents based on large language models have recently shown strong potential on real-world software engineering (SWE) tasks that require long-horizon interaction with repository-scale codebases. However, most existing agen…

ContextAgent: Context-Aware Proactive LLM Agents with Open-World Sensory Perceptions

2025-05-20 · Bufang Yang, Lilin Xu, Liekang Zeng, Kaiwei Liu 외

Recent advances in Large Language Models (LLMs) have propelled intelligent agents from reactive responses to proactive support. While promising, existing proactive agents either rely exclusively on observations from encl…