Introduction
Vision-Language Models (VLMs), such as LLaVA and Qwen-VL, have demonstrated remarkable capabilities in interpreting complex visual scenes and generating human-like text. However, these models frequently suffer from "hallucinations"—generating responses that are factually incorrect or visually ungrounded. A primary driver of this issue is the reliance on language priors, where a model predicts an answer based on common linguistic patterns rather than the actual visual evidence provided. For instance, when asked about a man's gaze, a model might confidently claim he is looking at "the sky" simply because it is a frequent textual association, even if the image clearly shows otherwise.
To address this, researchers have developed HARMONY (Hidden Activation Representations and Model Output-Aware Uncertainty Estimation), a novel framework designed to detect when a VLM is guessing blindly versus when its output is grounded in visual reality.
The Challenge of Uncertainty Estimation
Existing methods for Uncertainty Estimation (UE) in VLMs generally fall into two categories, both of which have significant limitations:
- Black-box methods: These rely solely on the output probabilities (softmax scores) of the generated tokens. While computationally efficient, they often fail to account for the complex relationships between words and can be easily misled by high-confidence language biases.
- White-box methods: These examine the model's internal "brain states" or hidden activations. While more informative, previous implementations often used simplistic architectures that ignored the sequential, word-by-word nature of language generation.
The authors of HARMONY identify a critical gap: the need for a system that integrates internal "beliefs" about visual grounding with external "confidence" scores while respecting the sequential structure of the generated text.
The HARMONY Framework
HARMONY is a learnable framework that utilizes a VisualBERT-based architecture to serve as a "reliability judge." Unlike static mathematical formulas, HARMONY is trained to predict the correctness of a VLM's response by analyzing three distinct data streams:
- Generated Tokens: The actual text produced by the VLM.
- MaxProb: The probability scores assigned to each token during generation.
- Hidden Representations: The internal activations from the VLM’s transformer layers.
Input Mapping and Architecture
To synthesize these diverse signals, HARMONY employs a specialized input mapping strategy. Text is processed through standard embeddings, while token probabilities are converted into orthogonal embedding vectors via a technique called "binning." This allows the transformer to treat continuous probability scores as distinct features. Simultaneously, the high-dimensional hidden states are projected through a linear layer to align them with the text embedding space. This unified input is then fed into the VisualBERT backbone, which acts as a binary classifier to determine if the generated answer is likely correct or incorrect.
Experimental Setup
The researchers evaluated HARMONY across four diverse and challenging benchmarks to test its robustness:
- A-OKVQA: Focused on multi-modal reasoning and common sense.
- VizWiz: Real-world images from visually impaired users, often containing blurry or unanswerable content.
- PathVQA: A specialized medical imaging dataset to test domain generalization.
- OKVQA: Utilized specifically for Out-of-Distribution (OOD) testing.
The framework was tested against four state-of-the-art VLMs: LLaVA-7B, LLaVA-13B, InstructBLIP, and Qwen-VL.
Key Insights
Internal Belief vs. External Confidence
A core finding of the research is that a model’s internal activations often "know" when a visual signal is weak, even if the final output probability remains high due to language bias. HARMONY effectively captures this discrepancy, identifying instances where the model's internal state contradicts its external confidence.
The "Sweet Spot" Layer
The authors discovered that the final layer of a VLM is not necessarily the most informative for uncertainty estimation. Instead, middle layers (e.g., layer 16 in a 32-layer model) often contain the richest signals regarding visual-text alignment. These intermediate representations are less influenced by the final token selection and more reflective of the underlying reasoning process.
Sequential Context
By leveraging a transformer-based judge, HARMONY can track how uncertainty evolves across a sentence. It recognizes that a model may be certain about a common word like "The" but highly uncertain about a specific object name like "cat," allowing for a more granular assessment of reliability than methods that average scores across an entire response.
Results and Performance
HARMONY consistently outperformed traditional probability-based methods and recent learnable baselines such as MSF and LARS. Key performance metrics include:
- AUROC Improvements: A gain of up to 5% in the Area Under the Receiver Operating Characteristic curve.
- PRR Gains: A 9% improvement in the Prediction Rejection Ratio (PRR), demonstrating a superior ability to identify which answers should be discarded to maintain high overall accuracy.
- Selective Prediction: In practical applications where a model can opt to say "I don't know," HARMONY allowed for a higher rate of correct answers while significantly reducing the risk of incorrect responses compared to competing methods.
Limitations and Future Work
While powerful, HARMONY requires a small set of labeled calibration data to be trained for each specific VLM. Additionally, as a white-box method, it requires access to internal hidden states, making it incompatible with closed-source models like GPT-4o or Gemini unless providers expose those activations. Future research aims to develop "reliability judges" that can generalize across different model families without the need for per-model retraining.
Summary updated