Skip to main content
QUICK REVIEW

[Paper Review] Leveraging Unlabeled Data to Predict Out-of-Distribution Performance

Saurabh Garg, Sivaraman Balakrishnan|arXiv (Cornell University)|Jan 11, 2022
Domain Adaptation and Few-Shot LearningComputer Science19 citations
TL;DR

This paper proposes Average Thresholded Confidence (ATC), a method that predicts out-of-distribution (OOD) performance using only labeled source data and unlabeled target data. ATC sets a confidence threshold on source validation data and estimates target accuracy as the fraction of unlabeled target examples exceeding this threshold, achieving 2–4× lower estimation error than prior methods across diverse datasets and shift types.

ABSTRACT

Real-world machine learning deployments are characterized by mismatches between the source (training) and target (test) distributions that may cause performance drops. In this work, we investigate methods for predicting the target domain accuracy using only labeled source data and unlabeled target data. We propose Average Thresholded Confidence (ATC), a practical method that learns a threshold on the model's confidence, predicting accuracy as the fraction of unlabeled examples for which model confidence exceeds that threshold. ATC outperforms previous methods across several model architectures, types of distribution shifts (e.g., due to synthetic corruptions, dataset reproduction, or novel subpopulations), and datasets (Wilds, ImageNet, Breeds, CIFAR, and MNIST). In our experiments, ATC estimates target performance $2$-$4 imes$ more accurately than prior methods. We also explore the theoretical foundations of the problem, proving that, in general, identifying the accuracy is just as hard as identifying the optimal predictor and thus, the efficacy of any method rests upon (perhaps unstated) assumptions on the nature of the shift. Finally, analyzing our method on some toy distributions, we provide insights concerning when it works. Code is available at https://github.com/saurabhgarg1996/ATC_code/.

Motivation & Objective

  • To estimate model accuracy on out-of-distribution (OOD) test data when only labeled source and unlabeled target data are available.
  • To develop a practical method that avoids calibration or labeled data from multiple target domains, which are often unavailable in real-world deployments.
  • To identify the conditions under which accurate OOD performance estimation is theoretically possible, despite inherent distribution shift.
  • To empirically evaluate ATC across diverse model architectures, datasets (e.g., ImageNet, Wilds, CIFAR), and shift types (synthetic, subpopulation, natural).
  • To provide theoretical insight into the hardness of OOD accuracy estimation, showing it is as hard as identifying the optimal predictor without assumptions.

Proposed method

  • ATC learns a threshold on model confidence (e.g., maximum softmax probability or negative entropy) using labeled source validation data.
  • The threshold is selected such that the fraction of source validation examples with confidence above the threshold matches the model’s source accuracy.
  • Target domain accuracy is estimated as the fraction of unlabeled target examples whose confidence exceeds this learned threshold.
  • The method uses no additional calibration or regression on target data, relying only on confidence scores from a pre-trained model.
  • ATC is evaluated with and without post-hoc temperature scaling (TS) calibration on source data to assess robustness.
  • The approach is applied across vision and language models, including ResNet, DenseNet, and DistilBERT, on datasets like ImageNet, Wilds, BREEDS, CIFAR, and MNIST.

Experimental results

Research questions

  • RQ1Under what conditions can OOD performance be accurately predicted using only labeled source and unlabeled target data?
  • RQ2How does ATC compare to existing methods that require calibration or labeled data from multiple target domains?
  • RQ3Can a simple confidence thresholding method outperform more complex regression-based or calibration-based approaches?
  • RQ4What is the theoretical limit of OOD accuracy estimation, and how do assumptions on shift type affect this?
  • RQ5Does ATC generalize across diverse shift types, including synthetic corruptions, novel subpopulations, and natural distribution shifts?

Key findings

  • ATC reduces mean absolute estimation error by 2–4× compared to prior methods across all evaluated datasets and shift types.
  • On the ImageNet natural shift, ATC achieves a mean absolute error (MAE) of 0.73, outperforming the next best method (DOC) at 2.22.
  • On the FMoW-Wilds dataset with novel subpopulations, ATC achieves an MAE of 9.94, significantly lower than DOC (13.24) and other baselines.
  • ATC maintains strong performance even without target domain calibration, unlike methods requiring calibration that often fail on unseen distributions.
  • In ablation studies, ATC outperforms regression-based methods like DOC even after fitting a robust linear model to improve DOC’s performance.
  • The method generalizes across model architectures (ResNet, DenseNet, FCN, DistilBERT) and datasets (vision and language), demonstrating broad practical utility.

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.