When a vision-language model reads a long context that mixes several images and text passages, it often fails to use evidence sitting in the middle. The failure is worse when two pieces of evidence it must combine sit far apart. Our hypothesis is that the model has usually located the right evidence partway through its layers and then loses it near the output. Late layers pour their attention onto the model's own recently written words and onto nearby tokens. We propose to read off, in the same forward pass, which image or passage the middle layers are pointing at. We would then move the attention the late layers waste on generated text back onto that specific piece of evidence. This adds no second forward pass, no retriever call, and no training.
The opportunity sits between two literatures that have not met. The long-context literature has a decoding fix for "lost in the middle", but it costs two forward passes per token and has only been tested on text. The multimodal hallucination literature has fixes that cost nearly nothing, but they spread their correction evenly over a single image and have never faced multi-image, multi-hop inputs. If the hypothesis holds, one cheap mechanism addresses three things at once: positional loss of middle evidence, the extra penalty for separated evidence, and the hallucinated visual claims that follow when a model reasons from priors instead of the image it should be looking at.
Core Claim
The two literatures give conflicting accounts of why middle context is lost. Mitigating Posterior Salience Attenuation in Long-Context LLMs with Positional Contrastive Decoding shows the correct token usually stays among the top 8 candidates but loses to nearby distractor tokens. Its fix, positional contrastive decoding (PCD), builds a second "near-sighted" prediction by distorting the rotary position encoding and subtracts it from the normal one. Xiaowei Yuan et al. find instead that the usefulness of external context peaks in middle-to-late layers and decays in the final layers, where pretraining priors take over.
We claim both accounts describe the same event at different depths. The evidence is still identified in middle layers. It is then crowded out in late layers, partly by attention that flows to previously generated tokens. AttnReal calls these tokens "attention sinks", and Why LVLMs Are More Prone to Hallucinations in Longer Responses shows the same pull grows as responses lengthen. If the claim is right, the target for a single-pass fix is not "all visual tokens", as AttnReal assumes. It is the particular chunk the middle layers already favor.
Concretely, during prefill we split the context into chunks, each one image or one passage. At each decoding step we compute a pointer $p_c$ over chunks $c$. It is the length-normalized attention mass that a fixed band of middle-layer heads sends to chunk $c$, renormalized across chunks. These scores are already computed in the forward pass; we only aggregate them. In a band of late layers, attention to generated-history tokens above a threshold $T$ is scaled down by $\alpha$, as in AttnReal. The freed mass $m$ is then returned in proportion to the pointer rather than uniformly. Token $j$ in chunk $c$ receives
$$a'_j = a_j + m \, p_c \, \frac{a_j}{\sum_{k \in c} a_k},$$
where $a_j$ is the original late-layer attention weight on token $j$. The redistribution therefore preserves the within-chunk attention pattern and changes only how much each chunk gets. A gate turns redirection off when the pointer's entropy is high, because then the middle layers have no clear opinion to amplify.
Research Program
The program has three stages. Each stage can falsify the next.
Stage 1: measure the effect in multimodal contexts. We first establish that the "in-between" effect exists for interleaved image-text contexts. Lost in the Middle, and In-Between showed that multi-hop text QA degrades both with absolute evidence position and with the distance between the needed documents. For GPT-3.5 on HotpotQA, accuracy fell from roughly 50% with adjacent evidence to 45% with separated evidence. That study was text-only.
We rebuild its protocol with gold evidence from MMhops, DocHop-QA and WebQA. Gold images and passages are placed into fixed-length contexts padded with distractors. We vary three factors independently: the absolute position of each gold chunk, the distance between gold chunks, and which modality comes first. This answers an open question raised by DocHop-QA, which reports that adding page images can hurt multi-document performance. We test whether that "alignment tax" is a fusion failure, or whether it disappears when the image chunk is moved to a boundary or placed next to its partner text.
Stage 2: test whether the pointer exists. For every decoding step that produces an answer-bearing or evidence-citing token, we ask whether $p_c$ from middle layers ranks the gold chunk above distractors. We measure this as an area under the ranking curve, by layer. We also ask whether the same ranking, computed from late layers, is worse.
This stage must confront a constraint head-on. Large Vision-Language Models Get Lost in Attention reports that middle-layer attention in Qwen-2.5-VL-3B can be replaced by Gaussian noise while POPE accuracy rises from 86.13% to 87.40%. That suggests middle-layer attention carries little useful routing information, at least within a single image. Our claim is about routing between chunks, not between patches, so the two need not conflict. But if the between-chunk pointer is also near chance, the method has nothing to amplify and we stop. As a fallback, we would test a linear probe on middle-layer hidden states as the pointer source.
Stage 3: build and stress-test the redirection. We implement redirection on Qwen2.5-VL-7B, the MMhops-R1 backbone, and on Qwen2-VL, where AttnReal reports numbers. We tune $T$, $\alpha$, the layer bands and the entropy gate once, on a held-out development split. We then freeze them across all benchmarks. This tests the hyperparameter fragility that the file attributes to DMAS and RUDDER-style steering.
Baselines
The naive reference point is the unmodified model with greedy decoding on the same constructed contexts, with and without a chain-of-thought instruction. It anchors every position curve.
The strongest existing method for positional loss is PCD Mitigating Posterior Salience Attenuation. We port it to the vision-language backbone by applying its rotary-encoding over-rotation to the language model and leaving the image encoder unchanged. Its contrast weight $\beta$ gets the same development-set tuning budget as our method. On text it raised InfiniteBench 8k key-value retrieval for Llama-3-8B-262k from 72.0% to 79.0%, and RULER 16k variable-tracking F1 from 64.40 to 69.04. We rerun it on Llama-3-8B to reproduce these figures, as a sanity check before porting.
Our method beats PCD if it matches PCD's gain in middle-position accuracy within its confidence interval at roughly half the decoding cost. Exceeding PCD is not required. Losing clearly to PCD on accuracy while being faster would make this a speed-accuracy trade-off rather than a win, and we would report it as such.
The strongest single-pass hallucination baseline is AttnReal Attention Reallocation, which redistributes recycled sink attention uniformly over visual tokens. It reduced Qwen2-VL's CHAIR sentence/object hallucination from 30.0/8.9 to 21.0/5.9. We also run RUDDER Zou et al., which injects a visual direction extracted during prefill and keeps 96.0% throughput. Running AttnReal with our exact thresholds and layer bands, changing only the redistribution rule, is the ablation that isolates our key ingredient. Any gain over it is attributable to targeting.
Two further ablations complete the picture. A random-pointer control redirects the same mass to a random chunk. An oracle-pointer control redirects to the gold chunk and gives the ceiling on what targeting could achieve.
For the reordering alternative, we run an oracle reordering that places all gold chunks adjacent at the context end. We also run a realistic version that reorders by a reranker's relevance scores computed from the question.
For the agentic setting, MMhops-R1 reports 51.35% on Bridging and 22.01% on Comparison tasks. These come from an iterative retrieval loop, so they are not comparable to our fixed-context reading. We compare against them only in the agentic-reader experiment below, where we swap our method into the reading step of the same loop.
Why not just…?
Why not just run positional contrastive decoding on the vision-language model? This is a real threat on accuracy. PCD's text gains are substantial, and nothing in the file shows it failing on images. Its weaknesses are cost and indifference to content. It needs a second set of logits per token, and contrastive methods roughly halve throughput; DMAS reports being nearly 2x faster than visual contrastive decoding. That cost compounds over multi-hop chains. PCD also amplifies "distant" signal in general rather than the relevant chunk. The head-to-head comparison in Stage 3 settles whether content targeting buys accuracy, not just speed. If it does not, our contribution shrinks to a cheaper approximation, and we will say so.
Why not just rerank so the evidence sits at the edges or side by side? Baker et al. show that putting two evidence pieces at opposite edges maximizes the distance between them, which hurts synthesis. Xiao et al. note that reranking can break the logical flow of a prompt. Adjacent placement is ideal, but it requires knowing in advance which chunks matter. For bridging questions, that is exactly what is unknown until the first hop resolves. The oracle-versus-reranker gap in our experiments measures how much of the problem reordering can solve in practice. If the realistic reranker closes most of the gap on Comparison-style questions, where every entity is named in the question, we will concede that regime.
Why not just caption the images or compress the context? Baker et al. found that summarization and knowledge-graph extraction flatten the position curve but lower overall accuracy by discarding detail. WebQA showed that turning images into captions is lossy, with image-based queries reaching only about 28% against about 50% for text queries. We include a caption-substitution condition on WebQA and DocHop-QA to confirm the same holds here.
Why not just reallocate uniformly, as AttnReal does? With one image, uniform and targeted reallocation are nearly the same thing. With ten images and twenty passages, uniform reallocation spends most of the recycled mass on distractors. The matched ablation above tests exactly this.
Proposed Experiments
The main experiment produces position and distance curves on the constructed MMhops, DocHop-QA and WebQA contexts. We measure exact-match accuracy for MMhops and WebQA. For DocHop-QA we use answer F1 alongside the reported BLEU/ROUGE-L, where Qwen2.5-VL scores 21.56/23.90. Every curve is reported for each baseline. We also run Baker et al.'s text setup on HotpotQA, 2WikiMultihopQA and MuSiQue-Ans, to check that the method is not image-specific.
Alongside accuracy, we measure rationale hallucination. We check whether claims about image content in the model's intermediate reasoning are grounded, a failure that Yan et al. show can coexist with correct answers. We also run CHAIR and POPE on single-image inputs, to confirm that redirection does not harm the regime AttnReal and RUDDER were built for. Throughput, measured in tokens per second at batch size 1 and 8 on identical hardware, is reported for every method. Because fused attention kernels do not store attention scores, we report the real cost of exposing scores for the chosen head bands rather than claiming zero overhead.
The agentic-reader experiment replaces the reading step of an MMhops-R1-style loop with our method. It asks whether better use of already-retrieved evidence reduces the number of tool calls per question at equal accuracy.
The decisive checks are three. First, the Stage 2 pointer must rank gold chunks well above chance in middle layers, and better than in late layers. Second, targeted redirection must beat matched uniform redirection and the random-pointer control, specifically for middle-positioned and distance-separated evidence. Third, the gap between our method and PCD on those same cells must be small relative to the throughput difference. Failing the first check ends the approach. Failing the second means AttnReal already captures the effect. Failing the third means the extra pass is worth paying for.
References
- Mitigating Posterior Salience Attenuation in Long-Context LLMs with Positional Contrastive Decoding
- Exploiting Contextual Knowledge in LLMs through V-usable Information based Layer Enhancement
- Attention Reallocation: Towards Zero-cost and Controllable Hallucination Mitigation of MLLMs
- Why LVLMs Are More Prone to Hallucinations in Longer Responses: The Role of Context
- Lost in the Middle, and In-Between: Enhancing Language Models' Ability to Reason Over Long Contexts in Multi-Hop QA
- MMhops-R1: Multimodal Multi-hop Reasoning
- DocHop-QA: Towards Multi-Hop Reasoning over Multimodal Document Collections
- WebQA: Multihop and Multimodal QA
- Large Vision-Language Models Get Lost in Attention
- Adaptive Residual-Update Steering for Low-Overhead Hallucination Mitigation in Large Vision-Language Models
- Dynamic Multimodal Activation Steering for Hallucination Mitigation in Large Vision-Language Models
- Evaluating the Quality of Hallucination Benchmarks for Large Vision-Language Models