TL;DR
MAGE (Multi-Agent Graph-guided Evolution) is a new framework that allows language model agents to "evolve" their performance without ever updating their underlying model weights. By externalizing self-knowledge into a structured, four-part knowledge graph and using lightweight bandits to optimize retrieval, MAGE enables frozen, small models to significantly outperform traditional prompting techniques across diverse reasoning and interaction tasks.
What Problem Does This Paper Address?
Building self-improving AI agents usually requires one of three things: fine-tuning model parameters (computationally expensive and risky), providing natural language feedback (which can become generic and unhelpful), or using "flat" episodic memory (which lacks the structure to handle complex task dependencies).
These methods struggle when you want to keep the "backbone" model—the one actually doing the work at inference time—frozen. A frozen backbone is desirable for stability, inspectability, and deployment on resource-constrained hardware. The challenge is: How can an agent learn from its own successes and failures if it can't change its internal weights?
Methods
MAGE solves this by moving the "learning" out of the model and into a structured Co-Evolutionary Knowledge Graph (EvoKG).
The Two-Tier Architecture
The framework splits responsibilities between two tiers:
- Guidance Tier ($L_G$): A strong teacher model (like Claude 3.5 Sonnet) used only during the "evolution" phase to write principles, corrections, and new skills into the graph.
- Execution Tier ($L_E$): A frozen, open-weight model (like Qwen-8B or Llama-3.1-8B) that performs the actual tasks by retrieving guidance from the graph.
The EvoKG Subgraphs
The knowledge graph is composed of four specialized subgraphs:
- Capability ($G_{cap}$): Tracks skills, their prerequisites, and the agent's "mastery" level.
- Task ($G_{task}$): Organizes different types of problems and their dependencies.
- Experience ($G_{exp}$): The heart of the system. It stores Success Memories (the learner's own correct reasoning traces) and Failure Memories (teacher-written corrections for mistakes).
- Environment ($G_{env}$): Stores context about the world for interactive tasks.
The Evolution Loop
During evolution, MAGE uses a "Navigator" to pick tasks at the edge of its current capabilities. A "Critic" evaluates the learner's attempts, feeding a reward stream that updates two lightweight bandits:
- Search Bandit: Learns the best retrieval strategy for a given task type.
- Routing Bandit: Learns which inference strategy (e.g., direct vs. multi-step) works best for specific skills.
Crucially, the system uses an append-only invariant for memories and an asymmetric mastery ratchet (mastery grows fast on success but decays slowly on failure) to ensure stable, monotonic improvement.
Datasets
The authors evaluated MAGE across nine diverse benchmarks:
- Mathematical Reasoning: GSM8K and RealMath.
- Multi-hop & Open-domain QA: HotpotQA and WebQA.
- Spatio-temporal Analysis: STBench (27 task types).
- Domain-Specific Reasoning: FinQA (finance) and MedQA-USMLE (medicine).
- Sequential Environments: Crafter (survival game) and WebShop (web navigation).
Key Insights and Ideas
- Success vs. Failure Complementarity: Success memories act as "reasoning templates" that help the model follow a successful pattern. Failure memories provide "corrective guidance" for specific pitfalls. Ablations showed that success memories are most vital for template-heavy tasks like math, while failure memories are crucial for complex interactions.
- Structure Over Volume: Simply having a memory bank isn't enough. MAGE’s use of task-filtered retrieval and bandits to navigate the graph prevents the "retrieval pollution" that often plagues flat memory systems.
- Monotonicity Guarantees: The authors provide theoretical proofs that their append-only memory and round-robin curriculum guarantee that the agent's available information grows over time and that no task type is left behind.
- Teacher Efficiency: The high-powered teacher model is only used for ~2% of total calls during the training/evolution phase and 0% at inference time.
Key Results
MAGE consistently outperformed strong prompt-based baselines like Chain-of-Thought (CoT), ReAct, and Reflexion.
- Accuracy Gains: On RealMath, MAGE achieved a massive +31.6 point gain over the best baseline. On STBench, it saw a +20.8 point improvement.
- Efficiency: Despite the complex graph structure, MAGE is significantly faster than "Self-Consistency" (which requires multiple samples). For example, on HotpotQA, MAGE is nearly 3x faster than Self-Consistency while being more accurate.
- Cross-Iteration Recovery: In a trace of GSM8K, MAGE was able to "recover" 78 previously failed questions over 10 iterations as its memory bank grew, demonstrating true evolution.
Limitations and Future Work
The authors note that MAGE is most effective when tasks have a recurring structure that can be organized into reusable memories. If a task is entirely unique every time, the graph-based approach offers less benefit.
Furthermore, the quality of the evolution depends on the Curator's graph writes. If the teacher provides poor corrections, the graph's utility is diminished. Future work could explore how to make the system more robust to "weak" teachers and how to better transfer learned graphs between different backbone models.
Summary updated