scimeatlas

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

EMNLP 2024Large language models › Agents, code and mathapproach: Mathematical and structural reasoning benchmarksopen problems in this approach53 citations (OpenAlex)

IBM · MIT-IBM Watson AI Lab · Massachusetts Institute of Technology

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
9improved
2no clear effect
2hurt

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 changedWhereMeasuredEffect
add digit-count prefix to numbers (NumeroLogic)NanoGPT · arithmetic tasks, 3-digit subtractionaccuracy: 73.76 -> 97.2Improved
add digit-count prefix to numbersNanoGPT · 2-digit multiplicationaccuracy: 13.81 -> 28.94Improved
add digit-count prefix to numbersLlama2-7B · 5-digit float arithmetic, multiplication 3-digit floataccuracy: 24.73 -> 31.03Improved
add digit-count prefix to numbersLlama2-7B · 5-digit integer addition/subtraction (saturated)accuracy: 99.86 -> 100.0; 99.60 -> 99.93Improved
continue pretraining with NumeroLogic-encoded numbersLlama2-7B · MMLU 0-shotaccuracy: +0.5%Improved
continue pretraining with plain numbersLlama2-7B · MMLU 0-shotaccuracyNo clear effect
NumeroLogic effect on STEM vs social sciences tasksLlama2-7B · MMLU by fieldaccuracy: STEM +0.79% vs social sciences +0.1%Improved
encode operands only (ablation)NanoGPT · 3-digit additionaccuracy: 88.37 -> 98.05Improved
encode results only (ablation)NanoGPT · 3-digit additionaccuracy: 88.37 -> 89.34Improved
replace single prefix token with one special token per digit count (ablation)Llama2-7B · 3-digit integer multiplicationaccuracy: 34.20 -> 33.56Hurt
remove the end-of-number token (ablation)NumeroLogic · 3-digit integer multiplicationaccuracy: 35.33 -> 34.93Hurt
replace NumeroLogic extra tokens with filler white-spaces (ablation)Llama2-7B · 3-digit float multiplicationaccuracy: 24.73 -> 24.37No 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.

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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy