用双交叉注意力减少视频模型的令牌量,提速不降质。
CrossLMM: Decoupling Long Video Sequences from LMMs via Dual Cross-Attention Mechanisms
- 用池化压缩视觉令牌,再通过双交叉注意力高效利用。
- 在多个视频任务上表现接近或优于原模型,但计算量大幅降低。
- 适合需要高效处理长视频的AI研究者和开发者。
大型多模态模型(LMM)虽增强了大语言模型对图像、视频等多模态数据的处理能力,但输入复杂度上升导致令牌数量激增,带来二次方级计算开销。本文提出CrossLMM,通过双交叉注意力机制解耦长视频序列,显著减少视觉令牌数量,同时保持性能稳定。首先,通过池化方法对预训练视觉编码器输出进行大幅令牌压缩;其次,在语言模型层引入视觉到视觉的交叉注意力,将压缩后的令牌作为查询,与原始视觉令牌集交互,实现高效信息利用并保留细节;此外,引入文本到视觉的交叉注意力,使文本令牌通过与原始视觉令牌交互,增强其对视觉内容的理解。全面实验表明,该方法在多个基于视频的LMM基准测试中表现相当甚至更优,且计算资源消耗显著降低。
原文摘要 · Abstract (English)
The advent of Large Multimodal Models (LMMs) has significantly enhanced Large Language Models (LLMs) to process and interpret diverse data modalities (e.g., image and video). However, as input complexity increases, particularly with long video sequences, the number of required tokens has grown significantly, leading to quadratically computational costs. This has made the efficient compression of video tokens in LMMs, while maintaining performance integrity, a pressing research challenge. In this paper, we introduce CrossLMM, decoupling long video sequences from LMMs via a dual cross-attention mechanism, which substantially reduces visual token quantity with minimal performance degradation. Specifically, we first implement a significant token reduction from pretrained visual encoders through a pooling methodology. Then, within LLM layers, we employ a visual-to-visual cross-attention mechanism, wherein the pooled visual tokens function as queries against the original visual token set. This module enables more efficient token utilization while retaining fine-grained informational fidelity. In addition, we introduce a text-to-visual cross-attention mechanism, for which the text tokens are enhanced through interaction with the original visual tokens, enriching the visual comprehension of the text tokens. Comprehensive empirical evaluation demonstrates that our approach achieves comparable or superior performance across diverse video-based LMM benchmarks, despite utilizing substantially fewer computational resources.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。