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

Xuan Gong, Tianshi Ming, Xinpeng Wang, Zhihua Wei

Abstract

Large Vision-Language Models (LVLMs) frequently suffer from object hallucination, where they describe objects not present in the input image. We introduce DAMRO (Dive into Attention Mechanism to Reduce Object Hallucination), a novel, training-free strategy designed to mitigate these errors. By identifying and suppressing "outlier tokens" in the visual encoder that distract the model with redundant background information, DAMRO forces the decoder to focus on fine-grained object details, significantly improving the reliability of generated text across multiple benchmarks.

The Problem: Distractor Tokens and Hallucination

Large Vision-Language Models (LVLMs) like LLaVA are impressive but frequently suffer from object hallucination. The authors pinpoint a specific architectural culprit: the Vision Transformer (ViT) used as the visual backbone. They discovered that ViT naturally produces a few "high-norm outlier tokens." These tokens usually correspond to background areas and contain globally redundant information.

The distribution of attention values across visual tokens reveals specific high-norm outlier tokens that distract the decoder.

Crucially, the Large Language Model (LLM) decoder tends to over-attend to these same "distractor" tokens. The paper demonstrates a strong correlation: when the LLM and the ViT both focus on these outliers, the likelihood of the model hallucinating an object increases. This "attention consistency" suggests that if the ViT is focused on empty space, the LLM will likely follow suit, leading it to invent objects (like a bird in an empty sky) to fill that space.

Methods: Visual Contrastive Decoding

DAMRO is a two-step, training-free approach that modifies the decoding logic to penalize background distractions:

  1. Outlier Token Selection: In the final layer of the ViT, the model uses the classification token ([CLS]) to attend to all other spatial tokens. DAMRO identifies the top-$k$ tokens that receive the highest attention from the [CLS] token, labeling them as "negative" or outlier tokens.
  2. Visual Contrastive Decoding: During text generation, the model calculates two sets of probabilities (logits) for the next word. The first is based on the full visual input. The second is based only on the identified outlier tokens (the "amateur" or "distracted" view). By subtracting the "distracted" distribution from the full distribution (using a weight $\alpha$), the model effectively penalizes the influence of the background outliers.
Overview of the DAMRO framework, illustrating the selection of Top-K outlier tokens and the contrastive decoding process.

This process forces the LLM to derive its next word from the remaining, more informative object-level tokens. An "adaptive plausibility constraint" is also used to ensure the resulting text remains linguistically coherent.

Key Results and Insights

DAMRO was evaluated across several standard benchmarks, including POPE (Yes/No probing), CHAIR (captioning relevance), and MME (multimodal evaluation). The results consistently outperformed both base models and existing state-of-the-art hallucination reduction methods:

  • Accuracy Gains: On LLaVA-1.5, DAMRO improved POPE accuracy from 82.08% to 85.31%.
  • Hallucination Reduction: In the CHAIR benchmark, the sentence-level hallucination rate ($C_S$) for LLaVA-1.5 dropped dramatically from 12.4 to 6.0.
  • Broad Improvements: On the MME benchmark, DAMRO improved scores across almost all categories (Existence, Count, Position, Color) for the LLaVA series.
  • Generalizability: The method proved effective across different architectures, including LLaVA-1.5, LLaVA-NeXT, and InstructBLIP.

Unlike many hallucination fixes that require expensive fine-tuning or external object detectors, DAMRO works "out of the box" by simply modifying the decoding logic, treating background tokens as a "negative prior" to steer the model away from common errors.

Limitations and Future Work

While DAMRO works well on MLP-based connectors (like LLaVA), its performance was slightly less consistent on models using Q-Formers (like InstructBLIP), particularly in spatial reasoning tasks. The authors suggest the unique structure of Q-Formers might require a more tailored outlier selection strategy. Additionally, while the work is driven by strong empirical observations of attention maps, further theoretical research is needed to understand why these specific outlier tokens emerge in ViT backbones.

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