Artificial Intelligence1 min read

Understanding Positional Embeddings in Modern LLMs

By · Published by Everything Blog

In short

Large language models use specialized mechanisms to monitor where each token appears during text processing. Classic frameworks like GPT-2 combine absolute position vectors directly with token embeddings prior to the initial transformer block. In contrast, modern designs such as MiniMax-M3 implement relative positional embeddings, known as RoPE, within the attention mechanism of every block. Depending on their overall architecture, newer models can alter or completely forgo explicit positional encodings.

Key points

  • Positional embeddings are necessary for large language models to accurately track word se…: Positional embeddings are necessary for large language models to accurately track word sequences.
  • Newer models like MiniMax-M3 utilize relative positional embeddings called RoPE within th…: Newer models like MiniMax-M3 utilize relative positional embeddings called RoPE within their attention mechanisms.
  • Modern architectures can successfully adapt or entirely omit explicit positional encoding…: Modern architectures can successfully adapt or entirely omit explicit positional encodings based on their design.

Sources checked by our analysis pipeline: 1

This article explains how LLMs encode and process token position information by covering classic and contemporary methods like RoPE. It’s essentially a comprehensive journey where we will work through the mechanisms with visual examples, a little math, and a small PyTorch implementation. And, of course, we will then also look at how modern architectures adapt or omit explicit positional encodings.

Below, you can find a preview of which positional embedding choices are used in 2026 open-weight models. We will discuss these choices later after covering the underlying mechanisms.

But why spending so much time writing/reading about this rather minor building block? LLMs keep evolving, and as I was preparing a new article on the latest LLM architecture trends this year, I realized that I never covered the positional information methods used in LLMs in any article so far. So, instead of letting the other article get out of hand, I thought it might make sense to publish this as a standalone building block for the upcoming LLM architecture and trends analysis.

Also, over the years, many readers have asked me…

Artificial Intelligence