Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Control
Anastasios N. Angelopoulos, Stephen Bates, Emmanuel J. Candès, Michael I. Jordan, Lihua Lei
TL;DR
The paper introduces Learn then Test (LTT), a distribution-free framework that post-processes pretrained predictors to deliver finite-sample guarantees on predictive risk via calibration data. It reframes risk control as a multiple-hypothesis-testing problem and uses p-values and FWER-controlling procedures to select lambda thresholds that achieve user-specified error rates without refitting models. The approach covers diverse tasks, including FDR control for multi-label classification, selective classification and regression, OOD-detection with prediction sets, and rigorous instance-segmentation guarantees, showcasing practical calibration methods and code. The results demonstrate that non-monotone, complex risks can be tamed with rigorous, hypothesis-testing-based calibration, enabling safer deployment of modern neural systems across vision and medical domains.
Abstract
We introduce a framework for calibrating machine learning models so that their predictions satisfy explicit, finite-sample statistical guarantees. Our calibration algorithms work with any underlying model and (unknown) data-generating distribution and do not require model refitting. The framework addresses, among other examples, false discovery rate control in multi-label classification, intersection-over-union control in instance segmentation, and the simultaneous control of the type-1 error of outlier detection and confidence set coverage in classification or regression. Our main insight is to reframe the risk-control problem as multiple hypothesis testing, enabling techniques and mathematical arguments different from those in the previous literature. We use the framework to provide new calibration methods for several core machine learning tasks, with detailed worked examples in computer vision and tabular medical data.
