Understanding and Mitigating Hallucination Escape in Tool-Using LLM Agents
Peigui Qi, Kunsheng Tang, Yide Song, Weiming Zhang, Nenghai Yu
原文摘要
Large language models (LLMs) act as tool-invoking agents, which introduces tool hallucination: selecting incorrect tools or generating invalid calls. We show that existing mitigation methods exhibit Hallucination Escape, a failure mode hidden by single-configuration evaluation: under controlled configuration changes, they reduce hallucination on the tuned configuration but increase it on others, canceling out the gain. We find that hallucination spikes when a model's intrinsic tool-use tendencies conflict with the tool configuration, and that existing methods reinforce these tendencies. Building on these findings, we propose EscapeGuard, an inference-time method that combines conflict-aware gating with configuration-derived attention enhancement to mitigate tool hallucination while preventing escape. Across six benchmarks and multiple models, EscapeGuard reduces tool-selection hallucination by 9.0 pp, lowers the cross-configuration mean by 23.6 pp, and reduces total errors by 86.3% in paired-query evaluation. We hope this work encourages evaluation beyond a single tool configuration toward more reliable agents.
cs.CL · cs.AI