Experience Graphs: The Data Foundation for Self-Improving Agents
The paper proposes Trellis, a database-centric architecture that treats the structured "experience graphs" generated by long-horizon agentic tasks as first-class, queryable data to enable stateless agents, robust crash recovery, and a closed-loop training flywheel, demonstrating significant efficiency gains in a production kernel optimizer at Meta.
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
The Big Idea: From "Forgetful" Agents to "Cumulative" Learners
Imagine you are teaching a robot to solve a very hard puzzle, like designing a new computer chip or writing complex code.
The Old Way (Current Agents):
Right now, most AI agents work like a person trying to solve a puzzle in a single sitting. They try a step, maybe fail, try again, and keep going until they get an answer. But once they finish (or crash), they forget almost everything they learned during that specific attempt. If they try the same puzzle tomorrow, they have to start from scratch. Their "memory" is just a pile of messy notes (logs) that are hard to read or reuse.
The New Way (Trellis & Experience Graphs):
This paper proposes a new system called Trellis. Think of a trellis as the wooden lattice structure gardeners use to help vines grow. The vine (the AI agent) does the climbing and growing, but the trellis (the database) holds everything up, organizes the branches, and ensures the plant doesn't collapse.
In this new system, every single step the agent takes—every guess, every failure, every tool it uses, and the score it gets—is saved into a giant, organized, searchable structure called an Experience Graph.
The Core Metaphor: The "Garden of Attempts"
Instead of an agent just writing a final report, imagine it is exploring a massive garden.
- The Experience Graph: This is the garden itself. Every path the agent walks, every flower it picks, and every dead end it hits is recorded as a permanent plant in the garden.
- The "Vines": The AI agents are the vines. They grow, explore, and try new things.
- The "Trellis" (Trellis System): This is the database that holds the garden. It doesn't grow the plants; it supports them. It remembers exactly where every branch is, how well it grew, and what happened if you tried a different path.
Why This Changes Everything
The paper argues that treating these "garden records" as a proper database (like the ones that run banks or airlines) changes how AI works in three main ways:
1. No More "Amnesia" After a Crash
The Problem: If a current agent crashes (like a computer freezing), it loses its progress. It's like a hiker falling off a cliff and forgetting the map they were holding.
The Trellis Solution: Because the "map" (the experience graph) lives in the database, not in the agent's head, the agent can be restarted instantly. It just asks the database, "Where was I?" and picks up exactly where it left off. The agent itself becomes "stateless"—it's just a worker that does the thinking, while the database holds the memory.
2. Learning from Others (Cross-Session Reuse)
The Problem: Currently, if Agent A solves a problem, Agent B doesn't automatically know about it. They are isolated.
The Trellis Solution: The database allows Agent B to look at Agent A's "garden." If Agent A found a shortcut or a way to avoid a dead end, Agent B can see that path immediately.
- The Result: The paper tested this with a real-world tool called KernelEvolve (which optimizes computer code). When agents could "borrow" from the shared garden, they found good solutions 10 times faster and used 52% less computing power (tokens) because they didn't waste time repeating mistakes others had already made.
3. The "Time Travel" for Training
The Problem: To teach AI better, we usually need to scrape through messy logs to find examples of what worked and what didn't. This is slow and often inaccurate.
The Trellis Solution: The database automatically organizes the "garden" into training materials.
- It can show the AI: "Here is a path where you succeeded (Good)."
- It can show: "Here is a path where you failed (Bad)."
- It can even do "Time Travel": It can reconstruct exactly what the agent knew at that specific moment in the past, without seeing the future results. This creates perfect, high-quality training data automatically.
The "Self-Improving Flywheel"
The paper describes a cycle that makes the system smarter over time:
- Explore: Agents search the garden, trying new things.
- Record: Every attempt is saved in the Trellis database.
- Learn: The database turns these attempts into training data to teach the AI models.
- Improve: The smarter models go back to the garden and explore even better.
Because the database holds the memory, the whole system gets better as more people use it. It's not just one agent getting smarter; it's a whole community of agents sharing a single, growing library of experience.
What the Paper Actually Claims (and What It Doesn't)
- It Claims: They built a system (Trellis) that treats AI search history as a database. They tested it on computer chip optimization (KernelEvolve) and hardware validation. They showed it makes agents faster, cheaper to run, and more reliable.
- It Claims: This architecture allows for "Recursive Self-Improvement" (agents getting better at their own job).
- It Does NOT Claim: This paper does not discuss medical uses, clinical trials, or specific applications outside of software/hardware optimization (though it mentions the structure could apply to drug discovery or science, the actual results presented are only about computer code and chips).
Summary Analogy
Imagine a group of scientists trying to discover a new law of physics.
- Without Trellis: Each scientist works in a separate room, writes notes on paper, and if they leave the room, the notes are thrown away. They have to reinvent the wheel every time.
- With Trellis: All scientists work in a giant, shared library. Every experiment, every failure, and every success is written on a card and filed perfectly. If a scientist makes a mistake, the library knows. If another scientist needs a clue, they can look up the exact card from a colleague's experiment. The library itself is the "brain" that remembers everything, allowing the scientists to stand on each other's shoulders and reach further than ever before.
The paper concludes that logs made databases reliable, but experience graphs might make AI agents cumulative—meaning they can build knowledge that lasts and grows, rather than just solving one problem at a time.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.