Eywa: Provenance-Grounded Long-Term Memory for AI Agents
Eywa is a provenance-grounded memory architecture for persistent AI agents that prioritizes immutable source evidence over derived facts and employs a deterministic, LLM-free retrieval process to enable auditable, updatable, and high-performing long-term memory across diverse benchmarks.
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 hiring a very smart, but slightly forgetful, personal assistant to help you manage your life. You talk to them every day for months. Eventually, you want them to remember your preferences, your past conversations, and the decisions you've made.
The problem with current AI assistants is that their "memory" is like a blurry, single-page summary of everything you've ever said. If they get an answer wrong, you have no idea why. Did they forget what you said? Did they misunderstand you? Did they mix up your story with someone else's? It's all just one big, opaque black box.
Eywa is a new system designed to fix this. Think of Eywa not as a summary, but as a perfectly organized, unchangeable filing cabinet with a strict set of rules. Here is how it works, using simple analogies:
1. The "Evidence First" Rule (The Photo Album vs. The Story)
Most memory systems try to write a story immediately. Eywa does something different: it saves the raw photo before writing the caption.
- The Old Way: You tell your assistant, "I hate spicy food." The assistant writes in its notebook: "User hates spicy food." If the assistant later misremembers this as "User loves spicy food," the original photo is gone.
- The Eywa Way: When you say "I hate spicy food," Eywa first locks that exact sentence into a frozen, unchangeable evidence file. It never deletes or alters that original sentence. Then, it creates a "belief" (a note saying "User hates spicy food") and attaches a receipt to it that points back to the original frozen sentence.
- Why it matters: If the assistant gets it wrong later, you can pull out the original "photo" (the evidence) to see exactly what was said. You can fix the note without losing the truth.
2. The "Two-Tier" Check (The Detective and the Judge)
Eywa has a special process for turning your words into memories, like a two-step quality control line in a factory.
- Tier 0 (The Scanner): Before a human (or AI) even looks at the conversation, a simple, fast scanner highlights "hard anchors." These are things that must be exact, like dates, names, prices, or URLs. It's like a scanner that highlights "July 4th" or "$50" in yellow.
- Tier 1 (The Detective): An AI then tries to write a memory note. But before it's allowed to save the note, the system checks: "Does this note match the highlighted yellow parts? Does it match the original sentence?"
- The Result: If the AI tries to invent a fact or get a date wrong, the system rejects it. It only saves memories that are backed up by the original evidence.
3. The "Library" vs. The "Librarian" (Retrieval)
When you ask a question later, Eywa doesn't ask the AI to "think" about where to look. Instead, it uses a deterministic librarian.
- No Brain Needed for Searching: The librarian doesn't use a "brain" (a large AI model) to decide what to find. It uses strict, pre-written rules (like a search engine). If you ask about "last Tuesday," the librarian goes straight to the "Tuesday" shelf. If you ask about "John," it goes to the "John" shelf.
- Why it matters: This makes the search incredibly fast and predictable. It doesn't matter if the AI is tired or confused; the librarian always finds the right files based on the rules.
- The Separation: Once the librarian finds the files, they are handed to the AI (the "Answerer") with a separate note saying, "Here are the facts; now answer the question." This means you can swap out the AI (the Answerer) for a cheaper or smarter one without changing how the memory works.
4. The "Audit Trail" (Debugging)
If the assistant gives you a wrong answer, Eywa doesn't just give you a score like "85% correct." It gives you a forensic report.
It breaks down exactly where the failure happened:
- Did we miss the file? (The evidence wasn't saved).
- Did we find the file but lose it? (The search failed).
- Did we find the file but the AI ignored it? (The answerer made a mistake).
- Did the AI refuse to answer? (Policy issue).
This is like a mechanic telling you, "The car didn't start because the battery is dead," rather than just saying, "The car is broken."
The Big Picture
Eywa is built on the idea that memory should be infrastructure, not magic.
- It's Auditable: You can always see the source of a memory.
- It's Fixable: You can delete a specific memory or correct a mistake without breaking the whole system.
- It's Flexible: You can use a small, cheap AI to answer questions as long as the memory system feeds it the right evidence.
In short, Eywa turns the AI's memory from a blurry, unreliable dream into a clear, organized, and checkable library where every fact has a receipt attached to it.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.