Evaluating Commonsense in Pre-trained Language Models

Xuhui Zhou, Yue Zhang, Leyang Cui, Dandan Huang
11/27/2019
cs.CLcs.AI

Official code: XuhuiZhou/CATS (30 stars, Python, GPL-3.0, last commit 2022-03-08).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

XuhuiZhou/CATSOfficial100%
GPL-3.0

Commonsense Ability Tests

303Python, ShellSep 3, 20194 years agoGPL-3.0

Similar Papers

Cite this paper

@article{zhou2019evaluating,
  title  = {Evaluating Commonsense in Pre-trained Language Models},
  author = {Xuhui Zhou and Yue Zhang and Leyang Cui and Dandan Huang},
  year   = {2019},
  eprint = {1911.11931},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.11931}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.11931.svg)](https://codeofpaper.com/paper/1911.11931)

Discussion