- Archived full text: Full archived text, with credits
- Link: https://arxiv.org/html/2607.23809v1
What it says
Agentic tasks accumulate verbose tool outputs and reasoning traces until they exceed the effective context capacity even on models with million-token windows. ACM equips agents with two purpose-built tools: manage_context, which compresses prior turns into a summary while preserving the raw messages in an external file, and query_memory, which retrieves those archived messages on demand. Because compression is agent-initiated rather than heuristic-triggered, the agent can manage context at the right moment in its own reasoning. A teacher-guided dual-constraint pipeline trains the student to know when to compress and when to refrain, lifting Qwen3.5-9B by 27% on BrowseComp-Plus, 16% on DeepSearchQA, and 8% on SWE-Bench Verified over the ReAct baseline.
Claims drawn from this source
- Long-horizon agent traces overflow effective context capacity even on models with million-token windows. Real-world tool outputs interleave failed attempts and redundant observations with reasoning traces, so histories exceed effective capacity even when the underlying model supports nominal windows of millions of tokens (Gemini Team, 2024; Anthropic, 2025; OpenAI, 2025b).
- ACM gives the agent two lossless context-editing tools, manage_context and query_memory. manage_context compresses previous turns into a concise summary and offloads the raw messages to an external file; query_memory loads the archived raw messages under a summary id so the agent can revisit earlier content on demand.
- Compression timing is agent-initiated, not heuristic. The agent decides when and how to manage its context, at any point during reasoning, rather than relying on fixed thresholds or external monitors.
- Teacher-guided dual-constraint training teaches when to compress and when to refrain. In one phase the teacher annotates turns where compression should be inserted (redundant topics, dead-end loops, sufficient context to warrant compression); in the other, it replaces premature or unnecessary compression calls with committing to an answer or deeper search.
- Post-training lifts a 9B model past older baselines and approaches models 40x larger. ACM-Post-Trained improves Qwen3.5-9B by 27% relative on BrowseComp-Plus, 16% on DeepSearchQA, and 8% on SWE-Bench Verified over ReAct, nearly matching open-source models 40x larger.
- ACM reduces peak token usage, extends exploration, and improves consistency. Effective context management reduces peak token usage by around 20%, increases tool call frequency, extends test-time exploration turns, and narrows the gap between Pass@4 and Pass4, making correct solutions more reliable across independent trials.
- Frontier models rarely manage context on their own without training. GPT-5.5 rarely invokes context management and makes near-zero calls to both manage_context and query_memory; ACM-Post-Trained achieves the highest frequency of management calls and the most search and document-fetch tool calls.