English

Laying Anchors: Semantically Priming Numerals in Language Modeling

Computation and Language 2024-08-09 v2 Artificial Intelligence Machine Learning

Abstract

Off-the-shelf pre-trained language models have become the de facto standard in NLP pipelines for a multitude of downstream tasks. However, the inability of these models to properly encode numerals limits their performance on tasks requiring numeric comprehension. We introduce strategies to semantically prime numerals in any corpus by generating anchors governed by the distribution of numerals in said corpus, thereby enabling mathematically grounded representations of these numeral tokens. We establish the superiority of our proposed techniques through evaluation on a range of numeracy tasks for both in-domain (seen) and out-domain (unseen) numerals. Further, we expand our empirical evaluations to numerals ranging from 1 to 10 billion, a significantly broader range compared to previous studies of the same nature, and we demonstrate significant improvements in the mathematical grounding of our learned embeddings.

Keywords

Cite

@article{arxiv.2404.01536,
  title  = {Laying Anchors: Semantically Priming Numerals in Language Modeling},
  author = {Mandar Sharma and Rutuja Murlidhar Taware and Pravesh Koirala and Nikhil Muralidhar and Naren Ramakrishnan},
  journal= {arXiv preprint arXiv:2404.01536},
  year   = {2024}
}

Comments

Accepted to the findings of NAACL 2024

R2 v1 2026-06-28T15:40:55.302Z