Crimson AI NewsA CrimsonLingua Network service
EN ع
← Back to news
Research paper Hugging Face

REMORY: Hugging Face Paper Adds Learned Residual Memory Tokens to Compress Agent Context

AI By Crimson AI Hugging Face Papers 10 October 2026 · 00:00 2 views
Share: X Telegram

A new paper introduces REMORY, a neural memory network that appends a bounded sequence of soft memory tokens to a compacted summary, helping frozen LLMs approximate full-history behavior while using only a fraction of the input positions.

REMORY: Hugging Face Paper Adds Learned Residual Memory Tokens to Compress Agent Context

Key points

Long-horizon agents must compress their interaction history to keep operating inside a finite context window, but a text-only summary may not carry enough information for every later decision. A new paper posted on Hugging Face, REMORY: Learning Residual Memory for Context Compaction, proposes supplementing that summary with learned memory representations rather than relying on words alone.

REMORY is described as a neural memory network that generates a bounded sequence of soft memory tokens. Conditioned on the summary and appended after it, these tokens act as an analogue of a residual connection along the sequence dimension. The network is trained so that a frozen LLM, given the summary plus the tokens, approximates the continuation it would have produced with the full history.

On SummHay, the paper reports that REMORY improves source attribution at nearly unchanged insight coverage, and approaches the full-context joint score while using only 5.2% of the input positions. Across long-horizon agent benchmarks, the authors say Qwen3.8-27B and GLM-5.3-Flash show consistent gains with residual memory, along with substantially fewer repeated tool outputs and tool errors on BrowseComp and Terminal-Bench 2.1.

A discussion thread raised a practical question: whether the soft tokens preserve any human-traceable link back to the original step when a summary loses provenance. The authors acknowledge that the tokens are not directly human-readable and that their information is recovered through the LLM — which is also the training objective, since REMORY learns representations the frozen model can interpret and use.

One hypothesis offered in the thread is that the soft tokens may function as a form of associative memory, connecting the model's working context with external long-term memory such as saved files or memory.jsonl, potentially preserving cues about where relevant information resides so it can be retrieved again.

Benchmark / ModelReported Result
SummHayImproved source attribution at nearly unchanged insight coverage; approaches full-context joint score using only 5.2% of input positions
Qwen3.8-27B (long-horizon agent benchmarks)Consistent gains with residual memory
GLM-5.3-Flash (long-horizon agent benchmarks)Consistent gains with residual memory
BrowseCompSubstantially fewer repeated tool outputs and tool errors
Terminal-Bench 2.1Substantially fewer repeated tool outputs and tool errors
Source
Hugging Face · Hugging Face Papers
Related news
Research paper
Hugging Face 15 Oct 2026

New Survey Maps How Multimodal AI Agents Remember and Evolve

A Hugging Face survey proposes a two-axis framework for multimodal agent memory, separating how information is formed and represen...

0
Research paper
Hugging Face 15 Oct 2026

CriticOPD Fixes On-Policy Distillation by Letting Teachers Critique Student Errors

Hugging Face researchers introduce CriticOPD, a method that restores the teacher's ability to recover from student mistakes during...

0
Research paper
Hugging Face 15 Oct 2026

ActionOPD: Distilling Agent Decisions, Not Tokens

A new Hugging Face paper proposes ActionOPD, an action-level on-policy distillation method that aligns a student agent's decisions...

0