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

- **ID:** 967
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2410.06205
- **Authors:** Barbero, Federico, Vitvitskyi, Alex, Perivolaropoulos, Christos, Pascanu, Razvan, Veličković, Petar
- **Venue:** arXiv 2410.06205
- **Publisher:** arXiv 2410.06205
- **Published:** 2024
- **Source:** arxiv
- **Access:** open arXiv PDF/abs
- **Tags:** arxiv, 2410-06205, long-context, safety, linkedin-thread
- **Topics:** long context; safety
- **Added:** 2026-09-15
- **Verified:** 2026-09-15
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/967

## Summary

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 encoding used today in LLMs are Rotary Positional Encodings (RoPE), that rotate the queries and keys bas…

## Attributes

- **Purpose:** Round and Round We Go! What makes Rotary Positional Encodings useful?
- **Domain:** long context; safety
- **Used for:** LLM research reference
- **Time period:** arXiv 2024/10/08; Discord LinkedIn mid harvested 2026-09-15
- **Author type:** academic/industry (see abs)

## From the source (fetched 2026-10-03)

- **Published:** Oct 8, 2024 (arXiv)
- **Last revised:** May 13, 2025 (arXiv)
- **arXiv categories:** cs.CL, cs.LG (arXiv)
- **Citations:** 129 (15 influential) (Semantic Scholar)
- **References:** 40 (Semantic Scholar)
- **Published in:** International Conference on Learning Representations (Semantic Scholar)

## Abstract

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 encoding used today in LLMs are Rotary Positional Encodings (RoPE), that rotate the queries and keys based on their relative distance. A common belief is that RoPE is useful because it helps to decay token dependency as relative distance increases. In this work, we argue that this is unlikely to be the core reason. We study the internals of a trained Gemma 7B model to understand how RoPE is being used at a mechanical level. We find that Gemma learns to use RoPE to construct robust "positional" attention patterns by exploiting the highest frequencies. We also find that, in general, Gemma greatly prefers to use the lowest frequencies of RoPE, which we suspect are used to carry semantic information. We mathematically prove interesting behaviours of RoPE and conduct experiments to verify our findings, proposing a modification of RoPE that fixes some highlighted issues and improves performance. We believe that this work represents an interesting step in better understanding PEs in LLMs, which we believe holds crucial value for scaling LLMs to large sizes and context lengths.

## Research notes

- From LinkedIn thread (Discord mid 1362796014683160646). Primary: https://www.linkedin.com/posts/pierre-carl-langlais-b0105b10_what-if-your-llm-is-a-graph-a-few-days-activity-7318210982483263488-CtH9?utm_source=share&utm_medium=member_desktop.

## Cites, within this collection

- [Transformers need glasses! Information over-squashing in language tasks](https://papers.projxon.ai/entries/968) (paper 2024, #968)

## Cited by, within this collection

- [Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddings](https://papers.projxon.ai/entries/478) (paper 2025, #478)
- [How Local Mixing Encodes Relative Position in Global NoPE Attention](https://papers.projxon.ai/entries/840) (paper 2026, #840)
- [Transformers need glasses! Information over-squashing in language tasks](https://papers.projxon.ai/entries/968) (paper 2024, #968)

## Related entries

- Discussed in: [Long context: three bets and a weak spot in evaluation (overview)](https://papers.projxon.ai/entries/1208) (note, #1208)

## Similar entries

- [Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models](https://papers.projxon.ai/entries/947) (paper, #947)
- [Scalable In-context Ranking with Generative Models](https://papers.projxon.ai/entries/958) (paper, #958)
- [From $f(x)$ and $g(x)$ to $f(g(x))$: LLMs Learn New Skills in RL by Composing Old Ones](https://papers.projxon.ai/entries/937) (paper, #937)
- [MEDIC: Comprehensive Evaluation of Leading Indicators for LLM Safety and Utility in Clinical Applications](https://papers.projxon.ai/entries/965) (paper, #965)
- [ImpossibleBench: Measuring LLMs' Propensity of Exploiting Test Cases](https://papers.projxon.ai/entries/950) (paper, #950)
- [LoongRL: Reinforcement Learning for Advanced Reasoning over Long Contexts](https://papers.projxon.ai/entries/930) (paper, #930)
