arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.12201cs.CV
收藏

OmniSparse:面向长视频多模态大语言模型的训练感知细粒度稀疏注意力

OmniSparse: Training-Aware Fine-Grained Sparse Attention for Long-Video MLLMs

Feng Chen, Yefei He, Shaoxuan He, Yuanyu He, Jing Liu, Lequan Lin, Akide Liu, Zhaoyang Li, Jiyuan Zhang, Zhenbang Sun, Bohan Zhuang, Qi Wu

AI总结:

针对现有稀疏注意力方法存在训练推理差距、细粒度选择能力不足的问题,提出OmniSparse训练感知细粒度稀疏注意力框架,通过三类自适应机制实现长视频MLLMs的高效推理,性能媲美全注意力且取得显著加速与内存优化效果。

摘要:

现有稀疏注意力方法主要通过在预定义稀疏模式下选择关键token来实现推理阶段加速,但这类方法往往无法弥合训练与推理之间的差距,且缺乏在查询、键值(KV)、注意力头等多个维度进行细粒度token选择的能力,导致性能欠佳、加速收益有限。本文提出OmniSparse,一种面向长视频多模态大语言模型(MLLMs)的训练感知细粒度稀疏注意力框架,可在训练和推理阶段同时运行,支持动态token预算分配。具体而言,OmniSparse包含三个自适应互补机制:一是通过惰性-活跃分类进行查询选择,保留捕捉广泛语义相似性的活跃查询,丢弃多数聚焦有限局部上下文、功能冗余度高的惰性查询;二是具备头级动态预算分配的KV选择,基于最平缓的注意力头确定共享预算并统一应用于所有头,以保障注意力召回率;三是KV缓存瘦身,根据头级解码查询模式选择性获取视觉KV缓存,降低头级冗余。实验结果表明,OmniSparse性能与全注意力相当,同时在预填充阶段实现最高2.7倍加速,解码阶段实现2.4倍内存缩减。

英文摘要:

Existing sparse attention methods primarily target inference-time acceleration by selecting critical tokens under predefined sparsity patterns. However, they often fail to bridge the training-inference gap and lack the capacity for fine-grained token selection across multiple dimensions such as queries, key-values (KV), and heads, leading to suboptimal performance and limited acceleration gains. In this paper, we introduce OmniSparse, a training-aware fine-grained sparse attention framework for long-video MLLMs, which operates in both training and inference with dynamic token budget allocation. Specifically, OmniSparse contains three adaptive and complementary mechanisms: (1) query selection via lazy-active classification, retaining active queries that capture broad semantic similarity while discarding most lazy ones that focus on limited local context and exhibit high functional redundancy; (2) KV selection with head-level dynamic budget allocation, where a shared budget is determined based on the flattest head and applied uniformly across all heads to ensure attention recall; and (3) KV cache slimming to reduce head-level redundancy by selectively fetching visual KV cache according to the head-level decoding query pattern. Experimental results show that OmniSparse matches the performance of full attention while achieving up to 2.7x speedup during prefill and 2.4x memory reduction during decoding.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑