DebUnc: Mitigating Hallucinations in Large Language Model Agent Communication with Uncertainty Estimations

Luke Yoffe, Alfonso Amayuelas, William Yang Wang · DOI

Introduction

Large Language Models (LLMs) frequently exhibit "hallucinations"—generating factually incorrect information with high stylistic confidence. This issue is significantly exacerbated in multi-agent debate (MAD) frameworks. While MAD is designed to improve accuracy through collective reasoning, it often falls victim to "confidently incorrect" agents. If one agent asserts a wrong answer with high certainty, others frequently abandon their own correct reasoning to reach a false consensus.

The core of this problem is a "communication gap." Agents typically exchange only final text responses, lacking a reliable mechanism to signal their internal certainty. Traditional self-reflection (asking an LLM to "rate your confidence") is notoriously unreliable, as models often report high confidence even when hallucinating. This paper introduces DebUnc, a framework that integrates objective uncertainty metrics into the debate loop to ensure agents "listen" more to their most certain peers.

The DebUnc Framework

DebUnc addresses the communication gap by quantifying uncertainty using external metrics derived from the model's internal probability distributions. The framework operates in iterative rounds to refine answers through peer feedback weighted by certainty.

  1. Generation: Each agent produces an initial response to a prompt.
  2. Quantification: An external Uncertainty Metric (UM), such as Mean Token Entropy, calculates the agent's uncertainty based on the model's logits.
  3. Communication: This uncertainty value is shared with other agents in subsequent rounds to inform their updates.
The DebUnc framework illustrates the multi-round debate process where agent responses are paired with uncertainty metrics to inform subsequent rounds.

Attention Scaling: A Novel Communication Mechanism

The researchers explored two primary methods for communicating uncertainty. The first, Confidence in Prompt, involves converting uncertainty into a natural language scale (e.g., "Agent 2 is 8/10 confident") and appending it to the prompt text.

The second, and more innovative approach, is Attention Scaling. Instead of relying on the model to interpret text-based confidence, DebUnc modifies the Transformer’s internal architecture. By scaling the attention weights of tokens associated with specific agents based on their confidence levels (where Confidence = 1/Uncertainty), the framework programmatically forces the model to prioritize information from certain agents at the mathematical level of processing.

Attention Scaling modifies the internal attention mechanism by multiplying weights by confidence-derived values, effectively turning up the 'volume' on certain agents.

Two variants of scaling were tested:

  • Attn-Others: Scaling only the attention directed toward peer responses.
  • Attn-All: Scaling attention toward all responses, including the agent's own previous output. This was particularly effective for self-correction, allowing an agent to pivot if it realizes its previous round was high-uncertainty compared to its peers.

Experimental Setup and Results

DebUnc was evaluated using Mistral-7B and Llama-3-8B across four diverse benchmarks: MMLU (broad knowledge), GSM8k (math reasoning), TruthfulQA (misconceptions), and a custom Arithmetic set.

Key Findings

  • Architectural Bias vs. Prompting: Attention Scaling consistently outperformed text-based prompting. This suggests that LLMs are more responsive to "priority" signals embedded in their internal weights than to natural language instructions.
  • The "Oracle" Potential: To determine the theoretical ceiling of this approach, the authors used an "Oracle" metric with perfect knowledge of correctness. The results showed that with ideal uncertainty estimation, Mistral's debate accuracy could jump from 53% to 67%. This indicates that the primary bottleneck is the quality of current uncertainty estimators, not the debate logic itself.
  • Performance Gains: On Mistral-7B, standard debate accuracy of 0.53 was improved to 0.55 using Mean Token Entropy with Attention Scaling. While the immediate gain is modest, the strong linear correlation ($R^2 = 0.58$) between metric quality (AUROC) and final accuracy suggests significant future potential as uncertainty quantification improves.

Limitations and Future Directions

Despite its success, DebUnc has limitations. Attention Scaling is a "white-box" method, requiring access to internal weights and logits, which currently precludes its use with proprietary "closed" models like GPT-4 via standard APIs. Additionally, the unidirectional nature of Transformer attention makes the system sensitive to the order of agent responses, potentially allowing information from less confident agents to "leak" if they appear first in the prompt.

Future work will focus on developing "black-box" uncertainty metrics to extend DebUnc to proprietary models and exploring granular scaling that prioritizes specific segments of a response, such as critical formulas or facts, rather than the entire text block.

Summary updated

BibTeX
@inproceedings{yoffe2025debunc,
  author = {Luke Yoffe and Alfonso Amayuelas and William Yang Wang},
  title = {{DebUnc: Mitigating Hallucinations in Large Language Model Agent Communication with Uncertainty Estimations}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure