Skip to content
AI Learning Ground Start learning

Research ·

REMORY: Learning Residual Memory for Context Compaction

REMEMORY is a neural memory network that adds learned soft tokens to an agent's textual history summary, letting a frozen LLM approximate full-context behavior using only 5.2% of input positions.

REMORY: Learning Residual Memory for Context Compaction
Image: Hugging Face

Long-horizon agents compact their history into summaries to fit finite context windows, but summaries alone may not support every later decision. REMORY supplements the summary with a bounded sequence of soft memory tokens generated from the history and summary, trained so a frozen LLM produces continuations close to what it would with the full context. The tokens are appended after the summary, described as an analogue of a residual connection along the sequence dimension.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research