Evaluating Transformer Language Models on Arithmetic Operations Using Number Decomposition
Not on the map. Why?
Abstract (arXiv)
In recent years, Large Language Models such as GPT-3 showed remarkable capabilities in performing NLP tasks in the zero and few shot settings. On the other hand, the experiments highlighted the difficulty of GPT-3 in carrying out tasks that require a certain degree of reasoning, such as arithmetic operations. In this paper we evaluate the ability of Transformer Language Models to perform arithmetic operations following a pipeline that, before performing computations, decomposes numbers in units, tens, and so on. We denote the models fine-tuned with this pipeline with the name Calculon and we test them in the task of performing additions, subtractions and multiplications on the same test sets of GPT-3. Results show an increase of accuracy of 63% in the five-digit addition task. Moreover, we demonstrate the importance of the decomposition pipeline introduced, since fine-tuning the same Language Model without decomposing numbers results in 0% accuracy in the five-digit addition task.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 17 of its 23 references that are in the map. First posted on arXiv 21 Apr 2023.
Builds on
17 of 23 references.
References · 17
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2018Deep contextualized word representationscited by 2,290
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,458
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 335
5 more
- 2019Do NLP Models Know Numbers? Probing Numeracy in Embeddingscited by 159
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 139
- 2020Injecting Numerical Reasoning Skills into Language Modelscited by 133
- 2021Representing Numbers in NLP: a Survey and a Visioncited by 83
- 2020Do Language Embeddings Capture Scales?cited by 63
Built on by
Citing papers per year: 2023: 8; 2024: 6; 2025: 1.
15 papers.
Sort:
By area:
- 2023Simple synthetic data reduces sycophancy in large language modelscited by 187
- 2023Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Taskscited by 84
- 2023GPT Can Solve Mathematical Problems Without a Calculatorcited by 68
- 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 67
- 2023SLaDe: A Portable Small Language Model Decompiler for Optimized Assemblycited by 28
- 2023Mathematical Language Models: A Surveycited by 24
- 2023Arithmetic with Language Models: from Memorization to Computationcited by 12
- 2024Mathify: Evaluating Large Language Models on Mathematical Problem Solving Taskscited by 12
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
- 2024Tokenisation is NP-Completecited by 10
- 2024Reverse That Number! Decoding Order Matters in Arithmetic Learningcited by 9
- 2024How to Leverage Digit Embeddings to Represent Numbers?cited by 5
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Models22 Mar 2025
- 2024Tokenisation is NP-Complete19 Dec 2024
- 2024How to Leverage Digit Embeddings to Represent Numbers?1 Jul 2024
- 2024Through the Thicket: A Study of Number-Oriented LLMs derived from Random Forest Models7 Jun 2024
- 2024Understanding Privacy Risks of Embeddings Induced by Large Language Models25 Apr 2024
- 2024Mathify: Evaluating Large Language Models on Mathematical Problem Solving Tasks19 Apr 2024
- 2024Reverse That Number! Decoding Order Matters in Arithmetic Learning9 Mar 2024
- 2023Mathematical Language Models: A Survey12 Dec 2023
- 2023Auto-Regressive Next-Token Predictors are Universal Learners13 Sep 2023
- 2023GPT Can Solve Mathematical Problems Without a Calculator6 Sep 2023
- 2023Simple synthetic data reduces sycophancy in large language models7 Aug 2023
- 2023Arithmetic with Language Models: from Memorization to Computation2 Aug 2023
3 more
- 2023Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Taskscited by 84
- 2023GPT Can Solve Mathematical Problems Without a Calculatorcited by 68
- 2023SLaDe: A Portable Small Language Model Decompiler for Optimized Assemblycited by 28
- 2023Mathematical Language Models: A Surveycited by 24
- 2023Arithmetic with Language Models: from Memorization to Computationcited by 12
- 2024Mathify: Evaluating Large Language Models on Mathematical Problem Solving Taskscited by 12
- 2024Tokenisation is NP-Completecited by 10
- 2024Reverse That Number! Decoding Order Matters in Arithmetic Learningcited by 9
- 2024How to Leverage Digit Embeddings to Represent Numbers?cited by 5
- 2024Understanding Privacy Risks of Embeddings Induced by Large Language Modelscited by 3
- 2024Through the Thicket: A Study of Number-Oriented LLMs derived from Random Forest Modelscited by 2
- 2024Tokenisation is NP-Complete19 Dec 2024
- 2024How to Leverage Digit Embeddings to Represent Numbers?1 Jul 2024
- 2024Through the Thicket: A Study of Number-Oriented LLMs derived from Random Forest Models7 Jun 2024
- 2024Understanding Privacy Risks of Embeddings Induced by Large Language Models25 Apr 2024
- 2024Mathify: Evaluating Large Language Models on Mathematical Problem Solving Tasks19 Apr 2024
- 2024Reverse That Number! Decoding Order Matters in Arithmetic Learning9 Mar 2024
- 2023Mathematical Language Models: A Survey12 Dec 2023
- 2023GPT Can Solve Mathematical Problems Without a Calculator6 Sep 2023
- 2023Arithmetic with Language Models: from Memorization to Computation2 Aug 2023
- 2023Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Tasks23 May 2023
- 2023SLaDe: A Portable Small Language Model Decompiler for Optimized Assembly21 May 2023