← Latest papers
💬 NLP

ExpGraph: Model-Agnostic Experience Learning with Graph-Structured Memory for LLM Agents

ExpGraph is a model-agnostic framework that enhances frozen LLM agents by organizing historical trajectories into a self-evolving graph of reusable skills and failure lessons, which are retrieved via graph diffusion and utility-aware ranking to significantly improve performance and efficiency across diverse tasks without requiring parameter updates.

Original authors: Tao Feng, Chongrui Ye, Tianyang Luo, Jingjun Xu, Xueqiang Xu, Haozhen Zhang, Zhigang Hua, Yan Xie, Shuang Yang, Ge Liu, Jiaxuan You

Published 2026-06-01
📖 4 min read☕ Coffee break read

Original authors: Tao Feng, Chongrui Ye, Tianyang Luo, Jingjun Xu, Xueqiang Xu, Haozhen Zhang, Zhigang Hua, Yan Xie, Shuang Yang, Ge Liu, Jiaxuan You

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 Problem: The "Amnesiac" Genius

Imagine you have a brilliant but amnesiac assistant (the LLM Agent). This assistant is incredibly smart at solving problems, writing code, or navigating a virtual house. However, every time you give them a new task, they act like it's their first day on the job. They don't remember the clever tricks they used last week, nor do they remember the mistakes they made yesterday. They solve every problem from scratch.

Usually, to make them remember, you have to "retrain" them. But retraining is like going back to school for a whole year every time you want them to learn a new trick. It's expensive, slow, and if you switch to a newer, smarter assistant, you have to retrain them all over again.

The Solution: ExpGraph (The "Smart Librarian")

The researchers propose ExpGraph, a system that lets the assistant learn without ever going back to school. Instead of changing the assistant's brain, they build a specialized library right next to them.

Here is how it works, using three main metaphors:

1. The Experience Graph (The Web of Knowledge)

Most memory systems are like a flat list (like a simple to-do list). If you ask for "how to bake a cake," it just looks for the word "cake" and shows you the closest match.

ExpGraph is different. It organizes memories like a giant, interconnected spiderweb.

  • Nodes (The Spiders): Each piece of knowledge is a node. Some nodes are "Skills" (how to successfully bake a cake), and others are "Lessons" (don't forget to preheat the oven, or the cake will burn).
  • Edges (The Strings): These nodes are tied together. If you learn how to bake a cake, the system also ties that node to "baking bread" or "using an oven" because they are related.
  • Why it matters: If you are trying to bake a cake, the system doesn't just look for "cake." It follows the strings to find related lessons about ovens or timing that you might have missed if you only looked at the closest match.

2. The Retrieval Copilot (The Smart Librarian)

The assistant (the executor) is frozen; it can't change. So, the system uses a lightweight "Librarian" (the Copilot) to help.

  • When a new task arrives, the Librarian looks at the spiderweb.
  • The Librarian has two dials to control how they search:
    • Dial A (Exploration): Do we stick to the exact topic, or do we wander down related paths to find hidden gems?
    • Dial B (Trust): Do we pick the most similar memory, or the one that has historically worked best?
  • The Librarian is trained to figure out the perfect setting for these dials for every single task.

3. The Feedback Loop (The Report Card)

How does the Librarian get better?

  • The system tries the task twice: once with the Librarian's help, and once without.
  • If the version with the Librarian does a better job, the Librarian gets a "good job" reward.
  • If the Librarian picked a memory that didn't help, it gets a "try again" signal.
  • Over time, the Librarian learns exactly which memories are actually useful, not just which ones sound similar.

What Happened in the Experiments?

The researchers tested this system on a wide variety of challenges, from answering tricky science questions and solving math problems to navigating virtual houses and managing app workflows.

  • The Result: The frozen assistants, when paired with this "Smart Librarian" and "Spiderweb Library," got significantly better at their jobs.
  • The Surprise: The system worked even better for the "weaker" assistants. It was like giving a junior employee a senior mentor's notebook; the junior employee jumped in performance, while the senior employee (who was already good) also improved, just by a smaller margin.
  • Efficiency: The assistants didn't just get smarter; they got faster. They made fewer mistakes and took fewer steps to finish tasks because they didn't have to "reinvent the wheel" every time.

The Bottom Line

ExpGraph is a way to give AI agents a "second brain" (an external, evolving memory) without having to retrain their actual brain. It organizes past successes and failures into a connected web and uses a smart search tool to find the right advice at the right time. This means we can use powerful, frozen AI models and still make them learn and adapt to new situations, saving time and money.

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 →