Evaluating Commonsense in Pre-Trained Language Models

Xuhui Zhou, Yue Zhang, Leyang Cui, Dandan Huang

Abstract

While large-scale pre-trained language models (LMs) like BERT and RoBERTa have revolutionized NLP, their grasp of physical and social "common sense" remains a subject of debate. This study evaluates five state-of-the-art models across seven benchmarks (CATs), revealing that while these models capture significant knowledge, they often rely on surface-level statistical patterns rather than deep reasoning. Performance degrades significantly as logical complexity increases, highlighting a substantial gap between current AI and human-level commonsense reasoning.

Introduction

Recent breakthroughs in NLP are driven by contextualized representations trained on massive corpora. While these models excel at capturing syntax and semantics, their "commonsense" ability—the intuitive knowledge about the spatial, physical, and social world—remains poorly understood. For instance, resolving the pronoun in "the trophy doesn't fit into the brown suitcase because it is too large" requires world knowledge rather than just vocabulary. This paper investigates whether models like GPT-2 and RoBERTa possess genuine world knowledge or if they function as sophisticated "stochastic parrots."

Methodology

The researchers evaluated five major models: GPT, GPT-2, BERT, XLNet, and RoBERTa. To ensure a fair comparison, they unified seven different commonsense benchmarks into a single sentence-scoring format. Instead of fine-tuning, they utilized the models' internal "perplexity" (the probability assigned to a sequence of words).

  • Uni-directional models (GPT/GPT-2): Calculated sentence probability word-by-word from left to right.
  • Bi-directional models (BERT/RoBERTa/XLNet): Used a "masking" approach to calculate the probability of key words given the surrounding context. The model selects the correct answer by identifying the sentence version with the highest probability.

Datasets: The CATs Benchmark

The authors compiled the CATs (Commonsense Ability Tests) suite, which categorizes tasks into token-level and sentence-level challenges:

  1. Sense Making (SM): Differentiating sensible from nonsensical statements.
  2. Winograd Schema Challenge (WSC): Resolving ambiguous pronouns.
  3. SWAG & HellaSwag: Predicting plausible next events in grounded situations.
  4. Sense Making with Reasoning (SMR): Identifying the reason for a statement's lack of sense.
  5. Argument Reasoning Comprehension (ARCT): Finding correct warrants for logical arguments.
  6. Conjunction Acceptability (CA): A new task testing logic-based conjunctions (e.g., "but" vs. "before").
Examples of token-level and sentence-level tasks in the CATs benchmark suite.

Key Insights and Analysis

The evaluation revealed several critical patterns in how LMs handle commonsense:

  • Bi-directional Superiority: Models looking at both left and right context (BERT, RoBERTa) significantly outperform uni-directional models (GPT), suggesting that full-sentence context is vital for resolving ambiguities.
  • The Inference Gap: There is a clear inverse correlation between the number of required reasoning steps and model performance. As logical complexity increases, accuracy drops sharply.
  • Surface-Level Learning: "Dual Test Cases"—where small changes like swapping "like" for "hate" should flip the answer—showed that models often fail to adjust their predictions. This suggests reliance on "key tokens" rather than underlying logic.
  • Impact of Scale: RoBERTa, trained on 160GB of text, consistently led the field, indicating that commonsense can be partially absorbed through massive data scaling, even if the resulting understanding remains shallow.

Key Results

The quantitative results underscore the remaining challenges in achieving human-like reasoning. RoBERTa-large emerged as the top-performing model, yet it still falls far short of human benchmarks.

Accuracy of various language models across the CATs benchmarks compared to human performance.

Key findings include:

  • RoBERTa-large achieved an average accuracy of 67.9%, the highest among tested models.
  • Human Performance remains significantly higher at 94.5% average accuracy.
  • On the Winograd Schema Challenge (WSC), RoBERTa-large scored 69.4% compared to the human score of 92.0%.
  • Robustness Issues: In "Dual Case" tests, models were consistent only 13% to 36% of the time when faced with "Add" modifications, showing high susceptibility to confusion from minor input changes.

Conclusion

While pre-trained language models are increasingly adept at mimicking commonsense, they lack deep semantic comprehension and rely heavily on surface-level patterns. Future research should focus on improving multi-step reasoning capabilities and incorporating multi-modal data (e.g., video or physical simulations) to better ground commonsense in the physical world. Enhancing model robustness to ensure consistent logical output remains a primary goal for the next generation of NLP systems.

Summary updated

BibTeX
@inproceedings{zhou2020evaluating,
  author = {Xuhui Zhou and Yue Zhang and Leyang Cui and Dandan Huang},
  title = {{Evaluating Commonsense in Pre-Trained Language Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6523},
}
Figure