Counterfactual reasoning: Do language models need world knowledge for causal understanding?

Jiaxuan Li, Lang Yu, Allyson Ettinger
12/6/2022
cs.CL

Official code: goldengua/Counterfactual_Inference_LM (11 stars, Python, last commit 2023-05-18).

Abstract

Current pre-trained language models have enabled remarkable improvements in downstream tasks, but it remains difficult to distinguish effects of statistical correlation from more systematic logical reasoning grounded on understanding of the real world. In this paper we tease these factors apart by leveraging counterfactual conditionals, which force language models to predict unusual consequences based on hypothetical propositions.

Show full abstract

We introduce a set of tests drawn from psycholinguistic experiments, as well as larger-scale controlled datasets, to probe counterfactual predictions from a variety of popular pre-trained language models. We find that models are consistently able to override real-world knowledge in counterfactual scenarios, and that this effect is more robust in case of stronger baseline world knowledge -- however, we also find that for most models this effect appears largely to be driven by simple lexical cues. When we mitigate effects of both world knowledge and lexical cues to test knowledge of linguistic nuances of counterfactuals, we find that only GPT-3 shows sensitivity to these nuances, though this sensitivity is also non-trivially impacted by lexical associative factors.

View on arXivView PDF

Code Implementations(1)

110PythonJun 24, 20223 years ago

Similar Papers

Cite this paper

@article{li2022counterfactual,
  title  = {Counterfactual reasoning: Do language models need world knowledge for causal understanding?},
  author = {Jiaxuan Li and Lang Yu and Allyson Ettinger},
  year   = {2022},
  eprint = {2212.03278},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.03278}
}

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/2212.03278.svg)](https://codeofpaper.com/paper/2212.03278)

Discussion