Experience Memory Graph Improves Agent Error Correction.

Wenjun Wang, Yuchen Fang, Fengrui Liu, Zibo Liang, Kai Zheng· July 16, 2026 View original

Summary

Experience Memory Graph (EMG) is a new framework that reformulates agent failure recovery as a graph matching problem, enabling one-shot error correction. It converts failed and successful trajectories into graphs, extracts correction paths, and stores them for efficient, loop-free guidance, outperforming reflection-based methods.

Researchers have developed Experience Memory Graph (EMG), a novel framework designed to significantly improve the error correction capabilities of Large Language Model (LLM) agents. Traditional self-correction mechanisms, often relying on prompt-based reflection, are frequently brittle, costly, and produce task-specific memory that struggles to generalize. EMG addresses these limitations by reframing agent failure recovery as a graph matching problem. During a training phase, both failed exploration trajectories and successful expert trajectories are converted into directed action decision graphs. By comparing these graphs, EMG identifies common successful workflows and explicit graph edit paths that detail how to correct failures, such as which actions to add, delete, or relabel under specific observations. This knowledge is then stored in a memory graph. At test time, EMG efficiently retrieves relevant insights from this memory graph, guiding the agent in a single, loop-free execution to correct errors. Experiments on complex environments like ALFWorld and ScienceWorld demonstrate that EMG consistently surpasses state-of-the-art reflection baselines in success rate and average reward, all while eliminating the need for iterative trial-and-error during inference.

Why it matters

For professionals building and deploying LLM agents, especially in complex, long-horizon tasks, efficient and robust error correction is critical for agent reliability, reducing operational costs, and improving user experience.

How to implement this in your domain

  1. 1Investigate integrating graph-based memory and error correction mechanisms into your agent architectures.
  2. 2Develop methods to convert agent trajectories into structured graph representations for analysis.
  3. 3Create a library of successful and failed agent experiences to build a comprehensive memory graph.
  4. 4Benchmark EMG-like approaches against existing reflection-based error correction methods for your specific agent tasks.

Who benefits

RoboticsCustomer ServiceSoftware DevelopmentGamingLogistics

Key takeaways

  • EMG offers a more robust and efficient one-shot error correction for LLM agents.
  • It reformulates failure recovery as a graph matching problem.
  • The framework outperforms traditional reflection-based self-correction methods.
  • EMG reduces test-time costs and improves agent success rates in complex tasks.

Original post by Wenjun Wang, Yuchen Fang, Fengrui Liu, Zibo Liang, Kai Zheng

"arXiv:2607.13884v1 Announce Type: new Abstract: Large Language Model (LLM) agents have shown remarkable capabilities in autonomous decision-making by generating sequential trajectories of states, actions, and observations. However, in complex, long-horizon tasks, these agents fre…"

View on X

Originally posted by Wenjun Wang, Yuchen Fang, Fengrui Liu, Zibo Liang, Kai Zheng on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses