Contrast Where the Image Is Read: Sparse Visual Contrastive Decoding for Multi-Hop Visual Questions

Many questions about an image take two steps. To answer "what year was the architect of this building born?", a vision-language model must first recognize the building from pixels, then look up its architect and birth year in retrieved text. If the first step is wrong, because the model names a landmark that text statistics make likely instead of the one in the photo, every later step faithfully answers the wrong question. Contrastive decoding is a training-free fix for this kind of text-driven error. It runs the model a second time with the evidence corrupted, here with the image's patches shuffled, and subtracts that "amateur" prediction from the normal one at every token. This works, but it doubles or triples decoding cost. It is also applied uniformly, including to the later text-only steps where the image is irrelevant.

We propose that in multi-hop visual reasoning the useful contrastive signal is concentrated at a small number of tokens: the ones where the model writes down an entity it is supposed to have read from the image, mostly in the first hop. The plan is to measure this concentration directly. We then exploit it with a gate that comes at no extra cost. It reads, from the normal forward pass, how much attention the model is paying to the image at that token. It turns on the contrastive pass only when that attention collapses at an entity span. A lazy cache update makes the corrupted pass cost almost nothing on the tokens where it does not fire. If the concentration hypothesis holds, the method should match or exceed full-sequence visual contrastive decoding on multi-hop knowledge-intensive questions at close to plain greedy latency.

Core Claim

Our claim has three parts.

First, on two-hop visual questions with retrieval, the gap between the model's normal prediction and its prediction from a patch-shuffled image is large on fewer than roughly one token in six. Those tokens sit overwhelmingly inside the bridge entity, meaning the intermediate answer that links the image to the text lookup.

Second, applying the contrast only there recovers at least 90% of the accuracy gain of applying it everywhere. It may exceed full contrast, because contrasting against an image-less prior on text-only hops reshapes the distribution where the two runs barely differ.

Third, the model's own attention share on image tokens, already computed in the normal pass, is a good enough gate. A trained risk detector is not needed.

The novelty lies in the joint claim about where contrast matters in a multi-hop chain, in a measurement that tests it, and in a decoding scheme whose cost scales with the number of gated tokens rather than the sequence length. Neither a new contrastive objective nor a new perturbation is part of the claim.

What Prior Work Does and Leaves Open

The closest work is REAL. It defines "reasoning pivots," the atomic entities and relations a multi-hop answer must ground. It decodes against a patch-shuffled image, which breaks layout while keeping low-level statistics, and it projects out the conflict direction from the logits. REAL reports +3.8% absolute on Encyclopedic-VQA and +1.6% on InfoSeek over InternVL3.5 and Qwen3-VL, at under 1.3x greedy latency. It also shows that patch shuffling beats blacking out the image.

We reuse its perturbation and its pivot annotations. We differ in that REAL contrasts uniformly across every token and evaluates mostly single-lookup questions. It never asks which tokens need the contrast, and it never isolates the first-hop failure.

Two lines of work show that contrast need not run everywhere, and they motivate the gate.

  • Octopus trains a small transformer, with preference optimization, to pick per token among several visual contrastive strategies or "no action." It lowers Object-HalBench sentence-level hallucination from 25.0 to 20.8. It does so only on single-image captioning, and only with a trained detector.
  • Decoupled Contrastive Decoding finds that the contrastive correction is small for 81.1% of tokens in text tasks. It moves the amateur model out of the serial loop into batched verification, giving 1.65x–1.95x speedups over vanilla contrastive decoding with identical output.

We take DCD's principle that the amateur should only ever run in parallel catch-up passes, and apply it to an image-perturbed amateur. We also replace Octopus's learned detector with a signal the model already produces.

That signal comes from the modality-bias literature. Re-Balancing Contrastive Decoding measures that image tokens get only about a quarter of attention in deep layers. It shows that rebalancing reduces hallucination, reaching 88.0% POPE accuracy on LLaVA-1.5-7B. Hallucination snowballing shows that models trust their own earlier text over pixels, with drops of at least 31%. Its Residual Visual Decoding switches toward a vision-only prediction when the two diverge, but it computes both predictions at every token. We turn the attention deficit these papers diagnose into the trigger.

On the text side, Murphy et al. show that adding context-contrastive or layer-contrastive decoding to an agent loop (ReAct, which alternates reasoning steps with retrieval actions) helps multi-hop QA. For example, Qwen2-7B on 2WikiMultihopQA improves from 43.1 to 51.8 F1 with context-aware decoding. They also note the doubled cost, and that no single decoder wins across models. DRAGIN shows that triggering retrieval from the model's internal uncertainty and attention beats fixed-interval triggering. It reports 0.3931 versus 0.3076 F1 against FLARE on 2WikiMultihopQA. We borrow the idea of triggering from internal state, but we trigger decoding passes rather than retrieval.

Research Program

The system is a ReAct-style loop over a vision-language model, Qwen3-VL and InternVL3.5 as in REAL, with retrieval over the Encyclopedic-VQA Wikipedia knowledge base. At each generated token $t$ we compute $a_t$, the share of attention mass on image tokens averaged over the deep layers, from the expert pass. The gate $g_t \in \{0,1\}$ fires when $a_t$ falls below a running per-sequence baseline by a margin $\delta$ while the model is inside a span flagged as entity-like. The entity flag comes from the expert's own top-token type, using capitalization and a cheap entity-span tagger over the partial output.

The output distribution is

$$\log \tilde p(x_t) = \log p_e(x_t) + g_t\,\alpha\,\big[\log p_e(x_t) - \log p_a(x_t)\big],$$

Here $p_e$ is the expert prediction with the true image, $p_a$ is the prediction with the patch-shuffled image, and $\alpha$ is the contrast strength. When $g_t=1$ this is the standard visual contrastive objective. When $g_t=0$ it is plain decoding.

The amateur keeps its own key-value cache, the stored attention state for the prefix, but that cache is left stale while the gate is off. When the gate fires, the tokens accepted since the last firing are pushed through the amateur in one parallel prefill. Only then is $p_a$ read. Parallel prefill is compute-bound rather than memory-bandwidth-bound, so its cost is small next to a serial decoding step. Total overhead therefore scales with how often the gate fires rather than with the sequence length.

The program has three stages.

  1. Concentration study (before any method is built). Run full visual contrastive decoding on complete chains and log the per-token divergence between $p_e$ and $p_a$. Align high-divergence tokens against REAL-VQA pivot annotations and against hop boundaries.
  2. Error localization. Determine what fraction of wrong final answers on two-hop Encyclopedic-VQA trace to a wrong bridge entity rather than to a wrong text lookup.
  3. Gate construction and comparison. Build the attention gate and compare it to cheaper and costlier gates on accuracy, gate precision against annotated pivots, firing rate, and wall-clock latency.

Baselines

Greedy decoding. The naive reference is the same ReAct loop and retriever with plain greedy decoding, run at 1.0x cost on the same hardware. As a sense of how hard the benchmark is, Encyclopedic VQA reports PaLM at 48.8% accuracy with practical Google Lens retrieval, against 87.0% with oracle retrieval.

Full-sequence patch-shuffle contrast (main competitor). This uses the same perturbation, $\alpha$, and model, applied at every token. It isolates the gating question: if sparse gating loses accuracy relative to it, the concentration claim is false.

REAL's RPGD. This is the strongest existing method: patch shuffling plus orthogonal projection, with its own supervised stage turned off for parity. REAL reports +3.8% absolute on E-VQA and +1.6% on InfoSeek over its base models, at 1.3x greedy latency. No reported absolute accuracy for RPGD alone, nor results on multi-hop chains, was found on Lacuna. We will therefore rerun it in our loop.

Octopus-style learned gate. We train a small detector on hidden states, with a budget matched to our threshold tuning, to choose contrast or no contrast. This tests whether a free gate loses anything to a trained one.

Fair comparison. All methods share the retriever, prompts, chain length cap, and GPU. Each gets the same hyperparameter budget: a grid over $\alpha$, plus $\delta$ where applicable, tuned on the same 500-question development split.

What counts as beating the competition. The gated method must match full contrast within one point of accuracy at no more than 1.1x greedy wall-clock latency. It must also beat RPGD on two-hop accuracy, or match it at lower latency.

Ablations. Three ablations isolate the key ingredients:

  • Gate signal: entropy-based gate versus attention-share gate versus oracle gate on annotated pivots.
  • Cache strategy: lazy catch-up versus a cache kept in lockstep.
  • Hop restriction: contrast restricted to first-hop tokens only.

Why not just…?

Why not just turn contrast on for the first reasoning step and off afterwards? This is a real threat, because the hop structure of a ReAct loop is visible for free. If our localization study shows the signal is almost entirely in hop one, this schedule could match the token gate. We run it as a baseline.

The token gate should win in two cases. One is when the first step contains a long rationale whose non-entity tokens contrast adds nothing to. The other is when later hops re-read the image, such as attribute questions after a lookup. If the hop schedule ties, we will report that the simpler rule suffices. The concentration finding and the lazy cache still stand, since they are what make even the hop schedule cheap.

Why not just gate on token entropy, as DRAGIN does for retrieval? Entropy flags uncertainty, but the failure we target is confident text-prior guessing. POPE documents "yes" rates near 99% (Li et al.), which is high confidence with low visual reliance. We expect entropy to miss confident wrong bridge entities. The gate-precision measurement against REAL-VQA pivot annotations settles this directly.

Why not just fine-tune the model to look at the image? REAL's own ablation found that its supervised alignment improves conflict discrimination by 14.68%, yet its best accuracy still needed test-time contrast on top. Octopus argues that the cause of hallucination varies token to token in ways static training does not fix. Our method composes with any fine-tuned model. We will report it on top of an SFT checkpoint where one is available.

Why not just accept REAL's 1.3x? At batch size 1, cutting 1.3x to about 1.05x is a modest saving, so latency alone is not our case. The stronger claim concerns accuracy. Uniform contrast on text-only hops may hurt, consistent with Murphy et al.'s finding that faithful decoders help or hurt depending on the model. Gating should also scale better under batching, where several stale caches are cheaper than several live ones.

Proposed Experiments

Benchmarks. The main benchmark is the two-hop subset of Encyclopedic-VQA, with InfoSeek as a single-lookup control. REAL-VQA (4,778 samples) provides pivot annotations and counterfactual paragraphs that test robustness when retrieved text contradicts the image. MMHalSnowball measures whether gating survives multi-turn histories that pull attention away from the image. POPE adversarial and CHAIR serve as single-hop sanity checks against the RBD and Octopus numbers above. As a text-only control, we run the same gate with a context-contrastive amateur on HotpotQA and 2WikiMultihopQA. This checks whether we reproduce the direction of Murphy et al.'s gains at lower cost.

Metrics. We report accuracy and F1. We also report bridge-entity accuracy, scored against annotations. On the efficiency side we report gate firing rate, gate precision and recall against pivots, wall-clock seconds per answer at batch sizes 1 and 8, and total amateur tokens processed.

Decisive checks. Three results would decide the proposal:

  • The concentration study. If the divergence between expert and amateur is spread evenly across chain tokens rather than concentrated at bridge entities, the premise fails and we stop.
  • The oracle-gate ablation. If contrast at annotated pivots alone does not recover most of full contrast's gain, no learned or free gate can, and the idea is wrong.
  • The head-to-head. The attention-share gate must match full contrast within one point at 1.1x latency or better, on two-hop Encyclopedic-VQA, for both Qwen3-VL and InternVL3.5.