ToolBeHonest: A Multi-level Hallucination Diagnostic Benchmark for Tool-Augmented Large Language Models

Yuxiang Zhang, Jing Chen, Junjie Wang, Yaxin Liu, Cheng Yang, Chufan Shi, Xinyu Zhu, Zihao Lin, Hanwen Wan, Yujiu Yang, Tetsuya Sakai, Tian Feng, Hayato Yamana

Abstract

Tool-augmented Large Language Models (LLMs) are increasingly deployed as autonomous agents, yet they often fail when provided with incomplete or restricted toolsets. We present ToolBeHonest (ToolBH), a diagnostic benchmark designed to evaluate "solvability hallucinations"—instances where models fail to recognize a task is unsolvable and instead hallucinate tool usage. Testing across three diagnostic levels and three scenarios, we find that current state-of-the-art models, including Gemini-1.5-Pro and GPT-4o, exhibit a strong bias toward solvability, often inventing tools or ignoring constraints to force a solution.

Introduction

As LLMs transition into agents capable of interacting with external environments via APIs, the "perfect world" assumption of existing benchmarks—where the correct tools are always available—becomes a liability. In real-world deployments, toolsets are frequently incomplete, restricted, or misleading. ToolBeHonest addresses this gap by focusing on the "long-tail" of unsolvable requests to trigger and diagnose hallucinatory behavior.

Hallucination vs. Expected Response in tool-augmented LLMs.

Methodology: Diagnostic Depth and Breadth

The researchers introduced ToolBH to evaluate hallucinations across two primary dimensions:

1. Diagnostic Depth (The Three Levels)

  • Level-1: Solvability Detection: Identifying if a task is solvable given the tools.
  • Level-2: Solution Planning: Identifying the specific sub-goal that acts as the bottleneck.
  • Level-3: Missing-tool Analysis: Describing the exact functionality of the missing tool.

2. Diagnostic Breadth (The Three Scenarios)

  • Missing Necessary Tools (MNT): A required tool is omitted from the toolkit.
  • Potential Tools (PT): Models are tested on whether they hallucinate "standard" system commands (e.g., Linux tools) mentioned in the context but not provided.
  • Limited Functionality Tools (LFT): Tools are provided but have specific constraints (e.g., language limitations) that the model must respect.

Dataset and Evaluation

The ToolBH dataset consists of 700 evaluation samples (350 solvable and 350 unsolvable) across seven distinct tasks. The curation process involved LLM-based synthesis using Gemini and GPT-4o, followed by automated diversity filtering and rigorous manual annotation to ensure high-quality "golden" solutions. Unlike previous benchmarks, ToolBH specifically targets the failure modes of models when faced with gaps in their capabilities.

Key Results

The benchmark proved exceptionally challenging for current SOTA models. On a scale of 0 to 100, Gemini-1.5-Pro was the top performer with a score of 45.3, followed by GPT-4o at 37.0. Open-weight models struggled significantly, with Llama-3-70B scoring only 14.6.

Performance of leading proprietary models across diagnostic depth and breadth.

A critical finding is the "Solvability Gap": while models were nearly perfect at solving "solvable" tasks (scoring 90+), their performance plummeted on unsolvable counterparts. This highlights a pervasive "solvability hallucination" where models are inherently over-optimistic and struggle to admit when a task is impossible.

Discussion and Insights

  • Environmental Triggers: Models are easily tricked by context. Mentioning an environment like "Ubuntu" frequently triggers hallucinations of standard Linux tools, even when models are explicitly told to use only the provided list.
  • The Verbosity Trap: Open-weight models often perform worse with longer, verbose replies, whereas proprietary models like GPT-4o show a positive correlation between reasoning length and performance.
  • Parameter Size vs. Tuning: Model size is not the sole determinant of success; Llama-3-8B outperformed the larger Llama-2-70B, suggesting that instruction tuning quality is paramount for tool-use reliability.

Conclusion

Reliable AI agents require the ability to recognize their own limitations. ToolBeHonest provides a rigorous framework for diagnosing these failures, highlighting the need for better instruction tuning and "honesty" in tool-augmented LLMs. The authors have open-sourced the dataset and evaluation code to encourage the community to use ToolBH as a standard diagnostic for model reliability.

Summary updated

BibTeX
@inproceedings{zhang2024toolbehonest,
  author = {Yuxiang Zhang and Jing Chen and Junjie Wang and Yaxin Liu and Cheng Yang and Chufan Shi and Xinyu Zhu and Zihao Lin and Hanwen Wan and Yujiu Yang and Tetsuya Sakai and Tian Feng and Hayato Yamana},
  title = {{ToolBeHonest: A Multi-level Hallucination Diagnostic Benchmark for Tool-Augmented Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.637},
}
Figure