Sebastian Raschka By Sebastian Raschka, PhD

Understanding Positional Embeddings in Modern LLMs

Read the original on Sebastian Raschka →

The article titled "Understanding Positional Embeddings in Modern LLMs" explores the mechanisms by which large language models encode the positions of tokens within input sequences. It delves into the various methods used to represent token positions, highlighting how these embeddings influence model behavior and performance.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at Sebastian Raschka.

arXiv AI
1d ago

Partially canonical axes in large language model representations

The paper investigates whether the individual coordinate axes of large language models (LLMs) carry meaningful information or are merely arbitrary. By comparing 12 LLMs across six families, the authors find that native axes are consistently more aligned with other models’ representations, human brain responses to language, and interpretable linguistic features than randomly rotated axes that preserve the same geometry. However, these native axes still fall short of the best possible alignment, indicating that LLM coordinates are partially canonical rather than fully arbitrary or fully canonical.

By Andrea Gregor de Varda, Ferdinando D'Elia, Greta Tuckute, Evelina Fedorenko, Meenakshi Khosla
Towards Data Science
Sep 26

Your LLM Has a Curved Space of Paragraphs

The article explains that within a transformer model, each token’s index functions as a coordinate, and the organization of these tokens into paragraphs provides a metric that shapes the model’s internal space. It argues that this paragraph structure gives the language model a curved, rather than flat, geometric representation of text.

By Shuyang Xiang
Hugging Face Trending Papers
Jul 5

Geometry of Ordinal Representations in Language Models

Recent work showed that language models represent character counts on curved 1D manifolds, with attention heads performing geometric transformations to enable computation. We test whether this generalizes across four ordinal tasks (bracket depth, indentation, table position, numeric magnitude) in Gemma-2-2B, Gemma-2-9B, and Qwen3-4B.

arXiv AI
Sep 15

LLM-Microscope: Uncovering the Hidden Role of Punctuation in Context Memory of Transformers

The paper introduces LLM-Microscope, a toolkit for measuring how Large Language Models encode contextual information at the token level. It shows that seemingly minor tokens—such as determiners, stopwords, and punctuation—carry surprisingly high contextual weight, and removing them degrades performance on benchmarks like MMLU and BABILong-4k. The study also finds a strong link between contextualization and linearity, indicating that the transformation between layers can be approximated by a single linear mapping when tokens are well contextualized.

By Anton Razzhigaev, Matvey Mikhalchuk, Temurbek Rahmatullaev, Elizaveta Goncharova, Polina Druzhinina, Ivan Oseledets, Andrey Kuznetsov