arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.13298cs.CVcs.LG
收藏

旋转位置编码用于视觉Transformer

Rotary Position Embedding for Vision Transformer

NAVER AI Lab(NAVER AI实验室)

Byeongho Heo, Song Park, Dongyoon Han, Sangdoo Yun

AI总结:

本研究系统分析了旋转位置编码(RoPE)在视觉Transformer(ViT)中的应用,证明其具备良好的外推能力,能在推理时提高分辨率并保持精度,从而提升ImageNet-1k、COCO检测和ADE-20k分割性能,为ViT骨干网络提供最小额外开销的性能改进指导。

摘要:

旋转位置编码(RoPE)在语言模型上表现出色,尤其是对于Transformer的长度外推。然而,RoPE在计算机视觉领域的影响尚未得到充分探索,尽管RoPE似乎能够以类似于语言领域的方式增强视觉Transformer(ViT)的性能。本研究利用RoPE对2D视觉数据的实际实现,对RoPE应用于ViT时进行了全面分析。分析表明,RoPE展现出令人印象深刻的外推性能,即在推理时增加图像分辨率的同时保持精度。这最终带来了ImageNet-1k、COCO检测和ADE-20k分割的性能提升。我们相信这项研究为将RoPE应用于ViT提供了全面的指导,有望以最小的额外计算开销改进骨干网络性能。我们的代码和预训练模型可在https://github.com/naver-ai/rope-vit获取。

英文摘要:

Rotary Position Embedding (RoPE) performs remarkably on language models, especially for length extrapolation of Transformers. However, the impacts of RoPE on computer vision domains have been underexplored, even though RoPE appears capable of enhancing Vision Transformer (ViT) performance in a way similar to the language domain. This study provides a comprehensive analysis of RoPE when applied to ViTs, utilizing practical implementations of RoPE for 2D vision data. The analysis reveals that RoPE demonstrates impressive extrapolation performance, i.e., maintaining precision while increasing image resolution at inference. It eventually leads to performance improvement for ImageNet-1k, COCO detection, and ADE-20k segmentation. We believe this study provides thorough guidelines to apply RoPE into ViT, promising improved backbone performance with minimal extra computational overhead. Our code and pre-trained models are available at https://github.com/naver-ai/rope-vit

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

↑