ContextFact: Remembering Facts in Context for Long-Term Conversational Agents
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
Agents built on large language models must maintain continuity across repeated interactions with users. However, long-term conversations scatter facts across turns and sessions, making it difficult to retrieve the right evidence with enough context. Memory for such conversations must therefore preserve facts with their context while keeping evidence selectively accessible. We first study how memory construction and retrieval-unit boundaries affect answerability and evidence access. Reading the entire memory bank reveals gaps that cannot be resolved by retrieval selection alone, showing that some context must be preserved during memory construction. Adjacent-turn grouping improves evidence access at matched unique-turn budgets, while wider windows do not consistently help. This motivates keeping fact-specific context local while organizing cross-session evidence separately. We propose ContextFact, which links context-preserving fact memories with source-grounded entity representations. Within sessions, it gathers the context needed to interpret each fact. Across sessions, it aligns recurring referents and revisits the source dialogue to reconstruct coherent entity representations linked to the supporting facts. At query time, ContextFact retrieves fact and entity views, reranks them independently, and uses entity-linked expansion to surface related facts; complete entity representations then provide organized cross-session evidence. With Qwen3.5-27B as the backbone, ContextFact achieves state-of-the-art performance while using only 21% of the evidence tokens consumed by the strongest evaluated baseline, obtaining 86.49% overall judge accuracy on LoCoMo and 91.00% on LongMemEval-S. Controlled ablations support context-preserving fact boundaries and source-grounded entity reconstruction, while entity readout improves multi-hop accuracy beyond adding more facts.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 13 of its 33 references that are in the map. Submitted 22 Nov 2026, announced 24 Nov 2026.
Builds on
13 of 33 references.
Closest ancestors · 9
Same direction, newest first
- 2026AtomMem: Building Simple and Effective Memory System for LLM Agents via Atomic Facts18 Jun
- 2026Rethinking How to Remember: Beyond Atomic Facts in Lifelong LLM Agent Memory19 May
- 2026MemReranker: Reasoning-Aware Reranking for Agent Memory Retrieval7 May
- 2026Diagnosing Retrieval vs. Utilization Bottlenecks in LLM Agent Memory2 Mar
- 2025MemR3: Memory Retrieval via Reflective Reasoning for LLM Agents23 Dec
- 2025General Agentic Memory Via Deep Research23 Nov
- 2025A Simple Yet Strong Baseline for Long-Term Conversational Memory of LLM Agents21 Nov
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
- 2025Zep: A Temporal Knowledge Graph Architecture for Agent Memory20 Jan
Other references · 4
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,566
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,507
- 2026WhenLoss: Diagnosing Write and Retrieval Bottlenecks in Long-Context Memory Systemscited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026REAL: A Reasoning-Enhanced Graph Framework for Long-Term Memory Management of LLMs
- 2026TEM: Temporal State Tracking Memory for Large Language Model Agents
- 2026From Retrieval to Reconstruction: Constructing Evolvable Cognitive Memory for Long-Term Dialogue
- 2026What Should an Agent Forget? Separating What Is Stored from What Is Used
- 2026Beyond Memory Construction: Rethinking Memory Access for LLM-based Conversational Agents
- 2026TRACE: State-Aware Query Processing over Temporal Evidence Graphs for Conversational Data
- 2026Propose, Verify, Commit: Evidence-Grounded Memory for Long-Horizon Multi-Actor Conversations
- 2026MemOps: Benchmarking Lifecycle Memory Operations in Long-Horizon Conversations