MEMENTO: Teaching LLMs to Manage Their Own Context
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
Reasoning models think in long, unstructured streams with no mechanism for compressing or organizing their own intermediate state. We introduce MEMENTO: a method that teaches models to segment reasoning into blocks, compress each block into a memento, i.e., a dense state summary, and reason forward by attending only to mementos, reducing context, KV cache, and compute. To train MEMENTO models, we release OpenMementos, a public dataset of 228K reasoning traces derived from OpenThoughts-v3, segmented and annotated with intermediate summaries. We show that a two-stage SFT recipe on OpenMementos is effective across different model families (Qwen3, Phi-4, Olmo 3) and scales (8B--32B parameters). Trained models maintain strong accuracy on math, science, and coding benchmarks while achieving ~2.5× peak KV cache reduction. We extend vLLM to support our inference method, achieving ~1.75× throughput improvement while also enabling us to perform RL and further improve accuracy. Finally, we identify a dual information stream: information from each reasoning block is carried both by the memento text and by the corresponding KV states, which retain implicit information from the original block. Removing this channel drops accuracy by 15,pp on AIME24.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 32 of its 45 references that are in the map. First posted on arXiv 10 Apr 2026.
Builds on
32 of 45 references.
Closest ancestors · 17
Same direction, newest first
- 2026InftyThink+: Effective and Efficient Infinite-Horizon Reasoning via Reinforcement Learning6 Feb
- 2026Accordion-Thinking: Self-Regulated Step Summaries for Efficient and Readable LLM Reasoning3 Feb
- 2025TokenSqueeze: Performance-Preserving Compression for Reasoning LLMs17 Nov
- 2025Breadcrumbs Reasoning: Memory-Efficient Reasoning with Compression Beacons15 Oct
- 2025ThinKV: Thought-Adaptive KV Cache Compression for Efficient Reasoning Models1 Oct
- 2025Making Slow Thinking Faster: Compressing LLM Chain-of-Thought via Step Entropy5 Aug
- 2025LazyEviction: Lagged KV Eviction with Attention Pattern Observation for Efficient Long Reasoning19 Jun
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention16 Jun
- 2025R-KV: Redundancy-aware KV Cache Compression for Reasoning Models30 May
- 2025R1-Compress: Long Chain-of-Thought Compression via Chunk Compression and Search22 May
- 2025Think Silently, Think Fast: Dynamic Latent Compression of LLM Reasoning Chains22 May
- 2025Reasoning Path Compression: Compressing Generation Trajectories for Efficient LLM Reasoning20 May
5 more
- 2025ThinkPrune: Pruning Long Chain-of-Thought of LLMs via Reinforcement Learning2 Apr
- 2025InftyThink: Breaking the Length Limits of Long-Context Reasoning in Large Language Models9 Mar
- 2025LightThinker: Thinking Step-by-Step Compression21 Feb
- 2025TokenSkip: Controllable Chain-of-Thought Compression in LLMs17 Feb
- 2024C3oT: Generating Shorter Chain-of-Thought without Compromising Effectiveness16 Dec
Other references · 15
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
- 2024Training Large Language Models to Reason in a Continuous Latent Spacecited by 763
- 2025MathArena: Evaluating LLMs on Uncontaminated Math Competitionscited by 275
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 226
- 2025CODI: Compressing Chain-of-Thought into Continuous Space via Self-Distillationcited by 216
- 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 132
3 more
- 2025Memento: Fine-tuning LLM Agents without Fine-tuning LLMscited by 119
- 2025Sample More to Think Less: Group Filtered Policy Optimization for Concise Reasoningcited by 75
- 2025PENCIL: Long Thoughts with Short Memorycited by 31
Built on by
Citing papers per year: 2026: 16.
16 papers.
Sort:
By area:
- 2026Self-Compacting Language Model Agentscited by 11
- 2026LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioceptioncited by 3
- 2026Neural Garbage Collection: Learning to Forget while Learning to Reasoncited by 2
- 2026Context as an Environment: Programmatic Context Management for Long-Horizon Agentscited by 2
- 2026Prefix Sliding for efficient test-time scalingcited by 2
- 2026Compute Globally, Materialize Locally: The Memory Contract of Sparse Event-KVcited by 1
- 2026HybridThinker: Efficient Chain-of-Thought Reasoning via Compressed Memory and Transient Thought Stepscited by 0
- 2026PromptMN: Pseudo Prompting Languagecited by 0
- 2026What Does Context Compression Cost an Agent? Interaction Costs Unrevealed by Task-Completion Metricscited by 0
- 2026MoNe: Modular Neural Memory for Efficient Long Context Inferencecited by 0
- 2026What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levelscited by 0
- 2026Register Tokens for Bounded-State Reasoning in Diffusion Language Modelscited by 0
4 more
- 2026Continuous Context Managementcited by 0
- 2026Context Language Modelscited by 0
- 2026Hermes: Learning Contextual Reasoning Unlocks Test-Time Scalingcited by 0
- 2026Visual Memory Attacks Can Persist Through The KV Cachecited by 0
- 2026Visual Memory Attacks Can Persist Through The KV Cache6 Oct 2026
- 2026Hermes: Learning Contextual Reasoning Unlocks Test-Time Scaling29 Sep 2026
- 2026Context Language Models29 Sep 2026
- 2026Continuous Context Management28 Sep 2026
- 2026Register Tokens for Bounded-State Reasoning in Diffusion Language Models14 Sep 2026
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2026What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levels24 Aug 2026
- 2026Context as an Environment: Programmatic Context Management for Long-Horizon Agents21 Aug 2026
- 2026MoNe: Modular Neural Memory for Efficient Long Context Inference18 Aug 2026
- 2026What Does Context Compression Cost an Agent? Interaction Costs Unrevealed by Task-Completion Metrics17 Aug 2026
- 2026Compute Globally, Materialize Locally: The Memory Contract of Sparse Event-KV26 Jul 2026
- 2026LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioception29 Jun 2026
4 more
- 2026Self-Compacting Language Model Agents22 Jun 2026
- 2026PromptMN: Pseudo Prompting Language15 Jun 2026
- 2026HybridThinker: Efficient Chain-of-Thought Reasoning via Compressed Memory and Transient Thought Steps2 Jun 2026
- 2026Neural Garbage Collection: Learning to Forget while Learning to Reason20 Apr 2026
- 2026Neural Garbage Collection: Learning to Forget while Learning to Reasoncited by 2
- 2026Prefix Sliding for efficient test-time scalingcited by 2
- 2026HybridThinker: Efficient Chain-of-Thought Reasoning via Compressed Memory and Transient Thought Stepscited by 0
- 2026Register Tokens for Bounded-State Reasoning in Diffusion Language Modelscited by 0
- 2026Continuous Context Managementcited by 0
- 2026Hermes: Learning Contextual Reasoning Unlocks Test-Time Scalingcited by 0
- 2026Hermes: Learning Contextual Reasoning Unlocks Test-Time Scaling29 Sep 2026
- 2026Continuous Context Management28 Sep 2026
- 2026Register Tokens for Bounded-State Reasoning in Diffusion Language Models14 Sep 2026
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2026HybridThinker: Efficient Chain-of-Thought Reasoning via Compressed Memory and Transient Thought Steps2 Jun 2026
- 2026Neural Garbage Collection: Learning to Forget while Learning to Reason20 Apr 2026
- 2026Self-Compacting Language Model Agentscited by 11
- 2026LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioceptioncited by 3
- 2026Context as an Environment: Programmatic Context Management for Long-Horizon Agentscited by 2
- 2026What Does Context Compression Cost an Agent? Interaction Costs Unrevealed by Task-Completion Metricscited by 0
- 2026What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levelscited by 0
- 2026What Process Evaluation of Coding Agents Actually Measures: Action, Task, and Step Are Three Different Levels24 Aug 2026
- 2026Context as an Environment: Programmatic Context Management for Long-Horizon Agents21 Aug 2026
- 2026What Does Context Compression Cost an Agent? Interaction Costs Unrevealed by Task-Completion Metrics17 Aug 2026
- 2026LLM Agents Are Latent Context Managers: Eliciting Self-Managed Context via State Proprioception29 Jun 2026
- 2026Self-Compacting Language Model Agents22 Jun 2026
- 2026PromptMN: Pseudo Prompting Languagecited by 0
- 2026MoNe: Modular Neural Memory for Efficient Long Context Inferencecited by 0
- 2026Context Language Modelscited by 0
- 2026Context Language Models29 Sep 2026
- 2026MoNe: Modular Neural Memory for Efficient Long Context Inference18 Aug 2026
- 2026PromptMN: Pseudo Prompting Language15 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2025Prompting Test-Time Scaling Is A Strong LLM Reasoning Data Augmentation
- 2025Reasoning on a Budget: A Survey of Adaptive and Controllable Test-Time Compute in LLMs
- 2024PRISM: Efficient Long-Range Reasoning With Short-Context LLMs
- 2025From Long to Short: LLMs Excel at Trimming Own Reasoning Chains
- 2025MobileLLM-R1: Exploring the Limits of Sub-Billion Language Model Reasoners with Open Training Recipes
- 2026Akashic: A Low-Overhead LLM Inference Service with MemAttention
- 2026PI-Mem: Pushing Long-Context Reasoning to 3.6M Tokens with Parallel-Iterative Memory
- 2026MILES: Modular Instruction Memory with Learnable Selection for Self-Improving LLM Reasoning