REAL: A Reasoning-Enhanced Graph Framework for Long-Term Memory Management of LLMs

27d ago · Global · primary source: export.arxiv.org

A new framework called REAL proposes managing long-term memory for large language models by structuring conversational history as a temporal, confidence-aware directed property graph, according to a paper submitted to arXiv on 9 Jun 2026 [1]. Large language models, or LLMs, operate within a finite context window, which prevents them from retaining all past interactions. This constraint makes external long-term memory systems necessary for storing, updating, and retrieving historical information [1]. The paper’s authors argue that existing memory approaches suffer from three core weaknesses: flat text-based organizations that miss explicit relationships between memories, structured systems that destructively overwrite evolving facts, and retrieval mechanisms that remain passive when evidence is incomplete [1]. REAL addresses these gaps by representing each atomic fact with entities, relations, valid-time intervals, confidence scores, and exploration intent labels [1]. During memory construction, the framework uses a non-destructive temporal update strategy that preserves parallel fact versions and their validity intervals, allowing it to track how facts change over time [1]. When retrieving information, REAL anchors query-relevant root entities, decouples their exploration intents, and performs a semantic evaluator-guided hybrid beam search to extract compact memory subgraphs [1]. The framework also incorporates counterfactual inference to repair unreliable retrieval states and recover missing memory evidence through implicit logical relations [1]. Comprehensive experiments reported in the paper show that REAL achieves an average improvement of 22.72% over flat-text, graph-based, and other existing memory baselines [1]. The paper was posted on arXiv, an open-access repository for electronic preprints that, as of November 2024, receives about 24,000 submissions per month [11]. arXiv hosts papers across fields including computer science, physics, and mathematics, and has served as a primary distribution channel for machine-learning research during the AI boom that accelerated after the introduction of the transformer architecture in 2017 [3][11]. The REAL framework builds on a broader lineage of work in machine learning, a subfield of artificial intelligence concerned with statistical algorithms that learn from data and generalize to unseen tasks [6]. Modern LLMs themselves rely on neural-network architectures, particularly transformers, which use attention mechanisms to model long-range dependencies in data [7].

tool-releaseresearch-paperinfrastructure

Background sources we checked (10)
  • arxiv.org ↗ Large Language Models (LLMs) are increasingly expected to interact with users over long time horizons. However, due to their finite context window, LLMs cannot retain all past interactions, making long-term memory management essential for storing, updating, and retrieving histori…
  • en.wikipedia.org ↗ Artificial intelligence (AI) is the capability of computational systems to perform tasks typically associated with human intelligence, such as learning, reasoning, problem-solving, perception, and decision-making. It is a field of research in engineering, mathematics and computer…
  • en.wikipedia.org ↗ This glossary of artificial intelligence is a list of definitions of terms and concepts relevant to the study of artificial intelligence (AI), its subdisciplines, and related fields. Related glossaries include Glossary of computer science, Glossary of robotics, Glossary of machin…
  • en.wikipedia.org ↗ An algorithm is a fundamental set of rules or defined procedures that are typically designed and used to be a simpler way to solve a specific problem or a broad set of problems. Simply speaking, algorithms define different processes, sets of rules and regulations, or methodologie…
  • en.wikipedia.org ↗ Machine learning (ML) is a field of study in artificial intelligence concerned with the development and study of statistical algorithms that can learn from data and generalize to unseen data, and thus perform tasks without being explicitly programmed. Advances in the field of de…
  • en.wikipedia.org ↗ In machine learning, a neural network (NN) or neural net, is a computational model inspired by the structure and functions of biological neural networks. A neural network consists of connected units or nodes called artificial neurons, which loosely model the neurons in the brain.…
  • info.arxiv.org ↗ arXiv Labs - arXiv info | arXiv e-print repository Skip to content # arXiv Labs Attention arXiv Users: arXiv Labs is pausing new proposals ## What are arXiv Labs? arXiv Labs are a way for the community to contribute new, useful features to arXiv. These integrations are avail…
  • info.arxiv.org ↗ arXivLabs: Showcase - arXiv info | arXiv e-print repository [...] # arXivLabs: Showcase [...] arXiv is surrounded by a community of researchers and developers working at the cutting edge of information science and technology. [...] While the arXiv team is focused on our core miss…
  • blog.arxiv.org ↗ arXivLabs: a space for community innovation – arXiv blog arXiv has launched a new, formalized framework enabling innovative collaborations with individuals and organizations. “Members of our community want to contribute tools that enhance the arXiv experience, and we val…
  • en.wikipedia.org ↗ arXiv (pronounced as "archive"—the X represents the Greek letter chi ⟨χ⟩) is an open-access repository of electronic preprints and postprints (known as e-prints) approved for posting after moderation, but not peer reviewed. It consists of scientific papers in the fields of mathem…

Sources

Spot something wrong? Report an issue