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. 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.
Introduction
Machine learning models are notorious for finding the "path of least resistance." In text classification, if a training dataset happens to have many positive reviews that mention "food" and very few negative ones that do, a model might learn a spurious correlation: Food = Positive.
While previous research has focused on "token-level" shortcuts (specific words like "great" or "bad") or syntactic patterns, this paper tackles concept-level bias. Concepts are broader semantic categories (e.g., "service," "style," or "ambiance") that can be expressed through many different words. Because standard datasets lack "concept labels," identifying and fixing these biases has historically been difficult. The authors argue that these shortcuts lead to brittle models that fail when they encounter a concept paired with an unexpected label in the real world.
Methodology
The researchers proposed a three-stage framework to identify, measure, and mitigate concept-level bias:
- Concept Annotation via LLM: Since most datasets aren't labeled for concepts, the authors used ChatGPT (GPT-3.5) to identify and label the presence of specific concepts in every sentence of their datasets. They validated this against human-annotated data (CeBaB) and found ChatGPT achieved over 90% accuracy.
- Quantifying Bias (Bias@C): They introduced a metric called Bias@C. It measures the discrepancy in a model's accuracy when a concept is present versus when it is absent. A high Bias@C indicates the model is leaning heavily on a conceptual shortcut to make its prediction.
- Counterfactual Upsampling: To fix the bias, the authors used ChatGPT to generate counterfactuals. Instead of downsampling (deleting data), they would take an existing review and ask the LLM to "inject" missing conceptual content while keeping the original sentiment intact to balance the label distribution.
The Mechanism of Concept Bias
The authors hypothesize that LMs learn these shortcuts because expressions related to the same concept cluster together in the model's embedding space. If that cluster consistently aligns with one label during training, the model simply maps the entire region of the embedding space to that label, bypassing deeper semantic understanding.
Dataset Analysis and Hidden Imbalance
The study evaluated five diverse datasets: Yelp, IMDB, Amazon Shoe (AS), CeBaB, and BoolQ. A critical insight was that even widely used, curated "gold standard" datasets are highly imbalanced at the concept level. For instance, in IMDB, the concept of "music" is overwhelmingly associated with positive labels, leading models to struggle with negative reviews about a movie's score.
Key Results and Insights
- Bias is Pervasive: Models fine-tuned on original datasets showed significant Bias@C scores (e.g., 11.56 for "style" in Amazon Shoe). When trained on intentionally biased subsets, these scores skyrocketed, and "robust accuracy" (performance on the minority class) plummeted.
- Counterfactuals Win: The proposed upsampling method (adding LLM-generated counterfactuals) was the most effective mitigation strategy. For DistilBERT, it reduced the mean absolute Bias@C from 4.90% to 2.74%.
- Utility vs. Robustness: Unlike downsampling, counterfactual upsampling maintained or even improved the model's overall utility while significantly reducing bias.
- ICL is Not Immune: In-Context Learning (ICL) also suffers. If the few examples (exemplars) provided in a prompt are biased toward a concept-label pair, the model will adopt that shortcut immediately for the test sentence.
- Masking is Insufficient: Traditional "token removal" (masking the top 10 words associated with a concept) failed to eliminate bias. This suggests that concepts are deeply embedded in the semantics of the text and cannot be "hidden" by just removing a few keywords.
Conclusion
This research demonstrates that concept-level spurious correlations are a significant hurdle for LM robustness. By leveraging LLMs for both automated annotation and counterfactual data generation, the authors provide a scalable method to identify and mitigate these biases. Future work should explore these behaviors in larger models and more complex generative tasks where conceptual shortcuts may be even more nuanced.
Summary updated