# RecMem: Recurrent Memory Compression for Long-Sequence Recommendation

*Haoyi Hu, Gaoyang Guo, Yunjia Xi, Wen Chen, Weiwen Liu, Jian Wu, Yuning Jiang, Weinan Zhang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149955) · [OpenReview](https://openreview.net/forum?id=lvtUjInAvY) · [Open on the map](../papers.html#p149955)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Sequential Recommendation Systems](../pgroup/95.md) · Type: new method · Keywords: sequential recommendation, memory compression, recurrent model, space invariance, lifelong recommendation

Areas: [Memory](../areas/memory.md) › Agent Memory Systems › Evolving User Memory; [Long Context](../areas/longcontext.md) › Long-context mechanisms › Long-context memory

## Summary
RecMem is a recurrent compression framework that folds long histories into a fixed set of forget-gated memory slots, providing space invariance, semantic fidelity, and lifelong evolvability for sequential recommendation while using far fewer decoder tokens.

## Explained to a 5-year-old
When you watch videos or buy things online, the computer tries to guess what you might like next. It looks at everything you have ever done, but remembering a huge list gets too big and slow. So the researchers made a new way to keep only the most important memories in a small box. This box can hold a few special notes that still help the computer suggest good things. Because of this, the computer can work faster and still give you good suggestions for a long time.

## Explained to a 5-year-old, longer
When you use a video or shopping site, it shows you things it thinks you might like. To do this, it looks at everything you have ever clicked or watched. But if you have done many things over many days, the list becomes huge. A huge list makes the computer slow and uses a lot of memory. The researchers wanted a way to remember your history without using too much memory. They created a special system that picks only the most important moments from your history. These important moments are stored in a few slots that act like tiny memory boxes. Each slot can forget unimportant things and keep the useful ones. The system is trained to predict what you will do next, so it learns what is useful. Because it only keeps a few slots, the computer can work quickly even after many years. This method also stays stable, meaning it does not break or get worse over time. As a result, the site can still give you good suggestions without slowing down.

## For a technical reader
The paper addresses the scalability issue of full-prefix attention in sequential recommendation by introducing a recurrent compression mechanism. Instead of storing the entire user history, the approach folds history segments into a fixed number of forget-gated memory slots. These slots are trained via next-item prediction to preserve semantic signals while providing a history-length-independent error bound. Evaluations on the MerRec benchmark show a 5.6× reduction in decoder tokens with 88-97% of original recall and a 4-6 pp boost over prior compression baselines. The method remains stable over long test sequences, making it suitable for lifelong recommendation systems.

## Problem
Sequential recommenders must retain long user histories, but full-prefix attention scales with user lifetime, making it costly to store and process ever-growing sequences. Existing fixed-window or capped-memory methods fail to simultaneously provide space invariance, semantic fidelity, and lifelong evolvability.

## Method
The approach folds history segments into a fixed set of forget-gated memory slots, training the slots via next-item prediction while maintaining a history-length-independent rollout error bound. This recurrent compression framework provides space invariance, semantic fidelity, and lifelong evolvability without scaling with user lifetime.

## Results
The approach uses 5.6× fewer decoder-side tokens than full attention while retaining 88-97% of Recall@10-200, improves Recall@50+ by 4-6 percentage points over a compressed truncation baseline, and remains stable over 1,800 test steps.

## Contributions
A recurrent compression framework that provides space invariance, semantic fidelity, and lifelong evolvability for long-sequence recommendation, along with a history-length-independent rollout error bound and empirical validation on MerRec.

## Research questions this paper is counted under

- [How can we compress long user histories into efficient representations that retain multi-scale temporal and intent information for sequential recommendation?](../q/420.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149955)
