Introduction
Standard machine learning models trained via Empirical Risk Minimization (ERM) often struggle with group robustness. These models are frequently "lazy," latching onto spurious correlations—predictive shortcuts that hold true for the majority of the training data but fail for minority groups. A classic example is a model identifying a "camel" based on the presence of sand; while effective for most training images, the model fails when presented with a camel on a grassy field.
To address this, researchers have previously utilized Deep Feature Reweighting (DFR), which retrains a model's final layer on a group-balanced dataset. However, DFR relies on expensive "group annotations" (e.g., labeling both the object and the background), which are often unavailable or restricted. This paper introduces Selective Last-layer Fine-tuning (SELF), a method that achieves state-of-the-art robustness without requiring these costly labels.
The "Free Lunch" of Class-Balanced Retraining
A significant discovery in this research is that the success of many group-aware methods stems from simple class balancing rather than complex group balancing. The authors found that retraining the last layer on a class-balanced subset—even if the groups within those classes remain unbalanced—provides a substantial boost to minority group performance.
Surprisingly, the authors demonstrate that splitting a training set (e.g., training the base model on 95% of the data and retraining the last layer on the remaining 5%) often outperforms training on the full 100% of the data from scratch. In some benchmarks, this simple split improved worst-group accuracy by as much as 17%.
Selective Last-layer Fine-tuning (SELF)
Building on the class-balancing insight, the authors propose Selective Last-layer Fine-tuning (SELF). This algorithm identifies a small, high-impact subset of "hard" examples for retraining by leveraging model disagreement.
The Disagreement Mechanism
SELF compares the predictions of a fully trained model against a "regularized" version of itself (such as a model using dropout or early stopping). The core theoretical and empirical finding is that the points where these two models disagree are naturally enriched with minority group data. By fine-tuning the last layer exclusively on these points of disagreement, the model learns to prioritize the actual features of the object (e.g., the camel) over the spurious shortcuts (e.g., the sand).
Experimental Evaluation
The researchers evaluated SELF across four prominent group robustness benchmarks:
- Waterbirds: Identifying birds where the background (land vs. water) is a spurious cue.
- CelebA: Predicting hair color where gender is a spurious cue.
- CivilComments: Toxicity detection where identity mentions are spuriously linked to toxicity.
- MultiNLI: Language inference where negation words act as shortcuts.
Key Results
- Performance Parity: SELF nearly matches the performance of DFR, despite DFR having access to full group labels that SELF does not use during training.
- Label Efficiency: The method is remarkably efficient. On the Waterbirds dataset, SELF achieved high robustness using as few as 20 class labels from the held-out set.
- Feature Preservation: The results suggest that core features are learned during standard training but are suppressed by the final layer in favor of easier shortcuts. Retraining the last layer effectively "unlocks" these latent features.
Discussion and Future Work
While SELF represents a major step forward in label-efficient robustness, some challenges remain. The method still struggles in cases of "complete correlation," where a minority group is entirely absent from the training data. Furthermore, while SELF does not require group labels for training, it currently relies on a small group-labeled validation set for model selection. Reducing or eliminating this validation requirement is a primary goal for future research.
Finally, the success of the 95/5 data split challenges the standard intuition that "more data is always better." Understanding the theoretical underpinnings of why holding out data for last-layer retraining is so effective remains an open and intriguing question for the field.
Summary updated