mlsanityData to 14 Oct 2026

Exploring Internal Numeracy in Language Models: A Case Study on ALBERT

arXiv 2404.16574 ↗First posted 25 Apr 2024cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

It has been found that Transformer-based language models have the ability to perform basic quantitative reasoning. In this paper, we propose a method for studying how these models internally represent numerical data, and use our proposal to analyze the ALBERT family of language models. Specifically, we extract the learned embeddings these models use to represent tokens that correspond to numbers and ordinals, and subject these embeddings to Principal Component Analysis (PCA). PCA results reveal that ALBERT models of different sizes, trained and initialized separately, consistently learn to use the axes of greatest variation to represent the approximate ordering of various numerical concepts. Numerals and their textual counterparts are represented in separate clusters, but increase along the same direction in 2D space. Our findings illustrate that language models, trained purely to model text, can intuit basic mathematical concepts, opening avenues for NLP applications that intersect with quantitative reasoning.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 31 references that are in the map. First posted on arXiv 25 Apr 2024.

Builds on

23 of 31 references.

References · 23

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  5. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
  6. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  7. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
  8. 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 335
  9. 2020LUKE: Deep Contextualized Entity Representations with Entity-aware Self-attentioncited by 326
  10. 2019Do NLP Models Know Numbers? Probing Numeracy in Embeddingscited by 159
  11. 2018Phrase-Based & Neural Unsupervised Machine Translationcited by 138
  12. 2020Birds have four legs?! NumerSense: Probing Numerical Commonsense Knowledge of Pre-trained Language Modelscited by 110
11 more
  1. 2018Meta-Learning for Low-Resource Neural Machine Translationcited by 105
  2. 2020Pre-Training Transformers as Energy-Based Cloze Modelscited by 52
  3. 2015Take and Took, Gaggle and Goose, Book and Read: Evaluating the Utility of Vector Differences for Lexical Relation Learningcited by 29
  4. 2021The Case for Translation-Invariant Self-Attention in Transformer-Based Language Modelscited by 23
  5. 2021How Much Coffee Was Consumed During EMNLP 2019? Fermi Problems: A New Reasoning Challenge for AIcited by 22
  6. 2022On the Transformation of Latent Space in Fine-Tuned NLP Modelscited by 19
  7. 2019Mathematical Reasoning in Latent Spacecited by 17
  8. 2019Learning Numeral Embeddingscited by 15
  9. 2021NumGPT: Improving Numeracy Ability of Generative Pre-trained Modelscited by 15
  10. 2023Multi-Operational Mathematical Derivations in Latent Spacecited by 6
  11. 2022Improving Downstream Task Performance by Treating Numbers as Entitiescited by 1

Built on by

Not cited yet.