{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/conformal-prediction-for-deep-classifier-via","title":"Conformal Prediction for Deep Classifier via Label Ranking","arxiv_id":"2310.06430","date":"2023-10-10","proceeding":null,"authors":["Jianguo Huang","Huajun Xi","Linjun Zhang","Huaxiu Yao","Yue Qiu","Hongxin Wei"],"abstract":"Conformal prediction is a statistical framework that generates prediction sets containing ground-truth labels with a desired coverage guarantee. The predicted probabilities produced by machine learning models are generally miscalibrated, leading to large prediction sets in conformal prediction. To address this issue, we propose a novel algorithm named $\\textit{Sorted Adaptive Prediction Sets}$ (SAPS), which discards all the probability values except for the maximum softmax probability. The key idea behind SAPS is to minimize the dependence of the non-conformity score on the probability values while retaining the uncertainty information. In this manner, SAPS can produce compact prediction sets and communicate instance-wise uncertainty. Extensive experiments validate that SAPS not only lessens the prediction sets but also broadly enhances the conditional coverage rate of prediction sets.","url_abs":"https://arxiv.org/abs/2310.06430v2","url_pdf":"https://arxiv.org/pdf/2310.06430v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"conformal-prediction-for-deep-classifier-via","repo_url":"https://github.com/ml-stat-Sustech/conformal_prediction_via_label_ranking","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"conformal-prediction-for-deep-classifier-via","repo_url":"https://github.com/luo-lorry/cti","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"conformal-prediction-for-deep-classifier-via","repo_url":"https://github.com/ml-stat-sustech/torchcp","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"conformal-prediction","task_name":"Conformal Prediction"},{"task_slug":"prediction","task_name":"Prediction"}],"methods":[{"method_slug":"softmax","method_name":"Softmax"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.06430","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.06430"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/ml-stat-Sustech/conformal","reach":{"status":"gone","observed_at":"2026-09-17","how":"tree_404+repo_404"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/luo-lorry/cti","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ml-stat-Sustech/conformal_prediction_via_label_ranking","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ml-stat-sustech/torchcp","reach":null}],"summary":{"ran":7,"ran_draft_wrong":1,"ran_honours":1,"unverified":6},"by_repo_kind":{"official":{"samples":8,"ran":4,"repositories":1},"listed":{"samples":7,"ran":5,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":15,"samples":[{"code_sha256_prefix":"f42e5d0a53abe20f","entry":"APS","repo":"luo-lorry/cti","repo_kind":"listed","path":"torchcp/classification/scores/saps.py","file_url":"https://github.com/luo-lorry/cti/blob/HEAD/torchcp/classification/scores/saps.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"LGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"f42e5d0a53abe20f"}},{"code_sha256_prefix":"f4d75d4bdd03c16d","entry":"APS","repo":"ml-stat-sustech/torchcp","repo_kind":"listed","path":"torchcp/classification/score/saps.py","file_url":"https://github.com/ml-stat-sustech/torchcp/blob/HEAD/torchcp/classification/score/saps.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"LGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"f4d75d4bdd03c16d"}},{"code_sha256_prefix":"c2fb7a4465c3f1f4","entry":"LAC","repo":"ml-stat-sustech/torchcp","repo_kind":"listed","path":"torchcp/classification/score/saps.py","file_url":"https://github.com/ml-stat-sustech/torchcp/blob/HEAD/torchcp/classification/score/saps.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"LGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"c2fb7a4465c3f1f4"}},{"code_sha256_prefix":"fa4b581704335073","entry":"SAPS","repo":"luo-lorry/cti","repo_kind":"listed","path":"torchcp/classification/scores/saps.py","file_url":"https://github.com/luo-lorry/cti/blob/HEAD/torchcp/classification/scores/saps.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"LGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"fa4b581704335073"}},{"code_sha256_prefix":"1c479470d93aa106","entry":"SAPS","repo":"ml-stat-sustech/torchcp","repo_kind":"listed","path":"torchcp/classification/score/saps.py","file_url":"https://github.com/ml-stat-sustech/torchcp/blob/HEAD/torchcp/classification/score/saps.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"LGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"1c479470d93aa106"}},{"code_sha256_prefix":"ffb029c3ba50dd29","entry":"build_dataset","repo":"ml-stat-Sustech/conformal_prediction_via_label_ranking","repo_kind":"official","path":"datasets/utils.py","file_url":"https://github.com/ml-stat-Sustech/conformal_prediction_via_label_ranking/blob/HEAD/datasets/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ffb029c3ba50dd29"}},{"code_sha256_prefix":"538bb4e4f6fc5271","entry":"postHocLogits","repo":"ml-stat-sustech/conformal_prediction_via_label_ranking","repo_kind":"official","path":"lib/post_process.py","file_url":"https://github.com/ml-stat-sustech/conformal_prediction_via_label_ranking/blob/HEAD/lib/post_process.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"538bb4e4f6fc5271"}},{"code_sha256_prefix":"3d33d4f949194b95","entry":"postHocLogits","repo":"ml-stat-Sustech/conformal_prediction_via_label_ranking","repo_kind":"official","path":"lib/post_process.py","file_url":"https://github.com/ml-stat-Sustech/conformal_prediction_via_label_ranking/blob/HEAD/lib/post_process.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3d33d4f949194b95"}},{"code_sha256_prefix":"ce9cdd0a73c5e072","entry":"sort_sum","repo":"ml-stat-Sustech/conformal_prediction_via_label_ranking","repo_kind":"official","path":"lib/utils.py","file_url":"https://github.com/ml-stat-Sustech/conformal_prediction_via_label_ranking/blob/HEAD/lib/utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ce9cdd0a73c5e072"}},{"code_sha256_prefix":"76a9643ff080bf39","entry":"BaseScore","repo":"luo-lorry/cti","repo_kind":"listed","path":"torchcp/classification/scores/saps.py","file_url":"https://github.com/luo-lorry/cti/blob/HEAD/torchcp/classification/scores/saps.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"LGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"76a9643ff080bf39"}},{"code_sha256_prefix":"61ae6fb7385cb603","entry":"BaseScore","repo":"ml-stat-sustech/torchcp","repo_kind":"listed","path":"torchcp/classification/score/saps.py","file_url":"https://github.com/ml-stat-sustech/torchcp/blob/HEAD/torchcp/classification/score/saps.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"LGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"61ae6fb7385cb603"}},{"code_sha256_prefix":"9d47f7c23863debb","entry":"build_common_model","repo":"ml-stat-Sustech/conformal_prediction_via_label_ranking","repo_kind":"official","path":"models/utils.py","file_url":"https://github.com/ml-stat-Sustech/conformal_prediction_via_label_ranking/blob/HEAD/models/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9d47f7c23863debb"}},{"code_sha256_prefix":"77afc167e19107b5","entry":"build_common_model_imagnet","repo":"ml-stat-Sustech/conformal_prediction_via_label_ranking","repo_kind":"official","path":"models/utils.py","file_url":"https://github.com/ml-stat-Sustech/conformal_prediction_via_label_ranking/blob/HEAD/models/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"77afc167e19107b5"}},{"code_sha256_prefix":"f246b8eb9dcd2a55","entry":"coverage_size","repo":"ml-stat-Sustech/conformal_prediction_via_label_ranking","repo_kind":"official","path":"lib/utils.py","file_url":"https://github.com/ml-stat-Sustech/conformal_prediction_via_label_ranking/blob/HEAD/lib/utils.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f246b8eb9dcd2a55"}},{"code_sha256_prefix":"23e8cd83d6976158","entry":"validate","repo":"ml-stat-Sustech/conformal_prediction_via_label_ranking","repo_kind":"official","path":"lib/utils.py","file_url":"https://github.com/ml-stat-Sustech/conformal_prediction_via_label_ranking/blob/HEAD/lib/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"23e8cd83d6976158"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}