# δ-Mem: : Efficient Online Memory For Large Language Models

*Jingdi Lei, Di Zhang, Junxian Li, Weida Wang, Kaixuan Fan, Xiang Liu, Qihan Liu, Xiaoteng Ma, Baian Chen, Soujanya Poria*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155770) · [OpenReview](https://openreview.net/forum?id=33u8SF3mIc) · [alphaXiv](https://www.alphaxiv.org/abs/2605.12357) · [Open on the map](../papers.html#p155770)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Diffusion Language Model Sampling](../pgroup/72.md) · Type: new method · Keywords: online memory, compact associative memory, delta-rule learning, low-rank attention correction, long-term LLM assistants

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

## Summary
δ-Mem is a lightweight online memory mechanism that augments frozen large language models with a compact associative memory state to improve long-term context utilization.

## Explained to a 5-year-old
Big computer brains called language models sometimes forget what they saw a long time ago. To help them remember, we give them a tiny notebook that stores a few important things. This notebook updates itself as they talk, and it helps the brain think about the past without getting too big. It lets the brain stay good at normal tasks while remembering more. This makes the brain better at tasks that need memory.

## Explained to a 5-year-old, longer
Big computer brains called language models are used to answer questions and write text. Sometimes they need to remember things they learned a long time ago, like in a long conversation. Keeping a lot of memory in the brain costs a lot of computer power and money. Adding more memory space by making the brain bigger is hard and slow. Researchers wanted a way to help the brain remember without making it huge. They created a small, special memory slot that works like a tiny notebook. This notebook only holds a few numbers, like an 8 by 8 grid. As the brain talks and learns, the notebook updates itself with new information. The notebook then gives the brain a quick hint when it needs to think about the past. This hint is a small correction that helps the brain pay attention to old things. Because the notebook is tiny, it uses very little extra computer resources. This way the brain can remember more while still being good at normal tasks.

## For a technical reader
The paper introduces δ-Mem, a lightweight online memory module that works with a frozen full-attention LLM to store a compact associative state. This state is updated by a delta-rule learning process and provides low-rank corrections to the attention computation during generation. With only an 8×8 memory matrix, δ-Mem yields 1.10× gains over the frozen backbone and 1.15× over the best existing memory baseline, achieving up to 1.31× on MemoryAgentBench and 1.20× on LoCoMo. The design avoids full fine-tuning, model replacement, or explicit context extension, making it practical for long-term assistants.

## Problem
Large language models need to retain and reuse historical information over long interactions, but expanding context windows is costly and often fails to ensure effective utilization of that information.

## Method
The approach augments a frozen full-attention backbone with a compact online associative memory state. Past information is compressed into a fixed-size state matrix updated via delta-rule learning, and its readout generates low-rank corrections to the backbone's attention computation during generation.

## Results
The approach improves average scores by 1.10× over the frozen backbone and 1.15× over the strongest non-δ-Mem baseline, with larger gains on memory-heavy benchmarks (1.31× on MemoryAgentBench and 1.20× on LoCoMo) while preserving general capabilities.

## Contributions
It introduces a compact online associative memory state that can be directly coupled with attention computation, enabling efficient long-term memory without full fine-tuning or backbone replacement. The work demonstrates substantial gains on memory-intensive benchmarks while maintaining general language modeling performance.

## Research questions this paper is counted under

- [How can LLM agents effectively store, retrieve, and reuse past experiences while preserving fidelity, provenance, and adaptability over long interaction histories?](../q/14.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/155770)
