Uncertainty-Aware Fusion: An Ensemble Framework for Mitigating Hallucinations in Large Language Models

Prasenjit Dey, Srujana Merugu, Sivaramakrishnan R. KaveriWWW 2025 · DOI

Introduction

Large Language Models (LLMs) have revolutionized natural language processing, yet they remain prone to "hallucinations"—generating non-factual or nonsensical information. While various techniques like internal editing or standard ensemble methods exist, they often fail to account for the varying expertise and self-assessed confidence of individual models across different tasks. This paper introduces Uncertainty-Aware Fusion (UAF), a novel framework that leverages the "wisdom of the crowd" by strategically selecting and fusing model outputs based on their internal uncertainty.

The Uncertainty-Aware Fusion (UAF) Framework

The UAF framework addresses the gap in existing ensemble methods by incorporating model self-assessment into the selection process. It operates in two primary stages:

  1. SELECTOR: This component identifies the most reliable subset of $K$ models from a larger pool. Unlike simple accuracy-based selection, the SELECTOR evaluates models on a validation set using a "Combined Score" that balances raw task accuracy with the model's ability to self-assess (i.e., how well its uncertainty scores correlate with actual errors).
  2. FUSER: For each new input, the FUSER gathers responses and uncertainty metrics from the selected $K$ models. The final output is chosen by maximizing a selection criterion: $Accuracy \times (1 - Uncertainty)$.
The UAF framework architecture, illustrating the SELECTOR and FUSER stages.

The authors explored three uncertainty measures: Perplexity (log-probability), Semantic Entropy (clustering phrasings), and Haloscope (specialized hallucination detection).

Experimental Evaluation

The framework was benchmarked against three major datasets: TruthfulQA (designed to elicit human-like falsehoods), TriviaQA (reading comprehension), and FACTOR-news (factual consistency in news). The model pool consisted of diverse open-source LLMs, including Llama-2-13B, Llama-3.2-3B, Alpaca, Vicuna, Mistralv3-7B, and Opt-13B.

Key Results and Performance

UAF demonstrates significant improvements over state-of-the-art hallucination mitigation techniques. Notably, on the TruthfulQA benchmark, UAF using the Haloscope measure achieved an accuracy of 60.8%, surpassing the reported performance of GPT-4 (59%).

Comparative performance of UAF against various baselines and GPT-4 across three benchmarks.

Beyond beating GPT-4, UAF outperformed other mitigation strategies like DoLa and TruthX by an average of 8% in factual accuracy. The results indicate that even with simpler uncertainty measures like Perplexity, the ensemble remains robust and superior to individual models or standard majority-voting ensembles.

Insights into Model Behavior

The study revealed several critical insights:

  • Expertise is Distributed: No single model is the best for every query. Even the top-performing Mistralv3-7B only provided the most confident correct answer in 18% of cases, highlighting the value of an ensemble.
  • Internal Truthfulness: LLMs possess an internal sense of their own accuracy. Most models showed high AUROC scores for hallucination detection, confirming that internal uncertainty is a reliable signal for identifying factual errors.
  • Optimal Ensemble Size: Performance peaks with a "lean" team of 3–5 models. Including too many models can introduce noise and degrade overall accuracy.

Limitations and Future Directions

While effective, UAF introduces inference overhead as it requires running multiple models per query. Future work aims to transition from static task-level selection to Dynamic Selection, where the framework chooses the best models for each individual question. Additionally, optimizing the computational cost of complex uncertainty measures like Semantic Entropy remains a priority for real-time applications.

Summary updated

BibTeX
@inproceedings{dey2025uncertainty,
  author = {Prasenjit Dey and Srujana Merugu and Sivaramakrishnan R. Kaveri},
  title = {{Uncertainty-Aware Fusion: An Ensemble Framework for Mitigating Hallucinations in Large Language Models}},
  booktitle = {The Web Conference},
  year = {2025},
  doi = {10.1145/3701716.3715523},
}
Figure