Towards Last-layer Retraining for Group Robustness with Fewer Annotations

Tyler LaBonte, Vidya Muthukumar, Abhishek Kumar
9/1/2023

No official code found. Best implementation: tmlabonte/last-layer-retraining (12 stars, MIT, last commit 2024-05-15).

Abstract

Empirical risk minimization (ERM) of neural networks is prone to over-reliance on spurious correlations and poor generalization on minority groups. The recent deep feature reweighting (DFR) technique achieves state-of-the-art group robustness via simple last-layer retraining, but it requires held-out group and class annotations to construct a group-balanced reweighting dataset. In this work, we examine this impractical requirement and find that last-layer retraining can be surprisingly effective with no group annotations (other than for model selection) and only a handful of class annotations. We first show that last-layer retraining can greatly improve worst-group accuracy even when the reweighting dataset has only a small proportion of worst-group data. This implies a"free lunch"where holding out a subset of training data to retrain the last layer can substantially outperform ERM on the entire dataset with no additional data or annotations. To further improve group robustness, we introduce a lightweight method called selective last-layer finetuning (SELF), which constructs the reweighting dataset using misclassifications or disagreements. Our empirical and theoretical results present the first evidence that model disagreement upsamples worst-group data, enabling SELF to nearly match DFR on four well-established benchmarks across vision and language tasks with no group annotations and less than 3% of the held-out class annotations. Our code is available at https://github.com/tmlabonte/last-layer-retraining.

View on arXivView PDF

Code Implementations(1)

MIT

Official codebase for the NeurIPS 2023 paper: Towards Last-layer Retraining for Group Robustness with Fewer Annotations. https://arxiv.org/abs/2309.08534

120PythonSep 16, 20232 years agoMIT

Similar Papers

Cite this paper

@article{labonte2023towards,
  title  = {Towards Last-layer Retraining for Group Robustness with Fewer Annotations},
  author = {Tyler LaBonte and Vidya Muthukumar and Abhishek Kumar},
  year   = {2023},
  eprint = {2309.08534},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.08534},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.08534.svg)](https://codeofpaper.com/paper/2309.08534)

Discussion