Introduction: The Challenge of Spurious Correlations
Deep learning models often achieve high average accuracy by exploiting "spurious correlations"—shortcuts in the data that do not represent the underlying task. For instance, if most images of cows in a dataset are set against a grassy background, a model might learn to associate grass with the label "cow." While this heuristic works for the majority of cases, it fails on minority groups, such as a cow on a beach. This failure is particularly evident in the discrepancy between training and test performance for these rare sub-groups.
The Memorization Gap
The core of the issue lies in how models handle atypical data. During training, neural networks often "memorize" minority group examples to minimize loss, achieving near-perfect training accuracy. However, this memorization does not translate to generalization.
As shown in Figure 1, while training accuracy remains high across all groups, the test accuracy for minority groups (denoted with asterisks) plummets, particularly in the ViT-small architecture. This "memorization effect" suggests that the model is using specific, non-robust features to classify these examples.
Methodology: Identifying and Mitigating Critical Neurons
To address this, the researchers proposed a two-stage framework: Identification and Mitigation.
1. Identification (Tracing)
The study identifies "critical neurons" responsible for this memorization. By ranking neurons based on their weight magnitude and gradient norm for minority samples, the authors found that a tiny fraction of the network (often less than 0.01%) drives the model's reliance on spurious features.
Figure 6 illustrates a key finding: neurons that exhibit the largest gradients when processing minority group samples are almost exclusively those with the highest weight magnitudes. These "critical neurons" act as hubs for non-generalizable information.
2. Mitigation (Dual-Branch Fine-Tuning)
The proposed mitigation strategy involves a dual-branch fine-tuning framework. A "Target Model" is trained alongside an "Auxiliary Model" where the identified critical neurons are masked (pruned). By applying a contrastive loss and a supervised loss to align the features of the Target Model with the pruned Auxiliary Model, the network is forced to learn more robust, generalizable features rather than relying on the "memorization hubs." Importantly, this process uses high-loss predictions as pseudo-labels, removing the need for explicit group labels during fine-tuning.
Key Results and Impact
The framework demonstrates significant improvements in Worst Group Accuracy (WGA) across multiple benchmarks:
- Waterbirds: WGA increased by 16.87% for ResNet-50 and a staggering 23.83% for ViT-Small.
- CelebA: Improvements of approximately 10% were observed, indicating the method's effectiveness across different types of visual bias.
Qualitative analysis using GradCAM confirmed that the fine-tuned models shifted their focus from spurious backgrounds to the actual objects of interest. This research reveals that the "memorization" of spurious correlations is concentrated in a minuscule subset of a model's parameters. By targeting these specific neurons, it is possible to significantly enhance model robustness without requiring exhaustive group labeling.
Summary updated