Papers › Learning Optimal Conformal Classifiers

Learning Optimal Conformal Classifiers

18 Oct 2021ICLR 2022 4arXiv:2110.09192archive 2025-07-28

David Stutz, Krishnamurthy, Dvijotham, Ali Taylan Cemgil, Arnaud Doucet

Modern deep learning based classifiers show very high accuracy on test data but this does not provide sufficient guarantees for safe deployment, especially in high-stake AI applications such as medical diagnosis. Usually, predictions are obtained without a reliable uncertainty estimate or a formal guarantee. Conformal prediction (CP) addresses these issues by using the classifier's predictions, e.g., its probability estimates, to predict confidence sets containing the true class with a user-specified probability. However, using CP as a separate processing step after training prevents the underlying model from adapting to the prediction of confidence sets. Thus, this paper explores strategies to differentiate through CP during training with the goal of training model with the conformal wrapper end-to-end. In our approach, conformal training (ConfTr), we specifically "simulate" conformalization on mini-batches during training. Compared to standard training, ConfTr reduces the average confidence set size (inefficiency) of state-of-the-art CP methods applied after training. Moreover, it allows to "shape" the confidence sets predicted at test time, which is difficult for standard CP. On experiments with several datasets, we show ConfTr can influence how inefficiency is distributed across classes, or guide the composition of confidence sets in terms of the included classes, while retaining the guarantees offered by CP.

PaperPDFConference PDFCodeCode 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.09192")

Code

Syntology Ran 1 of 24 code samples harvested from 2 repositories linked to this paper; 23 have no recorded run. Of those that ran: 1 ran · honoured contract.

By repository: official repository: 21 samples from 1 repository, 0 ran; community (archive-listed): 3 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

deepmind/conformal_training officialjaxApache-2.0 report
nvlabs/pac-bayes-conformal-prediction mentioned on GitHubpytorch 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

24 samples harvested; 1 ran; 1 honoured the contract we drafted; 23 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.

1ran · honoured contract
23unverified

Licence: 3 of the 24 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

augment_flip_crop deepmind/conformal_training/data.py official repository unverified Apache-2.0 (permissive) · 81003c641202bd0f · report
backward_step deepmind/conformal_training/variational_sorting_net.py official repository unverified Apache-2.0 (permissive) · 9cad00fe020fc4a7 · report
blend deepmind/conformal_training/auto_augment.py official repository unverified Apache-2.0 (permissive) · 985152c5e3f36838 · report
butterfly deepmind/conformal_training/variational_sorting_net.py official repository unverified Apache-2.0 (permissive) · 7f91d2d665604222 · report
calibrate_threshold deepmind/conformal_training/conformal_prediction.py official repository unverified Apache-2.0 (permissive) · e807c30774b5a051 · report
comm_pattern_bitonic deepmind/conformal_training/sorting_nets.py official repository unverified Apache-2.0 (permissive) · 0bc4c884c3aac9a3 · report
comm_pattern_from_list deepmind/conformal_training/sorting_nets.py official repository unverified Apache-2.0 (permissive) · 3ac1a2c338105bb8 · report
compute_accuracy deepmind/conformal_training/evaluation.py official repository unverified Apache-2.0 (permissive) · 2504d3a1635ed126 · report
compute_conditional_accuracy deepmind/conformal_training/evaluation.py official repository unverified Apache-2.0 (permissive) · 42ff9c6b22dfac9f · report
compute_conditional_accuracy_with_checks deepmind/conformal_training/evaluation.py official repository unverified Apache-2.0 (permissive) · dc44afe5b06af967 · report
conformal_quantile deepmind/conformal_training/conformal_prediction.py official repository unverified Apache-2.0 (permissive) · 644a7a98b9d52da2 · report
conformal_quantile_with_checks deepmind/conformal_training/conformal_prediction.py official repository unverified Apache-2.0 (permissive) · 3ce3ac6b8e6636f3 · report
create_cnn deepmind/conformal_training/models.py official repository unverified Apache-2.0 (permissive) · ef07ae80f9440fde · report
create_mlp deepmind/conformal_training/models.py official repository unverified Apache-2.0 (permissive) · 78e646ce84523a39 · report
create_resnet deepmind/conformal_training/models.py official repository unverified Apache-2.0 (permissive) · beb3dd8196db1da5 · report
cutout deepmind/conformal_training/auto_augment.py official repository unverified Apache-2.0 (permissive) · 4515269703640fc7 · report
forward_step deepmind/conformal_training/variational_sorting_net.py official repository unverified Apache-2.0 (permissive) · 66379d1592d6ff49 · report
get_groups deepmind/conformal_training/colab_utils.py official repository unverified Apache-2.0 (permissive) · 678c8c5bb71dae99 · report
prune deepmind/conformal_training/sorting_nets.py official repository unverified Apache-2.0 (permissive) · f0772d96f45ed98e · report
smooth_predict_threshold deepmind/conformal_training/smooth_conformal_prediction.py official repository unverified Apache-2.0 (permissive) · d0417a540db4e413 · report
solarize deepmind/conformal_training/auto_augment.py official repository unverified Apache-2.0 (permissive) · f483cc864d3d3300 · report
avg_loss_constraint nvlabs/pac-bayes-conformal-prediction/src/confpred/optim.py community (archive-listed) ran · honoured contract licence not identified · pointer only · 2dc41514d7c8bde7 · report
aug_lag_constrained_opt nvlabs/pac-bayes-conformal-prediction/src/confpred/optim.py community (archive-listed) unverified licence not identified · pointer only · feaee25fb32d4501 · report
unconstrained_opt nvlabs/pac-bayes-conformal-prediction/src/confpred/optim.py community (archive-listed) unverified licence not identified · pointer only · 287d6c7e0ca58d08 · report

Tasks

Conformal PredictionMedical Diagnosis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Test

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