[Paper Review] Identifying Spurious Correlations for Robust Text Classification
This paper proposes a supervised method to identify spurious correlations in text classification by leveraging treatment effect estimators as features to distinguish genuine from spurious word-class associations. Trained on limited labeled examples (200–300), the word classifier achieves AUC scores of 0.66–0.82 and improves worst-case accuracy in downstream tasks by filtering out spurious terms in order of predicted spuriousness, enhancing robustness under distribution shift and fairness concerns.
The predictions of text classifiers are often driven by spurious correlations -- e.g., the term `Spielberg' correlates with positively reviewed movies, even though the term itself does not semantically convey a positive sentiment. In this paper, we propose a method to distinguish spurious and genuine correlations in text classification. We treat this as a supervised classification problem, using features derived from treatment effect estimators to distinguish spurious correlations from "genuine" ones. Due to the generic nature of these features and their small dimensionality, we find that the approach works well even with limited training examples, and that it is possible to transport the word classifier to new domains. Experiments on four datasets (sentiment classification and toxicity detection) suggest that using this approach to inform feature selection also leads to more robust classification, as measured by improved worst-case accuracy on the samples affected by spurious correlations.
Motivation & Objective
- To address the problem of text classifiers relying on spurious correlations—such as 'Spielberg' correlating with positive sentiment not due to semantic meaning but due to statistical association with successful films.
- To improve model robustness under distribution shift, where test data deviates from training data (e.g., a new negative Spielberg film), by identifying and filtering out such spurious features.
- To enhance fairness in text classification by reducing overprediction of toxicity for terms linked to demographic groups, even when those terms are not inherently toxic.
- To support explainability in NLP by reducing reliance on misleading features that undermine trust in model decisions.
- To develop a transferable, data-efficient method for identifying spurious features that generalizes across domains without retraining from scratch.
Proposed method
- Treats the identification of spurious vs. genuine word correlations as a supervised binary classification problem, using word-level features derived from causal inference techniques.
- Employs matching-based treatment effect estimation to isolate the causal impact of each word on the label, controlling for contextual co-occurrence patterns.
- Constructs a set of generic, low-dimensional features from the matching process—such as average treatment effect and propensity scores—for use in training a word classifier.
- Trains a binary classifier on a small set of labeled word examples (200–300) to predict whether a word is spurious or genuine, using these treatment effect-derived features.
- Applies the trained word classifier to rank all words in a vocabulary by their predicted spuriousness, enabling feature selection in downstream text classification.
- Uses the ranked list to guide feature selection in the main classification task, removing words in order of increasing predicted spuriousness to improve worst-case accuracy.
Experimental results
Research questions
- RQ1Can treatment effect estimators be used to construct effective, low-dimensional features for distinguishing spurious from genuine word correlations in text classification?
- RQ2How well does a word classifier trained on a small number of labeled examples (200–300) perform in identifying spurious terms, even when tested on highly correlated terms?
- RQ3To what extent can a word classifier trained on one domain be transferred to another domain without significant performance degradation?
- RQ4Does using the word classifier to inform feature selection lead to improved worst-case accuracy in downstream text classification tasks under distribution shift?
- RQ5How does the proposed method compare to baseline approaches like sentiment lexicons in identifying genuine, context-specific sentiment and toxicity features?
Key findings
- The proposed word classifier achieves AUC scores between 0.66 and 0.82 on identifying spurious correlations, even when tested on words with strong correlations to the label, demonstrating robustness despite limited training data.
- The method generalizes well across domains: a word classifier trained on one dataset (e.g., IMDB) maintains high performance when applied to another (e.g., toxic comments), indicating strong transferability.
- Feature selection guided by the word classifier’s predictions—removing words in order of predicted spuriousness—results in improved worst-case accuracy on distributionally shifted test sets, confirming enhanced robustness.
- The method outperforms sentiment lexicon baselines across all four datasets (IMDB, Kindle, toxic comment, toxic tweet), with performance gaps of 0.05 to 0.2 in F1 or AUC, due to better detection of context-specific and non-sentiment-related genuine features.
- Combining treatment effect estimates with additional features (e.g., frequency, co-occurrence patterns) yields better classifier performance than using treatment effects alone, indicating the value of multi-modal feature engineering.
- The approach effectively reduces reliance on demographic-linked terms in toxicity classification, mitigating fairness risks associated with spurious correlations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.