Are All Spurious Features in Natural Language Alike? An Analysis through a Causal Lens

Nitish Joshi, Xiang Pan, He He
10/25/2022
cs.CLcs.LG

Official code: joshinh/spurious-correlations-nlp (0 stars, Python, MIT, last commit 2023-05-29).

Abstract

The term `spurious correlations' has been used in NLP to informally denote any undesirable feature-label correlations. However, a correlation can be undesirable because (i) the feature is irrelevant to the label (e.g. punctuation in a review), or (ii) the feature's effect on the label depends on the context (e.g. negation words in a review), which is ubiquitous in language tasks.

Show full abstract

In case (i), we want the model to be invariant to the feature, which is neither necessary nor sufficient for prediction. But in case (ii), even an ideal model (e.g. humans) must rely on the feature, since it is necessary (but not sufficient) for prediction. Therefore, a more fine-grained treatment of spurious features is needed to specify the desired model behavior. We formalize this distinction using a causal model and probabilities of necessity and sufficiency, which delineates the causal relations between a feature and a label. We then show that this distinction helps explain results of existing debiasing methods on different spurious features, and demystifies surprising results such as the encoding of spurious features in model representations after debiasing.

View on arXivView PDF

Code Implementations(1)

MIT
00PythonOct 21, 20223 years agoMIT

Similar Papers

Cite this paper

@article{joshi2022spurious,
  title  = {Are All Spurious Features in Natural Language Alike? An Analysis through a Causal Lens},
  author = {Nitish Joshi and Xiang Pan and He He},
  year   = {2022},
  eprint = {2210.14011},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.14011}
}

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

Discussion