Robust Validation: Confident Predictions Even When Distributions Shift
Maxime Cauchois, Suyash Gupta, Alnur Ali, John C. Duchi
TL;DR
This work tackles predictive validity under distribution shift by proposing conformal-inference-based prediction sets that remain valid when test distributions lie within an $f$-divergence neighborhood of the training distribution. It develops a theory linking worst-case coverage to $f$-divergence via the $g_{f,\rho}$ transform and provides practical plug-in estimators $\widehat{C}_{n,f,\rho}$ with finite-sample guarantees. The authors introduce procedures to estimate plausible shifts—including high-probability coverage over shift classes and worst-direction shift estimation—plus a debiased, cross-fit framework to quantify covariate-shift sensitivity using unlabeled data. Empirically, robust conformalization improves coverage on CIFAR-10, MNIST, ImageNet, and a COVID-19 forecasting task without substantial inflation of interval length, suggesting practical utility for uncertainty quantification under distributional change.
Abstract
While the traditional viewpoint in machine learning and statistics assumes training and testing samples come from the same population, practice belies this fiction. One strategy -- coming from robust statistics and optimization -- is thus to build a model robust to distributional perturbations. In this paper, we take a different approach to describe procedures for robust predictive inference, where a model provides uncertainty estimates on its predictions rather than point predictions. We present a method that produces prediction sets (almost exactly) giving the right coverage level for any test distribution in an $f$-divergence ball around the training population. The method, based on conformal inference, achieves (nearly) valid coverage in finite samples, under only the condition that the training data be exchangeable. An essential component of our methodology is to estimate the amount of expected future data shift and build robustness to it; we develop estimators and prove their consistency for protection and validity of uncertainty estimates under shifts. By experimenting on several large-scale benchmark datasets, including Recht et al.'s CIFAR-v4 and ImageNet-V2 datasets, we provide complementary empirical results that highlight the importance of robust predictive validity.
