Sebastian Raschka

Understanding Positional Embeddings in Modern LLMs

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.

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
arXiv AI
Nov 16

Dancing Tokens on the Vocabulary Network from LLM Generation

The paper constructs a similarity network from input embeddings of six open LLMs and maps token generation onto this network. It finds that the token‑embedding network is scale‑free and heavy‑tailed but highly fragmented, and that consecutive generated tokens rarely follow edges in the network, indicating that generation is not a walk on the predefined structure. The study also observes that tokens settle late in depth and that repetitive models are confined to small sub‑graphs, suggesting potential inference‑time monitors for degeneration.

By Yuan-Chao Hu
arXiv Machine Learning
Sep 10

Content-Based Addressing for Long Context

The paper proposes a content‑based addressing scheme for long‑context models that replaces the growing token counter in Rotary Position Embedding (RoPE) with unit‑level addresses derived from the content of each unit. By dividing the token stream into units, the method preserves local RoPE behavior while allowing new units to be addressed via learned content maps, avoiding positional mismatches when extending context length. Experiments on character‑level Tiny Shakespeare show that a model trained on 256‑character contexts achieves lower perplexity at 4096 characters using this scheme, and a second diagnostic demonstrates retrieval of multiple serialized facts.

By Mahesh Godavarti
arXiv AI
Aug 28

Position Is All You Need: A Free Lunch Token Compression Strategy for MLLM-based Referring Expression Segmentation

The paper introduces PAYN, a training‑free token compression strategy for Multimodal Large Language Model (MLLM) based Referring Expression Segmentation (RES). By preserving original position embeddings and local spatial structures, PAYN retains tokens that are evenly distributed across neighboring regions, thereby maintaining spatial relational consistency. Experiments on multiple RES benchmarks show that PAYN outperforms existing token compression methods, confirming that position information alone is sufficient for effective compression in this task.

By Yuhan Liu, Yixiong Zou, Yuhua Li, Ruixuan Li