Detecting Errors through Ensembling Prompts (DEEP): An End-to-End LLM Framework for Detecting Factual Errors

Alex Chandler, Devesh Surve, Hui SuEMNLP 2024

Abstract

The "hallucination" problem in Large Language Model (LLM) summarization remains a significant barrier to reliable deployment. While existing factual consistency metrics exist, they often suffer from semantic blindness or extreme sensitivity to dataset-specific thresholding. This paper presents DEEP (Detecting Errors through Ensembling Prompts), a robust, end-to-end framework that combines diverse LLM prompting with automated label ensembling and probability calibration. Our results demonstrate that DEEP achieves state-of-the-art performance across four major benchmarks—AggreFact-XSUM, HaluEval, and TofuEval—outperforming both traditional encoder-based models and single-prompt LLM solutions without requiring manual tuning.

Introduction

As Large Language Models (LLMs) like GPT-4 become standard for text summarization, they introduce a persistent challenge: hallucinations. These models often produce summaries that are linguistically fluent but factually incorrect. Current detection methods generally fall into two categories: traditional overlap metrics (e.g., ROUGE, BLEU) which are semantically blind, and encoder-based models (e.g., RoBERTa-based) which are logically capable but brittle.

A critical flaw in existing encoder-based State-of-the-Art (SOTA) models is the "Threshold Trap." These models produce numerical scores that require a specific threshold to classify a summary as consistent or inconsistent. Research often reports performance based on "optimal" thresholds tuned post-hoc for specific datasets. In real-world applications, these thresholds vary wildly across datasets, and using a sub-optimal threshold causes performance to plummet.

The DEEP Framework

To address these limitations, we propose DEEP (Detecting Errors through Ensembling Prompts), a three-stage automated pipeline designed for robust factual error detection.

The DEEP framework pipeline: from context and summary input to calibrated factual consistency probability.
  1. Diverse Prompting: Instead of a single prompt, DEEP utilizes a pool of diverse LLM prompts. These include Chain-of-Thought reasoning, specific error-type focus (e.g., numerical inconsistencies), and strict classification prompts.
  2. Ensembling: The binary outputs from these prompts are treated as features for an ensembling model. We evaluated various methods, finding that Snorkel’s LabelModel—which combines noisy labels without large training sets—is particularly effective at weighting prompts based on agreement patterns.
  3. Calibration: To mitigate LLM overconfidence, DEEP employs Platt Scaling. This transforms ensemble scores into reliable probabilities, ensuring the model's confidence aligns with its empirical accuracy.

Experimental Evaluation

We evaluated DEEP across four challenging benchmarks:

  • AggreFact-XSUM FTSOTA: Annotated factual inconsistencies in XSUM summaries.
  • HaluEval Summarization: A large-scale hallucination assessment benchmark.
  • TofuEval (MediaSum & MeetingBank): Challenging topic-focused dialogue summarization.

Results and Discussion

DEEP achieved new SOTA balanced accuracy across all tested benchmarks without any dataset-specific fine-tuning.

Comparison of DEEP (LLM Ensembles) against Encoder Models and individual LLM solutions across four benchmarks.

Key findings include:

  • Superior Performance: On AggreFact-XSUM, DEEP reached 71.9% balanced accuracy, surpassing the previous best encoder model, AlignScore (70.2%). On TofuEval MeetingBank, DEEP achieved 79.7% accuracy, a 6.5% improvement over the best individual prompt.
  • Wisdom of the Crowds: Ensembling as few as three diverse prompts consistently outperformed the single best prompt, suggesting that different engineering techniques capture distinct types of hallucinations.
  • Robustness: Unlike encoder models, DEEP's performance remains stable across datasets because it learns to weight prompts rather than relying on fragile numerical cutoffs.

Limitations and Future Work

While effective, DEEP involves higher cost and latency due to multiple LLM calls per summary. Future work will explore multi-lingual hallucination detection and investigate the underlying mechanics of threshold sensitivity in encoder models, such as the impact of summary length or error density.

Summary updated

BibTeX
@inproceedings{chandler2024detecting,
  author = {Alex Chandler and Devesh Surve and Hui Su},
  title = {{Detecting Errors through Ensembling Prompts (DEEP): An End-to-End LLM Framework for Detecting Factual Errors}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.728},
}
Figure