paper-with-me

홈 › Papers

Selective Rotary Position Embedding

2025-11-21 · Sajad Movahedi, Timur Carstensen, Arshia Afzal, Frank Hutter, Antonio Orvieto, Volkan Cevher arxiv

Position information is essential for language modeling. In softmax transformers, Rotary Position Embeddings (\textit{RoPE}) encode positions through \textit{fixed-angle} rotations, while in linear transformers, order is handled via input-dependent (selective) gating that decays past key-value associations. Selectivity has generally been shown to improve language-related tasks. Inspired by this, we introduce \textit{Selective RoPE}, an \textit{input-dependent} rotary embedding mechanism, that generalizes \textit{RoPE}, and enables rotation in \textit{arbitrary angles} for both linear and softmax transformers. We show that softmax attention already performs a hidden form of these rotations on query-key pairs, uncovering an implicit positional structure. We further show that in state-space models and gated linear transformers, the real part manages forgetting while the imaginary part encodes positions through rotations. We validate our method by equipping gated transformers with \textit{Selective RoPE}, demonstrating that its input-dependent rotations improve performance in language modeling and on difficult sequence tasks like copying, state tracking, and retrieval.

📄 PDF Abstract BibTeX arXiv:2511.17388

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

DoPE: Denoising Rotary Position Embedding

2025-11-12 · Jing Xiong, Liyang Fan, Hui Shen, Zunhai Su 외 arxiv

Positional encoding is essential for large language models (LLMs) to represent sequence order, yet recent studies show that Rotary Position Embedding (RoPE) can induce massive activation. We investigate the source of the…

Clifford Algebraic Rotor Embeddings : Maybe embeddings should start to CARE

2025-11-11 · Sameeksha Sriram, Ayush Paliwal, Alexander S. Ecker, Chase van de Geijn arxiv

Rotary Positional Embeddings (RoPE) have demonstrated exceptional performance as a positional encoding method, consistently outperforming their baselines. While recent work has sought to extend RoPE to higher-dimensional…

Context-aware Rotary Position Embedding

2025-07-30 · Ali Veisi, Delaram Fartoot, Hamidreza Amirzadeh arxiv

Positional encoding is a vital component of Transformer architectures, enabling models to incorporate sequence order into self-attention mechanisms. Rotary Positional Embeddings (RoPE) have become a widely adopted soluti…

Computational Efficiency

Rotary Outliers and Rotary Offset Features in Large Language Models

2025-03-03 · André Jonasson

Transformer-based Large Language Models (LLMs) rely on positional encodings to provide sequence position information to their attention mechanism. Rotary Positional Encodings (RoPE), which encode relative position by rot…

Position

VRoPE: Rotary Position Embedding for Video Large Language Models

2025-02-17 · Zikang Liu, Longteng Guo, Yepeng Tang, Tongtian Yue 외

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. Exist…

PositionVideo Understanding