Skip to content

ReAgent: Closed-Loop Self-Healing for Open-Weight Tool-Calling Agents, from Structural Hallucinations to Decision Errors

Charlie Galvin, Katie Kitchen, Chiara Picardi

cs.LG

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