Abstract
Vision-Language Models (VLMs) face a critical trade-off between the high accuracy of token-insertion methods and the computational efficiency of cross-attention. Token-insertion models suffer from quadratic memory scaling, while standard cross-attention often fails on fine-grained visual tasks due to the loss of local textual context. We introduce CASA (Cross-Attention via Self-Attention), a novel fusion mechanism that allows text tokens to attend simultaneously to image features and neighboring text tokens. CASA achieves near-state-of-the-art performance on complex visual reasoning tasks while maintaining the low memory footprint necessary for long-form streaming video applications.
Introduction
Modern top-tier VLMs typically employ token insertion, treating image patches as additional tokens within the language model's input stream. While this enables deep multimodal reasoning, it leads to a computational explosion as image resolution or video length increases. Conversely, traditional cross-attention is more efficient but "destructive"; by forcing text tokens to attend exclusively to images during fusion, it disrupts the linguistic flow required to interpret fine-grained visual details like charts or small text.
Methodology: The CASA Mechanism
CASA addresses the limitations of standard cross-attention by modifying the attention query. In a CASA layer, a text token acts as a query to pull information from a concatenated set of image tokens and preceding text tokens within its local window. This ensures the model maintains its "train of thought" while integrating visual evidence.
Architectural Variants
The authors explored three primary integration strategies:
- CASA$^{\rightarrow}$: Sequential placement before standard self-attention.
- CASA$^{\oplus}$: A parallel configuration where CASA and self-attention results are summed.
- CASA$^{\vee}$: Replacing specific LLM self-attention layers to maximize compute savings.
By utilizing block-wise attention (FlashAttention-2), CASA scales linearly with the number of images, avoiding the quadratic bottlenecks of token insertion.
Experimental Evaluation
The models were trained on the FineVision dataset (24M images) alongside LLaVA-OneVision and LLaVA-Video collections. Performance was evaluated across nine image benchmarks (including DocVQA, ChartQA, and OCRBench) and multiple video benchmarks (VideoMME, MVBench).
Key Results and Efficiency
CASA significantly narrows the performance gap between efficient cross-attention and expensive token insertion. On the challenging ChartQA benchmark, CASA (2B) achieved a score of ~73.8, vastly outperforming existing cross-attention models like mPLUG-Owl3 (2B), which scored 48.5.
From an efficiency standpoint, CASA reduced memory usage by 74% and accelerated training by 84-89% compared to full token insertion for high-resolution inputs. In streaming video scenarios (LiveSports3K), CASA maintained constant inference speeds, whereas token-insertion models eventually suffered from out-of-memory (OOM) errors.
Discussion and Conclusion
The primary insight of this work is the necessity of "text-to-text" communication within fusion layers. Ablation studies showed that masking the self-attention component of CASA during inference leads to a total collapse in performance, proving that visual features are best interpreted when contextualized by local text. While a small residual gap (5-7%) remains compared to full token insertion on the most complex reasoning tasks, CASA provides a scalable path forward for high-resolution and long-context multimodal understanding.
Summary updated