← Latest papers
🤖 AI

TEPA: Revoking Stale Memories for Conflict-Robust Language Agents

This paper introduces TEPA, a revocable evidence-memory mechanism that explicitly tracks memory validity to automatically revoke stale facts when contradicted by new evidence, thereby preventing memory pollution and significantly outperforming traditional append-only or last-write-wins approaches in conflict-robust language agents.

Original authors: Yan Zhou, Yue Ouyang, Kaiyang Zheng, Suncheng Xiang

Published 2026-08-11
📖 4 min read☕ Coffee break read

Original authors: Yan Zhou, Yue Ouyang, Kaiyang Zheng, Suncheng Xiang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are talking to a super-smart robot friend who remembers everything you've ever told them. This robot is designed to learn from your past conversations, your favorite pizza toppings, and the rules of the games you play together. This ability to hold onto information over time is called "long-term memory," and it's what makes these digital assistants feel like real companions rather than just search engines. But here's the tricky part: people change. You might decide you hate pineapple on pizza today, even though you loved it last year. If your robot friend keeps both the "old love" and the "new hate" in its brain at the same time, it might get confused and suggest a pizza that makes you cringe. In the world of artificial intelligence, this confusion is a big deal. When a robot holds onto outdated facts that clash with new reality, it doesn't just make a small mistake; it can start giving answers that are worse than if it had remembered nothing at all. Scientists call this "memory pollution," and figuring out how to clean it up is the key to building agents that stay helpful as the world around them shifts.

This paper introduces a clever new system called TEPA, a revocable evidence-memory mechanism designed to solve exactly this problem. Think of TEPA as a very organized librarian who doesn't just stack books on a shelf forever. Instead, TEPA treats every piece of information like a "precedent" with a specific ID tag and a status label. When the robot learns something new that contradicts an old fact—like realizing the capital of France is Paris, not Lyon—it doesn't just ignore the old note or let both sit there confusing the robot. TEPA actively checks for conflicts. If a new piece of evidence clashes with an old one under the same topic (the same "key"), TEPA instantly revokes the old one. It moves the outdated fact into a special "revoked archive" where it can be checked later if needed for an audit, but it removes it from the active list the robot uses to answer questions right now. This ensures the robot only uses the freshest, most accurate evidence when it talks to you.

The researchers tested this idea in several different scenarios, including controlled simulations where they secretly changed the rules of the game, real-world file operations, and streams of changing user preferences. The results were striking. In situations where the rules flipped completely, robots using standard "append-only" memory (which just adds new facts without deleting old ones) performed terribly. In fact, they scored a success rate of only 0.210, which was actually worse than a robot that had no memory at all (which scored 0.309). The old, conflicting memories were so confusing that they actively hurt the robot's performance. However, the TEPA system, with its ability to revoke stale memories, soared to a success rate of 0.950. It successfully identified the conflict, locked away the wrong answer, and kept the right one front and center.

The paper also explored a more cautious version called TEPA-Full, which runs a quick "trial" of a new memory before fully accepting it. This was particularly useful for updating user preferences, where TEPA-Full achieved an overall success rate of 0.910, significantly outperforming other methods that couldn't distinguish between a temporary glitch and a real change in preference. Interestingly, when the researchers tested TEPA on a standard benchmark for simple fact-checking (MemoryAgentBench SH-6k), it performed just as well as the best existing methods, scoring 0.890. This confirmed that the core idea of replacing old facts with new ones is the most important step for simple tasks. However, the paper also found limits: when the tasks became much harder, requiring the robot to connect multiple dots across a huge amount of text (multi-hop or very long-context tasks), TEPA's success rates dropped significantly (to 0.040 or even 0.000 in some cases). This suggests that while TEPA is a master at cleaning up individual facts, the next big challenge for AI is figuring out how to manage complex chains of reasoning when the context gets massive.

Ultimately, the study shows that for AI agents to remain reliable, they need more than just a growing pile of memories; they need a lifecycle. They need a way to say, "This fact is no longer true," and actively remove it from the conversation while keeping a record of why it was changed. TEPA provides that mechanism, proving that knowing what to forget is just as important as knowing what to remember.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →