[Paper Review] OPERA: Alleviating Hallucination in Multi-Modal Large Language Models via Over-Trust Penalty and Retrospection-Allocation
OPERA is a novel decoding method for multi-modal large language models (MLLMs) that reduces hallucination by introducing an Over-trust Penalty and Retrospection-Allocation strategy. It detects and penalizes attention patterns where models over-rely on summary tokens during generation, while enabling rollback and re-allocation of candidates when such patterns are detected—achieving significant hallucination reduction without additional data, knowledge, or training.
Hallucination, posed as a pervasive challenge of multi-modal large language models (MLLMs), has significantly impeded their real-world usage that demands precise judgment. Existing methods mitigate this issue with either training with specific designed data or inferencing with external knowledge from other sources, incurring inevitable additional costs. In this paper, we present OPERA, a novel MLLM decoding method grounded in an Over-trust Penalty and a Retrospection-Allocation strategy, serving as a nearly free lunch to alleviate the hallucination issue without additional data, knowledge, or training. Our approach begins with an interesting observation that, most hallucinations are closely tied to the knowledge aggregation patterns manifested in the self-attention matrix, i.e., MLLMs tend to generate new tokens by focusing on a few summary tokens, but not all the previous tokens. Such partial over-trust inclination results in the neglecting of image tokens and describes the image content with hallucination. Based on the observation, OPERA introduces a penalty term on the model logits during the beam-search decoding to mitigate the over-trust issue, along with a rollback strategy that retrospects the presence of summary tokens in the previously generated tokens, and re-allocate the token selection if necessary. With extensive experiments, OPERA shows significant hallucination-mitigating performance on different MLLMs and metrics, proving its effectiveness and generality. Our code is available at: https://github.com/shikiw/OPERA.
Motivation & Objective
- Address the pervasive hallucination problem in multi-modal LLMs (MLLMs), which undermines trust in real-world applications such as autonomous driving.
- Identify that hallucinations are strongly correlated with knowledge aggregation patterns in self-attention matrices, where models over-trust a few summary tokens while neglecting image tokens.
- Develop a method to mitigate hallucination during inference without requiring additional training data, external knowledge, or model fine-tuning.
- Design a decoding strategy that detects harmful attention patterns and enables dynamic re-allocation of candidate tokens to avoid hallucinatory generations.
Proposed method
- Introduce an Over-trust Penalty term computed from local windows in the self-attention map, measuring column-wise attention intensity toward summary tokens to detect over-reliance on a few prior tokens.
- Incorporate the penalty into beam search decoding by reducing the logit scores of candidate tokens that exhibit strong over-trust patterns, thus lowering their selection probability.
- Implement a Retrospection-Allocation mechanism that triggers when the overlap of maximum in-window penalty scores exceeds a threshold, rolling back to the summary token and re-selecting candidates to avoid hallucinatory paths.
- Use a column-wise metric to quantify knowledge aggregation intensity within a sliding window of the attention map, focusing on patterns linked to hallucination onset.
- Apply the method during beam search decoding without modifying model weights, enabling plug-and-play integration with existing MLLMs.
- Leverage GPT-4V as a judge model to evaluate hallucination reduction using human-like consistency and detail scores on generated descriptions.
Experimental results
Research questions
- RQ1To what extent are hallucinations in MLLMs correlated with specific knowledge aggregation patterns in the self-attention matrix?
- RQ2Can an attention-based penalty mechanism effectively reduce hallucination during decoding without additional training or external knowledge?
- RQ3Does a retrospection-allocation strategy improve factual consistency by enabling dynamic re-selection of candidate tokens when over-trust patterns are detected?
- RQ4How effective is OPERA across diverse MLLMs and instruction types, particularly in long-form generation?
- RQ5Can OPERA also mitigate repetition, which shares similar attention patterns with hallucination?
Key findings
- Hallucinations are strongly correlated with columnar attention patterns in the self-attention matrix, with 80%–95% co-occurrence between hallucinated content and such patterns.
- OPERA reduces hallucination across multiple MLLMs including LLaVA-1.5-7B, InstructBLIP-7B, and Shikra-7B, showing consistent performance gains on both accuracy and detailedness metrics.
- The method achieves significant improvement in GPT-4V-based evaluation, with higher scores on consistency and detail, demonstrating its effectiveness in reducing factual errors.
- OPERA is particularly effective in long sequences, where hallucinations are more likely to emerge after knowledge aggregation patterns, and shows marginal gains in short answers (<10 tokens) due to hysteresis in pattern detection.
- The method also mitigates repetition, as periodic attention patterns in repeated sentences trigger retrospection and re-allocation, often leading to earlier EOS token selection.
- Failure cases are primarily due to strong model biases (e.g., ‘road’ → ‘cars’) or weak visual perception (e.g., low-resolution or shape-similar objects), indicating inherent model limitations beyond the scope of the method.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.