NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Convergent Evolution: How Different Language Models Learn Similar Number Representations

Deqing Fu, Tianyi Zhou, Mikhail Belkin, Vatsal Sharan, Robin Jia

TL;DR

Researchers have discovered a "two-tiered hierarchy" in how language models represent numbers: while almost every model develops periodic patterns (spikes in the Fourier domain), only specific architectures and training signals allow models to organize these numbers into a geometrically useful, linearly separable structure. This phenomenon, dubbed convergent evolution, suggests that diverse models independently arrive at similar numerical representations because they face the same constraints from natural language and tokenization.

What Problem Does This Paper Address?

We’ve known for a short while that Transformer-based models represent integers using periodic features—essentially, their internal "embeddings" for numbers like 2, 5, and 10 show distinct spikes when analyzed via Fourier transforms. However, it wasn't clear if this was a quirk of Transformers or a universal law of AI.

More importantly, the community faced a paradox: some models show these beautiful periodic patterns but fail miserably when asked to perform simple linear classification (e.g., "is this number even or odd?"). This paper sets out to explain why these "spiky" patterns emerge so universally and what specific ingredients—data, architecture, or optimizers—are required for a model to actually turn those patterns into functional, geometric representations.

Methods

The authors employ a mix of empirical "structure attribution" and mathematical proof:

  • Fourier Analysis: They compute the Discrete Fourier Transform (DFT) on token embeddings to identify periodicities.
  • Linear Probing: They use Cohen’s $\kappa$ (a metric that accounts for random guessing) to see if a simple linear classifier can decode $n \mod T$ from the model's embeddings.
  • Controlled Perturbations: To isolate what causes these features, they trained 300M-parameter models from scratch while systematically "breaking" parts of the training data (e.g., removing number-text associations or shuffling number sequences).
  • Theoretical Proof: They provide a theorem (Theorem 1) using Fisher’s Linear Discriminant Analysis to prove that having Fourier spikes is a necessary but insufficient condition for geometric separability.

Datasets

The study utilizes a variety of sources:

  • FineWeb-Edu: 10 billion tokens used for controlled pretraining experiments.
  • Pre-trained Models: A massive suite including GPT-2, Llama-3.1, Llama-4-Scout, DeepSeek-V3, Mamba, and Falcon-Mamba.
  • Classical Embeddings: GloVe and FastText.
  • Synthetic Arithmetic: Custom-built 3-digit and 9-digit addition datasets to test how task pressure affects representation.

Key Insights and Ideas

  • The Two-Tiered Hierarchy: The authors distinguish between Spectral Convergence (the emergence of Fourier spikes) and Geometric Convergence (the emergence of linearly separable classes). Spectral convergence is easy and nearly universal; geometric convergence is picky.
  • Convergent Evolution in AI: Just as vertebrates and cephalopods both evolved eyes independently to solve the problem of seeing, different AI architectures (Transformers vs. Linear RNNs) independently evolve the same numerical representations to solve the problem of next-token prediction.
  • The "Noise" Problem: Why do LSTMs have Fourier spikes but fail at probing? The math shows that while the "signal" (the spikes) exists, it is buried under "within-class noise." The model's internal organization is too messy for a linear probe to find the pattern.
  • Residual Connections are Key: Standard LSTMs fail to learn geometric structure, but simply adding residual connections allows them to succeed. This suggests that the "skip-connection" architecture is a primary driver of how models organize conceptual space.
  • Tokenization as Destiny: The periods models learn ($T=2, 5, 10$) aren't magic; they are a direct result of our base-10 number system and how tokenizers (like Llama-3) chunk digits. When trained on base-15, models learn periods of 3 and 5 instead.

Key Results

  • Universality: Fourier spikes at $T=2, 5, 10$ were found in every system tested, including raw token frequency distributions in the training text—meaning the signal exists in the data before a model even touches it.
  • Probing Performance: Transformers and Linear RNNs (like Mamba) achieved high Cohen’s $\kappa$ scores (up to 96% for mod-2), whereas LSTMs and raw frequency counts stayed at 0% (chance level), despite all having similar Fourier spectra.
  • Data Signals: Geometric convergence relies on three distinct signals: text-number co-occurrence, cross-number interaction, and long context windows. Removing any of these progressively degrades the model's "understanding" of number geometry.
  • Arithmetic Pressure: In multi-token addition (e.g., 9-digit), models are forced to learn these representations to solve carry-over subproblems. In single-token addition, the pressure is absent, and representations become seed-dependent and inconsistent.

Limitations and Future Work

  • Scope of Concepts: The paper focuses heavily on numbers. While they mention that similar patterns exist for days of the week or months, the "spectral-geometric dissociation" hasn't been fully mapped for these other cyclical concepts.
  • Downstream Impact: While the authors show that models with better geometric convergence learn arithmetic faster during finetuning, the direct link between these embedding structures and complex mathematical reasoning (like word problems) remains an open area for research.
  • Scale: Most controlled experiments were on 300M-parameter models. While they probed larger models (up to 671B), the "why" behind the emergence in massive models relies on the assumption that the 300M-parameter findings scale linearly.

Summary updated

BibTeX
@inproceedings{fu2026convergent,
  author = {Deqing Fu and Tianyi Zhou and Mikhail Belkin and Vatsal Sharan and Robin Jia},
  title = {{Convergent Evolution: How Different Language Models Learn Similar Number Representations}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=RIoMmOkZ8E},
}
Figure