{"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/private-prediction-sets","title":"Private Prediction Sets","arxiv_id":"2102.06202","date":"2021-02-11","proceeding":null,"authors":["Anastasios N. Angelopoulos","Stephen Bates","Tijana Zrnic","Michael I. Jordan"],"abstract":"In real-world settings involving consequential decision-making, the deployment of machine learning systems generally requires both reliable uncertainty quantification and protection of individuals' privacy. We present a framework that treats these two desiderata jointly. Our framework is based on conformal prediction, a methodology that augments predictive models to return prediction sets that provide uncertainty quantification -- they provably cover the true response with a user-specified probability, such as 90%. One might hope that when used with privately-trained models, conformal prediction would yield privacy guarantees for the resulting prediction sets; unfortunately, this is not the case. To remedy this key problem, we develop a method that takes any pre-trained predictive model and outputs differentially private prediction sets. Our method follows the general approach of split conformal prediction; we use holdout data to calibrate the size of the prediction sets but preserve privacy by using a privatized quantile subroutine. This subroutine compensates for the noise introduced to preserve privacy in order to guarantee correct coverage. We evaluate the method on large-scale computer vision datasets.","url_abs":"https://arxiv.org/abs/2102.06202v3","url_pdf":"https://arxiv.org/pdf/2102.06202v3.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":"private-prediction-sets","repo_url":"https://github.com/aangelopoulos/private_prediction_sets","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"conformal-prediction","task_name":"Conformal Prediction"},{"task_slug":"decision-making","task_name":"Decision Making"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"uncertainty-quantification","task_name":"Uncertainty Quantification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2102.06202","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2102.06202"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/aangelopoulos/private_prediction_sets","reach":null}],"summary":{"ran_honours":2,"ran_fixture":2,"ran_draft_wrong":1,"unverified":1},"by_repo_kind":{"official":{"samples":6,"ran":5,"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":0,"samples":[{"code_sha256_prefix":"fe2a9d8b63f5b225","entry":"generate_scores","repo":"aangelopoulos/private_prediction_sets","repo_kind":"official","path":"core/private_conformal_utils.py","file_url":"https://github.com/aangelopoulos/private_prediction_sets/blob/HEAD/core/private_conformal_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe2a9d8b63f5b225"}},{"code_sha256_prefix":"99d5ee439b493fff","entry":"get_conformal_scores","repo":"aangelopoulos/private_prediction_sets","repo_kind":"official","path":"cifar10/experiment1.py","file_url":"https://github.com/aangelopoulos/private_prediction_sets/blob/HEAD/cifar10/experiment1.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"99d5ee439b493fff"}},{"code_sha256_prefix":"02f534d1aea3a5c9","entry":"get_qtilde","repo":"aangelopoulos/private_prediction_sets","repo_kind":"official","path":"core/private_conformal_utils.py","file_url":"https://github.com/aangelopoulos/private_prediction_sets/blob/HEAD/core/private_conformal_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"02f534d1aea3a5c9"}},{"code_sha256_prefix":"2e88d54cb9a091a0","entry":"get_shat_from_scores","repo":"aangelopoulos/private_prediction_sets","repo_kind":"official","path":"cifar10/experiment1.py","file_url":"https://github.com/aangelopoulos/private_prediction_sets/blob/HEAD/cifar10/experiment1.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2e88d54cb9a091a0"}},{"code_sha256_prefix":"4a32995684cf8ecf","entry":"hist_2_cdf","repo":"aangelopoulos/private_prediction_sets","repo_kind":"official","path":"core/private_conformal_utils.py","file_url":"https://github.com/aangelopoulos/private_prediction_sets/blob/HEAD/core/private_conformal_utils.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4a32995684cf8ecf"}},{"code_sha256_prefix":"af72c232f9847030","entry":"get_shat_from_scores_private","repo":"aangelopoulos/private_prediction_sets","repo_kind":"official","path":"cifar10/experiment1.py","file_url":"https://github.com/aangelopoulos/private_prediction_sets/blob/HEAD/cifar10/experiment1.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"af72c232f9847030"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}