Skip to content
Preprint

Geometry of Ordinal Representations in Language Models

Jul 2026 · 0 citations · 26 references
Computer Science

TL;DR

It is found that 1D manifolds with place-cell feature tiling emerge for tasks where the ordinal variable is locally computable from token identity, while tasks requiring cross-position integration or semantic extraction produce higher-dimensional or incoherent representations.

Abstract

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. We find that 1D manifolds with place-cell feature tiling emerge for tasks where the ordinal variable is locally computable from token identity, while tasks requiring cross-position integration or semantic extraction produce higher-dimensional or incoherent representations. Geometric computation is architecture-dependent: Qwen3-4B shows substantially stronger twisting than Gemma models for indentation, and its twisters preserve ordinal order, unlike its numeric twisters. Activation patching confirms that the identified manifold subspaces concentrate task-relevant information, with manifold-direction ablation causing dramatically larger probe accuracy drops than random-direction controls.

View source

Similar papers

Preprint Aug 2026

Local and Global Regimes of Geometric Complexity in Language Model Representations

A scale-dependent transition between two ID regimes is found: at low lexical diversity, conditions with fewer unique final words produce higher ID, while at high lexical diversity, this ordering reverses, and conditions with more unique words produce higher ID.

Arwa Osman, Marco Baroni, Iuri Macocco · 0 citations
Preprint Aug 2026

The Changing Geometry of Grammar: Dimensionality and Neighborhood Reorganization across Transformer Layers

This work investigates the layer-wise evolution of ID, and shows that closed-class items expand earlier and collapse sooner than open-class ones, and recovers a token's grammatical role, and uses them to interpret how the semantic content of each PoS evolves across layers in a downstream classification task.

S. Vallisa, Federico Ravenda, C. Palominos et al. · 0 citations
Preprint Jul 2026

Context Is King: How In-Context Specification Shapes the Geometry of Concepts

This work shows that context is king: the structure a model actually uses is set by the in-context specification, and whether the model builds this geometry anew or reconfigures a stored one the authors leave open is the one the context specifies.

Elad David, M. Fomin · 0 citations
Preprint Aug 2026

Rewriting or Reweighting? A Geometric Account in Language Models

Behavior manifold analysis is introduced, which isolates behavior-specific geometry by selecting sparse behavior-associated coordinates and lifting them into low-dimensional local charts, and provides a unified framework for understanding the mechanistic distinction between the two objectives.

Jun-Tong Wang, Shengkun Yang, Xiyuan Wang et al. · 0 citations
Preprint Jul 2026

Laguerre Geometry for Interpreting Large Language Models

Geometric Lens, a training-free, hyperparameter-free method for reading out the exact concept a hidden vector encodes at any layer, and Laguerre Autoencoder, a 2D visualizer that renders both the decision geometry and a model's full reasoning trajectory in one view are developed.

Chunwei Ma, Russ Wolfinger · 1 citation

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.