Introduction
Deep neural networks often exhibit a phenomenon known as simplicity bias, where they latch onto the easiest statistical patterns to minimize training error. While efficient, these "shortcuts" often rely on spurious correlations—features like image backgrounds or lighting that are statistically present in training data but lack a causal link to the actual label. For instance, a model might learn to identify a "camel" solely by the presence of sand. When such a model encounters a camel in a forest, it fails.
Traditionally, mitigating this requires "group annotations"—manual labels identifying every potential shortcut (e.g., gender, background, texture). However, labeling these attributes is expensive and often impossible when the shortcuts are unknown. This paper introduces PruSC (Pruning Spurious Correlations), a method that identifies and removes these shortcuts without requiring human-labeled group annotations.
The PruSC Framework
The authors propose a two-stage approach to isolate robust logic from spurious shortcuts within a pre-trained model.
1. Unsupervised Representation Clustering
The researchers observed that even in a biased model (trained via Empirical Risk Minimization, or ERM), data points sharing spurious features naturally cluster together in the latent representation space. By applying simple k-means clustering to these representations, the method can identify groups that likely share spurious attributes without needing explicit labels for those attributes.
2. Subnetwork Extraction and Contrastive Learning
Rather than retraining from scratch, PruSC searches for a robust "subnetwork" within the existing dense model. This is achieved using a learnable mask (via the Gumbel-Sigmoid trick) to prune connections that rely on spurious features. To guide this pruning, the authors employ a novel supervised contrastive loss:
- Positive Alignment: Samples of the same class from different clusters (e.g., a camel in the desert and a camel on grass) are pushed closer together.
- Negative Distortion: Samples within the same cluster (which likely share a spurious feature) are pushed further apart.
This forces the subnetwork to ignore the "loud" spurious features and focus on invariant characteristics that remain consistent across different environments.
Key Insights: The Robust Model Within
A central finding of the paper is that a fully trained, biased network already contains a smaller, robust subnetwork. We do not necessarily need more data or complex architectures; we need better methods to find the correct paths through existing neurons. By intentionally "distorting" the latent space—pushing similar-looking things apart if they reside in the same spurious cluster—the model is forced to find more complex, causal features to maintain accuracy.
Experimental Evaluation
PruSC was evaluated on three major benchmarks, achieving state-of-the-art results among methods that do not use group annotations:
- CelebA (Hair Color): Improved "Worst-Group Accuracy" (e.g., performance on the rare blond male group) from 49.7% to 89.7%.
- ISIC (Skin Cancer): In this medical dataset, models often mistake doctor-placed colored markers for signs of health. PruSC improved worst-group accuracy to 75.1%, outperforming several methods that had access to full group labels.
- WaterBird: While PruSC showed significant gains, it was slightly less effective here than on other sets. The authors suggest that pruning to a very small subnetwork (10% of original size) might discard fine-grained details needed to distinguish between similar bird species.
Conclusion and Future Work
PruSC demonstrates that robust AI can be achieved by "pruning away" simplicity bias. By leveraging the natural clustering of spurious features in latent space, the method removes the need for exhaustive human labeling. Future work may focus on increasing the interpretability of these pruned paths, allowing developers to understand exactly which neural connections represent "shortcuts" versus "logic."
Summary updated