Contract Memory Compiler: Resolve, Then Traverse
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
External memory lets language-model agents answer questions about histories too long for the answer model's context window. Updates create a harder problem than retrieving a recent fact: changing one relation can redirect a multi-hop question to records about an entity absent from the question. We study this update-dependent evidence selection problem and introduce the Contract Memory Compiler (CMC). Before seeing a question, CMC uses a language model to identify relations in the history and record where each one was stated. It applies later updates to determine the current relations, follows them from entities named in the question, and passes the corresponding original records to the answer model in one call. Thus the current state determines which evidence is read, rather than merely refreshing values in a previously selected context. To the best of our knowledge, CMC achieves state-of-the-art multi-hop accuracy on FactConsolidation, reaching 78.25% overall and 61.0% at 262K. With the extracted relations and answer model held fixed, selecting evidence before resolving updates reduces multi-hop accuracy to 21.50%. We also introduce MQuAKE-MemStream, a derived dataset of ordered memory streams built from MQuAKE-Remastered counterfactual cases.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 53 of its 57 references that are in the map. First posted on arXiv 26 Sep 2026.
Builds on
53 of 57 references.
Closest ancestors · 23
Same direction, newest first
- 2026When Your Agent Opens the Chat App: Agent-Controlled Search over Raw Chat Logs Rivals Structured Memory13 Aug
- 2026SodaMem: Evidence-Grounded Temporal Graph Memory for LLM Agents8 Aug
- 2026Stop When Memory Suffices: Evidence-Conditioned Progressive Execution for LLM Agents2 Aug
- 2026MemTxn: A Transaction Boundary for Source-Supported Updates and Complete-State Recovery in Agent Memory30 Jul
- 2026Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents15 Jul
- 2026TRUSTMEM: Learning Trustworthy Memory Consolidation for LLM Agents with Long-Term Memory23 Jun
- 2026Infini Memory: Maintainable Topic Documents for Long-Term LLM Agent Memory9 Jun
- 2026Reliable Post-Retrieval Assembly for Agent Memory: Separating Evidence Extraction from Policy Execution31 May
- 2026LongMemEval-V2: Evaluating Long-Term Agent Memory Toward Experienced Colleagues12 May
- 2026MemFlow: Intent-Driven Memory Orchestration for Small Language Model Agents5 May
- 2026APEX-MEM: Agentic Semi-Structured Memory with Temporal Reasoning for Long-Term Conversational AI15 Apr
- 2026GAM: Hierarchical Graph-based Agentic Memory for LLM Agents14 Apr
11 more
- 2026MemoryArena: Benchmarking Agent Memory in Interdependent Multi-Session Agentic Tasks18 Feb
- 2026Learning Query-Aware Budget-Tier Routing for Runtime Agent Memory5 Feb
- 2026Mem2ActBench: A Benchmark for Evaluating Long-Term Memory Utilization in Task-Oriented Autonomous Agents13 Jan
- 2026MAGMA: A Multi-Graph based Agentic Memory Architecture for AI Agents6 Jan
- 2026SimpleMem: Efficient Lifelong Memory for LLM Agents5 Jan
- 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions7 Jul
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
- 2025A-MEM: Agentic Memory for LLM Agents17 Feb
- 2025Zep: A Temporal Knowledge Graph Architecture for Agent Memory20 Jan
- 2024Towards Lifelong Dialogue Agents via Timeline-based Memory Management16 Jun
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agents27 Feb
Other references · 30
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,073
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 923
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 707
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 532
- 2020Efficient Intent Detection with Dual Sentence Encoderscited by 433
- 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 386
18 more
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
- 2014Memory Networkscited by 363
- 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 300
- 2021Beyond Goldfish Memory: Long-Term Open-Domain Conversationcited by 267
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 246
- 2016Key-Value Memory Networks for Directly Reading Documentscited by 223
- 2018Towards Deep Conversational Recommendationscited by 176
- 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 166
- 2022Keep Me Updated! Memory Management in Long-term Conversationscited by 63
- 2024DetectiveQA: Evaluating Long-Context Reasoning on Detective Novelscited by 21
- 2025It's High Time: A Survey of Temporal Question Answeringcited by 14
- 2025Convomem Benchmark: Why Your First 150 Conversations Don't Need RAGcited by 10
- 2026Does Memory Need Graphs? A Unified Framework and Empirical Analysis for Long-Term Dialog Memorycited by 10
- 2026InfMem: Learning System-2 Memory Control for Long-Context Agentcited by 9
- 2026Mnemis: Dual-Route Retrieval on Hierarchical Graphs for Long-Term LLM Memorycited by 8
- 2026MemCompiler: Compile, Don't Inject -- State-Conditioned Memory for Embodied Agentscited by 4
- 2026StateFuse: Deterministic Conflict-Preserving Memory for Multi-Agent Systemscited by 3
- 2026Supra Cognitive Modes: A Routed Architecture for Agent Memorycited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Look Back to Reason Forward: Revisitable Memory for Long-Context LLM Agents
- 2026What Should an Agent Forget? Separating What Is Stored from What Is Used
- 2026Relevance Is Not Sufficiency: What Actually Closes the Evidence Gap in Long-Term Memory QA
- 2026MemChain: Learning Interpretable Memory Traces for Memory-Augmented LLM Agents
- 2026REAL: A Reasoning-Enhanced Graph Framework for Long-Term Memory Management of LLMs
- 2026Recall What Is Missing: Composing Evidence from Long-Term Agent Memory
- 2026Mem++: Non-Destructive Memory for Long-Term Organizational LLM Agents
- 2026Zero-Mem: Zero-Token Memory Operations for LLM Agents