TL;DR
Large Vision-Language Models (LVLMs) often "hallucinate" by generating text that doesn't align with the input image. This paper introduces Efficient Contrastive Decoding (ECD), a novel method that uses a lightweight hallucination detector to penalize these incorrect tokens during text generation. ECD significantly reduces hallucinations without requiring model retraining, outperforming existing methods in both accuracy and speed.
What Problem Does This Paper Address?
LVLMs, which combine vision and language understanding, are powerful but prone to generating "hallucinations." These are responses that are factually incorrect or inconsistent with the provided visual input. This is a critical issue, especially for applications in safety-sensitive domains like autonomous driving or healthcare. While previous methods have tried to address this through techniques like instruction tuning or contrastive decoding, they often require extensive retraining or introduce significant computational overhead during inference. This paper aims to provide an efficient, training-free method to mitigate hallucinations by directly detecting and suppressing them during the text generation process.
Methods
The core of this work is Efficient Contrastive Decoding (ECD). It builds upon the idea of contrastive decoding (CD) but introduces a crucial innovation: a probabilistic hallucination detector.
Here's how it works:
- Hallucination Features: The authors propose new, lightweight features derived from the internal calculations of an LVLM. These features capture information about the generated tokens' reliability, going beyond just the final layer's output. They leverage intermediate layer states, attention patterns, and probability distributions.
- Lightweight Detector: These features are used to train a simple, fast classifier (like logistic regression or gradient boosting). This classifier learns to distinguish between "true" tokens (aligned with the image) and "hallucinated" tokens.
- Efficient Contrastive Decoding: During text generation, instead of generating a second distribution from a distorted input (as in traditional CD), ECD uses the trained hallucination detector to get a "hallucination score" for each potential next token. This score is then used to adjust the original token probabilities. Specifically, tokens with high hallucination scores are penalized, effectively shifting the model's output towards more contextually accurate responses. This process requires only one forward pass of the LVLM plus a very fast pass through the lightweight detector.
- Adaptive Plausibility Constraint (APC): To further refine the output and prevent implausible tokens, the authors incorporate an adaptive plausibility constraint, ensuring semantically trivial tokens don't get generated.
Datasets
The paper uses several datasets for training and evaluation:
- MSCOCO: Used for generating training and validation data for the probabilistic classifier by prompting LVLMs to describe images. It's also used for evaluating the performance of the ECD method on open-ended captioning tasks.
- CHAIR: A benchmark for evaluating caption hallucination and coverage, used for generative tasks.
- AMBER: A multi-dimensional benchmark with a more diverse set of object categories than MSCOCO, used to test the generalization of the hallucination detector.
- POPE: A discriminative VQA benchmark used to assess object hallucination quality. It covers MSCOCO, A-OKVQA, and GQA datasets.
- MME: Another discriminative VQA benchmark that evaluates perception and cognition abilities of LVLMs.
Key Insights and Ideas
- Hallucinations are predictable from internal model states: The key insight is that the internal workings of an LVLM, even before the final output layer, contain signals that can predict whether a generated token is likely to be a hallucination. This allows for the creation of effective, lightweight hallucination detectors.
- Efficient detection beats complex generation: Instead of relying on computationally expensive methods like generating multiple output distributions from distorted inputs, a fast, dedicated hallucination detector can achieve better results with significantly less overhead.
- Generalizability of hallucination detection: The proposed hallucination detection features and the trained classifier demonstrate good generalization across different LVLMs and even to new object categories (as shown by performance on AMBER), suggesting a robust understanding of hallucination patterns.
- Training-free mitigation is viable and effective: The ECD method is training-free for the LVLM itself, making it easily applicable to existing models. This significantly lowers the barrier to entry for improving LVLM reliability.
Key Results
- Hallucination Detection: The proposed hallucination features outperform baseline features by up to 5.89 percentage points in AUPRC values on various LVLMs.
- Generative Tasks (CHAIR): ECD significantly reduces the instance-level hallucination rate by up to 5.74pp (32%) while increasing coverage by 5.74pp (7%) compared to regular decoding.
- Discriminative Tasks (POPE): ECD improves F1 Scores by up to 23.02pp (33%) over baselines, demonstrating superior performance and cost-effectiveness.
- Perception and Cognition (MME): ECD enhances perception and cognition abilities on MME subtasks, often outperforming baselines while maintaining low computational costs.
- Computational Efficiency: ECD adds only minor computational overhead, making it significantly faster than traditional contrastive decoding methods that require multiple forward passes.
Limitations and Future Work
- Focus on Visual Hallucinations: The current work primarily addresses visual hallucinations in LVLMs. The authors acknowledge that contextual hallucinations in purely language models might have different origins and require further study. However, they note that many of the proposed features are transferable to LLMs.
- Temporal Hallucinations: The paper suggests that investigating temporal hallucinations in video LVLMs is a promising direction for future work.
Summary updated