Evaluating LLMs at Detecting Errors in LLM Responses

Ryo Kamoi, Sarkar Snigdha Sarathi Das, Renze Lou, Jihyun Janice Ahn, Yilun Zhao, Xiaoxin Lu, Nan Zhang, Yusen Zhang, Haoran Ranran Zhang, Sujeeth Reddy Vummanthala, Salika Dave, Shaobo Qin, Arman Cohan, Wenpeng Yin, Rui Zhang

TL;DR

This paper introduces ReaLMistake, the first benchmark for evaluating LLM error detection capabilities on objective, realistic, and diverse errors. They found that even top LLMs struggle to detect errors with high recall, and their explanations are unreliable, highlighting a significant gap in current LLM evaluation.

What Problem Does This Paper Address?

As Large Language Models (LLMs) become more integrated into various applications, ensuring the accuracy and reliability of their outputs is paramount. However, automatically detecting errors in LLM responses is a surprisingly under-researched area. Existing benchmarks often rely on subjective tasks or focus on limited error types, making them unsuitable for evaluating robust error detection systems. This lack of a comprehensive benchmark hinders progress in developing LLMs that can reliably identify and flag their own mistakes, which is crucial for safe and trustworthy AI deployment.

Methods

The core contribution is the ReaLMistake benchmark, designed to elicit objective, realistic, and diverse errors from LLMs. This benchmark comprises three novel tasks: Math Word Problem Generation, Fine-grained Fact Verification, and Answerability Classification. These tasks were specifically crafted to allow for objective error annotation across four categories: reasoning correctness, instruction-following, context-faithfulness, and parameterized knowledge. The authors then used this benchmark to evaluate 12 different LLMs as error detectors, employing zero-shot prompting. They also investigated the impact of prompt variations and explored common techniques like self-consistency and majority voting for improving error detection performance.

Datasets

The paper introduces the ReaLMistake benchmark, a newly created dataset for evaluating LLM error detection. It consists of 900 instances with expert annotations on responses from GPT-4 and Llama 2 70B. The benchmark is built upon existing datasets like AQuA, WiCE, and HotpotQA, but significantly adapted to ensure objective and diverse error collection.

Key Insights and Ideas

  • The "Error Detection Gap": Even state-of-the-art LLMs like GPT-4 and Claude 3 exhibit very low recall when tasked with detecting errors in other LLMs' outputs. This suggests a fundamental limitation in their ability to self-critique.
  • Subjectivity is the Enemy of Benchmarking: The paper strongly emphasizes that tasks requiring subjective judgment (like summarization quality) are ill-suited for evaluating objective error detection. ReaLMistake's success hinges on tasks with clear, verifiable criteria.
  • Explanations are Unreliable: LLM-generated explanations for detected errors are often inaccurate or incomplete, even when the binary error prediction is correct. This undermines their utility for debugging or understanding model failures.
  • Prompt Sensitivity, Not Performance Boost: While error detection performance is sensitive to minor prompt changes (wording, option order), these changes don't lead to significant improvements, especially for strong models. This indicates that prompt engineering alone is insufficient to overcome the core challenge.
  • Standard Improvement Techniques Fall Short: Popular methods like self-consistency and majority voting, which work well for other LLM evaluation tasks, do not improve error detection performance on ReaLMistake. This suggests that error detection requires fundamentally different approaches.

Key Results

  • Low Recall is Pervasive: Top LLMs like GPT-4 and Claude 3 achieve very low recall (missing many actual errors) on the ReaLMistake benchmark. For instance, on the Fine-grained Fact Verification task, GPT-4's recall was notably low.
  • LLMs Lag Behind Humans: All LLM-based error detectors performed significantly worse than human annotators.
  • Prompt Engineering Has Limited Impact: While recall is sensitive to prompt wording and option order, the improvements are marginal and don't consistently boost performance, especially for strong models.
  • No Improvement from Standard Techniques: Self-consistency and majority vote methods did not yield any significant improvement in error detection performance.

Limitations and Future Work

The authors acknowledge that ReaLMistake focuses on objective errors. They suggest that future work should explore evaluating error detectors on ambiguous errors, which are prevalent in many real-world NLP tasks. This would likely involve collecting annotations from multiple annotators to derive average error scores, posing challenges in terms of annotation cost and methodology. They also highlight the need for further research to develop more effective methods for LLM-based error detection, as current techniques are insufficient.

Summary updated

BibTeX
@inproceedings{kamoi2024evaluating,
  author = {Ryo Kamoi and Sarkar Snigdha Sarathi Das and Renze Lou and Jihyun Janice Ahn and Yilun Zhao and Xiaoxin Lu and Nan Zhang and Yusen Zhang and Haoran Ranran Zhang and Sujeeth Reddy Vummanthala and Salika Dave and Shaobo Qin and Arman Cohan and Wenpeng Yin and Rui Zhang},
  title = {{Evaluating LLMs at Detecting Errors in LLM Responses}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=dnwRScljXr},
}
Figure