nD-RoPE: A Generalized RoPE for n-Dimensional Position Embedding
Boyang Li, Yulin Wu, Sizhe Xu, Nuoxian Huang, Zhonghang Yuan, Shangyi Guo, Shu Yang, Takahiro Yabe
Abstract
Rotary Position Embedding (RoPE) is widely adopted in Transformer models, yet its extension to high-dimensional domains lacks a unified theoretical formulation. Most existing approaches either apply rotations independently along each axis or mix frequencies empirically, which limits cross-dimensional interactions and yields direction-dependent representations. To address these limitations, we propose *nD-RoPE*, a decomposition-free generalization of rotary embeddings to arbitrary dimensions. From a translation-invariant formulation in continuous Hilbert space, we derive a spectral condition for isotropy that requires treating positions and frequencies as coupled $n$-dimensional vectors. We instantiate this principle with a multi-scale regular simplex wave-vector design that provides uniform directional coverage with maximal symmetry. Experiments across images, videos, and point clouds demonstrate consistent performance gains and improved generalization in high-dimensional settings.
BibTeX
@inproceedings{
li2026ndrope,
title={nD-Ro{PE}: A Generalized Ro{PE} for n-Dimensional Position Embedding},
author={Boyang Li and Yulin Wu and Sizhe Xu and Nuoxian Huang and Zhonghang Yuan and Shangyi Guo and Shu Yang and Takahiro Yabe},
booktitle={Forty-third International Conference on Machine Learning},
year={2026},
url={https://openreview.net/forum?id=YPXDQkU7XW}
}