Papers › Conformal Prediction for Class-wise Coverage via Augmented Label Rank Calibration

Conformal Prediction for Class-wise Coverage via Augmented Label Rank Calibration

10 Jun 2024arXiv:2406.06818archive 2025-07-28

Yuanjie Shi, Subhankar Ghosh, Taha Belkhouja, Janardhan Rao Doppa, Yan Yan

Conformal prediction (CP) is an emerging uncertainty quantification framework that allows us to construct a prediction set to cover the true label with a pre-specified marginal or conditional probability. Although the valid coverage guarantee has been extensively studied for classification problems, CP often produces large prediction sets which may not be practically useful. This issue is exacerbated for the setting of class-conditional coverage on imbalanced classification tasks with many and/or imbalanced classes. This paper proposes the Rank Calibrated Class-conditional CP (RC3P) algorithm to reduce the prediction set sizes to achieve class-conditional coverage, where the valid coverage holds for each class. In contrast to the standard class-conditional CP (CCP) method that uniformly thresholds the class-wise conformity score for each class, the augmented label rank calibration step allows RC3P to selectively iterate this class-wise thresholding subroutine only for a subset of classes whose class-wise top-k error is small. We prove that agnostic to the classifier and data distribution, RC3P achieves class-wise coverage. We also show that RC3P reduces the size of prediction sets compared to the CCP method. Comprehensive experiments on multiple real-world datasets demonstrate that RC3P achieves class-wise coverage and 26.25% reduction in prediction set sizes on average.

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="2406.06818")

Code

Syntology Ran 11 of 24 code samples harvested from 1 repository linked to this paper; 13 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 10 ran with no contract checked.

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

yuanjiesh/rc3p officialmentioned in paperpytorchMIT 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; 11 ran; 0 honoured the contract we drafted; 13 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 · our draft was wrong
10ran
13unverified

Licence: 0 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 yuanjiesh/rc3p. “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.

Extract yuanjiesh/rc3p/ICP/utils_others.py official repository ran MIT (permissive) · a13fb468b655e0b0 · report
average_results_across_seeds yuanjiesh/rc3p/ICP/main_aps.py official repository ran MIT (permissive) · bf0624cf01d64c5b · report
embed_all_classes yuanjiesh/rc3p/ICP/clustering_utils.py official repository ran MIT (permissive) · 8de2541ba434c627 · report
focal_loss yuanjiesh/rc3p/train/losses.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 4dcf06ba28983266 · report
generate_synthetic_clustered_data yuanjiesh/rc3p/ICP/clustering_utils.py official repository ran MIT (permissive) · ec757d7558e850db · report
get_quantile_threshold yuanjiesh/rc3p/ICP/conformal_utils2.py official repository ran fingerprinted MIT (permissive) · 684de5d3a8583399 · report
initialize_dict yuanjiesh/rc3p/ICP/main_aps.py official repository ran MIT (permissive) · 652a22184abebb5b · report
initialize_metrics_dict yuanjiesh/rc3p/ICP/main_aps.py official repository ran fingerprinted MIT (permissive) · 0d90c4b9c588c0bd · report
quantile_embedding yuanjiesh/rc3p/ICP/clustering_utils.py official repository ran MIT (permissive) · 0d4621927b1a4c0f · report
random_split yuanjiesh/rc3p/ICP/conformal_utils2.py official repository ran MIT (permissive) · d3fbca0bd0a89dc5 · report
split_X_and_y_Orin yuanjiesh/rc3p/ICP/conformal_utils2.py official repository ran MIT (permissive) · 3293a3745a74653c · report
FormData yuanjiesh/rc3p/ICP/utils_others.py official repository unverified MIT (permissive) · df0fd09f60a64497 · report
accuracy_matrix yuanjiesh/rc3p/ICP/generate_score.py official repository unverified MIT (permissive) · 165c9590c92e284d · report
calc_top_k_accuracy_per_class yuanjiesh/rc3p/ICP/generate_score.py official repository unverified MIT (permissive) · 5e94402af51c3024 · report
get_logits_targets yuanjiesh/rc3p/ICP/utils_others.py official repository unverified MIT (permissive) · d20cc174be4ee128 · report
get_softmax_and_ranks yuanjiesh/rc3p/ICP/generate_score.py official repository unverified MIT (permissive) · e156cd71262c686a · report
load_Emnist yuanjiesh/rc3p/dataset/EMNIST.py official repository unverified MIT (permissive) · e6aa9494b00ba140 · report
resnet18 yuanjiesh/rc3p/models/resnet_eurosat.py official repository unverified MIT (permissive) · f2b5240bcfd4cf3a · report
resnet18 yuanjiesh/rc3p/models/resnet_tiny.py official repository unverified MIT (permissive) · 607bb2c5904df9e5 · report
resnet20 yuanjiesh/rc3p/models/resnet_cifar.py official repository unverified MIT (permissive) · 682ea0b23a9b9564 · report
resnet20 yuanjiesh/rc3p/models/resnet_eurosat.py official repository unverified MIT (permissive) · f332591908476ccc · report
resnet32 yuanjiesh/rc3p/models/resnet_cifar.py official repository unverified MIT (permissive) · c855e300f1337b9f · report
resnet32 yuanjiesh/rc3p/models/resnet_eurosat.py official repository unverified MIT (permissive) · 11d038f53d77a8d2 · report
resnet44 yuanjiesh/rc3p/models/resnet_cifar.py official repository unverified MIT (permissive) · 06958241b55ab4aa · report

Tasks

Conformal PredictionPredictionUncertainty Quantificationimbalanced classification

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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