REMORY: Learning Residual Memory for Context Compaction
Paper · https://arxiv.org/abs/2610.11287
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.
First seen by Oriel on .
AI summary
REMORY augments textual summaries with learned soft memory tokens, helping frozen LLMs preserve full-history behavior under context limits.
- Conditioned on the history and its summary, REMORY generates a bounded sequence of tokens appended after the summary as a sequence-level residual.
- On SummHay, it improves source attribution at nearly unchanged insight coverage and approaches the full-context joint score using 5.2% of input positions.
- Qwen3.8-27B and GLM-5.3-Flash gain consistently across long-horizon agent benchmarks.
- Both models produce substantially fewer repeated tool outputs and tool errors on BrowseComp and Terminal-Bench 2.1.
#llm agents #neural memory #context compaction
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hugging Face Papers: 47, latest observation ; -2 over observed period since
Comments
Comment count reported by the source.
- Hugging Face Papers: 6, latest observation ; 0 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hugging Face Papers | 2610.11287 | https://arxiv.org/abs/2610.11287 Read discussion |