TL;DR
The paper introduces Gradient-based Influence-Aware Constrained Decoding (GACD), a plug-and-play, inference-time method designed to mitigate hallucinations in Multimodal Large Language Models (MLLMs). By leveraging first-order Taylor gradients to dynamically track token-level influence, GACD corrects for both text-visual and co-occurrence biases without requiring model fine-tuning or auxiliary networks.
What Problem Does This Paper Address?
While Multimodal Large Language Models (MLLMs) excel at generating text from visual inputs, they are notoriously prone to hallucinations—generating descriptions of objects or attributes that simply aren't in the image. The authors trace this failure mode back to two primary systemic biases:
- Text-Visual Bias: MLLMs tend to over-rely on the textual prompt and their own previously generated tokens, gradually ignoring the visual features as the output sequence grows longer.
- Co-Occurrence Bias: The model learns spurious statistical correlations from its training data. For instance, if an image contains a fork and a spoon, the model might automatically blurt out "beer" or "dining table" purely because those items frequently appear together in the dataset.
Existing mitigation strategies either require expensive retraining or rely on crude, image-level post-decoding heuristics that treat all visual features uniformly. GACD addresses these gaps by providing a fine-grained, token-level intervention that adapts dynamically to each sample.
Methods
GACD operates entirely during the decoding stage using a three-step process:
- Gradient-Based Token Influence Estimation: At each decoding step, the method computes the first-order Taylor expansion gradients (specifically, the Manhattan norm of the Jacobian) of the output logits with respect to every input token (both text and visual). This acts as a mathematical "saliency map," revealing exactly how much weight the model is placing on specific visual regions versus text context.
- Object-Aware Visual Token Grouping: When the model generates a noun, GACD identifies the specific visual tokens that exerted the highest gradient influence on that word. It partitions the visual tokens into object-related tokens ($t^o$) and unrelated tokens ($t^u$).
- Anchor-Specific Influence-Weighted Decoding: GACD applies a variation of contrastive decoding. It penalizes the logits generated by the object-related tokens ($t^o$) to suppress co-occurrence bias, while simultaneously amplifying the influence of the unrelated visual tokens ($t^u$) to rebalance the overall text-visual contribution.
Additionally, the authors introduce a sample-dependent early stopping mechanism that halts text generation if the ratio of visual influence drops below a safe threshold, preventing the model from rambling into ungrounded fabrications.
Datasets
The authors evaluated GACD across a robust mix of open-ended generative benchmarks and discriminative (Yes/No) tasks:
- AMBER: Used for evaluating both generative image captioning and discriminative VQA.
- MSCOCO (Subset): Used to evaluate open-ended captioning metrics.
- LLaVA-QA90: Used to measure open-ended detailed description accuracy.
- POPE (Adversarial Setting): A standard benchmark specifically designed to test object existence hallucinations.
Key Insights and Ideas
- The "Shared Token" Phenomenon: The authors discovered that when a model suffers from co-occurrence hallucination, the hallucinated object and the actual object in the image often share the exact same highly influential visual token. For example, a visual token tracking a "chair" strongly triggers the word "table" due to embedded training biases.
- The Text-Visual Gap Widens Over Time: As an MLLM generates longer sequences, its attention naturally drifts away from the image and anchors heavily onto its own text output. GACD successfully flattens this drift, keeping the model visually grounded throughout long paragraphs.
- Model-Specific Sensitivity: Not all MLLMs hallucinate the same way. Models like LLaVA-v1.5 show a very low baseline visual influence ratio, making them highly responsive to GACD's corrections, whereas InternVL2 inherently maintains a high visual grounding ratio and requires less intervention.
Key Results
GACD was tested across several prominent open-source MLLMs (including LLaVA-v1.5/v1.6, InstructBLIP, mPLUG-Owl2, Qwen2-VL, and InternVL2) and demonstrated substantial improvements:
- Hallucination Reduction: On the AMBER dataset, GACD cut sentence-level hallucinations by up to 33% and slashed co-occurrence-driven hallucinations by up to 57%.
- Accuracy and Detail: On LLaVA-QA90, GACD achieved a massive 92% accuracy gain and a 45% improvement in detailedness, proving that it doesn't just reduce hallucinations by making the model quieter or shorter.
- Discriminative Performance: GACD boosted the F1 score on the POPE benchmark by up to 8%.
- Computational Efficiency: Because the visual encoder only needs a single forward pass, GACD introduces a runtime overhead of roughly 101%, making it vastly faster than alternative gradient methods like Integrated Gradients while achieving superior accuracy.
Limitations and Future Work
The primary limitation of GACD is that it is strictly a white-box method; it requires direct access to the model's internal gradients, meaning it cannot be applied to closed-source, API-protected models like GPT-4V or Gemini. Furthermore, its efficacy is tied to the baseline model's architecture—it provides minimal gains for models that already possess high visual grounding ratios.
For future work, the authors suggest using the insights gained from GACD's gradient self-reflection to design better training and alignment strategies, rather than relying solely on inference-time corrections.
Summary updated