{"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/adaptive-temperature-scaling-with-conformal","title":"Adaptive Temperature Scaling with Conformal Prediction","arxiv_id":"2505.15437","date":"2025-05-21","proceeding":null,"authors":["Nikita Kotelevskii","Mohsen Guizani","Eric Moulines","Maxim Panov"],"abstract":"Conformal prediction enables the construction of high-coverage prediction sets for any pre-trained model, guaranteeing that the true label lies within the set with a specified probability. However, these sets do not provide probability estimates for individual labels, limiting their practical use. In this paper, we propose, to the best of our knowledge, the first method for assigning calibrated probabilities to elements of a conformal prediction set. Our approach frames this as an adaptive calibration problem, selecting an input-specific temperature parameter to match the desired coverage level. Experiments on several challenging image classification datasets demonstrate that our method maintains coverage guarantees while significantly reducing expected calibration error.","url_abs":"https://arxiv.org/abs/2505.15437v1","url_pdf":"https://arxiv.org/pdf/2505.15437v1.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":[],"tasks":[{"task_slug":"conformal-prediction","task_name":"Conformal Prediction"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2505.15437","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2505.15437"}},"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/stat-ml/conformal_probability_calibration","reach":null}],"summary":{"ran":8,"ran_fixture":4,"ran_draft_wrong":2,"unverified":6},"by_repo_kind":{"found_in_text":{"samples":20,"ran":14,"repositories":1}},"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":20,"samples":[{"code_sha256_prefix":"7d908ed728a83894","entry":"ER","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"7d908ed728a83894"}},{"code_sha256_prefix":"2e8138052981cb86","entry":"IdentityTransform","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2e8138052981cb86"}},{"code_sha256_prefix":"a1cc1e2d47004983","entry":"ML","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"a1cc1e2d47004983"}},{"code_sha256_prefix":"c021ba57771e6f1b","entry":"ScoreTransformation","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"c021ba57771e6f1b"}},{"code_sha256_prefix":"c2792d4ac1ed4ab6","entry":"Uniform","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"c2792d4ac1ed4ab6"}},{"code_sha256_prefix":"3362e6642cc8ad10","entry":"aps_scores","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3362e6642cc8ad10"}},{"code_sha256_prefix":"621d77b42d5ee5ff","entry":"baseline","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"621d77b42d5ee5ff"}},{"code_sha256_prefix":"3da3a4004b9aa966","entry":"build_relu","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3da3a4004b9aa966"}},{"code_sha256_prefix":"0af7d576c6d5b778","entry":"get_cumulative_mass_scores","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0af7d576c6d5b778"}},{"code_sha256_prefix":"d2b24a216f25f25e","entry":"initialize","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d2b24a216f25f25e"}},{"code_sha256_prefix":"5f45befc71a6e8b5","entry":"localizer","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"5f45befc71a6e8b5"}},{"code_sha256_prefix":"39418dedf19cff95","entry":"msp_scores","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"39418dedf19cff95"}},{"code_sha256_prefix":"08bc835660d4723f","entry":"softmax","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"08bc835660d4723f"}},{"code_sha256_prefix":"e32b8d08accd4971","entry":"wrapper","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"e32b8d08accd4971"}},{"code_sha256_prefix":"e16f22a5f78af1f7","entry":"CalibratorBase","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"e16f22a5f78af1f7"}},{"code_sha256_prefix":"5e85d160bc408fab","entry":"ConformalMassThresholdCalibrator","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"5e85d160bc408fab"}},{"code_sha256_prefix":"78cc399856fe2f86","entry":"ConformalSetHelper","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"78cc399856fe2f86"}},{"code_sha256_prefix":"12bb29ea848118f6","entry":"NormalizingFlowTransform","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"12bb29ea848118f6"}},{"code_sha256_prefix":"46dd4d67dc6542ec","entry":"ScoreTypes","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"46dd4d67dc6542ec"}},{"code_sha256_prefix":"7e61966c241dcf1b","entry":"optimize","repo":"stat-ml/conformal_probability_calibration","repo_kind":"found_in_text","path":"caliblab/calibrators/conformal_mass_threshold_calibrator.py","file_url":"https://github.com/stat-ml/conformal_probability_calibration/blob/HEAD/caliblab/calibrators/conformal_mass_threshold_calibrator.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":"7e61966c241dcf1b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}