Leveraging NTPs for Efficient Hallucination Detection in VLMs

Ofir Azachi, Kfir Eliyahu, Eyal El Ani, Rom Himelstein, Roi Reichart, Yuval Pinter, Nitay CalderonarXiv 2025 · DOI

Introduction

Vision-Language Models (VLMs) have demonstrated remarkable capabilities in generating descriptive text from visual inputs. However, they are prone to "hallucinations"—generating content that is factually inconsistent with the provided image. For instance, a model might describe a slice of pizza when presented with a close-up of a sandwich.

Currently, the state-of-the-art approach for detecting these errors involves using a secondary VLM (or the same model in a separate pass) to verify the output. While effective, this "VLM-as-a-judge" paradigm suffers from high computational latency and significant costs, as it requires multiple expensive forward passes. Furthermore, these black-box verifiers offer little transparency regarding the underlying cause of a detected hallucination. This paper proposes a lightweight, "on-the-fly" alternative that leverages the model's internal uncertainty signals to detect hallucinations efficiently.

Methodology: Tapping into Internal Uncertainty

The core innovation of this research is the use of Next-Token Probabilities (NTPs) as a proxy for model confidence. The authors hypothesize that when a VLM is uncertain about a specific word or phrase, the probability distribution for that token will reflect this instability.

Overview of the proposed hallucination detection pipeline using NTPs and lightweight ML models.

The researchers explored two distinct types of NTP signals:

  1. Description NTPs: These are the probabilities generated during the standard inference process where the model has access to both the image and the text context.
  2. Linguistic NTPs: These are generated by feeding the generated text back into the model without the image. This isolates the model's internal linguistic bias—the tendency to predict words based solely on language patterns (e.g., predicting "sky" after "blue") regardless of visual evidence.

By extracting statistical features from these sequences—such as mean, standard deviation, log-probabilities, and Fourier transforms—the authors trained traditional, lightweight machine learning models (Logistic Regression, SVM, and XGBoost) to classify statements as truthful or hallucinated. A key strategy involved "neutralizing" linguistic bias by subtracting Linguistic NTPs from Description NTPs, thereby isolating errors specifically caused by visual misalignment.

Experimental Setup and Datasets

To evaluate this approach, the authors developed a high-quality benchmark consisting of 1,400 human-annotated statements derived from 350 images sourced from Pixabay and iStock. Descriptions were generated using LLaVA-1.5 and LLaVA-1.6. Each statement was manually labeled, with approximately 42.9% of the dataset representing hallucinations. This dataset provides a rigorous testing ground for comparing lightweight classifiers against heavy VLM-based verifiers.

Key Results and Analysis

The experimental results demonstrate that internal uncertainty is a powerful predictor of error. Lightweight models utilizing only NTP-based statistical features achieved an AUC-ROC of approximately 0.61. This is remarkably competitive with a full LLaVA-1.5 self-verification pass (0.63), despite the lightweight models being orders of magnitude faster and less computationally demanding.

Performance comparison (AUC-ROC) of various lightweight classifiers and VLM baselines across different feature sets.

Key insights from the performance analysis include:

  • Complementary Signals: When NTP features were combined with VLM-based predictions, performance improved to ~0.66. This suggests that internal probability signals capture nuances that the model's explicit "judgment" might overlook.
  • Feature Importance: Log-probabilities emerged as the most influential statistical feature, likely because they better represent the "long tail" of low-confidence tokens where hallucinations typically occur.
  • Linguistic Bias Mitigation: Element-wise subtraction (Description NTPs minus Linguistic NTPs) proved to be the most effective aggregation method for raw probability data, confirming that accounting for linguistic priors is essential for accurate detection.

Conclusion and Future Work

This work presents a compelling case for moving away from expensive VLM-based verification toward more efficient, internal signal-based detection. By leveraging the "free" information contained in next-token probabilities, developers can implement real-time hallucination checks with minimal overhead.

Future research directions include scaling the benchmark to larger and more diverse VLM architectures and exploring real-time refinement techniques. Instead of merely detecting hallucinations after the fact, these NTP signals could potentially trigger the model to re-generate or self-correct specific low-confidence tokens during the initial generation process, leading to inherently more reliable Vision-Language Models.

Summary updated

BibTeX
@misc{azachi2025leveraging,
  author = {Ofir Azachi and Kfir Eliyahu and Eyal El Ani and Rom Himelstein and Roi Reichart and Yuval Pinter and Nitay Calderon},
  title = {{Leveraging NTPs for Efficient Hallucination Detection in VLMs}},
  year = {2025},
  eprint = {2509.20379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.20379},
}
Figure