LightMem: Lightweight and Efficient Memory-Augmented Generation

Ji-Zhan Fang, Xin-Le Deng, Haoming Xu, Ziyan Jiang, Yu-Qi Tang, Ziwen Xu, Shu-Min Deng, Yunzhi Yao, Meng-Ru Wang, Shuo-Fei Qiao, Hua-Jun Chen, Ning-Yu Zhang

arXiv:2510.18866 · 2026-11-15 공개 · arXiv · PDF

llm long-term-memory token-usage longmemeval api-calls lightmem memory-augmented-generation sensory-memory

Abstract

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.

한국어 요약

한 줄 요약

LightMem은 인간 기억 모델을 기반으로 설계된 경량화된 메모리 시스템으로, GPT와 Qwen 기반 모델에서 QA 정확도를 최대 10.9% 향상시키며 토큰 사용량을 117배, API 호출을 159배 줄였다.

핵심 기여도

핵심 아이디어

기존 메모리 시스템은 대화나 장기 상호작용 시 불필요한 정보를 처리하며, 고정된 컨텍스트 윈도우로 인해 의미적 연결을 제대로 포착하지 못한다. LightMem은 인간의 Atkinson-Shiffrin 기억 모델을 모방하여, **감각 메모리**, **단기 메모리**, **장기 메모리**의 3단계 구조를 도입한다. 감각 메모리는 **가벼운 압축**을 통해 불필요한 토큰을 필터링하고, 단기 메모리는 **주제 인식 기반 세그멘테이션**을 통해 의미 있는 정보 그룹을 생성한다. 장기 메모리는 **수면 시간 업데이트**를 통해 오프라인으로 정보를 정제하고 중복을 제거한다. 이는 실시간 추론과 메모리 업데이트를 분리하여, 효율성과 정확도를 동시에 달성하는 핵심 아이디어이다.

기술적 접근법

주요 결과

의의 및 한계

LightMem은 기존 메모리 시스템의 **높은 계산 비용**과 **불필요한 정보 처리** 문제를 해결하며, **장기 상호작용 환경**에서의 정확도와 효율성을 동시에 달성한 점에서 학술적·실용적 가치가 있다. 특히, **수면 시간 업데이트**를 통해 오프라인 정제를 도입한 점은 실시간 추론과 메모리 업데이트를 분리하여 성능 향상에 기여한다. 그러나, 압축률(r)과 STM 임계값(th)의 조합에 따라 성능이 변동하며, **모델 종류와 데이터셋에 따라 최적 설정이 달라지는 한계**가 있다. 또한, **다중 모달 정보 처리**는 아직 미비하며, 향후 확장이 필요하다.

실용적 활용

LightMem은 **대화형 AI**, **개인화 추천 시스템**, **복잡한 다턴 상호작용 환경** 등에서 유용하게 활용될 수 있다. 특히, **토큰 사용량과 API 호출을 대폭 줄일 수 있어 클라우드 기반 LLM 서비스**에서 비용 효율성을 높이는 데 기여할 수 있다. 또한, 오프라인 업데이트를 통해 **장기 지식 유지와 일관성 확보**가 필요한 시스템에 적합하다.