arXiv cs.CL· Yunfan Zhang, Taehoon Hwang, Kathleen McKeown, Smaranda Muresan·· 11 小时前AI 评分58
MEMENTO:面向长上下文处理智能体的上下文管理训练方法
MEMENTO: Learning Context Management for Long Context Processing Agents
AI 导读
研究者提出 MEMENTO,一个基于 Qwen3-8B 训练的长上下文智能体,通过压缩(compaction)管理上下文窗口。方法先用带事后标注笔记的合成轨迹微调做引导,再用结合答案正确性、笔记质量启发式和置信度校准的奖励做强化学习。
正文 · 原文
Abstract:LLM agents that operate over long inputs must perform context management: deciding what to retain in a fixed-size context window. A common approach is compaction, where the model replaces its history with a self-generated note. Yet off-the-shelf agentic models, including GPT-5.5 and GLM-5.3, often write ineffective notes, and reinforcement learning (RL) alone rarely discovers useful note-taking behavior. We present MEMENTO, a long-context agent built on Qwen3-8B and trained to manage its context through compaction. We first bootstrap note-taking by fine-tuning on synthetic trajectories annotated with notes generated in hindsight, then reinforce it with RL using a reward that combines answer correctness, note-quality heuristics, and confidence calibration. Although trained only to compact into a fresh window, MEMENTO extends at test time to strategies such as context folding and confidence-based backtracking. On book-level question answering across four benchmarks, with books of up to 2.5M tokens, MEMENTO raises Qwen3-8B's accuracy from 36.9% to 67.8% while never holding more than 20K tokens in context. It outperforms GPT-5.5 agent in the same harness (13.1%) and full book context (56.7%) at less than 1/50 the cost. It also nearly matches a ~100x larger GLM-5.3 agent (69.3%) at 1/9 the cost, and comes within 6.4 points of GLM-5.3 full context at 1/26 the cost.
| Subjects: | Computation and Language (cs.CL); Information Retrieval (cs.IR) |
| Cite as: | arXiv:2611.00244 [cs.CL] |
| (or arXiv:2611.00244v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2611.00244 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Yunfan Zhang [view email]
[v1]
Fri, 30 Oct 2026 18:25:08 UTC (195 KB)
来源:arXiv cs.CL · arxiv.org