2025-10-03 · 进阶 · 计算机视觉 · 机器学习

VideoNSA: Native Sparse Attention Scales Video Understanding

VideoNSA通过采用原生稀疏注意力机制,有效地扩展了视频理解模型对超长视觉文本上下文的处理能力,提高了长视频理解、时间推理和空间理解任务的性能。

更新于 2025-10-03。作者:Enxin Song、Wenhao Chai、Shusheng Yang、Ethan Armand、Xiaojun Shan、Haiyang Xu、Jianwen Xie、Zhuowen Tu。

中文摘要

多模态语言模型中的视频理解受限于上下文长度:模型通常错过关键过渡帧,且难以在长时间尺度上保持连贯性。为了解决这个问题,我们将原生稀疏注意力(Native Sparse Attention,简称NSA)应用于视频语言模型。我们的方法,VideoNSA,通过在216K视频指令数据集上端到端训练,对Qwen2.5-VL进行了适配。我们采用了一种硬件感知的混合注意力方法,保留密集注意力用于文本,而使用NSA处理视频。与基于标记压缩和无需训练的稀疏基线相比,VideoNSA在长视频理解、时间推理和空间基准测试上均实现了性能提升。进一步的消融分析揭示了以下四个关键发现:(1)能够可靠地扩展到128K个标记;(2)在固定预算下实现全局-局部注意力分配的最优化;(3)任务依赖的分支使用模式;(4)可学习的组合稀疏注意力有助于诱导动态注意力汇聚点。

英文摘要

Video understanding in multimodal language models remains limited by context length: models often miss key transition frames and struggle to maintain coherence across long time scales. To address this, we adapt Native Sparse Attention (NSA) to video-language models. Our method, VideoNSA, adapts Qwen2.5-VL through end-to-end training on a 216K video instruction dataset. We employ a hardware-aware hybrid approach to attention, preserving dense attention for text, while employing NSA for video. Compared to token-compression and training-free sparse baselines, VideoNSA achieves improved performance on long-video understanding, temporal reasoning, and spatial benchmarks. Further ablation analysis reveals four key findings: (1) reliable scaling to 128K tokens; (2) an optimal global-local attention allocation at a fixed budget; (3) task-dependent branch usage patterns; and (4) the learnable combined sparse attention help induce dynamic attention sinks.

解读

一句话总结

VideoNSA通过采用原生稀疏注意力机制,有效地扩展了视频理解模型对超长视觉文本上下文的处理能力,提高了长视频理解、时间推理和空间理解任务的性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源