@rasbt: (Finally) wrote up "Understanding Positional Embeddings in Modern LLMs." A RoPE from-scratch tutorial missing from my L…
Summary
Sebastian Raschka shares a new from-scratch tutorial on positional embeddings in modern LLMs, covering RoPE plus recent approaches like NoPE, partial RoPE, and hybrid designs as part of his LLM building blocks collection.
View Cached Full Text
Cached at: 11/16/26, 12:24 PM
(Finally) wrote up “Understanding Positional Embeddings in Modern LLMs.”
A RoPE from-scratch tutorial missing from my LLM building blocks collection + what recent architectures do (NoPE, partial RoPE, hybrids).
Prob not the flashiest topic, but essential for understanding LLMs https://t.co/mkggue58t4
Similar Articles
@agopal42: Presenting PoPE today at #ICML2026! We revisit RoPE through the lens of content-position entanglement, and show how pol…
New paper introduces PoPE, a positional encoding that decouples content and position, addressing a fundamental flaw in RoPE used in many LLMs like Qwen, Gemma, DeepSeek. Presented at ICML2026.
@CamilleRoux: Une explication bien faite du fonctionnement interne des LLMs : tokens, embeddings, positional encoding, attention, fee…
This tweet shares a well-made explanation of the internal workings of LLMs, covering tokens, embeddings, positional encoding, attention, and feed-forward networks, via a blog post by 0xkato.
RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provably
This paper provides a theoretical proof that Rotary Positional Embeddings (RoPE) in Transformer-based language models lose their locality bias and ability to distinguish token order in long contexts, with attention scores becoming no better than random. The authors show that increasing the RoPE base trades off position vs. token distinction and that multi-head, multi-layer architectures cannot compensate for this fundamental limitation.
RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provably
This paper proves that RoPE-based attention fails to distinguish token positions and identity in long contexts, explaining LLM failures within advertised context lengths. Experimental verification shows models optimized for retrieval struggle on simple list tasks.
RIG-RoPE: Relation- and Instance-Gated Rotary Positional Encoding with Duration-Aware Temporal Coordinates
This preliminary technical report proposes RIG-RoPE, a relation- and instance-gated rotary positional encoding with duration-aware temporal coordinates, aiming to address spatial interference and improper temporal scaling in multimodal LLMs. It introduces a gating mechanism for height/width rotations and duration-aware temporal coordinates, but leaves large-scale empirical validation to future work.