TRANSMISSION // 2611.36889v1
How a Neural Network Separates Number Order from Identity
Source published
In a tested minimal attention model, different parts of number representations support comparing values and identifying the winner. Whether this applies beyond the task is unknown.

Numbers have a clear order, but a neural network’s internal representations of them can be curved and spread across many dimensions. A preprint study examines how a minimal attention model uses parts of those representations to compare numbers and identify them.
A model that finds the largest number in a sequence has to do two things: compare values and report the winner’s identity. That simple task raises a puzzle for researchers studying neural networks. If numbers are represented along a curved path in a model’s internal space, does comparison require the whole geometry? Or can a direction associated with order help compare values while other features help identify them?
Sai Sumedh R. Hindupur, Thomas Fel and Demba Ba investigate this question in a preprint using a deliberately minimal attention architecture. In that model, different components of number representations contribute to different operations. The finding offers one way to reconcile the usefulness of linear directions for steering behavior with the possibility that curved geometry matters for other computations.
A model with two jobs
The researchers trained the model to calculate a running maximum: at each position in a sequence, it had to output the largest number seen so far. The model learned a vector, or embedding, for each number. One causal attention layer combined those vectors, and a linear decoder produced the output. The attention projections were fixed to identity matrices; the number embeddings and decoder were learned.
The main setup used numbers from 1 to 1,000 and sequences of length 100. The authors trained the baseline model with four random seeds. They also developed a mathematical analysis of conditions under which comparison and identity readout can be separated.
To study the learned representations, they split each number’s embedding into a component along a direction associated with numerical order and a remainder perpendicular to it. In their analysis, they identified the order direction with the first principal component (PC1), which captures the largest share of variation across embeddings. They examined how these components related to attention scores and output decoding, then intervened on representations by replacing either component with the corresponding part from another number.
One direction compares; other features help identify
Across the four runs, the model achieved more than 99.9% token-level validation accuracy. PC1 accounted for about 70% of embedding variation, and its scores were almost perfectly associated with the represented number. The authors report that PC1 explained a median 99.8% of the variation, across number embeddings, in the curve of their inner products with other embeddings. This measures structure in pairwise embedding comparisons—not all attention-score variation.
The component perpendicular to PC1 had a different role: it contributed relatively little to those pairwise inner products, but helped distinguish the number selected by attention during output decoding. To test the proposed roles, the researchers constructed interventions that substituted components of one token’s representation with those from another number. In their specific held-out-sequence experiment, the defined order-transfer measure counted positions where the patched token’s order affected the output. By that measure, the order-only patch transferred order at about 40% of positions, while transferring identity at under 1%. The readout-only patch transferred identity at about 92% of positions and order at under 3%. These figures describe outcomes under the study’s constructed setup and definitions, not general intervention success rates.
The authors call this a “clay-like” view of representation geometry: different parts of a representation may serve different computational functions, rather than the whole geometry acting as one indivisible object. In this model, a direction associated with order helps comparison, while remaining structure helps with identity readout.
The mathematical analysis explains why an additional component can be useful. Under prescribed comparison margins, the lowest-norm arrangement places embeddings along a single ray—a line extending from the origin. In this specific setup, a bias-free linear decoder cannot use that arrangement to identify multiple numbers, because it would choose the same output class for every point on the ray. But the paper does not establish that curvature is always needed: an offset straight line can support identity readout, and decoder biases change the theoretical constraint.
What the results do—and do not—show
The evidence comes from one controlled architecture trained on a synthetic running-maximum task. That makes it possible to connect representational components to particular operations, but does not establish that the same division appears in large language models or other deep networks. The authors describe their result as evidence of feasibility and emergence in a minimal model, not prevalence across models.
The theoretical conditions for functional separation are sufficient, not necessary, and include an idealized saturated-attention regime. The observed separation was imperfect, particularly for nearby numbers. The authors also leave unresolved why the readout component develops its observed geometry. A distance-based attention variant had lower accuracy and a different representational pattern, but the paper does not analyze its mechanism in depth; this is not evidence that one approach is generally superior.
This source is an arXiv preprint, so its claims should be treated as provisional; the supplied paper does not establish independent replication or peer review. Its focused contribution is a useful question for interpreting neural representations: not only what shape they have, but which parts the model uses for each computation.
- neural networks
- number representations
- attention models
- representation geometry
- AI interpretability
- activation steering
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Language-model axes matter—but only partly
Source published
Shared keywords: ai interpretability, representation geometry
A more careful way to steer language models
Source published
Shared keywords: activation steering, ai interpretability
What Mathematical Concepts Do AI Models Capture?
Source published
Shared keywords: activation steering, ai interpretability
Prompt tokens can copy a model’s steering—but need its direction
Source published
Shared keywords: activation steering, ai interpretability
A clearer view inside protein AI—but steering useful proteins remains harder
Source published
Shared keywords: activation steering, ai interpretability