CASA: Cross-Attention via Self-Attention for Efficient Vision-Language Fusion
Moritz Böhle, Amélie Royer, Juliette Marrie, Edouard Grave, Patrick Pérez
TL;DR
The paper introduces CASA, a Cross-Attention via Self-Attention mechanism that injects visual information into LLMs while enabling local text-to-text self-attention in the cross-attention layers. This implicit gating and local attention reduce memory and compute compared to token insertion and standard cross-attention, addressing scalability for high-resolution images and streaming video. They show CASA narrows the gap to insertion-based models across diverse VLM benchmarks, both when training from scratch on text-only LLMs and when adapting existing VLMs, with strong performance on document/chart reading, OCR, and VQA tasks. CASA enables real-time streaming video captioning with low memory growth and latency. They provide extensive experiments, efficiency analyses, and ablations supporting the key role of text-to-text interaction in CASA.
Abstract
Vision-language models (VLMs) are commonly trained by inserting image tokens from a pretrained vision encoder into the textual stream of a language model. This allows text and image information to fully attend to one another within the model, but becomes extremely costly for high-resolution images, long conversations, or streaming videos, both in memory and compute. VLMs leveraging cross-attention are an efficient alternative to token insertion but exhibit a clear performance gap, in particular on tasks involving fine-grained visual details. We find that a key to improving such models is to also enable local text-to-text interaction in the dedicated cross-attention layers. Building on this, we propose CASA, Cross-Attention via Self-Attention, a simple and efficient paradigm which substantially reduces the gap with full token insertion on common image understanding benchmarks, while enjoying the same scalability as cross-attention models when applied to long-context multimodal tasks such as streaming video captioning. For samples and code, please see our project page at https://kyutai.org/casa .
