Explore Spurious Correlations at the Concept Level in Language Models for Text Classification

Yuhang Zhou, Paiheng Xu, Xiaoyu Liu, Bang An, Wei Ai +1 more
11/15/2023
68 citations
cs.CLcs.AI

Official code: Tonyzhou98/concept-spurious-correlation (9 stars, Python, last commit 2024-06-01).

Abstract

Language models (LMs) have achieved notable success in numerous NLP tasks, employing both fine-tuning and in-context learning (ICL) methods. While language models demonstrate exceptional performance, they face robustness challenges due to spurious correlations arising from imbalanced label distributions in training data or ICL exemplars.

Show full abstract

Previous research has primarily concentrated on word, phrase, and syntax features, neglecting the concept level, often due to the absence of concept labels and difficulty in identifying conceptual content in input texts. This paper introduces two main contributions. First, we employ ChatGPT to assign concept labels to texts, assessing concept bias in models during fine-tuning or ICL on test data. We find that LMs, when encountering spurious correlations between a concept and a label in training or prompts, resort to shortcuts for predictions. Second, we introduce a data rebalancing technique that incorporates ChatGPT-generated counterfactual data, thereby balancing label distribution and mitigating spurious correlations. Our method's efficacy, surpassing traditional token removal approaches, is validated through extensive testing.

View on arXivView PDF

Code Implementations(1)

91PythonMay 24, 20242 years ago

Similar Papers

Cite this paper

@article{zhou2023explore,
  title  = {Explore Spurious Correlations at the Concept Level in Language Models for Text Classification},
  author = {Yuhang Zhou and Paiheng Xu and Xiaoyu Liu and Bang An and Wei Ai and Furong Huang},
  year   = {2023},
  eprint = {2311.08648},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.08648v4}
}

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

Discussion