arXiv:2611.00244v1 cs.CL

MEMENTO: 장문 컨텍스트 처리 에이전트를 위한 컨텍스트 관리 학습

MEMENTO: Learning Context Management for Long Context Processing Agents

Yunfan Zhang, Taehoon Hwang, Kathleen McKeown, Smaranda Muresan

제출 2026-11-03

한국어 초록

긴 입력을 처리하는 LLM 에이전트는 고정된 크기의 컨텍스트 윈도우에 무엇을 유지할지 결정하는 컨텍스트 관리를 수행해야 한다. 일반적인 접근법은 모델이 자신의 이력을 스스로 생성한 노트로 대체하는 압축(compaction)이다. 그러나 GPT-5.5와 GLM-5.3을 포함한 기성 에이전트 모델은 비효율적인 노트를 작성하는 경우가 많고, 강화학습(RL)만으로는 유용한 노트 작성 행동을 발견하기 어렵다. 본 논문은 Qwen3-8B를 기반으로 하며 압축을 통해 자신의 컨텍스트를 관리하도록 학습된 장문 컨텍스트 에이전트 MEMENTO를 제시한다. 먼저 사후적으로 생성한 노트가 주석으로 달린 합성 궤적을 미세 조정하여 노트 작성을 부트스트랩하고, 이후 정답 정확도, 노트 품질 휴리스틱, 신뢰도 보정을 결합한 보상으로 RL을 통해 이를 강화한다. MEMENTO는 새 윈도우로 압축하도록만 학습되었음에도 테스트 시점에 컨텍스트 폴딩과 신뢰도 기반 백트래킹 같은 전략으로 확장된다. 최대 250만 토큰 분량의 책을 사용하는 네 가지 벤치마크의 책 단위 질의응답에서, MEMENTO는 컨텍스트에 20K 토큰 이상을 유지하지 않으면서 Qwen3-8B의 정확도를 36.9%에서 67.8%로 높인다. 동일한 하니스에서 GPT-5.5 에이전트(13.1%)와 책 전체 컨텍스트(56.7%)를 1/50 미만의 비용으로 능가한다. 또한 약 100배 큰 GLM-5.3 에이전트(69.3%)에 1/9의 비용으로 거의 근접하며, GLM-5.3 전체 컨텍스트와는 1/26의 비용으로 6.4포인트 이내의 차이를 보인다.

원문 초록

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.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2611.00244v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.