ReAgent: Closed-Loop Self-Healing for Open-Weight Tool-Calling Agents, from Structural Hallucinations to Decision Errors
Abstract
When language-model agents can modify databases, hallucinations manifest as erroneous actions. Untuned, Aya Expanse 32B solves 14.5% of τ 2-bench's customer-service test tasks, and 95% of its conversations invoke an unavailable tool, fabricate an argument or repeat a failed call. We present ReAgent, a closed loop in which a rule-based classifier localises failures, an open-weight teacher supplies corrections verified by the benchmark, QLoRA retrains the student, and a pre-registered gate decides whether the updated adapter is deployed. On held-out tasks, hallucinated conversations fall from 95% to 10% and task success rises to 51.5%; run autonomously, the gate rejects an adapter that hallucinates less but solves no additional tasks. The residual failures are decision errors, which neither our detectors nor reinforcement learning corrected. Extending training on the same verified data did: task success reached 60.0% (+9.9 points, 95% CI +3.9 to +16.0), comparable to GPT-4.1 (61.5%) at under a third of its cost per conversation, while state changes made without the customer's consent fell from 0.152 to 0.010 per conversation and general capability was preserved. Code, data and adapters are linked above.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
- Comments
- Responsible AI, trustworthy AI, AI risk
Related papers
QWER: Quantized Weights and Errors in Reasoning at Three Bits
Shared title terminologycs.LGMinseok Shin
Critical Sequence Length: A Note on How Document Structure Bounds Gradient-Noise Reduction
Shared title terminologycs.LGSunny Guha
CONMAN: Steering LLM Agent Actions via Contrastive World Model Manipulation
Shared title terminologycs.LGHaoyu He, Fengqing Jiang, Radha Poovendran et al.
Local Affine Quantization for KV Caches: From Shared Ranges to Prediction Error
Shared title terminologycs.LGShrey Shah, Rohith Kukkala
PolicyPolish: LLM-Guided Weight Editing of Reinforcement Learning Policies for Dynamic RMSA in Elastic Optical Networks
Shared title terminologycs.LGMasayuki Shimoda
Certify the decision, not the outcome: Bayesian experimental design on search graphs
Shared title terminologycs.LGAurelien Pelissier