ANNEAL: Adapting LLM Agents via Governed Symbolic Patch Learning
| Item | Detail | |------|--------| | Title | ANNEAL: Adapting LLM Agents via Governed Symbolic Patch Learning | | Authors | Safayat Bin Hakim, Keyan Guo, Wenkai Tan, Alvaro Velasquez, Shouhuai Xu, Houbing Herbert Song | | arXiv | 2605.16309 (cs.AI, cs.LG, cs.MA) | | Link | https://arxiv.org/abs/2605.16309 |
Your AI agent makes a mistake, you ask it to correct itself, it succeeds—and the next day it fails the exact same way. This is not a memory problem. It is a structural flaw in ReAct, Reflexion, and all prompt/memory-based self-evolution frameworks: they can recover from errors in a single run, but they never learn *why* the error occurred.
The ANNEAL authors call this Recurring Faults. Experiments show strong baselines like ReAct and Reflexion keep holdout failure rates at 72–100% when the same faults repeat. ANNEAL reduces this to 0%.
1. Why recovery ≠ learning
Current self-evolution follows the loop: problem → recovery → log experience → consult next time. They modify prompts, memory, or model weights—but never the procedural knowledge (operator schemas, preconditions, constraints) that caused the error.
Analogy: your car stalls at an intersection on rainy days. ReAct restarts the engine and takes a detour. Reflexion sticks a note on the steering wheel: "avoid that intersection in rain." Neither fixes the actual intake leak. ANNEAL repairs the intake.
2. How ANNEAL works: a courtroom for failures
ANNEAL is a neuro-symbolic agent combining LLM reasoning with structured knowledge-graph representation. Its core mechanism, Failure-Driven Knowledge Acquisition (FDKA), runs like a trial:
1. Localize: trace the fault chain to the specific operator in the knowledge graph that caused the failure. 2. Synthesize: use constrained LLM generation to write a *patch*—a typed, structured graph edit (e.g., "add a precondition edge between operator X and operator Y"), not free-form text. 3. Validate: the patch must pass three gates before commit:
- Multi-dimensional scoring of correctness and safety
- Symbolic guardrails—hard rules enforcing safety invariants
- Canary testing—sandbox replay of historical fault cases
- Fine-tuning: a *global* intervention—side effects unknown, data- and GPU-hungry.
- Prompts/memory: a *temporary* intervention—lost when context fills, sensitive to phrasing.
- Knowledge-graph patches: *local, persistent, auditable*—you know exactly what changed, when, and why; you can revert and audit, and migrate patches to other agents.
- ANNEAL is the only evaluated system that commits persistent structural repairs
- Baselines (ReAct, Reflexion): holdout failure rates stay at 72–100%
- ANNEAL: holdout failure rate of 0%
- Ablations: removing FDKA eliminates all structural repairs and drops success by up to 26.7 percentage points
- Patch generalization: validation covers known failure modes; no systematic safety analysis for unseen edge cases in open-world settings.
- Knowledge-graph expressiveness: if a root cause cannot be expressed with existing operators/preconditions/constraints, FDKA cannot patch it. All four domains used pre-designed graphs; performance when building graphs from scratch is unknown.
- Guardrail completeness: no coverage analysis of whether symbolic guardrails catch all unsafe change types.
Every commit carries a full provenance chain and supports deterministic rollback.
3. Why better than fine-tuning?
This is the difference between engineering and tinkering.
4. Results: 0% vs 72–100%
Evaluated on four domains with 27 multi-seed experiments:
5. Honest questions
6. My verdict
ANNEAL's biggest contribution is not technical—neuro-symbolic systems have existed for decades. It quantifies, with an embarrassing number, the gap between "learning not to fail" and "curing the cause": 72–100 percentage points. An agent that keeps repeating the same mistake is not learning—it is performing recovery.
References
1. Hakim et al. (2026). ANNEAL: Adapting LLM Agents via Governed Symbolic Patch Learning. arXiv:2605.16309. 2. Yao et al. (2023). ReAct: Synergizing Reasoning and Acting in Language Models. ICLR 2023. 3. Shinn et al. (2024). Reflexion: Language Agents with Verbal Reinforcement Learning. NeurIPS 2024. 4. Wang et al. (2023). Voyager: An Open-Ended Embodied Agent with Large Language Models. NeurIPS 2024.