Seeing Far and Clearly: Mitigating Hallucinations in MLLMs with Attention Causal Decoding

Feilong Tang, Chengzhi Liu, Zhongxing Xu, Ming Hu, Zelin Peng, Zhiwei Yang, Jionglong Su, Minquan Lin, Yifan Peng, Xuelian Cheng, Imran Razzak, Zongyuan Ge

Abstract

Recent advancements in multimodal large language models (MLLMs) have significantly improved performance in visual question answering. However, they often suffer from hallucinations. In this work, hallucinations are categorized into two main types: initial hallucinations and snowball hallucinations. We argue that adequate contextual information can be extracted directly from the token interaction process. Inspired by causal inference in the decoding strategy, we propose to leverage causal masks to establish information propagation between multimodal tokens. The hypothesis is that insufficient interaction between those tokens may lead the model to rely on outlier tokens, overlooking dense and rich contextual cues. Therefore, we propose to intervene in the propagation process by tackling outlier tokens to enhance in-context inference. With this goal, we present FarSight, a versatile plug-and-play decoding strategy to reduce attention interference from outlier tokens merely by optimizing the causal mask. The heart of our method is effective token propagation. We design an attention register structure within the upper triangular matrix of the causal mask, dynamically allocating attention to capture attention diverted to outlier tokens. Moreover, a positional awareness encoding method with a diminishing masking rate is proposed, allowing the model to attend to further preceding tokens, especially for video sequence tasks. With extensive experiments, FarSight demonstrates significant hallucination-mitigating performance across different MLLMs on both image and video benchmarks, proving its effectiveness.

Introduction

Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in bridging the gap between vision and language. However, their tendency to "hallucinate"—generating descriptions of objects or events not present in the visual input—remains a critical barrier to deployment. These hallucinations are typically categorized into two stages: initial hallucinations, where the model makes a factual error early in the generation, and snowball hallucinations, where the model generates subsequent false information to maintain internal consistency with its initial error.

This research identifies two primary technical drivers of these errors: Attention Collapse and Positional Information Decay. By addressing these through a novel, training-free decoding strategy called FarSight, we can significantly improve the grounding of MLLMs in their visual context.

The Mechanics of Hallucination

Attention Collapse and Outlier Tokens

The standard attention mechanism in Transformers utilizes a Softmax function, which requires attention scores to sum to one. In multimodal contexts, this often forces the model to allocate disproportionate attention to "outlier tokens"—such as punctuation marks or background pixels—that carry minimal semantic weight. When these outliers drown out the actual subject matter, the model loses its visual grounding, leading to initial hallucinations.

Positional Information Decay

Most modern MLLMs employ Rotary Positional Encoding (RoPE), which is mathematically biased toward nearby tokens. While effective for local linguistic coherence, this causes a decay in the model's "focus" on the original visual tokens as the generated text grows longer. In long-form generation or video tasks, the model effectively "forgets" the visual evidence it is supposed to be describing.

The FarSight Approach

FarSight is a plug-and-play decoding strategy that modifies the causal mask during inference. It requires no additional training or fine-tuning, making it compatible with a wide range of existing architectures.

1. Attention Registers

FarSight introduces "attention registers" by utilizing the upper triangular portion of the attention matrix, which is typically masked out (set to zero) in auto-regressive decoding. These registers act as a semantic "buffer" or "junk drawer." By allowing the model to divert excess attention scores to these registers, FarSight prevents outlier tokens from dominating the attention budget. This ensures that the primary attention mechanism in the lower triangle remains focused on semantically rich visual and textual tokens.

2. Positional Awareness Encoding

To combat information decay, FarSight implements a progressively diminishing masking rate. This adjustment allows the model to maintain a more stable and robust connection to distant preceding tokens—specifically the initial image or video frames—even as the sequence length increases. This is particularly vital for video-based tasks where temporal context must be preserved over hundreds of tokens.

3. Preserving Causal Integrity

While FarSight utilizes the upper triangle for attention registration, it maintains the fundamental logic of auto-regressive decoding. The register values are cleared before the final output, ensuring that no information from "future" tokens leaks into the current prediction, thus preserving the causal integrity of the model.

Experimental Results

The researchers evaluated FarSight across a broad spectrum of benchmarks using models such as LLaVA-1.5, InstructBLIP, VILA, and Video-LLaVA.

  • Hallucination Mitigation: On the CHAIR benchmark, which specifically measures object hallucination, FarSight improved LLaVA-1.5's performance by +6.4% and Video-LLaVA's by +5.4%.
  • General Capability: The strategy provided an average accuracy gain of +2% across standard VQA tasks (MMBench, MM-Vet).
  • Video Understanding: In zero-shot video understanding tasks (MSRVTT-QA), FarSight achieved a peak accuracy improvement of +3%, demonstrating its efficacy in maintaining long-term temporal context.

Qualitative analysis via heatmap visualizations confirmed that while baseline models often saw their attention "collapse" onto punctuation or background noise, FarSight-equipped models maintained sharp, consistent focus on relevant visual objects throughout the entire generation process.

Conclusion

FarSight offers a computationally efficient and versatile solution to the hallucination problem in MLLMs. By reimagining the causal mask as a dynamic tool for attention management rather than a static constraint, FarSight enables models to "see" more clearly and maintain that clarity over longer sequences. Future work may involve integrating these register structures directly into the pre-training phase to further enhance the inherent robustness of multimodal architectures.

Summary updated

Abstract

Recent advancements in multimodal large language models (MLLMs) have significantly improved performance in visual question answering. However, they often suffer from hallucinations. In this work, hallucinations are categorized into two main types: initial hallucinations and snowball hallucinations. We argue that adequate contextual information can be extracted directly from the token interaction process. Inspired by causal inference in the decoding strategy, we propose to leverage causal masks to establish information propagation between multimodal tokens. The hypothesis is that insufficient interaction between those tokens may lead the model to rely on outlier tokens, overlooking dense and rich contextual cues. Therefore, we propose to intervene in the propagation process by tackling outlier tokens to enhance in-context inference. With this goal, we present FarSight, a versatile plug-and-play decoding strategy to reduce attention interference from outlier tokens merely by optimizing the causal mask. The heart of our method is effective token propagation. We design an attention register structure within the upper triangular matrix of the causal mask, dynamically allocating attention to capture attention diverted to outlier tokens. Moreover, a positional awareness encoding method with a diminishing masking rate is proposed, allowing the model to attend to further preceding tokens, especially for video sequence tasks. With extensive experiments, FarSight demonstrates significant hallucination-mitigating performance across different MLLMs on both image and video benchmarks, proving its effectiveness.
BibTeX
@inproceedings{tang2025seeing,
  author = {Feilong Tang and Chengzhi Liu and Zhongxing Xu and Ming Hu and Zelin Peng and Zhiwei Yang and Jionglong Su and Minquan Lin and Yifan Peng and Xuelian Cheng and Imran Razzak and Zongyuan Ge},
  title = {{Seeing Far and Clearly: Mitigating Hallucinations in MLLMs with Attention Causal Decoding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02435},
}
Figure