Overthinking Causes Hallucination: Tracing Confounder Propagation in Vision Language Models

Abin Shoby, Ta Duc Huy, Tuan Dung Nguyen, Minh Khoi Ho, Qi Chen, Anton van den Hengel, Phi Le Nguyen, Johan W. Verjans, Vu Minh Hieu Phan

TL;DR

Object hallucinations in Vision Language Models (VLMs) aren't just random final-layer errors; they are often the result of "overthinking" in intermediate layers where models get trapped by strong contextual priors. By tracing how alternative hypotheses evolve across decoder layers using LogitLens, this paper introduces the Overthinking Score ($S_{OT}$), a metric that significantly improves hallucination detection and outperforms existing final-layer and attention-based methods.

What Problem Does This Paper Address?

Vision Language Models (VLMs) frequently describe objects that are completely absent from the input image. To fix this, existing hallucination detectors typically look at final-layer signals, assuming that hallucinations correlate with low visual attention or high final-step uncertainty (entropy).

The authors reveal that the opposite is often true: hallucinated objects can exhibit highly peaked attention and low entropy. This happens because of strong contextual priors—for example, if a VLM sees a kitchen with a sink and soap, it might confidently predict a "dish" even if no dish is present. Because the intermediate layers have already converged on this incorrect but plausible hypothesis, final-layer analysis fails to catch it. This paper addresses the critical gap of ignoring the internal "thought process" where these confounding concepts accumulate and propagate.

Figure 1. Overthinking leads to object hallucination in Vision- Language Models. Each column corresponds to the top predicted object token at a decoder layer, illustrating the model’s layer-wise reasoning progression. We propose Overthinking Score (S-OT) to measure how much the model shifts among objects across layers. Top: the model demonstrates stable reasoning, quickly converges on a consistent concept (cat) across decoder layers, yielding low S-OT. Bottom: the model shows overthinking, hesitating between semantically co-occurring objects or “confounders” (sink, soap) that bias it towards confidently producing a hallucinated answer (dish) captured by high S-OT.

Methods

The authors propose a white-box hallucination detection pipeline that shifts the focus from the final output to the model's internal reasoning dynamics:

  1. Prefix Prompting: The VLM is prompted to describe an image, and targeted prefix prompts are used to isolate specific object tokens for verification.
  2. Tracing via LogitLens: To see what the model is "thinking" at each stage, they use LogitLens to project the hidden states of every intermediate transformer layer directly into the vocabulary space, revealing the top-1 predicted token at each layer.
  3. Overthinking Score ($S_{OT}$): They introduce a novel metric that quantifies how frequently a model revises its beliefs across layers. It is calculated by multiplying the number of unique top-1 tokens across all layers by the average layer-wise entropy.
  4. Feature Aggregation & Classification: $S_{OT}$ is combined with layer-wise entropy, next-token-to-image attention, and next-token-to-text attention into a unified feature vector. A lightweight classifier (such as Gradient Boosting or a Multi-layer Perceptron) is then trained on these features to determine if an object token is a hallucination.

Datasets

  • MSCOCO 2014 Validation Set: 4,000 random image-annotations were used to generate VLM descriptions, which were then labeled at the token level using GPT-4o to establish ground-truth real vs. hallucinated objects.
  • AMBER: An independent benchmark used to evaluate the out-of-distribution (OOD) generalization capability of the trained hallucination detectors.

Key Insights and Ideas

  • The Illusion of Confidence: Hallucinated objects often show low final-layer entropy because the model's intermediate layers have already firmly committed to a contextual prior (a "confounder").
  • Confounder Propagation: Hallucinations are a progressive issue. If intermediate layers activate multiple semantically related but incorrect objects, this uncertainty accumulates and propagates forward to the final layer.
  • Overthinking is Measurable: Stable reasoning typically settles on a single concept early and maintains it across layers. In contrast, a model that cycles through many unique top-1 token hypotheses across layers is highly prone to hallucination.
Examples of confounder propagation and indicator distributions

Key Results

  • State-of-the-Art Detection: On the MSCOCO dataset, the proposed method achieved an average Area Under the ROC Curve (AUC) of 87.33% (MLP variant) and 87.30% (Gradient Boosting variant) across three diverse VLMs (LLaVA-1.5, Gemma-3, and Qwen3-VL), consistently outperforming baselines like SVAR and MetaToken.
  • F1 Score Improvement: The Gradient Boosting variant achieved a peak F1 score of 78.95% on LLaVA-1.5, compared to just 69.35% for SVAR.
  • Robust OOD Generalization: When evaluated on the AMBER dataset using LLaVA-1.5, the Gradient Boosting detector maintained an AUC of 86.11% and an F1 score of 71.58%, proving that the overthinking pattern generalizes well across different data distributions.

Limitations and Future Work

  • White-Box Requirement: The method relies on direct access to the model's internal hidden states and output projection matrices, meaning it cannot be applied to closed-source, API-only models like GPT-4V or Claude.
  • Scope of Evaluation: The current pipeline focuses primarily on object-level presence hallucinations via prefix prompting.
  • Future Directions: The authors suggest extending this framework to detect broader multi-modal reasoning failures and developing active, runtime mitigation strategies that steer the model away from confounder propagation during generation.

Summary updated

BibTeX
@inproceedings{shoby2026overthinking,
  author = {Abin Shoby and Ta Duc Huy and Tuan Dung Nguyen and Minh Khoi Ho and Qi Chen and Anton van den Hengel and Phi Le Nguyen and Johan W. Verjans and Vu Minh Hieu Phan},
  title = {{Overthinking Causes Hallucination: Tracing Confounder Propagation in Vision Language Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=LXQnjy8j41},
}
Figure