REMORY: Learning Residual Memory for Context Compaction: plain AI paper summary
AI-generated summary. Read the original paper before relying on it.
Hugging Face paper page · Original paper on arXiv
REMORY adds a short sequence of learned memory tokens to a text summary when a long-running agent compacts its history. The tokens help a frozen language model act more like it had the full history.
Key findings
- The memory network conditions its tokens on both the original history and its summary.
- The tokens are appended after the summary as a sequence-level residual.
- On SummHay, the authors report nearly unchanged insight coverage and source attribution close to full-context performance using 5.2% of input positions.
- Qwen3.8-27B and GLM-5.3-Flash both gain on long-horizon agent benchmarks.
- The models show fewer repeated tool outputs and tool errors on BrowseComp and Terminal-Bench 2.1.
How you might use it
- Compare summary-only and summary-plus-memory runs on a repeatable support or WordPress maintenance workflow.
- Count wrong tool calls and lost source references, not only final answer quality, before adopting memory tokens.
Limits
The abstract does not explain training cost, memory-token count, or behavior on models other than the reported backbones. Learned memory can preserve a wrong earlier decision unless the workflow checks its evidence.
Related research
- Zep: A Temporal Knowledge Graph Architecture for Agent Memory This paper on arXiv Related paper on arXiv: Both papers improve agent memory beyond static retrieval. REMORY preserves compacted conversational state with learned tokens, while Zep represents ongoing conversations and business data in a temporal graph.
Business ideas
1. Residual Memory Adapter
Offer: A residual-memory adapter that appends bounded soft tokens after an agent summary.
Buyer: agent platform teams
Technical link: The proposed service uses bounded soft memory tokens appended after summaries to approximate full-history continuation. It is a pilot hypothesis, not a claim that the paper proves production performance.
Evidence
- competitor: LangSmith integrates with pytest, Vitest, and GitHub workflows for PR or nightly evaluations. (scope: vendor documentation year: 2026 region: global) (source)
- adoption: The proportion of UK businesses with 10 or more employees reporting use of at least one AI technology rose from around 12% to around 35%. (scope: ONS Business Insights and Conditions Survey analysis year: 2026 region: United Kingdom denominator: businesses with 10 or more employees) (source)
Differentiation: LangSmith evaluations is the named adjacent competitor from the evidence pack. This offer adds a buyer-facing evidence packet and approval record for residual memory adapter.
First test: Run 100 labeled customer cases from two projects.
Success measure: Proposed acceptance: 90% meet the customer quality floor.
Constraints: Use customer-owned or licensed data, an approved runtime, and human review for consequential outputs. Market evidence is contextual proxy evidence rather than TAM.
2. Context Compaction Evaluator
Offer: A context-compaction evaluator that compares source attribution with and without residual memory.
Buyer: agent platform teams
Technical link: The proposed service uses bounded soft memory tokens appended after summaries to approximate full-history continuation. It is a pilot hypothesis, not a claim that the paper proves production performance.
Evidence
- competitor: Arize Phoenix is open-source and local-first for tracing, evaluation, experimentation, and prompt iteration. (scope: vendor product description year: 2026 region: global) (source)
- adoption: The proportion of UK businesses with 10 or more employees reporting use of at least one AI technology rose from around 12% to around 35%. (scope: ONS Business Insights and Conditions Survey analysis year: 2026 region: United Kingdom denominator: businesses with 10 or more employees) (source)
Differentiation: Arize AX pricing is the named adjacent competitor from the evidence pack. This offer adds a buyer-facing evidence packet and approval record for context compaction evaluator.
First test: Replay 50 cases with seeded failures and reviewer labels.
Success measure: The system catches 90% of seeded failures with fewer than 10% false alerts.
Constraints: Use customer-owned or licensed data, an approved runtime, and human review for consequential outputs. Market evidence is contextual proxy evidence rather than TAM.
3. Source Attribution Monitor
Offer: A source-attribution monitor that flags when a compacted session loses evidence.
Buyer: agent platform teams
Technical link: The proposed service uses bounded soft memory tokens appended after summaries to approximate full-history continuation. It is a pilot hypothesis, not a claim that the paper proves production performance.
Evidence
- competitor: LangSmith integrates with pytest, Vitest, and GitHub workflows for PR or nightly evaluations. (scope: vendor documentation year: 2026 region: global) (source)
- adoption: The proportion of UK businesses with 10 or more employees reporting use of at least one AI technology rose from around 12% to around 35%. (scope: ONS Business Insights and Conditions Survey analysis year: 2026 region: United Kingdom denominator: businesses with 10 or more employees) (source)
Differentiation: LangSmith evaluations is the named adjacent competitor from the evidence pack. This offer adds a buyer-facing evidence packet and approval record for source attribution monitor.
First test: Evaluate 200 held-out cases against a fixed reference set.
Success measure: Agreement with the reference exceeds 0.85.
Constraints: Use customer-owned or licensed data, an approved runtime, and human review for consequential outputs. Market evidence is contextual proxy evidence rather than TAM.
4. Long-Session Memory Service
Offer: A long-session memory service that preserves selected history under a fixed token budget.
Buyer: agent platform teams
Technical link: The proposed service uses bounded soft memory tokens appended after summaries to approximate full-history continuation. It is a pilot hypothesis, not a claim that the paper proves production performance.
Evidence
- competitor: Arize Phoenix is open-source and local-first for tracing, evaluation, experimentation, and prompt iteration. (scope: vendor product description year: 2026 region: global) (source)
- adoption: The proportion of UK businesses with 10 or more employees reporting use of at least one AI technology rose from around 12% to around 35%. (scope: ONS Business Insights and Conditions Survey analysis year: 2026 region: United Kingdom denominator: businesses with 10 or more employees) (source)
Differentiation: Arize AX pricing is the named adjacent competitor from the evidence pack. This offer adds a buyer-facing evidence packet and approval record for long-session memory service.
First test: Process one week of approved logs with human sampling.
Success measure: Median processing time falls 20% without lowering quality.
Constraints: Use customer-owned or licensed data, an approved runtime, and human review for consequential outputs. Market evidence is contextual proxy evidence rather than TAM.
5. Memory Token Budgeter
Offer: A memory-token budgeter that trades retained tokens against continuation quality.
Buyer: agent platform teams
Technical link: The proposed service uses bounded soft memory tokens appended after summaries to approximate full-history continuation. It is a pilot hypothesis, not a claim that the paper proves production performance.
Evidence
- competitor: LangSmith integrates with pytest, Vitest, and GitHub workflows for PR or nightly evaluations. (scope: vendor documentation year: 2026 region: global) (source)
- adoption: The proportion of UK businesses with 10 or more employees reporting use of at least one AI technology rose from around 12% to around 35%. (scope: ONS Business Insights and Conditions Survey analysis year: 2026 region: United Kingdom denominator: businesses with 10 or more employees) (source)
Differentiation: LangSmith evaluations is the named adjacent competitor from the evidence pack. This offer adds a buyer-facing evidence packet and approval record for memory token budgeter.
First test: Compare three configurations on the same benchmark set.
Success measure: The chosen configuration meets latency and cost limits on 85% of cases.
Constraints: Use customer-owned or licensed data, an approved runtime, and human review for consequential outputs. Market evidence is contextual proxy evidence rather than TAM.