Mixture of Decoding: An Attention-Inspired Adaptive Decoding Strategy to Mitigate Hallucinations in Large Vision-Language Models

Xinlong Chen, Yuanxing Zhang, Qiang Liu, Junfei Wu, Fuzheng Zhang, Tieniu Tan

Abstract

Hallucinations remain a significant challenge for Large Vision-Language Models (LVLMs), often stemming from language prior biases or erroneous visual attention. We present Mixture of Decoding (MoD), a training-free adaptive strategy that mitigates these hallucinations by dynamically switching between amplifying and contrasting visual information. By utilizing Jensen-Shannon (JS) divergence as a proxy for attention reliability, MoD achieves state-of-the-art performance across multiple benchmarks, including POPE, MME, and CHAIR, without requiring additional fine-tuning.

Introduction

While LVLMs like LLaVA and Qwen-VL demonstrate remarkable capabilities, they frequently generate "hallucinations"—descriptions of objects or attributes absent from the input image. These errors typically arise from two primary sources: Language Prior Bias, where the model over-relies on learned linguistic patterns, and Visual Bias, where the model focuses on irrelevant or misleading image regions.

Existing contrastive decoding methods attempt to counteract these biases by comparing standard outputs with those from "hallucination-prone" inputs (e.g., blurred images). However, these static approaches can inadvertently weaken correct signals when the model's attention is actually accurate. The fundamental challenge lies in determining when to trust the model's internal attention mechanisms and when to intervene.

The Mixture of Decoding (MoD) Framework

MoD introduces an adaptive mechanism that performs a real-time "sanity check" on the model's attention for every generated token. Unlike static methods, MoD adjusts its behavior based on the perceived reliability of the model's focus.

1. Identifying Attended Tokens

For each token, MoD identifies the top 20% ($\lambda=0.2$) of image tokens receiving the highest attention across all layers and heads. This subset represents the model's "focused" view of the scene.

2. The Consistency Check via JS Divergence

The model generates two sets of logits: one using the full image and another using only the attended tokens. MoD then calculates the Jensen-Shannon (JS) divergence between these two distributions. A low divergence suggests the model's focus is consistent with the global context, while a high divergence indicates potential attention on misleading information.

3. Adaptive Decoding Strategy

Based on the JS divergence ($D_{JS}$), MoD applies one of two strategies:

  • Complementary Strategy (Low Divergence, $D_{JS} \le \gamma$): If the views are consistent, MoD adds the attended signal to the original logits, amplifying the correctly identified visual information.
  • Contrastive Strategy (High Divergence, $D_{JS} > \gamma$): If the views disagree, MoD subtracts the attended signal, suppressing the misleading information caused by erroneous attention.
The MoD pipeline illustrating adaptive switching between complementary and contrastive decoding based on attention reliability.

Empirical Motivation: JS Divergence as a Hallucination Proxy

The development of MoD was motivated by the discovery of a strong correlation between attention inconsistency and hallucination rates. Analysis reveals a Pearson correlation of 0.85 between JS divergence and the CHAIR metric (a measure of hallucinated objects). As shown in the data, hallucinated outputs consistently exhibit higher JS divergence compared to non-hallucinated ones, validating the use of divergence as a reliable trigger for corrective decoding.

Distribution of JS divergence for hallucinated vs. non-hallucinated outputs and its correlation with the CHAIR metric.

Experimental Results

MoD was evaluated across four major benchmarks: POPE, MME, CHAIR, and AMBER. It consistently outperformed existing state-of-the-art (SOTA) methods such as VCD, M3ID, and AvisC.

  • POPE: MoD improved Accuracy by up to 3.1 points and F1 score by 4.1 points over the next best method.
  • MME: Significant gains were observed in total scores, notably for LLaVA-1.5 (+41.6 points) and LLaVA-NEXT (+40.0 points).
  • CHAIR: In free-form captioning, MoD reduced the instance-level hallucination rate (CHAIRi) for LLaVA-1.5 from 15.9% to 12.4%.

These results demonstrate that MoD effectively leverages the model's own attention signals to refine its output, providing a robust, training-free solution for various LVLM architectures.

Discussion and Limitations

While MoD offers substantial improvements in accuracy, it introduces additional computational overhead. Because it requires two forward passes per token (full image vs. masked image), inference time is approximately doubled. Furthermore, the current masking strategy can occasionally impact spatial reasoning (e.g., positional tasks in MME) by removing global context. Future work will explore "soft masking" techniques to maintain better spatial awareness while retaining the benefits of adaptive focus.

Conclusion

Mixture of Decoding represents a significant step forward in making LVLMs more reliable. By recognizing that attention is a "double-edged sword," MoD provides a principled way to amplify correct visual signals and suppress misleading ones, all without the need for costly re-training.

Summary updated

BibTeX
@inproceedings{chen2025mixture,
  author = {Xinlong Chen and Yuanxing Zhang and Qiang Liu and Junfei Wu and Fuzheng Zhang and Tieniu Tan},
  title = {{Mixture of Decoding: An Attention-Inspired Adaptive Decoding Strategy to Mitigate Hallucinations in Large Vision-Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure