mlsanityData to 14 Oct 2026

NumGPT: Improving Numeracy Ability of Generative Pre-trained Models

arXiv 2109.03137 ↗First posted 7 Sep 2021cs.CL cs.LGcited by 15

Not on the map. Why?

Abstract (arXiv)

Existing generative pre-trained language models (e.g., GPT) focus on modeling the language structure and semantics of general texts. However, those models do not consider the numerical properties of numbers and cannot perform robustly on numerical reasoning tasks (e.g., math word problems and measurement estimation). In this paper, we propose NumGPT, a generative pre-trained model that explicitly models the numerical properties of numbers in texts. Specifically, it leverages a prototype-based numeral embedding to encode the mantissa of the number and an individual embedding to encode the exponent of the number. A numeral-aware loss function is designed to integrate numerals into the pre-training objective of NumGPT. We conduct extensive experiments on four different datasets to evaluate the numeracy ability of NumGPT. The experiment results show that NumGPT outperforms baseline models (e.g., GPT and GPT with DICE) on a range of numerical reasoning tasks such as measurement estimation, number comparison, math word problems, and magnitude classification. Ablation studies are also conducted to evaluate the impact of pre-training and model hyperparameters on the performance.

Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 20 of its 30 references that are in the map. First posted on arXiv 7 Sep 2021.

Builds on

20 of 30 references.

References · 20

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  6. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  7. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  8. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
  9. 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 662
  10. 2016Solving General Arithmetic Word Problemscited by 360
  11. 2019oLMpics -- On what Language Model Pre-training Capturescited by 161
  12. 2019Do NLP Models Know Numbers? Probing Numeracy in Embeddingscited by 159
8 more
  1. 2020Injecting Numerical Reasoning Skills into Language Modelscited by 133
  2. 2021Representing Numbers in NLP: a Survey and a Visioncited by 83
  3. 2020Do Language Embeddings Capture Scales?cited by 63
  4. 2018Semantically-Aligned Equation Generation for Solving and Reasoning Math Word Problemscited by 49
  5. 2019EQUATE: A Benchmark Evaluation Framework for Quantitative Reasoning in Natural Language Inferencecited by 39
  6. 2018The Gap of Semantic Parsing: A Survey on Automatic Math Word Problem Solverscited by 31
  7. 2020An Empirical Investigation of Contextualized Number Predictioncited by 21
  8. 2019Solving Arithmetic Word Problems Automatically Using Transformer and Unambiguous Representationscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 2; 2022: 3; 2023: 4; 2024: 4; 2025: 1; 2026: 1.

15 papers.

Sort:

By area:

  1. 2022A Causal Framework to Quantify the Robustness of Mathematical Reasoning with Language Modelscited by 68
  2. 2023Exploring the Numerical Reasoning Capabilities of Language Models: A Comprehensive Analysis on Tabular Datacited by 33
  3. 2024Prompting Large Language Models for Zero-Shot Clinical Prediction with Structured Longitudinal Electronic Health Record Datacited by 22
  4. 2021FORTAP: Using Formulas for Numerical-Reasoning-Aware Table Pretrainingcited by 19
  5. 2023Can neural networks do arithmetic? A survey on the elementary numerical skills of state-of-the-art deep learning modelscited by 18
  6. 2023Tree-Based Representation and Generation of Natural and Mathematical Languagecited by 12
  7. 2021Masked Measurement Prediction: Learning to Jointly Predict Quantities and Units from Textual Contextcited by 5
  8. 2022Unsupervised Numerical Reasoning to Extract Phenotypes from Clinical Text by Leveraging External Knowledgecited by 2
  9. 2022Do Language Models Understand Measurements?cited by 2
  10. 2023Movie Box Office Prediction With Self-Supervised and Visually Grounded Pretrainingcited by 1
  11. 2024Numbers Matter! Bringing Quantity-awareness to Retrieval Systemscited by 1
  12. 2024Gem: Gaussian Mixture Model Embeddings for Numerical Feature Distributionscited by 1
3 more
  1. 2024Exploring Internal Numeracy in Language Models: A Case Study on ALBERTcited by 0
  2. 2025Copycat vs. Original: Multi-modal Pretraining and Variable Importance in Box-office Predictioncited by 0
  3. 2026CONE: Embeddings for Complex Numerical Data Preserving Unit and Variable Semanticscited by 0