Skip to main content
QUICK REVIEW

[Paper Review] Predicting Out-of-Distribution Error with the Projection Norm

Yaodong Yu, Zitong Yang|arXiv (Cornell University)|Feb 11, 2022
Adversarial Robustness in Machine LearningComputer Science4 citations
TL;DR

This paper introduces Projection Norm, a novel metric that predicts out-of-distribution (OOD) test error without ground-truth labels by training a model on pseudo-labeled OOD data and measuring the L2 distance between this model and a reference in-distribution model. It outperforms existing methods on vision and language benchmarks, achieves non-trivial performance on adversarial examples, and is theoretically grounded in overparameterized linear models.

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.

Motivation & Objective

  • To develop a method for predicting out-of-distribution (OOD) test error without access to ground-truth labels, which is critical for real-world deployment of machine learning models.
  • To address the challenge of distribution shift in deep learning, where standard validation sets fail to capture performance drops on OOD data.
  • To provide a metric that is both empirically accurate and theoretically interpretable, especially in high-dimensional and complex distribution shifts.
  • To evaluate the method’s robustness on extreme distribution shifts, such as adversarial examples, where existing methods fail.
  • To offer a general-purpose tool for measuring distributional differences that can inform active learning, reinforcement learning, and model monitoring.

Proposed method

  • Projection Norm computes the L2 distance between a model trained on pseudo-labeled OOD data and a reference model trained on in-distribution data, both initialized from the same random seed.
  • It first uses a pre-trained model to assign pseudo-labels to unlabeled OOD test samples based on its predictions.
  • A new model is then fine-tuned on these pseudo-labeled OOD samples using the same initialization as the reference model.
  • The distance between the fine-tuned OOD model and the reference in-distribution model is used as the Projection Norm score.
  • The method is designed to capture distributional differences orthogonal to the training data manifold, unlike methods relying only on logits.
  • Theoretical analysis connects Projection Norm to a generalization bound in overparameterized linear models, showing it measures the projection of the true model onto the overlap of training and test data.

Experimental results

Research questions

  • RQ1Can a metric predict OOD test error without access to ground-truth labels, using only the model’s predictions on OOD data?
  • RQ2How does Projection Norm compare to existing OOD error prediction methods in terms of accuracy and correlation with actual error?
  • RQ3Does Projection Norm remain effective under extreme distribution shifts, such as adversarial examples?
  • RQ4What is the theoretical basis for Projection Norm’s performance, particularly in high-dimensional linear models?
  • RQ5Can Projection Norm provide complementary information to existing methods, enabling improved ensemble prediction performance?

Key findings

  • Projection Norm outperforms existing methods in predicting OOD error across multiple vision and language benchmarks, including ImageNet, CIFAR-10, and GLUE.
  • It achieves non-trivial detection performance on adversarial examples—the only method among those evaluated to do so, highlighting its robustness to extreme distribution shifts.
  • Empirically, Projection Norm’s error predictions are nearly uncorrelated with those of existing methods, enabling significant performance gains when combined in ensembles.
  • Theoretical analysis shows that Projection Norm measures the projection of a ground-truth model onto the intersection of training and test data manifolds in overparameterized linear models.
  • In the linear setting, Projection Norm captures information orthogonal to the training data manifold, which explains its complementary signal compared to logit-based methods.
  • The method is robust to model architecture and dataset shifts, demonstrating consistent performance across diverse settings including label shifts and domain shifts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.