Seedlabs
Source research

LightMem: Lightweight and Efficient Memory-Augmented Generation

Fang, Jizhan, Xinle Deng, Haoming Xu, Ziyan Jiang, Yuqi Tang, Zheng Guang Xu et al. · 2026 · 281 citationsRead the paper

All 12 authors

Shumin Deng, Yunzhi Yao, Mengru Wang, Shuofei Qiao, Huajun Chen, Ningyu Zhang

Despite their remarkable capabilities, Large Language Models (LLMs) struggle to effectively leverage historical interaction information in dynamic and complex environments. Memory systems enable LLMs to move beyond stateless interactions by introducing persistent information storage, retrieval, and utilization mechanisms. However, existing memory systems often introduce substantial time and computational overhead. To this end, we introduce a new memory system called LightMem, which strikes a balance between the performance and efficiency of memory systems. Inspired by the Atkinson-Shiffrin model of human memory, LightMem organizes memory into three complementary stages. First, cognition-inspired sensory memory rapidly filters irrelevant information through lightweight compression and groups information according to their topics. Next, topic-aware short-term memory consolidates these topic-based groups, organizing and summarizing content for more structured access. Finally, long-term memory with sleep-time update employs an offline procedure that decouples consolidation from online inference. On LongMemEval and LoCoMo, using GPT and Qwen backbones, LightMem consistently surpasses strong baselines, improving QA accuracy by up to 7.7% / 29.3%, reducing total token usage by up to 38x / 20.9x and API calls by up to 30x / 55.5x, while purely online test-time costs are even lower, achieving up to 106x / 117x token reduction and 159x / 310x fewer API calls. The code is available at https://github.com/zjunlp/LightMem.

What the full text shows

Working prototype
  • Improved QA accuracy over strong baselines. — up to 7.7% on LongMemEval and 29.3% on LoCoMo (Using GPT and Qwen backbones)
  • Reduced total token usage for memory bank construction. — up to 38x on LongMemEval and 20.9x on LoCoMo (Combined online and offline costs)
  • Reduced total API calls for memory bank construction. — up to 30x on LongMemEval and 55.5x on LoCoMo (Combined online and offline costs)
  • Significant reduction in purely online test-time costs. — up to 117x token reduction and 310x fewer API calls (Compared to baselines on LoCoMo)
  • Hybrid topic segmentation accuracy. — exceeding 80% (Compared to attention-only or similarity-only methods)
  • Impact of removing topic segmentation on accuracy. — 6.3% drop for GPT and 5.4% drop for Qwen (Ablation study on LongMemEval)
Setup
Evaluated on LongMemEval-S (approx. 115k tokens per problem) and LoCoMo (approx. 300 turns/9k tokens per conversation) using GPT-4o-mini, Qwen3-30B-A3B-Instruct-2507, and GLM-4.6 backbones.
How
LightMem implements a three-stage memory architecture: a sensory memory module using LLMLingua-2 for pre-compression and topic segmentation, a topic-aware short-term memory (STM) for structured summarization, and a long-term memory (LTM) using an offline 'sleep-time' update process to decouple consolidation from inference.
Limitations
Five samples in LongMemEval were discarded due to corrupted characters causing compression model failure. · Optimal compression ratio (r) and STM threshold (th) require careful tuning as their relationship is non-monotonic regarding accuracy.

Summarized by Gemma 4 from the open-access full text · 27 Nov 2026. Read it