r/LLMDevs • u/ombre-ai • 0m ago
Discussion Last-write-wins memory scored below no memory on a full-reversal test (0.21 vs 0.31, TEPA preprint). Why would an overwrite policy do that?
TEPA (arXiv 2608.07429, Zhou et al.) calls this memory pollution: stale entries stay retrievable after newer evidence contradicts them, and they end up in the prompt.
Setup: controlled hidden-regime drift over 50 seeds, then a full reversal of the underlying facts.
Full-reversal scores:
- no memory: 0.309
- append-only: 0.210
- last-write-wins: 0.210
- TEPA (validity is an explicit state, retracted entries kept for audit): 0.950
The same pattern shows up in a real file-backed execution test. On clean single-hop MemoryAgentBench SH-6k, TEPA roughly matches a strong last-write-wins cache, so the gain looks specific to reversal and not a general retrieval boost.
Where it stops: the paper's boundary tests say fact-level revocation fixes stale single-hop conflicts, while multi-hop retrieval and long-context selection stay open (0.040 on MH-6k, 0.000 on SH-262k). It's a controlled benchmark, so I wouldn't read 0.95 as a production number.
Three things I can't answer from the paper:
- Last-write-wins landing below no memory is the surprising part. Is it a keying problem, where the new write doesn't hit the entry that went stale? Retrieval surfacing both versions? Something in the benchmark design?
- How do you catch facts invalidated by something that never names them? STALE (400 scenarios, 1,200 queries) puts the best model it evaluated at 55.2% overall on that.
- Retracted history: keep it for audit, as TEPA does, or hard delete?
If you run a memory layer in production, I'd like to hear which of these you've actually hit.