Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Commonsense in Pre-trained Language Models

Xuhui Zhou, Yue Zhang|arXiv (Cornell University)|Nov 27, 2019
Topic ModelingComputer Science27 citations
TL;DR

This paper evaluates commonsense knowledge in pre-trained language models (GPT, BERT, XLNet, RoBERTa) using seven diverse benchmarks, measuring their ability to distinguish semantically valid from invalid sentences through perplexity scoring. Key findings show that while language modeling objectives improve commonsense understanding, models still fail on multi-step reasoning and exhibit surface-level reasoning, as revealed by inconsistent predictions on dual test cases with correlated logic.

ABSTRACT

Contextualized representations trained over large raw text data have given remarkable improvements for NLP tasks including question answering and reading comprehension. There have been works showing that syntactic, semantic and word sense knowledge are contained in such representations, which explains why they benefit such tasks. However, relatively little work has been done investigating commonsense knowledge contained in contextualized representations, which is crucial for human question answering and reading comprehension. We study the commonsense ability of GPT, BERT, XLNet, and RoBERTa by testing them on seven challenging benchmarks, finding that language modeling and its variants are effective objectives for promoting models' commonsense ability while bi-directional context and larger training set are bonuses. We additionally find that current models do poorly on tasks require more necessary inference steps. Finally, we test the robustness of models by making dual test cases, which are correlated so that the correct prediction of one sample should lead to correct prediction of the other. Interestingly, the models show confusion on these test cases, which suggests that they learn commonsense at the surface rather than the deep level. We release a test set, named CATs publicly, for future research.

Motivation & Objective

  • To systematically evaluate the extent and quality of commonsense knowledge encoded in pre-trained contextualized language models.
  • To identify which training objectives and model architectures best support commonsense reasoning.
  • To investigate whether models perform robustly on reasoning tasks requiring multiple inference steps.
  • To assess whether models learn deep semantic understanding or rely on superficial cues by testing consistency on dual test cases.

Proposed method

  • Unified seven diverse commonsense benchmarks (e.g., WSC, SWAG, HellaSwag) into a consistent format for perplexity-based evaluation.
  • Measured model performance by comparing perplexity on correct vs. incorrect sentence pairs, using log-likelihood ratios to analyze decision-making.
  • Constructed 75 dual test instances per model for WSC, SM, and ARCT using four perturbation types: Add, Del, Swap, Sub.
  • Evaluated consistency by checking if models gave the same prediction (correct/incorrect) on both original and dual instances.
  • Visualized per-word contribution to decision-making via qk values to analyze model confidence and reasoning patterns.
  • Released a public test set named CATs for future research.

Experimental results

Research questions

  • RQ1To what extent do pre-trained language models like BERT, GPT, XLNet, and RoBERTa possess commonsense knowledge?
  • RQ2How do different pre-training objectives (e.g., autoregressive vs. bidirectional) affect commonsense reasoning?
  • RQ3Do models generalize well to reasoning tasks requiring multiple inference steps?
  • RQ4How robust are models to adversarial perturbations that preserve logical structure but alter surface form?
  • RQ5Do models rely on shallow cues or deep semantic understanding when making commonsense judgments?

Key findings

  • Language modeling objectives such as those in GPT and RoBERTa are effective for learning commonsense knowledge, with bidirectional models like BERT and RoBERTa showing improved performance.
  • Larger training sets and bidirectional context provide measurable bonuses in commonsense reasoning, though not sufficient for robust performance.
  • Models perform poorly on tasks requiring more than one inference step, indicating limitations in complex reasoning.
  • Consistency across dual test cases—where correct prediction on one implies correct on the other—is low across all models, with only Swap method showing above-random consistency.
  • Visual analysis of qk values reveals that models are confused by perturbations, especially in Add, Del, and Sub methods, suggesting reliance on surface-level patterns rather than deep semantic understanding.
  • The best-performing model, RoBERTa-large, achieved only 44% consistency on the Sub method, far below human-level robustness, indicating a fundamental gap in reasoning depth.

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.