논문 해설
StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix
StaleBench: 에이전트 메모리의 오래된 검색 분리와 해결 비용 산정
- 연구 문제 에이전트 메모리는 같은 사실의 오래된 버전을 현재 버전과 함께 저장하므로, 유사도 검색이 낡은 값을 먼저 답하는 문제가 있습니다.
- 연구 방법 실제 TempLAMA 사실을 연대순 스트림으로 바꾸고, 원천 데이터의 현재 값 라벨로 검색 정책과 reader 정확도를 함께 채점합니다.
- 주요 결과 읽기 경로 키와 대칭 키는 rank 1이 같지만 contamination@5에 따라 reader 정확도가 0.983과 0.327로 갈렸습니다.
에이전트 메모리에서 오래된 사실이 검색되는 문제
에이전트가 사실을 시간순으로 저장하면 같은 사실의 여러 버전이 쌓입니다. 예를 들어 어떤 선수의 소속팀이 바뀌면 옛 팀과 새 팀의 진술이 모두 저장됩니다. 그런데 '지금 어느 팀에서 뛰는가'라는 값에 중립적인 질문을 받으면, 유사도 검색기는 두 진술이 모두 질의에 언급된 개체와 같은 이름을 담고 있어 어느 쪽이 현재인지 구별하지 못합니다. 이 논문은 이 실패를 stale retrieval이라 부르고, 검색 점수가 아닌 원천 데이터의 유효 연도를 현재 값의 라벨로 써서 이 실패만 분리해 측정하는 벤치마크 StaleBench를 제안합니다. 실제 TempLAMA 업데이트 사실 892개를 쓰며, 이 중 테스트 분할은 468개 사실입니다.
벤치마크 구성과 현재 값 라벨
벤치마크 인스턴스는 메타데이터 타임스탬프를 가진 진술의 연대순 스트림과, 사실마다 하나씩 주어지는 값에 중립적인 질의로 구성됩니다. 정책은 스트림을 소비해 저장·유지·덮어쓰기를 결정하고, 각 질의에 저장된 항목의 순위를 답합니다. 정답은 질의 시점에 현재인 저장 버전의 집합으로 원천 데이터가 정의합니다. TempLAMA의 연도별 유효 기간을 사용해 단일 값 사실만 골랐으며, 값이 바뀌는 사실 892개가 여기에 해당합니다. 값이 A에서 B로, 다시 A로 돌아가는 경우에도 정답은 연도 색인이 아니라 값으로 판정합니다. 이렇게 하면 검색 점수가 라벨에 섞이지 않습니다.
contamination@k와 현재 값 지표
top-1 결과는 올바른 사실의 현재 값이면 current@1, 올바른 사실이지만 낡은 값이면 stale, 다른 사실이면 miss로 나뉩니다. top-k 전체에 대해서는 current@k와 contamination@k를 씁니다. contamination@k는 top-k 안에 같은 사실의 현재 버전과 오래된 버전이 함께 들어 있는지를 봅니다. 이 지표는 단조롭지 않아서, 정답을 지워 버리면 오염이 줄어드는 식으로도 좋아질 수 있습니다. 그래서 논문은 contamination@k를 항상 current@k와 나란히 보고합니다. 한편 hedged는 문맥이나 답변이 현재 값과 이전 값을 함께 언급하는 경우를 가리킵니다.
정책 분해: 키어와 메커니즘
보존 정책은 키어와 메커니즘의 곱으로 설명됩니다. 키어는 들어오는 진술이 이미 저장된 사실을 설명하는지 판정합니다. 임계값 키어는 가장 가까운 저장 이웃의 코사인 유사도가 τ 이상이면 같은 사실로 봅니다. gazetteer는 공개 목록에 있는 주어 이름이 그대로 나타나는지 봅니다. 오라클은 참 사실 키를 직접 씁니다. 메커니즘은 overwrite로 슬롯을 파괴적으로 덮어쓰거나, temporal-KG처럼 오래된 진술을 무효로 표시하고 보존하는 방식입니다. 시간 재정렬 정책은 유사도 top-k에서 가장 최근 후보를 답으로 고르며, 후보 집합은 바뀌지 않습니다.

Table 13 : Retention mechanism at fixed keyer (p=0.5): invalidation matches overwrite’s accuracy and contamination while keeping every superseded statement recoverable.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.실제 데이터에서의 실패와 값싼 해법
실제 TempLAMA 테스트 분할에서 코사인 저장 전체 검색은 질의의 0.530에서 오래된 버전을 답했습니다. 시간으로 상위 2개를 재정렬하면 current@1이 0.925까지 올랐고, 최근성 가중치는 0.784였습니다. 그러나 재정렬은 후보 집합을 바꾸지 않아서 저장 전체 정책의 contamination@5는 0.936에서 0.991 사이에 머물렀습니다. 게이트타운 키어는 current@1 0.972, contamination@5 0.000을 기록했고, 참 키 오라클의 0.979와 차이가 통계적으로 구별되지 않았습니다. 다만 이 동등성은 템플릿화된 텍스트에서 주어 이름이 반복되기 때문에 생긴 결과입니다.
앵커가 포함된 설정은 current@1에서 포화되어 있어, 같은 분할에서 정책 순위를 매기는 데에는 한계가 있습니다.

Table 2 : TempLAMA test split (468 facts), paraphrase p=0.5. Mean over queries; brackets = bootstrap 95% CIs; tuned hyperparameters from val (k=2 for time-rerank, τ=0.60 for the threshold keyer). Reconsolidation (τ) is the threshold keyer and Lexical key the gazetteer keyer, both with overwrite. All four pre-specified paired comparisons (sign-flip permutation, Holm-corrected; the family is hard-coded before test evaluation and its store-all comparator is selected on val) are significant at p <10−3. Two go against our own policies: time-rerank > cosine, and the best store-all fix > the threshold keyer on current@1; two go with them: the threshold keyer < the best store-all fix on contamination@5, and oracle>threshold keyer.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.앵커를 뺐을 때의 키잉 비용
앵커 축은 후속 진술에서 주어 이름이 짧은 별칭으로 바뀌는 비율 a로 조절됩니다. a=0에서는 키어들이 서로 구별되지 않았지만, a=1에서 gazetteer는 0.972에서 0.169로 떨어져 오라클보다 65.8점 낮았습니다. 임계값 키어는 0.859에서 0.513으로 31.4점 낮아졌습니다. 반면 목록만 쓰는 fuzzy linker는 0.714로 손실이 11.3점이었고, 별칭 표를 받은 entity linker는 0.776으로 오라클과 5.1점 차이였습니다. 질의도 같은 해석기로 푸는 읽기 경로 키잉과 쓰기·읽기 대칭 키잉은 a=1에서 0.831을 기록했습니다. 대칭 키잉은 contamination@5를 0.034로 낮추어 같은 current@1에서도 읽기 경로만 쓴 쪽보다 오염이 훨씬 적었습니다.

Table 3 : current@1 as the lexical anchor is withdrawn (a=alias_p : the probability a non-introducing statement uses a short form). Test split, p=0.5, every policy re-tuned on val at every level. The last column is thekeying deficit at a=1: points of current@1 below the true-key oracle, which isolates the same-fact decision from the retrieval difficulty that aliasing also creates (and which the oracle pays too). The oracle is awrite-pathoracle — perfect same-fact detection, ordinary similarity retrieval — so it is an upper bound only within that family, and the rungs that also resolve the query post a negative deficit against it (§5.2).
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.
Figure 2 : The keying ladder as the lexical anchor is withdrawn. The inventory-based keying rungs are indistin- guishable at a=0, and at a=1 the gazetteer falls 65.8 points below the oracle; the entity linker (handed the alias inventory) tracks the oracle, while the two mechanisms deployed memory systems use do not. The oracle keys perfectly but stillretrievesby similarity, so the two rungs that resolve the query as well are not bounded by it — and the upper one, which resolves symmetrically with a complete alias table, is close to flat across the whole axis (0.994 to 0.912). Withdrawing the anchor costs almost nothing to a system that resolves entities on both paths.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.
Table 7 : Where each policy’s errors go in the anchor-free regime (a=1, test, p=0.5). contamination@5 is shown with current@5 because it is not monotone (§3): the entity linker’s near-zero contamination is partly the absence of any version of the fact, not only the absence of conflict.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.검색 지표가 놓치는 reader 정확도
검색 지표가 같은 순위를 보여도 reader의 답은 다를 수 있습니다. 같은 top-5를 reader에게 문맥으로 주는 실험에서, 읽기 경로 키와 대칭 키는 rank 1 진술이 468개 질의 모두에서 같았습니다. 하지만 contamination@5는 0.998과 0.000으로 달랐고, qwen2.5:14b의 정확도는 0.983과 0.327이었습니다. 두 값의 차이는 65.6점입니다. 이는 rank 2부터 5까지 오염된 진술이 답을 흐린다는 뜻으로 읽을 수 있으며, 저자들은 이 쌍을 통제된 비교로 사용합니다. 즉 검색 이득이 reader 이득으로 옮겨지지 않았습니다. 연도를 문맥에 보여 주면 이 차이는 크게 줄었습니다.

Table 19 : Each policy’s own top-5 handed to qwen2.5:14b (anchored, n=150; rows carry the harness’s policy ids — reconsolidation is the threshold keyer, lexical-key the gazetteer, fuzzy-key the fuzzy linker, fuzzy-rw-key symmetric keying; the system’s row is its own rewritten memories in its own words, from the 0.1.118 run — 2.0.11 is in the text).as retrievedis what a deployment gets; the next two pairs apply this paper’s read-path fix post hoc to those same contexts, resolving the query through the keyer of §5.2 and then keeping one memory per resolved entity, at no ingestion and no model call. The two middlecur@1columns are identical wherever the readers beside them differ by up to 1.000 against 0.293: the retrieval metric cannot see the difference the reader is made of. The last column keeps theoldestmemory per entity instead of the freshest. Because facts arrive as they become true, freshest-is-current is free here (150/150 facts); withdrawing it leaves only what each write path had already removed, so the column reads near zero for anything that stores every version and near one for anything that merges on write. It is a write-path purity measure that uses no identifiers and no timestamps in its favour, and it is where the deployed system is priced.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.
Table 24 : Constructed contexts: reader accuracy when contamination is manipulated rather than observed (test, n facts per condition), with and without the stored year surfaced in the context.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 30쪽에서 그림 영역을 추출했습니다.
Figure 3 : Left: retrieval current@1 against reader accuracy for the primary reader; the dashed line is what a retrieval metric would predict. The arrow is the controlled pair — two keyers that return the same statement at rank 1 on every query of this configuration, so they share an x exactly and the vertical distance is what contamination of ranks 2–5 costs. Right: constructed contexts, where contamination is manipulated rather than observed.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 30쪽에서 그림 영역을 추출했습니다.배포 메모리 시스템의 채점 방식 차이
Mem0 0.1.118은 id 기준으로 current@1이 0.913이었지만, 텍스트 기준으로는 0.573이었습니다. 이 차이는 UPDATE가 메모리의 텍스트를 다시 쓰지 않고 레이블만 바꾸는 데서 생겼습니다. 반면 2.0.11은 id 기준 current@1이 0.180이었고 62%의 메모리가 다른 개체의 id를 갖고 있었습니다. 따라서 id 기준 수치는 이 릴리스에서 신뢰하기 어렵습니다. Graphiti는 쓰기 경로에서 179개 중 157개의 대체를 무효화했지만, 기본 검색이 무효 간선을 걸러내지 않아 current@1이 0.347에 머물렀습니다. 유효 간선을 먼저 정렬하면 0.833으로 올라갔습니다.
이 결과는 150개 사실의 부분표본과 특정 백엔드·모델 설정에서 얻은 것입니다.

Table 5 : Three deployed systems and ERASE, reimplemented, under the rungs’ harness, streams and encoder (test subsample, n=150 facts, p=0.5).cur@1attributes the top memory to its source statement,by textscores what it says,cont.@5is contamination@5 by text, andreaderis qwen2.5:14b answering from the system’s own top-5. The Mem0 and Graphiti rows have qwen2.5:14b in the loop. The lower block is the ladder on the same streams. Per-system tables, gates and the second adjudicator are in Appendix K.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.
Table 17 : Mem0 scored under the same harness as the idealized rungs, on the same streams, with the same encoder (test subsample, n=150 facts, p=0.5; anchored unless the column says otherwise; contamination@5 by id). The rightmost column is the system’s own decision histogram over its 329 ingestion calls. The library version is part of the result, not provenance: see the text.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.
Table 20 : The second deployed system. Graphiti (graphiti-core 0.29.2, FalkorDB, qwen2.5:14b adjudicator, MiniLM encoder) on the identical 150-fact streams, scored by id, by text and at the reader (qwen2.5:14b, own top-5), by three read paths over the same stored graph: the library’s default search (as returned), the same hits with non-invalidated edges ranked first (the temporal-KG rung’s read path), and invalidated edges dropped. Ladder rows are the same stream; contamination@5 is by id here and by text in Table 5. An empty reader cell means that arm was not run.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.
Table 22 : The third deployed system. LangMem 0.0.30 (LangChain’s long-term memory: one structured-output call per statement returns the memories to insert or patch; inserts and updates on, deletes off, as installed) on the identical 150-fact streams with the benchmark’s MiniLM encoder as its store index, scored by id, by text and at the reader (qwen2.5:14b, own top-5). Ladder rows are the same stream. contamination@5 is by text, since the library rewrites what it stores and adds memories no statement wrote.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.적용 범위와 남은 문제
이 벤치마크는 템플릿화된 진술과 기계적으로 만든 짧은 별칭에 기반합니다. 대명사나 별명처럼 담화에서 해석해야 하는 지시 대상은 측정하지 않았고, 실제 별칭을 쓴 부록 실험도 테스트 주제 58%에 대해서만 확인했습니다. 시스템 실험은 150개 사실의 부분표본과 한 reader에서 이루어졌습니다. 두 번째 reader 실험은 qwen2.5:14b와 glm-4.6 두 모델을 썼지만 프롬프트 형식은 하나였습니다. 저자들은 시간 신호가 손상되거나 모호한 업데이트가 있는 상황은 주된 범위 밖이라고 밝힙니다. 따라서 결과는 고정된 프롬프트 아래의 문맥 간 비교로 읽어야 하며, 절대 정확도로 보기는 어렵습니다.

Table 15 : The anchor-free ladder at a=1 with short forms drawn from Wikidata aliases and English Wikipedia redirects instead of generated mechanically (test, p=0.5; current@1, and the keying deficit in points against the write-path oracle of the same configuration; every tunable re-tuned on val, whose own inventory covers 288 of its subjects).natural: a subject with no real short form stays anchored (270 of the 467 distinct subjects behind the 468 test facts have one; 59.6% of alias-eligible statements are aliased).natural+fallback: such a subject takes the mechanical forms instead (95.1%), the like-for-like comparison with Table 3.
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.
Table 21 : A second adjudicator model. Mem0 0.1.118 (chroma) under its stock, user-centric extraction prompt and under a prompt that admits facts about any named entity, each driven by qwen2.5:14b and by glm-4.6; Graphiti with both models, as returned and with valid edges first. Same 150-fact streams as Table 17; contamination@5 by id.slotsfor Graphiti is active/total edges; the last column counts UPDATE+DELETE decisions (Mem0) or invalidations (Graphiti).
원문 · CC BY 4.0 · S M Mahbub Murshed · StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.논문 정보
- 저자
- S M Mahbub Murshed
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2026년 11월 15일
- 등록일
- 2026년 11월 17일
- 수정일
- 2026년 11월 15일
- 버전
- v1
- arXiv
- 2611.19752
- 분류
- cs.CL · cs.AI · cs.IR
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
An agent that stores facts over time eventually stores several versions of the same fact. Asked a value-agnostic question - "which team does X play for now?" - a similarity retriever cannot prefer the current version, because every version matches the entity the query names. StaleBench isolates this stale-retrieval failure on 892 real updating facts, with currency labels from the source (Wikidata validity years via TempLAMA), never from a retrieval score. Our central result is that retrieval metrics can rank memory policies backwards: a retention policy and its retain-everything control return the identical statement at rank 1 for every test query, yet differ by 29.5 and 65.6 points in reader accuracy on two readers when no date is shown. Contamination@5, the metric we add, ranks them correctly where current@1 and current@5 do not. Withdrawing the lexical anchor that statements carry costs deployed keying mechanisms tens of points of freshness; entity resolution on both the write path and the query recovers most of the loss. Three deployed systems (Mem0, Graphiti, LangMem) and a reimplemented ERASE each handle supersession differently, and no single scoring convention describes all four. We release the data, a frozen evaluator, and reference baselines.
원문 인용
S M Mahbub Murshed (2026). StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix. arXiv:2611.19752v1. https://arxiv.org/abs/2611.19752v1
BibTeX
@misc{murshed2026stalebench,
title = {{StaleBench: Isolating Stale Retrieval in Agent Memory, and Pricing the Fix}},
author = {S M Mahbub Murshed},
year = {2026},
eprint = {2611.19752},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.19752v1}
}