A Circular Argument: Does RoPE need to be Equivariant for Vision?

Chase van de Geijn, Timo Lüddecke, Polina Turishcheva, Alexander S. Ecker

Abstract

Rotary Positional Encoding (RoPE) has become the standard for modern Transformers, largely due to its property of shift-equivariance—the idea that attention depends only on the relative distance between tokens. While this property is highly valued in 1D language modeling, its necessity in 2D vision tasks has remained largely an assumption. This paper investigates whether the success of RoPE in computer vision is truly due to its "relativity" or other underlying factors. By introducing Spherical RoPE, a non-equivariant version of the encoding, we demonstrate that breaking shift-equivariance does not degrade performance. Our findings suggest that frequency diversity and the ability to capture oblique spatial relationships are more critical to success than mathematical relativity.

Introduction

Transformers are inherently permutation-invariant, meaning they treat input data as an unordered collection unless augmented with Positional Encodings (PEs). In the realm of Large Language Models (LLMs), RoPE has emerged as the gold standard because it provides a "relative" sense of order: the attention score between two tokens is a function of their displacement, not their absolute coordinates.

As researchers have adapted RoPE for Vision Transformers (ViTs), significant effort has been spent maintaining this shift-equivariance in two dimensions. This research asks a provocative question: Is this effort necessary? Or have we been trapped in a "circular argument" where we assume relativity is beneficial simply because the models that use it perform well?

Methodology

The authors explore the necessity of equivariance by comparing three distinct rotary embedding strategies:

  1. Mixed RoPE (The Equivariant Baseline): The authors mathematically prove that Mixed RoPE is the most general possible solution for multi-dimensional rotary embeddings that remain strictly shift-equivariant. It represents the theoretical limit of "relative" 2D encodings.
  2. Spherical RoPE (The Rule-Breaker): To test if equivariance is required, the authors propose Spherical RoPE. Unlike standard RoPE, which rotates pairs of dimensions in a 2D plane, Spherical RoPE rotates triplets of dimensions around a sphere using Euler angles (yaw and roll). Because these rotations are non-commutative, this method explicitly breaks the shift-equivariance property.
  3. Uniform RoPE (The Frequency Control): A version where every dimension rotates at the same frequency, designed to test whether the variety of rotation speeds in standard RoPE is the actual source of its power.

Experimental Framework

The proposed methods were evaluated on standard computer vision benchmarks to assess their impact on classification and spatial reasoning:

  • ImageNet-1k: The primary benchmark for training Vision Transformers (ViT-S).
  • CIFAR-100: Used for initial testing and data-scaling analysis.
  • Pascal VOC: A semantic segmentation task used to determine if the findings hold for dense prediction tasks beyond simple classification.

Key Insights and Results

Relativity is Not the Secret Sauce

The most significant finding is that Spherical RoPE achieved 77.4% top-1 accuracy on ImageNet-1k, exactly matching the performance of the strictly relative Mixed RoPE. This parity suggests that the inductive bias of shift-equivariance—long thought to be RoPE's primary advantage—is not actually necessary for high-performance vision models.

Frequency Diversity is Critical

Experiments with Uniform RoPE (using a single rotation speed) showed a significant drop in performance. This indicates that RoPE’s success is likely derived from its "frequency diversity." By having many different rotation speeds, the model can capture spatial relationships across multiple scales simultaneously.

The Importance of Oblique Directions

Standard "Axial RoPE" only accounts for rotations along the x or y axes. The authors found that both Mixed and Spherical RoPE—which allow for diagonal or "oblique" spatial relationships—perform significantly better. This suggests that capturing complex, non-axis-aligned dependencies is more important than maintaining strict relativity.

Robustness and Extrapolation

Surprisingly, the non-equivariant Spherical RoPE generalized better to larger image resolutions than its strictly relative counterparts. Furthermore, in low-data regimes (training on only 20% or 40% of the data), Spherical RoPE remained competitive or superior, suggesting that the "relative" inductive bias does not provide a significant advantage even when data is scarce.

Conclusion

This research suggests that the vision community's focus on maintaining shift-equivariance in positional encodings may be misplaced. While RoPE is an excellent tool, its benefits in 2D vision stem from frequency diversity and oblique modeling rather than relativity.

However, the authors note that these findings are currently specific to computer vision, where sequence lengths are relatively short compared to the massive context windows of LLMs. Future work is needed to determine if the "circular argument" of relativity holds in the language domain, or if strict equivariance remains essential for long-form text processing and numerical stability.

Summary updated

BibTeX
@inproceedings{geijn2025circular,
  author = {Chase van de Geijn and Timo Lüddecke and Polina Turishcheva and Alexander S. Ecker},
  title = {{A Circular Argument: Does RoPE need to be Equivariant for Vision?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=WCenI6RU9s},
}
Figure