Research map / Large language models / Agents, code and math
NumeroLogic: Number Encoding for Enhanced LLMs' Numerical Reasoning
Eli Schwartz, Leshem Choshen, Joseph Shtok, Sivan Doveh, Leonid Karlinsky, Assaf Arbelle
IBM · MIT-IBM Watson AI Lab · Massachusetts Institute of Technology
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 |
|---|---|---|---|
| add digit-count prefix to numbers (NumeroLogic) | NanoGPT · arithmetic tasks, 3-digit subtraction | accuracy: 73.76 -> 97.2 | Improved |
| add digit-count prefix to numbers | NanoGPT · 2-digit multiplication | accuracy: 13.81 -> 28.94 | Improved |
| add digit-count prefix to numbers | Llama2-7B · 5-digit float arithmetic, multiplication 3-digit float | accuracy: 24.73 -> 31.03 | Improved |
| add digit-count prefix to numbers | Llama2-7B · 5-digit integer addition/subtraction (saturated) | accuracy: 99.86 -> 100.0; 99.60 -> 99.93 | Improved |
| continue pretraining with NumeroLogic-encoded numbers | Llama2-7B · MMLU 0-shot | accuracy: +0.5% | Improved |
| continue pretraining with plain numbers | Llama2-7B · MMLU 0-shot | accuracy | No clear effect |
| NumeroLogic effect on STEM vs social sciences tasks | Llama2-7B · MMLU by field | accuracy: STEM +0.79% vs social sciences +0.1% | Improved |
| encode operands only (ablation) | NanoGPT · 3-digit addition | accuracy: 88.37 -> 98.05 | Improved |
| encode results only (ablation) | NanoGPT · 3-digit addition | accuracy: 88.37 -> 89.34 | Improved |
| replace single prefix token with one special token per digit count (ablation) | Llama2-7B · 3-digit integer multiplication | accuracy: 34.20 -> 33.56 | Hurt |
| remove the end-of-number token (ablation) | NumeroLogic · 3-digit integer multiplication | accuracy: 35.33 -> 34.93 | Hurt |
| replace NumeroLogic extra tokens with filler white-spaces (ablation) | Llama2-7B · 3-digit float multiplication | accuracy: 24.73 -> 24.37 | No clear effect |
Later papers that compared with this method
2 later accepted papers report NumeroLogic as a baseline in their results tables; 2 of them report a better number on most of the results they share with it.
- GeoNum: Bridging Numerical Continuity and Language Semantics via Geometric Embedding (AAAI 2026 · better on 7 of 7 shared results)
- ANI: Adaptive Numerical Injection for Unifying Semantic and Arithmetic Representations in Numerical Reasoning (EMNLP 2026 · better on 3 of 3 shared results)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in mathematical and structural reasoning benchmarks
Which reasoning benchmarks hold up beyond one language, text-only prompts and one judge model?
- Benchmarks cover one language or a few high-resource ones. · 25 papers state it
- Evaluation and inference cost more than the plain baseline. · 12 papers state it
- Tasks are text-only, with no images, audio or other modalities. · 11 papers state it
Closest papers by meaning
- Language Models Encode Numbers Using Digit Representations in Base 10 (NAACL 2025 · similarity 0.94)
- Exposing Numeracy Gaps: A Benchmark to Evaluate Fundamental Numerical Abilities in Large Language Models (ACL 2025 · similarity 0.94)
- 1,729 vs. 1729: The Effect of Scripts and Formats on LLM Numeracy (ACL 2026 · similarity 0.92)
- Evaluating Numeracy of Language Models as a Natural Language Inference Task (NAACL 2025 · similarity 0.91)
- Number Cookbook: Number Understanding of Language Models and How to Improve It (ICLR 2025 · similarity 0.91)
- Efficient numeracy in language models through single-token number embeddings (ICML 2026 · similarity 0.89)
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.