Papers › Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Control

Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Control

3 Oct 2021arXiv:2110.01052archive 2025-07-28

Anastasios N. Angelopoulos, Stephen Bates, Emmanuel J. Candès, Michael I. Jordan, Lihua Lei

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2110.01052")

Code

Syntology Ran 6 of 22 code samples harvested from 1 repository linked to this paper; 16 have no recorded run. Of those that ran: 3 ran · honoured contract; 3 ran · violated contract.

By repository: official repository: 22 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

aangelopoulos/ltt officialmentioned in papermentioned on GitHubpytorchMIT report
kclip/r_autoeval_plus mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 6 ran; 3 honoured the contract we drafted; 16 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
3ran · violated contract
16unverified

Licence: 0 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from aangelopoulos/ltt. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

expand_grid aangelopoulos/ltt/core/uniform_concentration.py official repository ran · honoured contract fingerprinted MIT (permissive) · 8b8d750f24ed95e2 · report
h1 aangelopoulos/ltt/core/bounds.py official repository ran · violated contract fingerprinted MIT (permissive) · 86294eacaecc7ea5 · report
h2 aangelopoulos/ltt/core/bounds.py official repository ran · violated contract fingerprinted MIT (permissive) · cbecdda63cea8201 · report
hoeffding_plus aangelopoulos/ltt/core/bounds.py official repository ran · honoured contract MIT (permissive) · 47b7bbfae0285051 · report
safe_min aangelopoulos/ltt/core/uniform_concentration.py official repository ran · violated contract fingerprinted MIT (permissive) · 8f4174eb8bea74e1 · report
sort_sum aangelopoulos/ltt/experiments/imagenet/utils.py official repository ran · honoured contract fingerprinted MIT (permissive) · ce9cdd0a73c5e072 · report
cacheable aangelopoulos/ltt/core/uniform_concentration.py official repository unverified MIT (permissive) · 4011969a3bfc90e8 · report
cacheable aangelopoulos/ltt/core/utils.py official repository unverified MIT (permissive) · 0587a692aa8a759d · report
eval_detector aangelopoulos/ltt/experiments/detection/loss_table.py official repository unverified MIT (permissive) · da5d46b4724c02dd · report
eval_image aangelopoulos/ltt/experiments/detection/loss_table.py official repository unverified MIT (permissive) · 9a6b6722d0017533 · report
formatFloat aangelopoulos/ltt/experiments/imagenet/table.py official repository unverified MIT (permissive) · 7ee13d7a01cb35a2 · report
get_images aangelopoulos/ltt/experiments/imagenet/grid_fig.py official repository unverified MIT (permissive) · 91a92d35cc14ae7d · report
get_lambdas_vs_pfdps_frac_predict aangelopoulos/ltt/experiments/imagenet/lambda_vs_pfdr.py official repository unverified MIT (permissive) · 6804c5f0e3efce41 · report
get_nus_rs_n aangelopoulos/ltt/core/pfdr.py official repository unverified MIT (permissive) · 77bf34d6bcd8a4dd · report
pfdr_loss_table aangelopoulos/ltt/core/pfdr.py official repository unverified MIT (permissive) · 71af0e9d6912d492 · report
platt_logits aangelopoulos/ltt/experiments/imagenet/grid_fig.py official repository unverified MIT (permissive) · c23944476f3cabe3 · report
quantile aangelopoulos/ltt/experiments/imagenet/table.py official repository unverified MIT (permissive) · 3f8f32096b61daee · report
risk_size aangelopoulos/ltt/experiments/imagenet/utils.py official repository unverified MIT (permissive) · dbcdd2b46781b966 · report
romano_wolf aangelopoulos/ltt/core/concentration.py official repository unverified MIT (permissive) · 6fc5e8b6054560fc · report
romano_wolf_CLT aangelopoulos/ltt/core/concentration.py official repository unverified MIT (permissive) · 394b954980f78fc7 · report
trial_precomputed aangelopoulos/ltt/experiments/imagenet/pfdr_histogram.py official repository unverified MIT (permissive) · 4d529ca40b514587 · report
validate aangelopoulos/ltt/experiments/imagenet/utils.py official repository unverified MIT (permissive) · bc281c57b11f153e · report

Tasks

BIG-bench Machine LearningInstance SegmentationMUlTI-LABEL-ClASSIFICATIONMulti-Label ClassificationOutlier DetectionSemantic Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections