Multi-Modal Hallucination Control by Visual Information Grounding

Alessandro Favero, Luca Zancato, Matthew Trager, Siddharth Choudhary, Pramuditha Perera, Alessandro Achille, Ashwin Swaminathan, Stefano Soatto · DOI

Abstract

Generative Vision-Language Models (VLMs) are prone to generate plausible-sounding textual answers that, however, are not always grounded in the input image. We investigate this phenomenon, usually referred to as “hallucination” and show that it stems from an excessive reliance on the language prior. In particular, we show that as more tokens are generated, the reliance on the visual prompt decreases, and this behavior strongly correlates with the emergence of hallucinations. To reduce hallucinations, we introduce Multi-Modal Mutual-Information Decoding (M3ID), a new sampling method for prompt amplification. M3ID amplifies the influence of the reference image over the language prior, hence favoring the generation of tokens with higher mutual information with the visual prompt. M3ID can be applied to any pre-trained autoregressive VLM at inference time without necessitating further training and with minimal computational overhead. If training is an option, we show that M3ID can be paired with Direct Preference Optimization (DPO) to improve the model's reliance on the prompt image without requiring any labels. Our empirical findings show that our algorithms maintain the fluency and linguistic capabilities of pre-trained VLMs while reducing hallucinations by mitigating visually ungrounded answers. Specifically, for the LLaVA 13B model, M3ID and M3ID+DPO reduce the percentage of hallucinated objects in captioning tasks by 25% and 28%, respectively, and improve the accuracy on VQA benchmarks such as POPE by 21% and 24%.

Introduction: The Challenge of Conditioning Dilution

Modern Vision-Language Models (VLMs) like LLaVA are capable of sophisticated image understanding, yet they frequently suffer from a lack of grounding. This manifests as "hallucinations," where the model generates text describing objects or attributes not present in the input image. This research identifies a specific phenomenon called conditioning dilution (or the "fading memory effect") as a primary driver.

As a VLM generates a sequence of tokens, its internal attention to the initial visual prompt naturally decays. The further the model gets into a sentence, the more it begins to rely on its internal language prior—linguistic patterns learned during pre-training—rather than the actual visual evidence. For example, after mentioning a kitchen, a model's language prior might strongly suggest a "fridge," even if only a "toaster" is visible in the scene.

Multi-Modal Mutual-Information Decoding (M3ID)

To counteract this effect, the authors propose Multi-Modal Mutual-Information Decoding (M3ID). M3ID is a training-free decoding strategy that intervenes during inference to amplify the visual signal relative to the language prior.

M3ID amplifies the visual signal ('toaster') over the language prior ('fridge') by contrasting conditioned and unconditioned probabilities.

Core Methodology

  1. Contrastive Decoding: At each step, M3ID compares the conditioned probability (given the image and text) with the unconditioned probability (given only the text). By contrasting these, the model can identify tokens that are specifically supported by the image rather than just being linguistically likely.
  2. Amplifying "Surprise": The method boosts tokens that "surprise" the text-only model. If the language prior expects a "fridge" but the visual evidence suggests a "toaster," M3ID amplifies the difference to favor the grounded object.
  3. Dynamic Scaling ($\gamma_t$): Because conditioning dilution worsens over time, M3ID uses a time-dependent factor to increase the strength of visual amplification as the generated sentence grows longer.
  4. Contextual Pressure Handling: To maintain grammatical fluency, a confidence threshold ($\alpha$) ensures the model doesn't override necessary functional words (like "the" or "and") where the language prior is appropriately dominant.

For environments where training is possible, M3ID can be paired with Direct Preference Optimization (DPO). M3ID automatically generates "preferred" (grounded) and "rejected" (hallucinated) sentence pairs, allowing for fine-tuning without the need for human-labeled data.

Empirical Results

The researchers evaluated M3ID using the MS COCO dataset for image captioning and the POPE benchmark for object probing. For the LLaVA-13B model, the results were substantial:

  • Hallucination Reduction: M3ID reduced the percentage of hallucinated objects in captions by 25%. When combined with DPO, this improvement reached 28%.
  • VQA Accuracy: On the POPE benchmark, M3ID improved accuracy by 21% over the base model, with the M3ID+DPO combination reaching a 24% improvement.
  • Fluency Preservation: Unlike previous contrastive methods, M3ID's thresholding ensures the model remains as fluent and coherent as the original pre-trained version.

Conclusion and Future Work

M3ID offers a robust solution to the fading memory effect in VLMs by refocusing the model on visual evidence at every step of generation. While it introduces some computational overhead due to the need for dual forward passes, it significantly improves the truthfulness of model outputs. Future research may explore integrating these mutual-information preferences directly into the model weights during initial training to eliminate inference-time overhead.

Summary updated

BibTeX
@misc{favero2024multi,
  author = {Alessandro Favero and Luca Zancato and Matthew Trager and Siddharth Choudhary and Pramuditha Perera and Alessandro Achille and Ashwin Swaminathan and Stefano Soatto},
  title = {{Multi-Modal Hallucination Control by Visual Information Grounding}},
  year = {2024},
  eprint = {2403.14003},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.14003},
}
Figure