Manuscript Offprint

arXiv:2610.35089

Learning to Remember: Advances in Memory Mechanisms for Large Language Models

Chenye Han, Hongche Yu, Mengyue Wu, Dell Zhang, Jixiang Luo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Memory has become a central mechanism for extending large language models (LLMs) beyond fixed context windows, stateless interaction, and static parametric knowledge. This survey organizes the literature around three complementary dimensions: the life cycle of memory, the storage substrate, and the system role that memory plays in LLM-based agents, while using cognitive-science-inspired memory concepts as a lightweight conceptual motivation rather than as a separate technical contribution or implementation family. On this basis, we distinguish three mechanism families: nonparametric memory, where information is stored outside model parameters in text, graph, multimodal, or database-like structures; parametric memory, where information is stored or accessed through activations, key-value caches, learned modules, adapter-based parameterizations, or model weights; and memory for agent evolution, where stored experiences support reinforcement learning, continual learning, procedural reuse, context engineering, and agent harness design. Evaluation is treated as a separate cross-cutting component rather than as a memory mechanism. Unlike surveys that focus primarily on retrieval-augmented generation or long-context modeling, this paper emphasizes the full memory life cycle: construction, maintenance, retrieval, consolidation, forgetting, governance, and evaluation. By aligning conceptual motivations, computational memory mechanisms, benchmarks, and deployment concerns, the survey provides a structured roadmap for designing memory-augmented LLM agents that are persistent, adaptive, auditable, and safe to update over time.

Keywords: Large language model; Memory mechanism; Agent memory; Retrieval-augmented generation; Long-term memory

1 Introduction

The rapid advancement of large language models (LLMs) has reshaped natural language processing and artificial intelligence. Scaling has improved reasoning, comprehension, and generation (Brown et al. 2020; Touvron et al. 2023), yet conventional LLMs remain constrained by fixed context windows, static parameters, and weak mechanisms for preserving state across interactions. These limitations make it difficult for models to maintain continuity, accumulate experience, adapt to changing user needs, or reason over long-horizon tasks (Bubeck et al. 2023). Memory mechanisms have therefore become a key research direction for transforming LLMs from stateless generators into adaptive agents.

Introducing memory into LLMs enables models to store, retrieve, and revise information across time. In dialogue and personalization, memory supports persistent user profiles, long-term preferences, and temporal consistency, as illustrated by MemoryBank (Zhong et al. 2024) and COMEDY (Chen et al. 2025c); in systems with explicit lifecycle operations, such as Mem0 (Chhikara et al. 2025), memory can also support correction or updating of outdated facts. In knowledge-intensive settings, memory helps agents reuse prior evidence, maintain structured knowledge, and reduce repeated retrieval. In long-horizon agent systems, memory further supports planning, reflection, skill reuse, and behavioral improvement across repeated tasks.

This survey organizes LLM memory research into a lightweight conceptual-motivation layer, three computational mechanism families, and one cross-cutting evaluation component. The conceptual layer uses cognitive-science-inspired distinctions such as episodic, semantic, working, procedural, consolidated, and context-dependent memory only to clarify the vocabulary for comparing AI memory designs; it is not treated as a standalone mechanism family or the central contribution of this survey. Among computational mechanisms, nonparametric memory stores information outside model parameters and includes text memory, graph memory, database-backed memory, and multimodal memory. Parametric memory stores or accesses knowledge through internal states, KV caches, trainable memory modules, adapter-based parameterizations, or direct parameter updates. Memory for agent evolution treats memory as a reusable experience substrate for reinforcement learning, continual learning, procedural reuse, context engineering, and agent harness design. Separately, evaluation studies how these memory mechanisms are measured in plain-text, multimodal, and simulation-based environments. This distinction avoids treating cognitive analogies or benchmarks as additional storage substrates while still making both conceptual grounding and evaluation central to the survey.

The central contribution of this survey is a conceptual-motivation-lifecycle-substrate-role-evaluation alignment framework for comparing LLM memory research. Instead of grouping systems only by implementation type, this framework aligns five questions: which conceptual memory distinctions motivate the design without themselves constituting a memory mechanism, what lifecycle operations a memory mechanism supports, which substrate realizes the memory, what role the memory plays in an LLM-based system, and how the claimed benefit is evaluated. On this basis, the contributions of this survey are threefold. (1) We provide a consolidated map of LLM memory systems that uses cognitive-science-inspired concepts only as a compact vocabulary for motivating three computational memory-mechanism families and the evaluation resources used to test them. (2) We analyze representative methods through a shared set of lifecycle questions: what is written, where it is stored, how it is retrieved, how it is updated or forgotten, how persistent it is, and how it is governed. (3) We synthesize benchmark trends and future challenges, highlighting where existing systems still struggle with reliable writing, temporal updates, privacy, deletion, hallucination control, and long-horizon utility. This alignment-oriented framing makes the relationships among conceptual motivation, memory substrates, system roles, evaluation protocols, and deployment risks explicit, thereby providing a common basis for comparing otherwise heterogeneous memory-augmented LLM systems.

References (100)

Couldn't load all references. Reload the page to try again.