Tools Fail: Detecting Silent Errors in Faulty Tools

Jimin Sun, So Yeon Min, Yingshan Chang, Yonatan Bisk

Abstract

Tools have become a mainstay of LLMs, allowing them to retrieve knowledge not in their weights, to perform tasks on the web, and even to control robots. However, most ontologies and surveys of tool-use have assumed the core challenge for LLMs is choosing the tool. Instead, we introduce a framework for tools more broadly which guides us to explore a model's ability to detect "silent" tool errors, and reflect on how to plan. This more directly aligns with the increasingly popular use of models as tools. We provide an initial approach to failure recovery with promising results both on a controlled calculator setting and embodied agent planning.

Introduction

The current paradigm for augmenting Large Language Models (LLMs) with tools—such as calculators, search APIs, or object detectors—rests on a shaky assumption: that if a model provides the correct input to the correct tool, the output will be flawless. In reality, tools are often "learned" modules or interact with unpredictable environments, leading to "silent failures."

A silent failure occurs when a tool produces a technically valid but factually incorrect result (e.g., an object detector labeling a tomato as an apple). Because there is no explicit error message, LLMs often blindly incorporate these "hallucinations" into their reasoning, leading to a cascade of errors. This research categorizes these failures and evaluates whether LLMs can be prompted to "doubt" their tools.

A Taxonomy of Tool Errors

To systematically study these failures, we propose a formal taxonomy based on three primary components:

  1. Input ($i$): Errors arising from the LLM providing malformed or ambiguous arguments.
  2. Context ($c$): Errors due to partial observability or noisy environmental data.
  3. Tool ($t_\theta$): Errors inherent to the tool itself, such as a biased model or an imperfect database.

Experimental Methodology

We evaluated the ability of five state-of-the-art LLMs (including GPT-4, Gemini 1.5, and Command-R+) to detect errors using an Accept/Reject task. To improve detection, we tested four in-context intervention strategies:

  • Oblivious: A baseline where the model is told nothing about potential tool failure.
  • Disclaimer: A simple warning that the tool can sometimes provide incorrect answers.
  • Confidence: Providing the model with a numerical confidence score for the tool's output.
  • Checklist: Providing a set of heuristics to verify the output (e.g., "Is the last digit correct?").

Evaluation Environments

  • Broken Calculator: A controlled environment using 300 math equations. We intentionally introduced three types of perturbations: Digit replacement (25 → 21), Magnitude shifts (25 → 205), and Sign inversion (25 → -25).
  • ALFRED (Action Learning From Realistic Environments and Directives): A naturalistic setting involving an embodied agent. We evaluated an Object Detector (MaskRCNN) and an Action Planner using trajectories from the ALFRED validation set to capture realistic multimodal errors.

Key Insights

The "Supervisor" Capability

One of the most striking findings is that LLMs can often detect a tool's mistake even when they are unable to generate the correct answer themselves. This suggests that LLMs can serve as effective high-level "meta-reasoners" or supervisors for a chain of specialized tools.

Overtrust and Sycophancy

Without intervention, models exhibit high "sycophancy," often hallucinating justifications for why a clearly wrong tool output must be correct. This default overtrust is a significant barrier to reliable tool integration.

Symbolic vs. Numeric Sensitivity

Models are much better at spotting "blatant" symbolic errors, such as a flipped sign, than subtle numeric ones. This is likely linked to how LLMs tokenize numbers, making them less sensitive to specific digit placements.

The Power of Checklists

Simply giving the model a "mental checklist" of what a correct answer should look like was one of the most effective ways to break the cycle of overtrust, significantly boosting detection rates.

Results

  • Performance Impact: In the Broken Calculator task, tool failure caused model accuracy to plummet by as much as 47% compared to a no-tool baseline.
  • Intervention Success: Adding a simple disclaimer or checklist boosted the models' ability to notice and correct mistakes by up to 30%.
  • Model Scaling: Larger models (GPT-4, Gemini 1.5 Pro) were significantly more robust. While smaller models like GPT-3.5 were easily fooled, larger models detected errors in the majority of cases, even for problems they could not solve independently.
  • Embodied AI: On the ALFRED task, GPT-4o and Gemini reached F1 scores of 60-70 in detecting planner and detector errors when prompted with raised awareness.

Limitations and Future Work

This study focused primarily on closed-source, top-tier models; the behavior of smaller, open-source models fine-tuned for tool-use remains an open question. Additionally, the ALFRED-based dataset was relatively small (roughly 700 samples).

While this work focuses on Detection, future research must tackle Fault Assignment (identifying which tool in a chain failed) and Recovery Planning (how the model should pivot once an error is detected).

Summary updated

BibTeX
@inproceedings{sun2024tools,
  author = {Jimin Sun and So Yeon Min and Yingshan Chang and Yonatan Bisk},
  title = {{Tools Fail: Detecting Silent Errors in Faulty Tools}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=FUA7ZAWfwY},
}
Figure