Cited by 14Topic ModelingNatural Language Processing TechniquesMultimodal Machine Learning Applications

NumeroLogic: Number Encoding for Enhanced LLMs’ Numerical Reasoning

Open access
Schwartz, Eli, Choshen, Leshem, Shtok, Joseph, Doveh, Sivan, Karlinsky, Leonid, Arbelle, Assaf·2024·Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing

Abstract

Language models struggle with handling numerical data and performing arithmetic operations.We hypothesize that this limitation can be partially attributed to non-intuitive textual numbers representation.When a digit is read or generated by a causal language model it does not know its place value (e.g.thousands vs. hundreds) until the entire number is processed.To address this issue, we propose a simple adjustment to how numbers are represented by including the count of digits before each number.For instance, instead of "42", we suggest using "2:42" as the new format.This approach, which we term NumeroLogic, offers an added advantage in number generation by serving as a Chain of Thought (CoT).By requiring the model to consider the number of digits first, it enhances the reasoning process before generating the actual number.We use arithmetic tasks to demonstrate the effectiveness of the NumeroLogic formatting.We further demonstrate NumeroLogic applicability to general natural language modeling, improving language understanding performance in the MMLU benchmark.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.18653/v1/2024.emnlp-main.12

Cites

0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • LLMs struggle to produce reliable prediction probabilities.

    “However, they struggle to produce reliable prediction probabilities, which are crucial for transparency and decision-making.”

    From Probabilistic medical predictions of large language models (2024) · cites this paper as [29]

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

The publisher hasn’t deposited this paper’s reference list.

Research works printed but not linked: 10

  1. James Betker, Gabriel Goh, Li Jing, Tim Brooks, Jian- feng Wang, Linjie Li, Long Ouyang, Juntang Zhuang, Joyce Lee, Yufei Guo, et al. 2023. Improving image generation with better captions. Computer Science. https://cdn. openai. com/papers/dall-e-3. pdf, 2(3):8.
  2. Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebas- tian Gehrmann, et al. 2023. Palm: Scaling language modeling with pathways. Journal of Machine Learn- ing Research, 24(240):1-113.
  3. Philip Gage. 1994. A new algorithm for data compres- sion. The C Users Journal, 12(2):23-38.
  4. Dan Hendrycks, Collin Burns, Steven Basart, Andrew Critch, Jerry Li, Dawn Song, and Jacob Steinhardt. 2021a. Aligning ai with shared human values. Pro- ceedings of the International Conference on Learning Representations (ICLR).
  5. Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Stein- hardt. 2021b. Measuring massive multitask language understanding. Proceedings of the International Con- ference on Learning Representations (ICLR).
  6. Jeonghwan Kim, Giwon Hong, Kyung-min Kim, Junmo Kang, and Sung-Hyon Myaeng. 2021. Have you seen that number? investigating extrapolation in question answering models. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7031-7037, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics. · DOI
  7. Nayoung Lee, Kartik Sreenivasan, Jason D. Lee, Kang- wook Lee, and Dimitris Papailiopoulos. 2024. Teach- ing arithmetic to small transformers. In The Twelfth International Conference on Learning Representa- tions.
  8. Rico Sennrich, Barry Haddow, and Alexandra Birch. 2015. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909. · arXiv
  9. Alex Warstadt, Aaron Mueller, Leshem Choshen, Ethan Wilcox, Chengxu Zhuang, Juan Ciro, Rafael Mos- quera, Bhargavi Paranjabe, Adina Williams, Tal Linzen, et al. 2023. Findings of the babylm chal- lenge: Sample-efficient pretraining on developmen- tally plausible corpora. In Proceedings of the BabyLM Challenge at the 27th Conference on Com- putational Natural Language Learning.
  10. Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits rea- soning in large language models. Advances in neural information processing systems, 35:24824-24837.

Cited by

Sorted by citations

Authors
Schwartz, E., Choshen, L., Shtok, J., Doveh, S., Karlinsky, L., & Arbelle, A.
Affiliations
IBM (United States) (US)
Venue
Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing
Published
2024
Pages
206-212
OpenAlex
W4404783351
Cited by
14
References
0
Citations by year
2026: 4 · 2025: 7 · 2024: 3
FWCI
4.04
Type
conference paper
Language
en
Open access
Licence
cc-by
Locations
  • Conference on Empirical Methods in Natural Language Processing (EMNLP) (publishedVersion, cc-by)
  • arXiv (Cornell University) (submittedVersion, cc-by)
  • arXiv (Cornell University) (cc-by)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Multimodal Machine Learning Applications
Keywords
number encoding, numerical reasoning, large language models, place value, chain-of-thought, arithmetic exercises, number generation, natural language understanding, MMLU

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review