arXiv:2512.19535cs.CVcs.AI2025-12

用交叉注意力提升视觉语言模型效率,实时视频生成更流畅。

CASA: Cross-Attention over Self-Attention for Efficient Vision-Language Fusion

  • 用交叉注意力替代图像令牌插入,降低内存与计算开销。
  • 在多图像对话中保持低延迟,内存消耗近似恒定。
  • 适合实时视频字幕、长序列多图交互等场景。

视觉语言模型(VLM)通常通过将预训练视觉编码器的图像令牌直接插入语言模型的文本流中进行训练,使文本与图像信息能充分相互关注,但对长多图像对话或视频流应用而言,内存与计算成本迅速上升。采用交叉注意力(CA)的VLM是更高效的替代方案,因无需将图像令牌加入键值缓存。尽管交叉注意力早被提出,当前文献中仍少见且性能常逊于令牌插入模型。本文重新审视交叉注意力在视觉语言建模中的有效性:(i) 分析交叉注意力与自注意力的核心差异;(ii) 从纯文本大模型训练及适配预训练插入式VLM出发,证明简单交叉注意力比以往报道更具竞争力;(iii) 在实时视频字幕任务中验证其优势,自然实现低延迟与近恒定内存消耗。代码与示例见项目页:https://kyutai.org/casa。

原文摘要 · Abstract (English)

Vision-language models (VLMs) are commonly trained by directly inserting image tokens from a pretrained vision encoder into the text stream of a language model. This allows text and image information to fully attend to one another within the model, but becomes rapidly costly for long multi-image conversations or streaming video applications, both in terms of memory and compute. VLMs leveraging cross-attention (CA) are an efficient alternative to token insertion as image tokens are not added to the KV cache. Despite being introduced early on, multimodal CA models are scarce in the current VLM literature and often underperform their token insertion counterparts. In this work, we reinvestigate the effectiveness of cross-attention for vision-language modeling: (i) We analyze the core differences between the cross-attention and self-attention mechanisms, (ii) we train cross-attention VLMs both from a text-only LLM and by adapting a pretrained insertion-based VLM, showing that simple cross-attention is far more competitive with token insertion than previously reported, and (iii) we demonstrate the practical advantages of cross-attention on real-time video captioning, where it naturally maintains low latency and near-constant memory cost. For samples and code, please see our project page at https://kyutai.org/casa .

视觉语言交叉注意力视频生成高效模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。