Rethinking LLM Uncertainty: A Multi-Agent Approach to Estimating Black-Box Model Uncertainty

Feng Yu, Phu Mon Htut, Qi Zheng, Wei Xiao, Manuel Mager, Nikolaos Pappas, Kishaloy Halder, Li Yang, Yassine Benajiba, Dan Roth · DOI

Abstract

Quantifying uncertainty in black-box LLMs is vital for reliable responses and scalable oversight. Existing methods, which gauge a model's uncertainty through evaluating self-consistency in responses to the target query, can be misleading: an LLM may confidently provide an incorrect answer to a target query, yet give a confident and accurate answer to that same target query when answering a knowledge-preserving perturbation of the query. We systematically analyze the model behaviors and demonstrate that this discrepancy stems from suboptimal retrieval of parametric knowledge, often due to contextual biases that prevent consistent access to stored knowledge. We then introduce DiverseAgentEntropy, a novel, theoretically-grounded method employing multi-agent interaction across diverse query variations for uncertainty estimation of black-box LLMs. This approach more accurately assesses an LLM's true uncertainty and improves hallucination detection, outperforming existing self-consistency based techniques.

Introduction

As we increasingly rely on proprietary "black-box" models via APIs, we lose access to internal model states (like log-probabilities) that help estimate confidence. Current black-box uncertainty methods typically rely on Self-Consistency: asking the same question multiple times and checking if the answers match.

However, LLMs are often "confidently wrong" not because they lack knowledge, but because specific phrasings trigger Contextual Biases. A model might have the correct information stored in its parameters but fail to retrieve it because of how a specific question is worded. In these cases, the model might consistently provide the same wrong answer to a single query, leading standard uncertainty metrics to report high confidence in a hallucination. The core challenge is distinguishing between a model that truly doesn't know an answer and one that is simply being tripped up by a specific prompt.

Methodology: DiverseAgentEntropy

The proposed DiverseAgentEntropy framework treats uncertainty estimation as a collaborative multi-agent problem. Instead of asking the same question $N$ times, the system probes the model's internal knowledge through interaction and variation.

The DiverseAgentEntropy workflow: Agents first answer diverse query variations independently, then engage in 1-1 interactions to resolve discrepancies and calculate a final uncertainty score based on multi-agent entropy.

The framework follows a structured pipeline:

  1. Diverse Query Generation: The system generates $N$ diverse variations of the target query, including semantically equivalent rephrasings and questions from different perspectives that require the same underlying parametric knowledge.
  2. Multi-Agent Interaction: Each query variation is assigned to a separate agent. These agents engage in multiple rounds of one-on-one "cross-play" interactions, refining their answers based on peer feedback.
  3. Uncertainty Calculation: The final uncertainty score is derived from a weighted entropy of the agents' final responses. Weights are determined by agent stability; agents that frequently changed their minds are assigned lower weights, as their initial responses were likely less reliable.
  4. Abstention Policy: If the calculated uncertainty exceeds a specific threshold, the model abstains from answering to avoid potential hallucinations.

Experimental Results

The researchers evaluated the method across diverse benchmarks including PopQA (long-tail knowledge), FalseQA (incorrect premises), TruthfulQA (misconceptions), and FreshQA (recent facts) using Llama-3-70B and Claude-3-Sonnet.

AUROC scores for uncertainty estimation across various benchmarks. DiverseAgentEntropy (Agent) consistently outperforms standard Self-Consistency (SC) baselines across all tested datasets and models.

Key findings include:

  • Superior Calibration: DiverseAgentEntropy consistently outperformed state-of-the-art self-consistency baselines (like Semantic Entropy) in AUROC, particularly on realistic benchmarks like FreshQA (+7.5%) and TruthfulQA (+5.2%).
  • Retrieval vs. Knowledge: The results demonstrate that many hallucinations are "retrieval failures." If a model truly knows a fact, agents starting from different biased phrasings will eventually converge on the truth after interacting.
  • Interaction as a Diagnostic: The dynamics of the multi-agent debate—how easily agents converge or how much they vacillate—serve as a powerful signal for the model's true underlying uncertainty.

Conclusion and Future Work

While DiverseAgentEntropy requires more computational resources (roughly 5x more API calls than standard sampling), it provides a significantly more robust measure of LLM reliability. Future work will focus on extending this approach to long-form generation and integrating multi-agent deliberation into Retrieval-Augmented Generation (RAG) settings to help models resolve conflicting information.

Summary updated

BibTeX
@misc{yu2024rethinking,
  author = {Feng Yu and Phu Mon Htut and Qi Zheng and Wei Xiao and Manuel Mager and Nikolaos Pappas and Kishaloy Halder and Li Yang and Yassine Benajiba and Dan Roth},
  title = {{Rethinking LLM Uncertainty: A Multi-Agent Approach to Estimating Black-Box Model Uncertainty}},
  year = {2024},
  eprint = {2412.09572},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.09572},
}
Figure