Arithmetic-Based Pretraining -- Improving Numeracy of Pretrained Language Models

Dominic Petrak, Nafise Sadat Moosavi, Iryna Gurevych
5/13/2022
4 citations
cs.CL

Official code: UKPLab/starsem2023-arithmetic-based-pretraining (1 star, Julia, Apache-2.0, last commit 2023-07-23).

Abstract

State-of-the-art pretrained language models tend to perform below their capabilities when applied out-of-the-box on tasks that require understanding and working with numbers. Recent work suggests two main reasons for this: (1) popular tokenisation algorithms have limited expressiveness for numbers, and (2) common pretraining objectives do not target numeracy.

Show full abstract

Approaches that address these shortcomings usually require architectural changes or pretraining from scratch. In this paper, we propose a new extended pretraining approach called Arithmetic-Based Pretraining that jointly addresses both in one extended pretraining step without requiring architectural changes or pretraining from scratch. Arithmetic-Based Pretraining combines contrastive learning to improve the number representation, and a novel extended pretraining objective called Inferable Number Prediction Task to improve numeracy. Our experiments show the effectiveness of Arithmetic-Based Pretraining in three different tasks that require improved numeracy, i.e., reading comprehension in the DROP dataset, inference-on-tables in the InfoTabs dataset, and table-to-text generation in the WikiBio and SciGen datasets.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code and data for the StarSem 2023 paper "Arithmetic-Based Pretraining -- Improvin Numeracy of Pretrained Language Models"

10Julia, PythonJan 1, 20223 years agoApache-2.0
bartcontrastive-learningflan-t5language-modelnumerical-reasoning+3 more

Similar Papers

Cite this paper

@article{petrak2022arithmeticbased,
  title  = {Arithmetic-Based Pretraining -- Improving Numeracy of Pretrained Language Models},
  author = {Dominic Petrak and Nafise Sadat Moosavi and Iryna Gurevych},
  year   = {2022},
  eprint = {2205.06733},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.06733}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.06733.svg)](https://codeofpaper.com/paper/2205.06733)

Discussion