REMORY: Learning Residual Memory for Context Compaction
Not on the map. Why?
Abstract (arXiv)
Long-horizon agents compact their history to continue within a finite context window, but a textual summary alone may not support every subsequent decision. We introduce REMORY, a neural memory network that supplements the summary with a bounded sequence of soft memory tokens. Given the history and summary, the network learns to generate tokens that help a frozen LLM approximate the continuation it would produce with the full history. The tokens are conditioned on the summary and appended after it, forming an analogue of a residual connection along the sequence dimension. On SummHay, REMORY improves source attribution at nearly unchanged insight coverage and approaches the full-context joint score using only 5.2% of the input positions. Across long-horizon agent benchmarks, Qwen3.8-27B and GLM-5.3-Flash show consistent gains with residual memory. Both models also exhibit substantially fewer repeated tool outputs and tool errors on BrowseComp and Terminal-Bench 2.1.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 11 of its 37 references that are in the map. First posted on arXiv 8 Oct 2026.
Builds on
11 of 37 references.
References · 11
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2025BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agentscited by 616
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 515
- 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 132
- 2026DFlash: Block Diffusion for Flash Speculative Decodingcited by 120
- 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 95
- 2026MMFineReason: Closing the Multimodal Reasoning Gap via Open Data-Centric Methodscited by 27
- 2026JobBench: Aligning Agent Work With Human Willcited by 10
- 2026AutomationBenchcited by 9
- 2026WebAnchor: Anchoring Agent Planning to Stabilize Long-Horizon Web Reasoningcited by 7
- 2026End-to-End Context Compression at Scalecited by 4
Built on by
Not cited yet.