Skip to main content
QUICK REVIEW

[Paper Review] Birds have four legs?! NumerSense: Probing Numerical Commonsense Knowledge of Pre-trained Language Models

Bill Yuchen Lin, Seyeon Lee|arXiv (Cornell University)|May 2, 2020
Topic ModelingComputer Science28 references14 citations
TL;DR

This paper introduces NumerSense, a diagnostic probing task and dataset to evaluate pre-trained language models' ability to capture numerical commonsense knowledge—such as 'a bird has two legs.' Using masked language modeling, the study reveals that BERT and RoBERTa perform poorly (54.06% accuracy) even after distant supervision fine-tuning, far below human performance (96.3%), highlighting a critical gap in PTLMs' factual numerical reasoning capabilities.

ABSTRACT

Recent works show that pre-trained language models (PTLMs), such as BERT, possess certain commonsense and factual knowledge. They suggest that it is promising to use PTLMs as "neural knowledge bases" via predicting masked words. Surprisingly, we find that this may not work for numerical commonsense knowledge (e.g., a bird usually has two legs). In this paper, we investigate whether and to what extent we can induce numerical commonsense knowledge from PTLMs as well as the robustness of this process. To study this, we introduce a novel probing task with a diagnostic dataset, NumerSense, containing 13.6k masked-word-prediction probes (10.5k for fine-tuning and 3.1k for testing). Our analysis reveals that: (1) BERT and its stronger variant RoBERTa perform poorly on the diagnostic dataset prior to any fine-tuning; (2) fine-tuning with distant supervision brings some improvement; (3) the best supervised model still performs poorly as compared to human performance (54.06% vs 96.3% in accuracy).

Motivation & Objective

  • Investigate whether pre-trained language models (PTLMs) can capture and reason about numerical commonsense knowledge, such as 'a bird has two legs'.
  • Address the gap in existing probing tasks that focus on linguistic or qualitative commonsense knowledge but overlook quantitative facts.
  • Evaluate the robustness of PTLMs to small perturbations in input that affect numerical reasoning, such as inserting adjectives near masked number words.
  • Assess the effectiveness of distant supervision and fine-tuning in improving PTLMs' performance on numerical commonsense tasks.
  • Provide a diagnostic dataset to serve as a benchmark for future research on improving PTLMs' numerical reasoning and knowledge grounding.

Proposed method

  • Design a masked-word-probing task where models predict the most likely number word (e.g., 'two') to fill a masked position in a sentence requiring numerical commonsense.
  • Construct the NumerSense dataset of 13,600 probes (10,500 for fine-tuning, 3,100 for testing) by filtering and manually vetting statements from Open Mind Common Sense (OMCS) corpus.
  • Incorporate adversarial examples by inserting adjectives (e.g., 'round') near the noun in the probe, derived from ConceptNet, to test model robustness.
  • Evaluate models in two settings: zero-shot (no fine-tuning) and distant supervision (fine-tuned on related commonsense reasoning datasets like CommonsenseQA).
  • Use softmax scores to rank candidate number words and determine model confidence in the correct answer, measuring performance via accuracy.
  • Benchmark performance against human annotators and a state-of-the-art open-domain QA model on 'how-many' questions, converting probes into natural language questions.

Experimental results

Research questions

  • RQ1To what extent can pre-trained language models like BERT and RoBERTa recover numerical commonsense facts such as 'a bird has two legs' via masked language modeling?
  • RQ2How robust are these models to minor input perturbations—such as inserting an adjective like 'round'—that alter the context but not the factual meaning?
  • RQ3Can distant supervision from related commonsense reasoning datasets significantly improve PTLMs' performance on numerical commonsense probing tasks?
  • RQ4How does the performance of PTLMs on NumerSense compare to human performance and state-of-the-art open-domain QA models on 'how-many' questions?
  • RQ5What are the key failure modes of PTLMs in numerical commonsense reasoning, and what might explain their poor performance despite self-supervised pre-training?

Key findings

  • BERT and RoBERTa achieve only 54.06% accuracy on the NumerSense diagnostic dataset in the zero-shot setting, indicating poor baseline performance on numerical commonsense knowledge.
  • Fine-tuning with distant supervision from related commonsense datasets improves performance but still results in a significant gap compared to human performance (96.3% accuracy).
  • The best-performing supervised model still underperforms humans, suggesting that current PTLMs lack reliable encoding of exact numerical facts.
  • Models exhibit poor robustness: inserting a single adjective like 'round' into a sentence such as 'a round bird usually has [MASK] legs' causes BERT to switch from predicting 'four' to 'two', demonstrating instability.
  • The state-of-the-art open-domain QA model (fine-tuned on Natural Questions) achieves only 15.4% accuracy on the same 'how-many' questions, worse than BERT-base without fine-tuning, indicating that current QA systems also struggle with numerical commonsense.
  • The study identifies a critical research gap: while PTLMs capture linguistic and qualitative commonsense, they fail to reliably encode or retrieve precise numerical facts, even when these facts are common knowledge.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.