VideoRoPE:什么是好的视频旋转位置编码?
VideoRoPE: What Makes for Good Video Rotary Position Embedding?
AI总结:
本文分析了视频旋转位置编码的四个关键特征,提出VideoRoPE,通过3D结构、低频时间分配、对角布局和可调时间间距有效保留时空关系,在长视频检索等任务上超越以往变体。
摘要:
虽然旋转位置编码(RoPE)及其变体因其长上下文能力被广泛采用,但将1D RoPE扩展到具有复杂时空结构的视频仍然是一个未解决的挑战。本研究首先进行了全面分析,确定了将RoPE有效适配到视频所需的四个关键特征,这些特征在以往工作中未被充分考虑。作为分析的一部分,我们引入了具有挑战性的V-NIAH-D(带干扰物的视觉大海捞针)任务,它在V-NIAH中加入了周期性干扰物。V-NIAH-D任务表明,以往缺乏合适时间维度分配的RoPE变体很容易被干扰物误导。基于我们的分析,我们引入了VideoRoPE,其3D结构旨在保留时空关系。VideoRoPE具有低频时间分配以缓解周期性振荡,对角布局以保持空间对称性,以及可调时间间距以解耦时间和空间索引。在长视频检索、视频理解和视频幻觉等多样化下游任务中,VideoRoPE始终超越以往的RoPE变体。
英文摘要:
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 \textbf{VideoRoPE}, with a \textit{3D structure} designed to preserve spatio-temporal relationships. VideoRoPE features \textit{low-frequency temporal allocation} to mitigate periodic oscillations, a \textit{diagonal layout} to maintain spatial symmetry, and \textit{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 \href{https://github.com/Wiselnn570/VideoRoPE}{https://github.com/Wiselnn570/VideoRoPE}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。