MEMENTO: The Small Agent That Learned to Take Notes
Every long-running agent hits the same wall: the context window. It is the block of text the model can "see" at once — conversation history, tool output, file contents — and it is fixed. When the window fills, something has to give. Most harnesses solve it with compaction: the model summarizes its own history into a note, wipes the slate, and continues reading from the note.
Sounds sensible. It quietly assumes the model is good at taking notes.
A paper posted to arXiv this week — MEMENTO: Learning Context Management for Long Context Processing Agents (arXiv:2611.00244) — measures that assumption and finds it wanting. Off-the-shelf agentic models, including GPT-5.5 and GLM-5.3, routinely write ineffective notes: they drop the exact fact they will need twenty steps later, the one fact a plain reading of the task said to keep. And when the authors threw away hand-crafted note-taking rules entirely and let reinforcement learning (RL) — training by trial and error against a reward signal — discover note-taking on its own, it almost never did. Taking good notes is not a behavior models fall into by accident, even frontier ones.
What the authors built
MEMENTO is an agent built on Qwen3-8B, a small open-weights model, trained in two stages to manage its own context:
- Bootstrap. Fine-tune on synthetic trajectories — simulated agent runs — where the notes were annotated in hindsight, i.e., written by a process that already knew which facts the final answer would need.
- Reinforce. RL with a reward that blends three terms: answer correctness, note-quality heuristics, and confidence calibration — how well the model's stated certainty matches how often it is actually right.
The headline number: on book-level question answering (books up to 2.5 million tokens, across four benchmarks), MEMENTO lifts its base model from 36.9% to 67.8% accuracy while never holding more than 20,000 tokens in context at once. It beats a GPT-5.5 agent in the same harness (13.1%) and even beats reading the full book in context at once (56.7%) at a fraction of the cost — the paper reports under one-fiftieth the cost of the frontier comparison and roughly one-ninth against a model about a hundred times its size.
The part we find most interesting is what was never trained in. MEMENTO was trained only to compact into a fresh window. At test time it grew strategies on top: context folding (stashing a stretch of history so it can be refolded open later, like a paper map) and confidence-based backtracking (noticing its own certainty has collapsed and re-reading the section that caused it). Those were not specified as actions. They emerged from the reward shape — reward calibration, and the model starts using calibration as a tool.
Why this matters for LLM Ops
Compaction today is mostly a human design decision: an engineer picks a token threshold, writes the summarization prompt, and hopes. MEMENTO is early evidence that this layer can be learned instead — and that a small model with a learned note-taking policy outperforms a much larger model doing the same job unaided. For anyone running agents on a GPU budget, that is the trade most teams actually face: not "which model," but "which control layer gets trained and which one a human hand-writes."
Control is the keyword. A learned compaction policy is still a supervised, auditable choice: you chose the reward, you can read the notes, you can replay the trajectory. That is human-in-the-loop (HITL) in its best form — not a human vetoing every output, but a human owning the objective and keeping the artifacts inspectable. It is exactly the kind of layer we experiment with in Presence, our HITL living lab, where every publish decision stays a human one.
Takeaways you can use:
- If your agent gets worse over long sessions, suspect its notes before you suspect its model. Audit what survives compaction at the step where it went wrong.
- Write the note prompt as if the reader will need named entities, numbers, and decisions — because they will.
- If you train anything here, reward calibration, not just correctness. MEMENTO's most useful behaviors came from exactly that term.
- Small model plus learned bookkeeping beat big model plus boilerplate instructions in this comparison. Budget accordingly.
MeltingFace is an LLM Ops research consultancy; Presence is the HITL living lab where we test these ideas, and we are not a chatbot vendor. The /product/#how-it-works page walks through how we scope context-management and evaluation work for teams. Worth a look if any of this sounds like your Tuesday.
Paper: arXiv:2611.00244 (November 2026). Numbers quoted from the published abstract.
MeltingFace