Research map / Large language models / Language, safety and interpretability
Pre-trained Language Models Learn Remarkably Accurate Representations of Numbers
Marek Kadlčík, Michal Štefánik, Timothee Mickus, Michal Spiegel, Josef Kuchař
National Institute of Informatics · University of Helsinki
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use sinusoidal (Fourier-basis) probe instead of linear/log-linear/binary probes (ablation) | number-embedding probes · decoding integers 0-999 from embeddings | accuracy | Improved |
| use a probe with sinusoidal inductive bias | OLMo 2 32B embeddings · decoding integers | accuracy | Hurt |
| input numbers whose embeddings the probe cannot decode | Llama 3 1B · addition | error rate (%): 2.48 -> 14.86 | Hurt |
| input numbers whose embeddings the probe cannot decode | OLMo2 1B · addition | error rate (%): 20.30 -> 23.33 | Hurt |
| input undecodable embeddings | OLMo2 1B · subtraction | error rate (%): 24.61 -> 31.45 | Hurt |
| input undecodable embeddings | Llama 3 1B · subtraction | error rate (%): 1.43 -> 0.90 | No clear effect |
| optimize embeddings of misdecoded tokens toward the probe pattern | Llama 3 1B · addition with tokens 0, 4, 977, 999 | error rate (%): 17.6 -> 13.0 | Improved |
| optimize embeddings of misdecoded tokens toward the probe pattern | Llama 3 1B · multiplication with tokens 0, 4, 977, 999 | error rate (%): 8.5 -> 7.7 | Improved |
| use L1 versus L2 regularization on the sin probe (ablation) | sin probe · decoding on unseen numbers | accuracy | No clear effect |
| increase model size | OLMo2 and Llama 3 · zero-shot addition | error rate (%): Llama 3 1B 2.58 -> 8B 0.25 | Improved |
Open problems in LLM pruning and scaling data
Do pruning, unlearning and data-scaling methods still work at larger scale and beyond English?
- Experiments are small and larger models or corpora are untested. · 34 papers state it
- The method adds training or compute overhead over the baseline. · 20 papers state it
- Most evaluation uses English or a few high-resource languages. · 13 papers state it
Closest papers by meaning
- Language Models Learn Universal Representations of Numbers and Here's Why You Should Care (ACL 2026 · similarity 0.93)
- Efficient numeracy in language models through single-token number embeddings (ICML 2026 · similarity 0.90)
- Interpreting and Improving Large Language Models in Arithmetic Calculation (ICML 2024 · similarity 0.89)
- Number Cookbook: Number Understanding of Language Models and How to Improve It (ICLR 2025 · similarity 0.88)
- Regress, Don't Guess: A Regression-like Loss on Number Tokens for Language Models (ICML 2025 · similarity 0.88)
- Arithmetic Without Algorithms: Language Models Solve Math with a Bag of Heuristics (ICLR 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.