2025-02-10 · 专家 · 计算机视觉 · 机器学习

VideoRoPE: What Makes for Good Video Rotary Position Embedding?

这篇论文提出了VideoRoPE,一种适用于视频数据的有效旋转位置嵌入方法,通过分析并改进RoPE在视频上下文中的四个关键特性,实现了对视频数据的鲁棒和有效的位置信息表示。

更新于 2025-02-10。作者:Xilin Wei、Xiaoran Liu、Yuhang Zang、Xiaoyi Dong、Pan Zhang、Yuhang Cao、Jian Tong、Haodong Duan、Qipeng Guo、Jiaqi Wang、Xipeng Qiu、Dahua Lin。

中文摘要

虽然旋转位置嵌入(RoPE)及其变体因其长上下文能力而被广泛采用,但将1D RoPE扩展到具有复杂时空结构的视频领域仍然是一个未解的挑战。这项工作首先进行了一项全面分析,确定了四个对于RoPE有效适应视频所必需的关键特征,这些特征在以往的研究中尚未得到充分考虑。作为分析的一部分,我们引入了一个具有挑战性的视觉“大海捞针”任务(V-NIAH-D),该任务在V-NIAH中添加了周期性干扰因素。V-NIAH-D任务表明,之前的RoPE变体由于缺乏适当的时间维度分配,很容易受到干扰因素的误导。基于我们的分析,我们引入了VideoRoPE,其3D结构旨在保留时空关系。VideoRoPE具有低频时间分配以减轻周期性振荡,对角布局以保持空间对称性,以及可调整的时间间隔以解耦时间和空间索引。VideoRoPE在长视频检索、视频理解和视频幻觉等多样化的下游任务中,始终优于之前的RoPE变体。我们的代码将在https://github.com/Wiselnn570/VideoRoPE上提供。

英文摘要

While Rotary Position Embedding (RoPE) and its variants are widely adopted for their long-context capabilities, the extension of the 1D RoPE to video, with its complex spatio-temporal structure, remains an open challenge. This work first introduces a comprehensive analysis that identifies four key characteristics essential for the effective adaptation of RoPE to video, which have not been fully considered in prior work. As part of our analysis, we introduce a challenging V-NIAH-D (Visual Needle-In-A-Haystack with Distractors) task, which adds periodic distractors into V-NIAH. The V-NIAH-D task demonstrates that previous RoPE variants, lacking appropriate temporal dimension allocation, are easily misled by distractors. Based on our analysis, we introduce VideoRoPE, with a 3D structure designed to preserve spatio-temporal relationships. VideoRoPE features low-frequency temporal allocation to mitigate periodic oscillations, a diagonal layout to maintain spatial symmetry, and adjustable temporal spacing to decouple temporal and spatial indexing. VideoRoPE consistently surpasses previous RoPE variants, across diverse downstream tasks such as long video retrieval, video understanding, and video hallucination. Our code will be available at https://github.com/Wiselnn570/VideoRoPE{https://github.com/Wiselnn570/VideoRoPE}.

解读

一句话总结

这篇论文提出了VideoRoPE,一种适用于视频数据的有效旋转位置嵌入方法,通过分析并改进RoPE在视频上下文中的四个关键特性,实现了对视频数据的鲁棒和有效的位置信息表示。

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

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

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

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

来源

机器可读索引:llms.txt