paper-with-me

Papers

Spiral RoPE: Rotate Your Rotary Positional Embeddings in the 2D Plane

2026-02-03 · Haoyu Liu, Sucheng Ren, Tingyu Zhu, Peng Wang, Cihang Xie, Alan Yuille, Zeyu Zheng, Feng Wang arxiv

Rotary Position Embedding (RoPE) is the de facto positional encoding in large language models due to its ability to encode relative positions and support length extrapolation. When adapted to vision transformers, the standard axial formulation decomposes two-dimensional spatial positions into horizontal and vertical components, implicitly restricting positional encoding to axis-aligned directions. We identify this directional constraint as a fundamental limitation of the standard axial 2D RoPE, which hinders the modeling of oblique spatial relationships that naturally exist in natural images. To overcome this limitation, we propose Spiral RoPE, a simple yet effective extension that enables multi-directional positional encoding by partitioning embedding channels into multiple groups associated with uniformly distributed directions. Each group is rotated according to the projection of the patch position onto its corresponding direction, allowing spatial relationships to be encoded beyond the horizontal and vertical axes. Across a wide range of vision tasks including classification, segmentation, and generation, Spiral RoPE consistently improves performance. Qualitative analysis of attention maps further show that Spiral RoPE exhibits more concentrated activations on semantically relevant objects and better respects local object boundaries, highlighting the importance of multi-directional positional encoding in vision transformers.

📄 PDF Abstract BibTeX arXiv:2602.03227

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Round and Round We Go! What makes Rotary Positional Encodings useful?

2024-10-08 · Federico Barbero, Alex Vitvitskyi, Christos Perivolaropoulos, Razvan Pascanu 외

Positional Encodings (PEs) are a critical component of Transformer-based Large Language Models (LLMs), providing the attention mechanism with important sequence-position information. One of the most popular types of enco…

LeRoPE: Learnable RoPE Frequencies Improve Language Modeling

2026-07-11 · Petros Karypis, Sean O'Brien, Shreyas Kadekodi, Rui Zhu 외 arxiv

Rotary Positional Encodings (RoPE) are currently the most popular positional encodings used in modern language models. RoPE rotates two-dimensional chunks of query and key vectors, operating as a function of their relati…

Benchmarking Rotary Position Embeddings for Automatic Speech Recognition

2025-01-10 · Shucong Zhang, Titouan Parcollet, Rogier Van Dalen, Sourav Bhattacharya

Self-attention relies on positional embeddings to encode input order. Relative Position (RelPos) embeddings are widely used in Automatic Speech Recognition (ASR). However, RelPos has quadratic time complexity to input le…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)BenchmarkingGPU+3

The Rotary Position Embedding May Cause Dimension Inefficiency in Attention Heads for Long-Distance Retrieval

2025-02-16 · Ting-Rui Chiang, Dani Yogatama

The Rotary Position Embedding (RoPE) is widely used in the attention heads of many large language models (LLM). It rotates dimensions in the query and the key vectors by different angles according to their positions in t…

PositionQuestion Answering

Infinity-RoPE: Action-Controllable Infinite Video Generation Emerges From Autoregressive Self-Rollout

2025-11-25 · Hidir Yesiltepe, Tuna Han Salih Meral, Adil Kaan Akan, Kaan Oktay 외 arxiv

Current autoregressive video diffusion models are constrained by three core bottlenecks: (i) the finite temporal horizon imposed by the base model's 3D Rotary Positional Embedding (3D-RoPE), (ii) slow prompt responsivene…

Video Generation