Predicting Out-of-Distribution Error with the Projection Norm
Yaodong Yu, Zitong Yang, Alexander Wei, Yi Ma, Jacob Steinhardt
Abstract
We propose a metric -- Projection Norm -- to predict a model's performance on out-of-distribution (OOD) data without access to ground truth labels. Projection Norm first uses model predictions to pseudo-label test samples and then trains a new model on the pseudo-labels. The more the new model's parameters differ from an in-distribution model, the greater the predicted OOD error. Empirically, our approach outperforms existing methods on both image and text classification tasks and across different network architectures. Theoretically, we connect our approach to a bound on the test error for overparameterized linear models. Furthermore, we find that Projection Norm is the only approach that achieves non-trivial detection performance on adversarial examples. Our code is available at https://github.com/yaodongyu/ProjNorm.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
24 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Agreement-on-the-line: Predicting the Performance of Neural Networks under Distribution Shift cites WILDS: A Benchmark of in-the-Wild Distribution Shifts
- Characterizing Out-of-Distribution Error via Optimal Transport cites Agreement-on-the-line: Predicting the Performance of Neural Networks under Distribution Shift
- Characterizing Out-of-Distribution Error via Optimal Transport cites BREEDS: Benchmarks for Subpopulation Shift
- Characterizing Out-of-Distribution Error via Optimal Transport cites WILDS: A Benchmark of in-the-Wild Distribution Shifts
- GNNEvaluator: Evaluating GNN Performance On Unseen Graphs Without Labels cites On the Strong Correlation Between Model Invariance and Generalization
- Measuring Robustness to Natural Distribution Shifts in Image Classification cites The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalization
- On the Strong Correlation Between Model Invariance and Generalization cites Agreement-on-the-line: Predicting the Performance of Neural Networks under Distribution Shift
- On the Strong Correlation Between Model Invariance and Generalization cites The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalization
- On the Strong Correlation Between Model Invariance and Generalization cites Measuring Robustness to Natural Distribution Shifts in Image Classification
- On the Strong Correlation Between Model Invariance and Generalization cites WILDS: A Benchmark of in-the-Wild Distribution Shifts
- BREEDS: Benchmarks for Subpopulation Shift cites Measuring Robustness to Natural Distribution Shifts in Image Classification
- Chasing Fairness Under Distribution Shift: A Model Weight Perturbation Approach cites The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalization
- Chasing Fairness Under Distribution Shift: A Model Weight Perturbation Approach cites Measuring Robustness to Natural Distribution Shifts in Image Classification
- WILDS: A Benchmark of in-the-Wild Distribution Shifts cites The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalization
- WILDS: A Benchmark of in-the-Wild Distribution Shifts cites Measuring Robustness to Natural Distribution Shifts in Image Classification
- WILDS: A Benchmark of in-the-Wild Distribution Shifts cites BREEDS: Benchmarks for Subpopulation Shift
- WILDS: A Benchmark of in-the-Wild Distribution Shifts cites Test-Time Training with Self-Supervision for Generalization under Distribution Shifts
Cited by top-tier papers24
- Agreement-on-the-line: Predicting the Performance of Neural Networks under Distribution ShiftChristina Baek, Yiding Jiang, Aditi Raghunathan, J. Zico KolterNeurIPS 2022 · 120 citations
- GNNEvaluator: Evaluating GNN Performance On Unseen Graphs Without LabelsXin Zheng, Miao Zhang, Chunyang Chen, Soheila Molaei et al.NeurIPS 2023 · 30 citations
- On the Strong Correlation Between Model Invariance and GeneralizationWeijian Deng, Stephen Gould, Liang ZhengNeurIPS 2022 · 28 citations
- Characterizing Out-of-Distribution Error via Optimal TransportYuzhe Lu, Yilong Qin, Runtian Zhai, Andrew Shen et al.NeurIPS 2023 · 22 citations
- Chasing Fairness Under Distribution Shift: A Model Weight Perturbation ApproachZhimeng Stephen Jiang, Xiaotian Han, Hongye Jin, Guanchu Wang et al.NeurIPS 2023 · 22 citations
Builds on16
- The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution GeneralizationDan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath et al.ICCV 2021 · 2,294 citations
- WILDS: A Benchmark of in-the-Wild Distribution ShiftsPang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie et al.ICML 2021 · 1,773 citations
- Test-Time Training with Self-Supervision for Generalization under Distribution ShiftsYu Sun, Xiaolong Wang, Zhuang Liu, John Miller et al.ICML 2020 · 1,220 citations
- Measuring Robustness to Natural Distribution Shifts in Image ClassificationRohan Taori, Achal Dave, Vaishaal Shankar, Nicholas Carlini et al.NeurIPS 2020 · 731 citations
- BREEDS: Benchmarks for Subpopulation ShiftShibani Santurkar, Dimitris Tsipras, Aleksander MadryICLR 2021 · 193 citations
Related papers
- Pseudo Outlier Exposure for Out-of-Distribution Detection using Pretrained TransformersJaeyoung Kim, Kyuheon Jung, Dongbin Na, Sion Jang et al.ACL Findings 2023 · 6 citations
- Non-parametric Outlier SynthesisLeitian Tao, Xuefeng Du, Jerry Zhu, Yixuan LiICLR 2023 · 6 citations
- GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of GradientsSima Behpour, Thang Long Doan, Xin Li, Wenbin He et al.NeurIPS 2023 · 34 citations
- Block Selection Method for Using Feature Norm in Out-of-Distribution DetectionYeonguk Yu, Sungho Shin, Seongju Lee, Changhyun Jun et al.CVPR 2023
- Is Fine-tuning Needed? Pre-trained Language Models Are Near Perfect for Out-of-Domain DetectionRheeya Uppaal, Junjie Hu, Yixuan LiACL 2023 · 9 citations
