arXiv:2611.07631cs.IRNov 2026

Manuscript Offprint

arXiv:2611.07631

MEMOIR: A Training-Free Memory Lifecycle for Long-Horizon LLM Agents

Mayank Anand, Subham Raj, Aman Vaibhav Jha, Sriparna Saha

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

Abstract

Long-horizon LLM agents require memory systems that preserve useful information across sessions and retrieve it when needed. Existing systems treat these as separate problems: memories are written prospectively with static importance scores that are never revised after use. This creates two coupled failure modes: consolidation can silently destroy evidence that future queries require, while retrieval continues to favor stale memories. We propose MEMOIR (Memory Evidence via Merge-certified, Online Importance Revision), a training-free memory lifecycle that unifies judge-gated consolidation with retrospective attribution. Before compressing memory, screening gates test whether answer-relevant evidence is preserved. After each query, attribution estimates which retrieved memories supported the answer and updates their retrieval priority. A UCB-style exploration bonus additionally encourages retrieval of under-exposed memories, reducing the risk that frequently retrieved memories crowd out useful but less-seen evidence. On 1,905 deduplicated LoCoMo QA pairs, the full retrieval stack improves evidence recall@5 by 11.92 percentage points over bare cosine, with confidence-gated feedback adding 1.50 points overall without reference answers or reranker training; a deployment-unavailable oracle adds 1.84 points overall and 8.05 points on multi-hop. Judge-gated merge changes the recall of text-based evidence from 58.82% to 59.08%, reduces the active store by 1.42%, and incurs 0 observed losses in 100 independently audited merges, with a one-sided 95% upper loss-rate bound of 2.95%. Together, these results outline a practical deployment path: no additional LLM call on the online write path, with merge screening confined to periodic offline consolidation. The lifecycle reduces to one principle: attribute usefulness after use, and screen for preservation before compression. Code is available at https://github.com/AnandMayank/MEMOIR.

1 Introduction

LLM agents can use tools and reason over immediate context, but long-horizon agents require external memory to reuse historical experience across sessions that exceed any practical context window (Park et al. 2023; Wu et al. 2024). As agents are deployed for multi-session tasks such as personal assistance, customer support, and research copiloting,

accumulated interaction history grows beyond what a single inference call can attend to. External memory is therefore not merely an efficiency optimization; it is a lifecycle requirement: agents must decide what to keep, what to consolidate, what to retrieve, and how to revise those decisions after observing outcomes.

Most existing systems handle only part of this lifecycle. Write-time memory systems construct summaries, facts, links, or graph structures when an interaction is stored. Retrieval systems then rank those memories using recency, relevance, and static importance. Generative Agents, for example, scores memory priority as a fixed combination of recency, importance, and relevance (Park et al. 2023). Later systems such as Mem0 and A-MEM add stronger extraction, linking, or graph structure (Chhikara et al. 2025; Xu et al. 2026), but the importance signal is still largely assigned at write time. A memory that was judged important when stored can remain highly ranked even if later sessions show that it is no longer useful.

This paper reframes the problem around two coupled failure modes. The first is prospective corruption: memory consolidation can merge, summarize, or prune items that look redundant locally but contain evidence required by future queries. The second is retrospective staleness: retrieval can continue to favor memories that merely resemble the query rather than memories that have actually helped answer prior queries. These are not merely engineering artifacts: prospective corruption reflects the loss of answer-relevant traces during consolidation, while retrospective staleness reflects the absence of retrieval-induced strengthening (Roediger and Karpicke 2006). We treat established properties of bounded-capacity memory under delayed, sparse feedback (Tulving 1972; Craik and Lockhart 1972; Ebbinghaus 1885; Stern 2002) as convergent design constraints for a memory lifecycle, not as claims of biological or structural isomorphism. Treating the two failures separately is insufficient. Consolidation changes the objects to which retrieval credit is attached, while retrieval feedback reveals which objects consolidation should protect.

We therefore propose a combined lifecycle: screen prospectively, attribute retrospectively. Prospectively, certificate-gated consolidation applies merge operations only when a judge ensemble finds that answer-relevant support is preserved. Retrospectively, we introduce TRACE (Training-

*Corresponding author. Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.

free Retrieval Attribution and Credit Estimation), with two instantiations: TRACE-FB (feedback attribution) estimates memory support via lexical overlap, and TRACE-CF (counterfactual attribution) measures support by leave-one-out answer change. TRACE-UCB (Upper Confidence Bound exploration) couples these importance updates with count-based exploration to reduce feedback-driven retrieval lock-in. The bridge is that attribution provides online estimates of support sets for consolidation, while accepted merges preserve and transfer the credit ledger. In short, the system consolidates what the screening procedure accepts as redundant and up-weights what is estimated to be useful.

This framing follows the two-phase shape of RMM, which combines prospective memory construction with retrospective reflection (Tan et al. 2025), but changes both halves. RMM's prospective step is heuristic summarization and its retrospective step uses an LLM citation labeler plus a REINFORCE-trained reranker. Our direction replaces heuristic summarization with certificate-gated consolidation and replaces trained reranking with closed-form, training-free attribution updates. The goal is not simply better retrieval, but a memory lifecycle in which compression and credit assignment are mutually consistent.

Our contributions can be summarized as the following:

  1. A combined prospective-retrospective memory lifecycle unifies certificate-gated consolidation with outcome-conditioned attribution in a training-free framework for long-horizon agents. Its full RECALL-Q retrieval stack improves evidence recall by 11.92 percentage points over cosine retrieval on LoCoMo.

  2. TRACE-UCB couples these with count-based exploration to mitigate exposure lock-in. Confidence-gated autonomous feedback improves evidence recall@5 by 1.50 percentage points over the matched no-TRACE retriever, while reference-answer feedback reaches a 1.84-point gain and an 8.05-point multi-hop gain.

  3. Certified merge provides a conservative prospective safety gate combining judge screening, retrieval coverage, provenance preservation, and hard compression. Under a fixed retrieved-token budget, it changes text-grounded evidence recall from 58.82% to 59.08%, reduces the active store by 1.42%, and incurs 0 observed audited losses among 100 accepted merges.

  4. A training-free architecture separates low-latency online memory operations from asynchronous certified consolidation. The online write path requires no LLM call and takes 6.8ms median latency, while lexical and counterfactual attribution expose a configurable quality-latency trade-off.