When Models Don't Manipulate Manifolds: The Geometry of a Comparison Task

Sai Sumedh R. Hindupur, Hadas Orgad, Thomas Fel, Demba Ba
9/29/2026
cs.LGcs.AIcs.CL

No official code found. Best implementation: Sai-Sumedh/comparison-geometry (0 stars, MIT, last commit 2026-09-28).

Abstract

One of the current premises of mechanistic interpretability research is that detailed accounts of the geometry of neural network representations can tell us how models perform computations, and how to effectively intervene on them. While low dimensional manifolds have been observed for multiple concepts in the literature (e.g. numbers encoded on helices, days of the week on a circle, ...), with structure believed to reflect properties of data and tasks, the extent to which models rely on them for computation, and how they manipulate them, remains unclear. We characterize precisely the geometry of computation in a number-comparison task, as an abstraction of comparison for decision making, and how models utilize geometry in an elegant fashion to implement it. Specifically, we study the causal geometry of number comparison in Qwen2.5-7B-Instruct, a capable and widely studied open-weight model, and find Qwen largely uses linear representations of numbers despite the presence of curved geometry. To compare two numbers, the model first encodes each number along a vector and adds the two representations using attention and the residual connection, bringing them into a shared space in the residual stream. Then, the model uses MLP neurons to compare the pair of numbers on local regions in this shared space, which correspond to smaller intervals of input numbers, and combines these to obtain the position of the maximum. In fact, this reliance on linear representations for comparison also persists when the model compares three numbers. Our findings demonstrate that the manifold hypothesis can co-exist with linear representations: while concepts that are ordered may have manifold structure in representations, the model may use an underlying linear structure of the concept in certain computations.

View on arXivView PDF

Code Implementations(1)

MIT

Code for "When Models Don't Manipulate Manifolds: The Geometry of a Comparison Task"

00Sep 27, 20263 weeks agoMIT

Similar Papers

Cite this paper

@article{hindupur2026when,
  title  = {When Models Don't Manipulate Manifolds: The Geometry of a Comparison Task},
  author = {Sai Sumedh R. Hindupur and Hadas Orgad and Thomas Fel and Demba Ba},
  year   = {2026},
  eprint = {2609.37680},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.37680v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.37680.svg)](https://codeofpaper.com/paper/2609.37680)

Discussion