Introduction
Video Large Language Models (Video-LLMs) have demonstrated remarkable capabilities in multimodal understanding. However, they remain highly susceptible to hallucinations—generating plausible but factually ungrounded content when visual evidence is weak, ambiguous, or biased. Often, these models fall back on internal language priors (e.g., assuming a toaster is present simply because the scene is a kitchen) rather than relying on the actual video frames.
To combat this, researchers introduce Model-Aware Contrastive Decoding (MACD), a training-free inference strategy. By leveraging a model’s own gradients to identify and mask the specific visual features it relies on most, MACD constructs targeted "counterfactual" videos. These counterfactuals guide the decoding process toward more factually grounded, accurate responses.
The Limits of Existing Contrastive Decoding
A popular existing solution for hallucination mitigation is Contrastive Decoding (CD). In standard CD, the model generates text based on two inputs: the original video and a "weakened" version, typically created by injecting random noise. By subtracting the weak model's output distribution from the strong model's, the system filters out generic, prior-based guesses.
However, random noise is a blunt instrument. It frequently fails to target the specific visual cues that drive the hallucination or align with the model's actual weaknesses. MACD addresses this by moving away from arbitrary frame or temporal modifications toward model-guided, object-level counterfactuals.
How MACD Works
MACD operates entirely during inference, leaving the Video-LLM frozen. The process unfolds in three key stages:
- Object Detection & Masking: The system utilizes an off-the-shelf detector (such as YOLOv11) to identify objects and generate "soft masks" across video frames. It also creates frame-level masks to account for the temporal importance of different scenes.
- Model-Aware Optimization: Instead of randomly masking objects, MACD computes the gradients of the Video-LLM to determine which masks, if applied, would most increase the loss when reconstructing the input query. Essentially, the system asks the model: "Which parts of this video are you relying on to understand the prompt?" It then optimizes the mask strengths to obscure that critical information, creating a highly effective counterfactual.
- Contrastive Decoding: Finally, the model decodes the response by contrasting the original video with this optimized counterfactual video. Tokens that remain highly probable even when the visual evidence is removed are penalized as likely hallucinations. Conversely, tokens that depend heavily on the masked visual evidence are promoted, enforcing evidence-grounded token selection.
Key Insights
- The Model is its Own Best Critic: The most effective way to expose a model's blind spots is through its own internal feedback (gradients). By identifying what the model perceives as important, MACD effectively challenges its assumptions.
- Query-Side Optimization: MACD optimizes the mask based on the query rather than a predicted answer. Because ground-truth answers are unavailable at inference time, using the query provides a stable, reliable semantic anchor.
- Discretization for Stability: Researchers found that "snapping" optimized mask strengths to three discrete levels (0, 0.75, or 1) produced more stable results than continuous values, creating a sharper contrast between the presence and absence of evidence.
Experimental Results
MACD was rigorously evaluated across four major benchmarks: EventHallusion (targeting event-level hallucinations), MVBench (a 20-task suite for broad video understanding), Perception Test (focusing on memory, physics, and semantics), and Video-MME (for long-form video understanding).
Tested on state-of-the-art backbones like Qwen2-VL and InternVL3, MACD demonstrated significant improvements:
- Hallucination Reduction: On the EventHallusion benchmark, MACD improved accuracy by up to 15 percentage points over baseline decoding strategies.
- Targeted Effectiveness: MACD consistently outperformed other decoding methods like VCD (random noise) and SID (internal attention-based masking). It showed especially strong gains in challenging scenarios involving small, occluded, or co-occurring objects.
- Efficiency: As a "plug-and-play" module, MACD avoids the massive costs of model fine-tuning, though it does introduce a moderate computational overhead (roughly 30–60% extra latency and memory).
Limitations and Future Directions
While highly effective, MACD has a few limitations. Its object-level branch relies on external detectors; if the detector misses an object or struggles with amorphous concepts (like "smoke" or "lighting"), the quality of the counterfactual degrades. Future work may explore open-vocabulary or stronger proposal mechanisms to mitigate this. Additionally, the decoding coefficients require some benchmark-specific tuning, and the gradient-ascent steps increase the time-per-query, which could pose challenges for strict real-time applications.
Summary updated