Introduction
Large Vision-Language Models (LVLMs) have demonstrated exceptional capabilities when reasoning over a single image. However, their performance often degrades significantly when processing multiple images simultaneously. This paper introduces a zero-cost, training-free intervention: scaling up the hidden states of the "delimiter tokens" that separate images in the prompt. This simple trick amplifies their ability to act as localized attention sinks, drastically reducing cross-image leakage and boosting performance across multi-image, multi-document, and multi-table benchmarks.
The Problem: Cross-Image Information Leakage
While modern LVLMs (such as Qwen-VL or LLaVA) excel at single-image tasks, feeding them multiple images introduces a critical flaw: cross-image information leakage. The model struggles to keep visual contexts isolated, often hallucinating that an object from one image is present in another.
Currently, models attempt to solve this by wrapping images in special delimiter tokens (e.g., <|vision_start|> and <|vision_end|>). However, attention map analysis reveals that these tokens are not strong enough to build a proper "wall" between contexts. Attention still bleeds across image boundaries, leading to muddled representations and incorrect answers on multi-image reasoning tasks.
Methodology: Delimiter Token Scaling
To combat this leakage, the authors propose Delimiter Token Scaling, a remarkably simple, training-free intervention applied during inference.
Instead of modifying the model's architecture or attention mechanism directly, the method multiplies the hidden states of the delimiter tokens by a scalar factor ($\lambda > 1$) at specific early layers in the Transformer. By scaling up the hidden state, the delimiter token becomes a stronger "attractor" for attention queries.
Because of how softmax normalizes attention scores, forcing tokens within an image to pay more attention to their local delimiter naturally forces them to pay less attention to tokens in other images. Crucially, because this method only modifies the hidden states before the QKV projections, it remains fully compatible with memory-optimized attention kernels like FlashAttention.
Key Insights
- Delimiters act as localized "Sink Tokens": Unlike standard
<BOS>sink tokens that absorb attention globally from the whole sequence, image delimiters absorb attention primarily from their own corresponding image. They act as an implicit "image tag." - Scaling preserves intra-image reasoning: One might assume that turning a delimiter into a massive attention sink would destroy the model's ability to reason about actual image pixels. Surprisingly, it does not. Because the delimiter acts as a shared additive bias for all tokens within that specific image, it actually reinforces intra-image interaction while squashing cross-image noise.
- A fundamental fix for concatenated inputs: The exact same mathematical trick works for separating distinct text documents or data tables. This proves that cross-context leakage is a fundamental flaw in how Transformers handle concatenated distinct inputs, making delimiter scaling a highly generalizable fix.
Key Results and Benchmarks
The authors evaluated their method across a diverse set of benchmarks, including Multi-Image (Mantis, MuirBench, MIRB, QBench2), Multi-Document (MultiNews, WCEP-10), Multi-Table (TQABench), and Few-Shot Interleaved tasks (OKVQA, VizWiz, TextVQA).
- Significant Accuracy Gains: On the Mantis multi-image benchmark, applying this trick to Qwen2.5-VL-3B improved accuracy from 59.91% to 63.13%. InternVL3-2B improved from 52.07% to 54.38%.
- Scalability: The method works consistently across model families (Qwen2.5-VL, InternVL3, LLaVA-OneVision) and scales up to massive 78B parameter models.
- Quantifiable Leakage Reduction: Attention map analysis shows that cross-image attention (e.g., tokens in Image 3 attending to Image 1) drops by approximately 50% when scaling is applied.
- Zero Overhead: The method requires exactly 0 extra VRAM and 0 extra inference time. It is a pure "free lunch" for performance.
- Text-Only Improvements: The method also improved ROUGE scores on multi-document summarization and accuracy on multi-table QA.
Limitations and Future Work
While powerful, the method relies on the presence of explicit separating tokens. It cannot currently be applied to continuous video streams that lack frame-by-frame delimiter tokens. Furthermore, because the technique requires modifying hidden states during the forward pass, it can only be used with open-weights models where developers have access to the model internals (though API providers could easily implement it backend). Future work aims to extend this approach to the video domain by incorporating mechanisms to model temporal transitions between frames.
Summary updated