Pre-Calc: Learning to Use the Calculator Improves Numeracy in Language Models
Not on the map. Why?
Abstract (arXiv)
Quantitative and numerical comprehension in language is an important task in many fields like education and finance, but still remains a challenging task for language models. While tool and calculator usage has shown to be helpful to improve mathematical reasoning in large pretrained decoder-only language models, this remains unexplored for smaller language models with encoders. In this paper, we propose Pre-Calc, a simple pre-finetuning objective of learning to use the calculator for both encoder-only and encoder-decoder architectures, formulated as a discriminative and generative task respectively. We pre-train BERT and RoBERTa for discriminative calculator use and Flan-T5 for generative calculator use on the MAWPS, SVAMP, and AsDiv-A datasets, which improves performance on downstream tasks that require numerical understanding. Our code and data are available at https://github.com/calc-cmu/pre-calc.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 15 of its 22 references that are in the map. First posted on arXiv 22 Apr 2024.
Builds on
15 of 22 references.
References · 15
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
- 2021A Diverse Corpus for Evaluating and Developing English Math Word Problem Solverscited by 314
- 2018Stress Test Evaluation for Natural Language Inferencecited by 211
- 2021Muppet: Massive Multi-task Representations with Pre-Finetuningcited by 192
- 2019Do NLP Models Know Numbers? Probing Numeracy in Embeddingscited by 157
- 2020Injecting Numerical Reasoning Skills into Language Modelscited by 133
- 2022NumGLUE: A Suite of Fundamental yet Challenging Mathematical Reasoning Taskscited by 110
- 2020Do Language Embeddings Capture Scales?cited by 63
- 2018QuaRel: A Dataset and Models for Answering Questions about Qualitative Relationshipscited by 46
3 more
- 2018Numeracy for Language Models: Evaluating and Improving their Ability to Predict Numberscited by 42
- 2019EQUATE: A Benchmark Evaluation Framework for Quantitative Reasoning in Natural Language Inferencecited by 39
- 2023Calc-X and Calcformers: Empowering Arithmetical Chain-of-Thought through Interaction with Symbolic Systemscited by 13
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024PARAMANU-GANITA: Can Small Math Language Models Rival with Large Language Models on Mathematical Reasoning?
- 2026Numeracy in Large Language Models: Fundamental Limitations and Paths to Improvement
- 2026The Effect of Scripts and Formats on LLM Numeracy
- 2024MathCoder2: Better Math Reasoning from Continued Pretraining on Model-translated Mathematical Code
- 2024Pre-trained Large Language Models Use Fourier Features to Compute Addition
- 2025Exposing Numeracy Gaps: A Benchmark to Evaluate Fundamental Numerical Abilities in Large Language Models
- 2022Overcoming Barriers to Skill Injection in Language Modeling: Case Study in Arithmetic
- 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoning