{"id":1168975,"date":"2026-04-20T09:47:26","date_gmt":"2026-04-20T16:47:26","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/research\/publication\/memento-teaching-llms-to-manage-their-own-context\/"},"modified":"2026-07-23T07:49:48","modified_gmt":"2026-07-23T14:49:48","slug":"memento-teaching-llms-to-manage-their-own-context","status":"publish","type":"msr-research-item","link":"https:\/\/www.microsoft.com\/en-us\/research\/publication\/memento-teaching-llms-to-manage-their-own-context\/","title":{"rendered":"MEMENTO: Teaching LLMs to Manage Their Own Context"},"content":{"rendered":"\n\n\n
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