NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LeanMem: Simple and Efficient Long-Term Memory for LLM Agents

Yuxin Liao, Le Wu, Min Hou, Hao Liu, Han Wu, Zishu WangarXiv 2026

TL;DR

LeanMem is a lightweight long-term memory framework for LLM agents that abandons uniform text compression in favor of a heterogeneous storage strategy. By routing dialogue into profile, event, or record memories based on its inherent nature, it achieves up to a 15.1-point accuracy boost while drastically reducing token consumption and latency.

What Problem Does This Paper Address?

Long-term memory is crucial for LLM agents to maintain context over extended, multi-session interactions. However, current memory systems treat all dialogue content uniformly—either aggressively summarizing everything (which loses fine-grained details) or storing massive raw chunks (which explodes token costs and latency).

This creates a fundamental tension between efficiency and fidelity. LeanMem addresses this by recognizing that different types of conversational information have distinct compressibility, temporal dynamics, and fidelity needs. For instance, a user's job title is stable and highly compressible, whereas a complex project schedule contains dense details that must be preserved exactly as written.

Figure 1: Dialogue information differs in compressibility and storage requirements.

Methods

LeanMem introduces a three-stage pipeline to manage memory efficiently:

  1. Controlled Memory Writing: First, it filters out low-value turns (like greetings or acknowledgments) and segments the dialogue by topic using semantic similarity ("coherence valleys"). An LLM scheduler then routes these segments into one of three specialized storage types:
  2. Profile Memory: For stable user attributes or preferences, stored compactly as structured key-value pairs.
  3. Event Memory: For state-changing information, stored with temporal anchors and state descriptions.
  4. Record Memory: For detail-heavy content (e.g., lists, code, or plans), stored as a lightweight index with a pointer back to the raw text to preserve perfect fidelity.
  5. Selective Memory Evolution: Instead of updating the entire memory bank globally after every turn, LeanMem buffers new event memories and performs deferred, localized updates only on event states, saving massive amounts of compute.
  6. Adaptive Evidence Composition: At inference time, an LLM planner dynamically determines which memory types are needed for a specific query and allocates a tailored retrieval budget ($k$), avoiding expensive multi-hop retrieval for simple lookups.
The architecture of the LeanMem framework.

Datasets

The authors evaluated LeanMem on two long-term conversational question-answering benchmarks:

  • LoCoMo: Comprises long conversations averaging 16K tokens across up to 32 sessions, featuring diverse reasoning types across 1,540 questions.
  • LongMemEval-S: Features much longer interaction histories averaging 115K tokens across 40–50 sessions, emphasizing long-range state tracking and cross-session evidence integration.

Key Insights and Ideas

  • Information is Heterogeneous: Treating a user's favorite color the same way as a complex shift rotation schedule is highly inefficient. Categorizing memory by its structural and temporal nature elegantly solves the efficiency-fidelity trade-off.
  • Eager Global Updates are Overkill: Most memory systems update everything immediately. LeanMem's insight to defer and localize updates specifically to evolving events dramatically cuts down construction tokens without losing immediate retrievability.
  • Traceability over Summarization: For dense details, summarizing is an anti-pattern. Storing a lightweight "gist" plus a pointer to the raw source text ensures the agent can always trace back to exact details when needed.

Key Results

  • Accuracy Improvements: LeanMem outperformed the strongest memory baselines across all settings, boosting accuracy by up to 15.1 points on LongMemEval-S and 5.54 points on LoCoMo when using GPT-4.1-mini.
  • Efficiency Gains: Compared to the robust A-Mem baseline, LeanMem reduced memory construction tokens by up to 17.24× and inference tokens by up to 8.41×, while achieving the lowest or near-lowest latency.
  • Robustness: The performance gains held true across different backbone models, including both proprietary (GPT-4.1-mini) and open-source (Qwen3-8B) LLMs, proving that the benefits stem from the architectural design rather than raw model capability.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@misc{liao2026leanmem,
  author = {Yuxin Liao and Le Wu and Min Hou and Hao Liu and Han Wu and Zishu Wang},
  title = {{LeanMem: Simple and Efficient Long-Term Memory for LLM Agents}},
  year = {2026},
  eprint = {2608.03463},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.03463},
}
Figure