While Large Language Models (LLMs) are celebrated for their linguistic prowess, a fundamental question remains: do they actually understand the physical world? Specifically, can they grasp the scalar magnitude of objects—knowing, for instance, how much a "wedding ring" weighs or the typical cost of a "house"? This paper investigates whether models like BERT and ELMo capture scale information and proposes NumBERT, a method to enhance their numerical common sense.
The Challenge of Physical Common Sense
Common Sense Reasoning (CSR) is a cornerstone of artificial intelligence. To move beyond simple word associations, a model must understand physical properties. If an AI cannot distinguish that a "house" is generally larger than a "mouse," its reasoning remains superficial.
The authors formalize this challenge through Scalar Probing. Given an object (e.g., "dog") and an attribute (e.g., "Mass"), the goal is to determine if a pretrained model’s internal representation can predict the value. Because objects have natural variation (a Chihuahua vs. a Great Dane) and language is often polysemous, the authors argue that models should predict a distribution of possible values rather than a single point estimate.
Scalar Probing Methodology
The researchers employed a probing framework using frozen, pretrained encoders. By keeping the encoder weights fixed, they ensured that any success in the task was due to information already present in the embeddings rather than new information learned during the probe's training.
As shown in the framework above, the process involves:
- Input Templates: Contextual models receive simple sentences like "The [X] is heavy" (Mass) or "The [X] is expensive" (Price).
- Probing Approaches: The team compared Regression (rgr), which predicts a single median value, against Multi-class Classification (mcc), which predicts a distribution across 12 logarithmically spaced "buckets."
- NumBERT Innovation: Standard Arabic numerals are difficult for LMs because magnitude is often obscured by string length. The authors retrained BERT by representing numbers in scientific notation (e.g.,
314.1becomes3141 [EXP] 2), allowing the model to explicitly process the exponent (magnitude) and mantissa (precision).
Key Insights and Results
The experiments utilized the Distributions over Quantities (DoQ) dataset, which contains empirical counts for over 350k nouns, adjectives, and verbs.
Contextual vs. Static Embeddings
A primary finding was that contextual encoders (BERT, ELMo) significantly outperformed static embeddings like Word2Vec. This suggests that the variety of sentence contexts encountered during pre-training allows these models to "triangulate" physical properties more effectively than simple co-occurrence models.
The Success of NumBERT
NumBERT consistently demonstrated superior performance, particularly when measured by Earth Mover’s Distance (EMD)—a metric quantifying the effort required to align a predicted distribution with the ground truth. By making scale explicit through scientific notation, NumBERT bridges a significant portion of the "numeracy gap" found in standard models.
As the data in the table indicates, while contextual models outperform baselines, they still only close approximately 1/3 to 1/2 of the gap toward a theoretical "perfect" oracle model. This highlights that while scale information is present, it is not yet robustly integrated.
Conclusion and Future Directions
While current language models possess a surprising amount of latent physical knowledge, they fall short of human-level common sense. The success of NumBERT suggests that architectural "hacks" to improve numeracy are effective, but more fundamental changes may be needed. Future research aims to move beyond simple object-attribute pairs to complex sentences where context significantly shifts expected scales (e.g., a "small elephant" vs. a "large mouse").
Summary updated