M+: Extending MemoryLLM with Scalable Long-Term Memory
Abstract
Equipping large language models (LLMs) with latent-space memory has attracted increasing attention as they can extend the context window of existing language models. However, retaining information from the distant past remains a challenge. For example, MemoryLLM (Wang et al., 2024a), as a representative work with latent-space memory, compresses past information into hidden states across all layers, forming a memory pool of 1B parameters. While effective for sequence lengths up to 16k tokens, it struggles to retain knowledge beyond 20k tokens. In this work, we address this limitation by introducing M+, a memory-augmented model based on MemoryLLM that significantly enhances long-term information retention. M+ integrates a long-term memory mechanism with a co-trained retriever, dynamically retrieving relevant information during text generation. We evaluate M+ on diverse benchmarks, including long-context understanding and knowledge retention tasks. Experimental results show that M+ significantly outperforms MemoryLLM and recent strong baselines, extending knowledge retention from under 20k to over 160k tokens with similar GPU memory overhead.
BibTeX
@inproceedings{wang2025m,
author = {Yu Wang and Dmitry Krotov and Yuanzhe Hu and Yifan Gao and Wangchunshu Zhou and Julian J. McAuley and Dan Gutfreund and Rogério Feris and Zexue He},
title = {{M+: Extending MemoryLLM with Scalable Long-Term Memory}},
booktitle = {International Conference on Machine Learning},
year = {2025},
url = {https://openreview.net/forum?id=OcqbkROe8J},
}Ask Althea to put this paper to the test.
| MemLong: Memory-Augmented Retrieval for Long Text Modeling | arXiv · 2024 |
| Augmenting Language Models with Long-Term Memory | NeurIPS · 2023 |
| MEMORYLLM: Towards Self-Updatable Large Language Models | arXiv · 2024 |
| MemOnce: A Scalable Memory Architecture for Large Language Models | arXiv · 2026 |
| Multi-Head Recurrent Memory Agents | NeurIPS · 2026 |
| LM2: Large Memory Models | arXiv · 2025 |