Skip to content
HN On Hacker News ↗

Convergent Evolution: How Different Language Models Learn Similar Number Representations

▲ 115 points 47 comments by Anon84 4w ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

2 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 225
PEAK AI % 2% · §1
Analyzed
Apr 24
backend: pangram/v3.3
Segments scanned
1 windows
avg 225 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 225 words · 1 segments analyzed

Human AI-generated
§1 Human · 2%

View PDF HTML (experimental) Abstract:Language models trained on natural text learn to represent numbers using periodic features with dominant periods at $T=2, 5, 10$. In this paper, we identify a two-tiered hierarchy of these features: while Transformers, Linear RNNs, LSTMs, and classical word embeddings trained in different ways all learn features that have period-$T$ spikes in the Fourier domain, only some learn geometrically separable features that can be used to linearly classify a number mod-$T$. To explain this incongruity, we prove that Fourier domain sparsity is necessary but not sufficient for mod-$T$ geometric separability. Empirically, we investigate when model training yields geometrically separable features, finding that the data, architecture, optimizer, and tokenizer all play key roles. In particular, we identify two different routes through which models can acquire geometrically separable features: they can learn them from complementary co-occurrence signals in general language data, including text-number co-occurrence and cross-number interaction, or from multi-token (but not single-token) addition problems. Overall, our results highlight the phenomenon of convergent evolution in feature learning: A diverse range of models learn similar features from different training signals. Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Machine Learning (cs.LG) Cite as: arXiv:2604.20817 [cs.CL]   (or arXiv:2604.20817v1 [cs.CL] for this version)   https://doi.org/10.48550/arXiv.2604.20817 arXiv-issued DOI via DataCite (pending registration) Submission history From: Deqing Fu [view email] [v1] Wed, 22 Apr 2026 17:45:27 UTC (559 KB)