HackerPapers

arXiv:2606.26511cs.CL

Temporal Validity in Retrieval Memory: Eliminating Stale-Fact Errors for AI Agents over Evolving Knowledge

Neeraj Yadav

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

Retrieval-augmented generation (RAG) gives agents access to accumulated knowledge, but has no model of time. When a fact changes (e.g., a function is renamed or API restructured), RAG retrieves both the stale and current value with near-identical embedding similarity. The agent then either abstains or serves the superseded fact. We show this is a structural problem: on a calibrated dataset, cosine similarity distinguishes a contradicted fact from a duplicated one with AUROC 0.59 (near chance), as contradictions are often more embedding-similar to the original than rephrased duplicates. We present MemStrata, a retrieval memory maintaining temporal validity. It stores facts like RAG, preserving static recall, but when a fact's value is contradicted, a deterministic (subject, relation, object) supersession rule retires the stale value in a bi-temporal ledger - with no similarity threshold and no LLM call. Across six benchmarks run locally with a 7B model, MemStrata ties RAG on static knowledge and reaches 0.95-1.00 accuracy on evolving knowledge (where RAG reaches 0.20-0.47). The central result is the stale-fact-error rate: when required to answer, RAG serves superseded values 15-40% of the time; MemStrata drives this to ~0%, a failure class RAG cannot avoid. MemStrata achieves this at retrieval latency (~2.1s) versus ~16-18s for LLM-reranking baselines. We release the harness, datasets, and a marker-free evaluation protocol for memory under knowledge evolution.

arXiv comments
21 pages, 5 tables. Code, prompts, and evaluation datasets included
Journal reference
DOI
Subjects
cs.CLComputation and Language cs.AIArtificial Intelligence cs.ETEmerging Technologies cs.LGMachine Learning

On Hacker News

Linked by 1 identifiable commenter in 2 comments across 2 threads, from Jul 2026 to Jul 2026.

Comments linking this paper, per year.

Discussed in comments2 threads

    • One concrete mechanism behind this fragility that doesn't get enough attention: retrieval systems that serve stale facts with high confidence. RAG pipelines rank by cosine similarity, which has no notion of supersession, an embedding of "the current API endpoint is X" and "the…

      yadu989View on HNParent context

    • Knowledge graphs are genuinely interesting as a grounding mechanism because they make entity relationships explicit and queryable, something flat vector stores can't do. Overture's cross-theme approach (linking buildings, roads, POIs into a unified graph) gives the LLM a…

      yadu989View on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.