Distilling Model Failures as Directions in Latent Space
About
Existing methods for isolating hard subpopulations and spurious correlations in datasets often require human intervention. This can make these methods labor-intensive and dataset-specific. To address these shortcomings, we present a scalable method for automatically distilling a model's failure modes. Specifically, we harness linear classifiers to identify consistent error patterns, and, in turn, induce a natural representation of these failure modes as directions within the feature space. We demonstrate that this framework allows us to discover and automatically caption challenging subpopulations within the training dataset. Moreover, by combining our framework with off-the-shelf diffusion models, we can generate images that are especially challenging for the analyzed model, and thus can be used to perform synthetic data augmentation that helps remedy the model's failure modes. Code available at https://github.com/MadryLab/failure-directions
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Spurious Correlation Discovery | MNIST, FashionMNIST, and COCO 654 evaluation settings (test) | mP@1020.1 | 24 | |
| Image Classification | CIFAR-100 (test) | Worst Subgroup Acc (1st)33.7 | 15 | |
| Image Classification | CIFAR-100 (test) | Accuracy (1st Worst Subgroup)33.7 | 15 | |
| Image Classification | Breeds (test) | Accuracy (1st Worst Subgroup)71.6 | 15 | |
| Bias discovery | CelebA standard (test) | Precision@100.7 | 8 | |
| Bias discovery | Waterbirds standard (test) | Precision@1090 | 8 | |
| Bias discovery | NICO++ 75/90/95 (test) | Precision@10 (75% Strength)0.19 | 6 | |
| Biased subgroup detection | CIFAR-100 (test) | Success Rate45 | 5 | |
| Biased subgroup detection | Breeds (test) | Success Rate46.1 | 5 | |
| Subgroup Discovery | CIFAR-100 1.0 (test) | Cosine Similarity3.06 | 5 |