Preprint
Large Language Models

Enhancing Long-Term Memory in LLMs

Mohammad Tavakoli, Alireza Salemi, Carrie Ye, Mohamed Abdalla, Hamed Zamani, J. Mitchell
October 31, 2025arXiv.org41 citations

41

Citations

5

Influential Citations

arXiv.org

Venue

2025

Year

Abstract

Evaluating the abilities of large language models (LLMs) for tasks that require long-term memory and thus long-context reasoning, for example in conversational settings, is hampered by the existing benchmarks, which often lack narrative coherence, cover narrow domains, and only test simple recall-oriented tasks. This paper introduces a comprehensive solution to these challenges. First, we present a novel framework for automatically generating long (up to 10M tokens), coherent, and topically diverse conversations, accompanied by probing questions targeting a wide range of memory abilities. From this, we construct BEAM, a new benchmark comprising 100 conversations and 2,000 validated questions. Second, to enhance model performance, we propose LIGHT-a framework inspired by human cognition that equips LLMs with three complementary memory systems: a long-term episodic memory, a short-term working memory, and a scratchpad for accumulating salient facts. Our experiments on BEAM reveal that even LLMs with 1M token context windows (with and without retrieval-augmentation) struggle as dialogues lengthen. In contrast, LIGHT consistently improves performance across various models, achieving an average improvement of 3.5%-12.69% over the strongest baselines, depending on the backbone LLM. An ablation study further confirms the contribution of each memory component.

Analysis

Why This Paper Matters

Long-term memory in LLMs is crucial for applications like conversational agents, but existing benchmarks often fall short in narrative coherence, domain coverage, and task complexity. This paper addresses these gaps by introducing BEAM, a benchmark that pushes the envelope to 10M tokens, far beyond typical context windows. The finding that even state-of-the-art models with 1M token contexts struggle as dialogues lengthen highlights a critical limitation in current LLMs, making this benchmark a valuable tool for future research.

The proposed LIGHT framework offers a practical solution inspired by human memory systems. By separating long-term episodic memory, short-term working memory, and a scratchpad, LIGHT provides a structured way to manage information over extended interactions. This is a significant step toward more human-like memory in AI, with potential applications beyond conversations, such as document analysis and lifelong learning.

Technical Contributions

  • BEAM Benchmark: A novel framework for generating long, coherent, topically diverse conversations with probing questions. The benchmark includes 100 conversations and 2,000 validated questions, covering a wide range of memory abilities (e.g., recall, reasoning, temporal ordering).
  • LIGHT Framework: Three complementary memory systems:
    • Long-term episodic memory: Stores past events and experiences.
    • Short-term working memory: Holds recent context for immediate processing.
    • Scratchpad: Accumulates salient facts across the conversation.
  • Evaluation Methodology: Comprehensive experiments on BEAM with multiple backbone LLMs (e.g., with and without retrieval augmentation) to assess performance degradation over long contexts.
  • Ablation Studies: Isolating the contribution of each memory component to validate the design.

Results

  • LLMs with 1M token context windows (with and without retrieval-augmentation) show significant performance drops as dialogue length increases, indicating that simply scaling context is insufficient.
  • LIGHT consistently improves performance across all tested models, with average improvements ranging from 3.5% to 12.69% over the strongest baselines, depending on the backbone LLM.
  • Ablation studies confirm that each memory component (episodic, working, scratchpad) contributes positively, with the full system achieving the best results.

Significance

This work sets a new standard for evaluating long-term memory in LLMs, providing a benchmark that is more realistic and challenging. The LIGHT framework offers a scalable approach to enhance memory without requiring architectural changes, making it applicable to existing models. This could accelerate progress in conversational AI, virtual assistants, and any domain requiring sustained context. The insights on context window limitations also guide future research on efficient memory mechanisms and retrieval strategies.