NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reducing Tool Hallucination via Reliability Alignment

Hongshen Xu, Zichen Zhu, Lei Pan, Zihan Wang, Su Zhu, Da Ma, Ruisheng Cao, Lu Chen, Kai Yu

TL;DR

This paper introduces Relign, a framework that significantly reduces "tool hallucinations"—instances where Large Language Models (LLMs) select the wrong external tools or fabricate parameters. By teaching models to take "indecisive actions" like seeking clarification or switching tools, Relign improves system reliability. Alongside this, the authors debut RelyToolBench, a benchmark designed to stress-test model reliability, and RePR (Reliable Pass Rate), a metric that penalizes successful task completion if it was achieved through hallucinated steps.

What Problem Does This Paper Address?

As LLMs transition from conversational chatbots to autonomous "agents" capable of using external APIs (such as calculators, databases, or robotic controls), a dangerous phenomenon has emerged: tool hallucination.

Unlike standard text hallucinations where a model invents facts, tool hallucinations occur when a model either selects a tool that doesn't exist (or is irrelevant) or provides fabricated, "made-up" parameters to a valid tool. For example, if a user asks to download a file but doesn't provide a project ID, a standard LLM might simply invent a "project123" ID to keep the process moving. In real-world applications like database management or scientific experimentation, these errors aren't just annoying—they can cause tangible system damage and incur unnecessary computational costs.

The authors argue that current models hallucinate because they are trapped in a decisive action space: they are trained to always pick a tool and move forward, even when the necessary conditions for success aren't met.

Methods: Categorizing the Chaos and the Relign Framework

1. Categorizing the Chaos

To systematically address the problem, the paper formally defines tool hallucinations into two primary categories, which are further divided into four specific errors:

  • Selection Hallucination: Picking the wrong tool (Type Hallucination) or calling it at the wrong time, such as making redundant calls (Timing Hallucination).
  • Usage Hallucination: Using the wrong format, like JSON errors (Format Hallucination), or fabricating content by inventing IDs or names (Content Hallucination).
Taxonomy of tool hallucinations

2. The Relign Framework

To combat these errors, the researchers propose Relign (Reliability Alignment). Relign shifts the model from a strictly "decisive" mindset to an "indecisive" one when appropriate. It introduces an indecisive action space, allowing the model to invoke commands like ChangeTools (if the current set is insufficient) or TalkToUser (to ask for missing information).

The training involves two steps:

  • Reliable SFT (Supervised Fine-Tuning): The model is trained on curated trajectories where it must use these new indecisive actions to handle edge cases, such as missing parameters.
  • Reliable DPO (Direct Preference Optimization): The model is further refined using preference pairs. It learns a strict hierarchy of behavior: Correct Tool Call > Indecisive Action > Hallucinated Tool Call.

Datasets

The authors utilized three primary datasets to train and evaluate their models:

  • ToolBench & StableToolBench: Existing benchmarks for standard tool-use capabilities.
  • RelyToolBench (New): A specialized benchmark created for this paper. It extends StableToolBench by adding two "adversarial" subsets designed to trigger hallucinations:
  • Missing Parameter Subset: Crucial information is hidden from the prompt to see if the model asks for it or hallucinates a guess.
  • Unmatched Tools Subset: The provided tools are intentionally irrelevant to the task to see if the model realizes it needs a different tool.

Key Insights and Ideas

  • The "Indecisive" Advantage: The most significant insight is that giving a model permission to "wait" or "ask" is more effective than simply training it to be "smarter." By expanding the action space, the researchers transformed a failure state (hallucination) into a system-saving state (clarification).
  • More Data $\neq$ Less Hallucination: Surprisingly, the authors found that simply increasing standard training data didn't always reduce hallucinations. Models often overfit to "happy paths" in standard datasets, making them more likely to hallucinate when encountering unseen scenarios.
  • Scaling Helps: Larger models are significantly better at capturing complex dependencies and context, leading to a natural decline in tool hallucinations.

Key Results

The Relign framework was tested on several models, including Llama 3.1, Qwen 2.5, and ToolLLaMA.

Comparison of Original vs. Reliable Pass Rates for GPT-4 models

As shown in the evaluation of even state-of-the-art models, there is a massive drop-off between standard pass rates and the RePR (Reliable Pass Rate)—which only counts a task as "passed" if absolutely no hallucinations occurred. Key findings from applying Relign include:

  • Reliability Boost: Relign improved Llama 3.1’s RePR performance from 65.3% to 77.2%.
  • Hallucination Reduction: In the challenging "Unmatched Tools" category, Relign reduced tool hallucination rates for Llama 3.1 from 49.6% down to 13.1%.
  • Efficiency: Because the models stopped making redundant or "guess-work" tool calls, the average number of tool calls per task decreased, making the system more computationally efficient.
  • Competitive Performance: Relign-trained 8B models began approaching the reliability levels of much larger closed-source models like GPT-4o.

Limitations and Future Work

The authors note that Timing Hallucinations (calling the same tool repeatedly with the same input) remain the hardest to fix. This suggests that LLMs still struggle with the long-term "memory" of a multi-step task sequence.

Future work could involve more sophisticated "boundary condition" training to help models better understand exactly when their knowledge or toolset ends and when they must defer to the user. Additionally, the current evaluation relies heavily on GPT-4o as an evaluator; developing more robust, specialized "hallucination detectors" would be a valuable next step for the field.

Summary updated

BibTeX
@inproceedings{xu2025reducing,
  author = {Hongshen Xu and Zichen Zhu and Lei Pan and Zihan Wang and Su Zhu and Da Ma and Ruisheng Cao and Lu Chen and Kai Yu},
  title = {{Reducing Tool Hallucination via Reliability Alignment}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=WeOLZmDXyA},
}
Figure