DAMRO: Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination

Xuan Gong, Tianshi Ming, Xinpeng Wang, Zhihua Wei · DOI

Abstract

Large Vision-Language Models (LVLMs) frequently suffer from object hallucination, where they describe objects not present in the input image. While previous research has focused on language priors or vision-language alignment, this paper introduces DAMRO (Dive into Attention Mechanism of LVLM to Reduce Object Hallucination). DAMRO is a training-free, inference-time intervention that identifies and suppresses "outlier tokens"—redundant background patches that distract the model's attention. By leveraging contrastive decoding, DAMRO encourages the model to focus on actual object-related tokens, significantly reducing hallucinations across multiple benchmarks.

Introduction

Despite the rapid advancement of models like LLaVA and InstructBLIP, the tendency to generate hallucinatory content remains a significant hurdle for reliable deployment. Traditional explanations for these errors often point to biased training data (language priors) or the "bottleneck" of vision-language projection. However, recent investigations suggest that the internal attention mechanisms of these models may be fundamentally misguided.

This research identifies a specific culprit: high-norm "outlier tokens" generated by the Vision Transformer (ViT) encoder. These tokens typically correspond to background regions and contain redundant global information. Because the Large Language Model (LLM) "brain" of the system over-attends to these outliers during text generation, it often produces incorrect descriptions. DAMRO addresses this by intervening in the attention process without requiring additional training or fine-tuning.

Methodology

DAMRO operates through a novel application of contrastive decoding, focusing on the relationship between the ViT's visual features and the LLM's generation process. The method follows a three-step pipeline:

1. Outlier Token Selection

In the final layers of the ViT encoder, a special [CLS] token aggregates global information. The researchers observed that the [CLS] token tends to attend most heavily to specific background patches, known as "registers." DAMRO identifies the top $k$ image tokens that receive the highest attention from the [CLS] token, marking them as outliers that likely contribute to noisy or redundant signaling.

2. Contrastive Decoding

During the text generation phase, DAMRO calculates two distinct sets of probabilities (logits) for the next token:

  • Standard Logits: The standard output based on the full set of visual and textual information.
  • Negative Logits: A distribution calculated by forcing the model to rely primarily on the identified outlier tokens.

3. Suppression and Adaptive Constraint

By subtracting the negative influence of the outlier tokens from the standard logits, DAMRO penalizes the model for relying on background noise. This forces the LLM to derive its next word from the remaining tokens—those more likely to represent actual objects in the scene. To maintain linguistic fluency, an Adaptive Constraint is applied, ensuring the model does not select tokens that were highly improbable in the original distribution, thus preventing nonsensical outputs.

Experimental Evaluation

The effectiveness of DAMRO was evaluated using several prominent LVLMs, including LLaVA-1.5, LLaVA-NeXT, and InstructBLIP, across a variety of hallucination-focused benchmarks:

  • POPE (Polling-based Object Probing Evaluation): Measures the model's ability to confirm the existence of objects in Random, Popular, and Adversarial scenarios.
  • CHAIR (Caption Hallucination Assessment with Image Relevance): Quantifies hallucinations in free-form descriptions at both the sentence level ($C_S$) and individual object level ($C_I$).
  • MME (Multimodal Large Language Model Evaluation): A comprehensive benchmark testing existence, counting, position, and color.
  • GPT-4V Aided Evaluation: Utilizes GPT-4V as an objective judge to score the accuracy and detail of the generated responses.

Key Results and Insights

DAMRO consistently outperformed both baseline models and existing state-of-the-art hallucination reduction techniques like VCD and M3ID.

Quantitative Performance

On the LLaVA-1.5 model, DAMRO achieved an accuracy of 85.31% on the POPE benchmark, surpassing the original model's 82.08%. The most dramatic improvement was seen in the CHAIR benchmark, where the sentence-level hallucination rate ($C_S$) dropped from 12.4 to 6.0—a reduction of nearly 50%. Furthermore, the MME total score for LLaVA-1.5 rose from 536.60 to 593.27, indicating a broad improvement in multimodal understanding.

The "Register" Phenomenon

The study confirms that ViTs naturally create "registers"—high-norm tokens in empty background areas. While these registers may help the ViT store global information, they act as distractors for the LLM decoder. DAMRO's success stems from its ability to mitigate this "attention consistency" error, where both the vision and language components fixate on the same non-informative patches.

Architectural Sensitivity

Ablation studies revealed that while DAMRO is highly effective for MLP-based projection models (like LLaVA), it showed more modest improvements on models using a Q-Former (like InstructBLIP). This suggests that the specific way vision and language are aligned influences how much the model relies on outlier tokens.

Conclusion

DAMRO provides a powerful, training-free solution to one of the most persistent issues in LVLM development. By identifying and suppressing the influence of background outlier tokens, DAMRO realigns the model's attention toward meaningful visual objects. This results in descriptions that are not only more accurate but also more detailed, paving the way for more reliable multimodal AI systems.

Summary updated

BibTeX
@inproceedings{gong2024damro,
  author = {Xuan Gong and Tianshi Ming and Xinpeng Wang and Zhihua Wei},
  title = {{DAMRO: Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.439},
}
Figure