Abstract
Deep learning models frequently exploit spurious correlations—non-causal relationships between features and labels—resulting in brittle performance on minority groups. We introduce Neutralizing Spurious Features (NSF), a novel framework that identifies these biases by analyzing the geometric "clusterness" of samples in feature space. By applying a targeted linear transformation, NSF "neutralizes" spurious signals without requiring explicit bias annotations. Our evaluation across vision, NLP, and medical datasets demonstrates that NSF significantly improves model robustness, achieving over 20% gains in Worst Group Accuracy (WGA) while remaining computationally efficient.
Introduction: The Challenge of Spurious Correlation
Neural networks often prioritize the "path of least resistance" during training. If a specific attribute, such as a water background, frequently co-occurs with a "waterbird" label, the model may learn to rely on the background rather than the object's core features. This phenomenon, known as spurious correlation, leads to catastrophic failure on minority groups—rare instances where the core feature and the spurious attribute are decoupled (e.g., a waterbird on land).
Existing debiasing methods often require human-annotated bias labels or rigid architectural assumptions. NSF addresses these limitations by leveraging the inherent geometry of the model's feature space to detect and correct bias automatically.
Methodology: Neutralizing Spurious Features (NSF)
The NSF pipeline consists of four distinct stages designed to identify, estimate, and eliminate spurious features.
1. Identifying Bias Presence
The core insight of NSF is that spurious correlations distort the feature space. In a biased model, "majority" samples (those aligned with the bias) cluster tightly near the class centroid, while "minority" samples (those conflicting with the bias) are pushed toward the decision boundary. By measuring the relative distance of samples to these centroids, NSF can separate majority and minority groups without external labels.
2. Neutralizing for Bias-Invariant Features
Once groups are identified, the algorithm estimates an "unbiased mean" for each class. This theoretical mean represents the feature distribution as it would appear if the spurious attribute were uniformly distributed across the dataset, providing a target for normalization.
3. Eliminating Spurious Features
NSF learns a linear transformation $t(x) = w(x - b) + b$ to align training samples with the estimated unbiased mean. This operation effectively "zeros out" the dimensions in the feature vector that carry the spurious signal, ensuring the model focuses on core attributes.
4. Updating the Classifier
Finally, the classifier head is fine-tuned using a balanced sampling strategy. This forces the model to utilize the neutralized, core features to distinguish between classes, rather than relying on the now-eliminated spurious shortcuts.
Experimental Results
We evaluated NSF on five benchmarks: Waterbirds, CelebA, MultiNLI, CivilComments-WILDS, and CheXpert.
- Robustness Gains: NSF achieved an average improvement of over 20% in Worst Group Accuracy (WGA) compared to standard Empirical Risk Minimization (ERM).
- State-of-the-Art Performance: On the Waterbirds dataset, NSF reached 91.12% WGA, rivaling methods that require explicit bias labels (e.g., GroupDRO at 91.40%).
- Clinical Relevance: In the medical domain (CheXpert), NSF improved WGA from 31.21% to 70.21%, demonstrating its potential for safety-critical applications where unknown biases (like medical device artifacts) can be life-threatening.
- Efficiency: The debiasing transformation is highly efficient, requiring only 1 to 15 seconds of additional training time across all tested datasets.
Discussion and Conclusion
NSF demonstrates that spurious correlations physically distort the geometry of a model's feature space. By exploiting this "clusterness," we can develop task-agnostic debiasing tools that work across vision, language, and medical domains. While the current linear transformation is highly efficient, future work may explore non-linear manifolds to address even more complex spurious distortions. Ultimately, NSF provides a scalable, label-free path toward more robust and trustworthy deep learning models.
Summary updated