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

VRoPE:用于视频大型语言模型的旋转位置编码

VRoPE: Rotary Position Embedding for Video Large Language Models

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);School of Computer Science and Technology, Beijing Jiaotong University(北京交通大学计算机科学与技术学院);Basic Algorithm Center, Tencent(腾讯基础算法中心)

Zikang Liu, Longteng Guo, Yepeng Tang, Tongtian Yue, Junxian Cai, Kai Ma, Qingbin Liu, Xi Chen, Jing Liu

AI总结:

针对RoPE扩展至视频时存在的注意力偏差和视频-文本转换中断问题,提出VRoPE方法,通过均衡编码策略和重构位置索引,显著提升了Video-LLM在视频理解、时序推理和检索任务上的性能。

摘要:

旋转位置编码(RoPE)在基于文本的大型语言模型(LLM)中表现出色,但由于视频帧复杂的时空结构,将其扩展到视频仍具挑战性。现有适配方法(如RoPE-3D)尝试分别编码空间和时间维度,但存在两大局限:注意力分布中的位置偏差,以及视频-文本转换时的中断。为克服这些问题,我们提出了视频旋转位置编码(VRoPE),一种专为Video-LLM定制的新型位置编码方法。具体而言,我们引入了一种更均衡的编码策略来缓解注意力偏差,确保空间焦点更均匀分布。此外,我们的方法重构了位置索引,以确保视频和文本token之间的平滑过渡。在不同模型上的大量实验表明,VRoPE持续优于先前的RoPE变体,在视频理解、时序推理和检索任务上取得显著提升。代码可在https://github.com/johncaged/VRoPE获取。

英文摘要:

Rotary Position Embedding (RoPE) has shown strong performance in text-based Large Language Models (LLMs), but extending it to video remains a challenge due to the intricate spatiotemporal structure of video frames. Existing adaptations, such as RoPE-3D, attempt to encode spatial and temporal dimensions separately but suffer from two major limitations: positional bias in attention distribution and disruptions in video-text transitions. To overcome these issues, we propose Video Rotary Position Embedding (VRoPE), a novel positional encoding method tailored for Video-LLMs. Specifically, we introduce a more balanced encoding strategy that mitigates attention biases, ensuring a more uniform distribution of spatial focus. Additionally, our approach restructures positional indices to ensure a smooth transition between video and text tokens. Extensive experiments on different models demonstrate that VRoPE consistently outperforms previous RoPE variants, achieving significant improvements in video understanding, temporal reasoning, and retrieval tasks. Code is available at https://github.com/johncaged/VRoPE.

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

↑