Skip to main content
QUICK REVIEW

[Paper Review] Agreement-on-the-Line: Predicting the Performance of Neural Networks under Distribution Shift

Christina Baek, Yiding Jiang|arXiv (Cornell University)|Jun 27, 2022
Adversarial Robustness in Machine LearningComputer Science10 citations
TL;DR

This paper introduces 'agreement-on-the-line,' a phenomenon where the out-of-distribution (OOD) agreement between pairs of neural network classifiers strongly correlates with their in-distribution (ID) agreement, mirroring the known 'accuracy-on-the-line' correlation. The authors propose ALine-D, a method that uses unlabeled OOD data to estimate OOD accuracy by leveraging this agreement correlation, achieving state-of-the-art performance even without labeled OOD data.

ABSTRACT

Recently, Miller et al. showed that a model's in-distribution (ID) accuracy has a strong linear correlation with its out-of-distribution (OOD) accuracy on several OOD benchmarks -- a phenomenon they dubbed ''accuracy-on-the-line''. While a useful tool for model selection (i.e., the model most likely to perform the best OOD is the one with highest ID accuracy), this fact does not help estimate the actual OOD performance of models without access to a labeled OOD validation set. In this paper, we show a similar but surprising phenomenon also holds for the agreement between pairs of neural network classifiers: whenever accuracy-on-the-line holds, we observe that the OOD agreement between the predictions of any two pairs of neural networks (with potentially different architectures) also observes a strong linear correlation with their ID agreement. Furthermore, we observe that the slope and bias of OOD vs ID agreement closely matches that of OOD vs ID accuracy. This phenomenon, which we call agreement-on-the-line, has important practical applications: without any labeled data, we can predict the OOD accuracy of classifiers}, since OOD agreement can be estimated with just unlabeled data. Our prediction algorithm outperforms previous methods both in shifts where agreement-on-the-line holds and, surprisingly, when accuracy is not on the line. This phenomenon also provides new insights into deep neural networks: unlike accuracy-on-the-line, agreement-on-the-line appears to only hold for neural network classifiers.

Motivation & Objective

  • To address the challenge of estimating out-of-distribution (OOD) performance of neural networks when labeled OOD data is unavailable.
  • To investigate whether a correlation exists between in-distribution (ID) and out-of-distribution (OOD) agreement among neural network classifier pairs.
  • To develop a practical method for predicting OOD accuracy without labeled OOD data, using only unlabeled OOD data and model ensembles.
  • To determine whether the agreement correlation is a general phenomenon or specific to neural networks.
  • To provide a reliable, data-efficient proxy for model selection under distribution shift.

Proposed method

  • Propose 'agreement-on-the-line' as a new phenomenon: strong linear correlation between ID and OOD agreement of neural network classifier pairs.
  • Use unlabeled OOD data to compute pairwise prediction agreement across models, avoiding reliance on labeled OOD data.
  • Estimate the slope and intercept of the OOD vs. ID agreement linear fit using only unlabeled OOD data and model predictions.
  • Apply a linear adjustment (Equation 6) to align OOD agreement with OOD accuracy, enabling accurate OOD performance prediction.
  • Develop ALine-D, an algorithm that uses at least three models to solve a system of linear equations and predict OOD accuracy from ID agreement and unlabeled OOD data.
  • Validate the method across multiple benchmarks including CIFAR-10.1, CIFAR-10C, ImageNetV2, and fMoW, using diverse model architectures.

Experimental results

Research questions

  • RQ1Does a linear correlation exist between in-distribution and out-of-distribution agreement of neural network classifier pairs, analogous to the known accuracy-on-the-line phenomenon?
  • RQ2Can the slope and intercept of the OOD vs. ID agreement correlation be reliably estimated without labeled OOD data?
  • RQ3Does the agreement-on-the-line phenomenon hold only for neural networks, and not for other model types?
  • RQ4Can the agreement correlation be used to predict OOD accuracy with high accuracy when no labeled OOD data is available?
  • RQ5How does model diversity (in architecture) affect the performance of the proposed prediction method?

Key findings

  • The agreement-on-the-line phenomenon holds strongly across multiple datasets and diverse neural network architectures, with OOD agreement linearly correlated to ID agreement.
  • The slope and bias of the OOD vs. ID agreement correlation closely match those of the OOD vs. ID accuracy correlation, enabling accurate prediction.
  • ALine-D achieves state-of-the-art OOD accuracy prediction performance, with mean absolute error (MAE) below 1.8% on CIFAR-10C Fog and 2.5% on ImageNetV2, even with small model sets.
  • The method performs well with as few as 3–15 models, and estimation error does not always decrease with more models, indicating robustness to model set size.
  • Model set diversity improves ALine-D performance on CIFAR-10.1 and CIFAR-10C Fog, but not on fMoW, where uniform architectures perform better.
  • The agreement-on-the-line phenomenon is specific to neural networks and does not generalize to other model types, suggesting unique inductive biases in deep learning.

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.