{"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/self-supervised-pretraining-for","title":"Self-Supervised Pretraining for Differentially Private Learning","arxiv_id":"2206.07125","date":"2022-06-14","proceeding":null,"authors":["Arash Asadian","Evan Weidner","Lei Jiang"],"abstract":"We demonstrate self-supervised pretraining (SSP) is a scalable solution to deep learning with differential privacy (DP) regardless of the size of available public datasets in image classification. When facing the lack of public datasets, we show the features generated by SSP on only one single image enable a private classifier to obtain much better utility than the non-learned handcrafted features under the same privacy budget. When a moderate or large size public dataset is available, the features produced by SSP greatly outperform the features trained with labels on various complex private datasets under the same private budget. We also compared multiple DP-enabled training frameworks to train a private classifier on the features generated by SSP. Finally, we report a non-trivial utility 25.3\\% of a private ImageNet-1K dataset when $\\epsilon=3$. Our source code can be found at \\url{https://github.com/UnchartedRLab/SSP}.","url_abs":"https://arxiv.org/abs/2206.07125v2","url_pdf":"https://arxiv.org/pdf/2206.07125v2.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":"self-supervised-pretraining-for","repo_url":"https://github.com/UnchartedRLab/SSP","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2206.07125","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2206.07125"}},"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/UnchartedRLab/SSP","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":3,"ran_draft_wrong":2,"unverified":8},"by_repo_kind":{"official":{"samples":13,"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":"985d1d3378bbbe97","entry":"compute_muP","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"bayes_tuning.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/bayes_tuning.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"985d1d3378bbbe97"}},{"code_sha256_prefix":"b9512c1b0601c501","entry":"compute_muU","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"bayes_tuning.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/bayes_tuning.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b9512c1b0601c501"}},{"code_sha256_prefix":"d9def42110729a85","entry":"conv1x1","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"scatsim/extract_total.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/scatsim/extract_total.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"scatsim/extract_total.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/scatsim/extract_total.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"4714ee287d2fc5bc","entry":"delta_eps_mu","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"bayes_tuning.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/bayes_tuning.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4714ee287d2fc5bc"}},{"code_sha256_prefix":"2cb94cd1f9eba3c7","entry":"get_data","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"lib/data.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/lib/data.py","link_basis":"harvester_set","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":"2cb94cd1f9eba3c7"}},{"code_sha256_prefix":"7b1be05f1f7e328f","entry":"get_feature_data","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"lib/data.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/lib/data.py","link_basis":"harvester_set","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":"7b1be05f1f7e328f"}},{"code_sha256_prefix":"6d7851db06546df4","entry":"get_feature_data_imagenet","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"lib/data.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/lib/data.py","link_basis":"harvester_set","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":"6d7851db06546df4"}},{"code_sha256_prefix":"29d353252c6013b3","entry":"get_specified_params","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"lib/log.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/lib/log.py","link_basis":"harvester_set","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":"29d353252c6013b3"}},{"code_sha256_prefix":"f570544454b90d95","entry":"make_hparam_str","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"lib/log.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/lib/log.py","link_basis":"harvester_set","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":"f570544454b90d95"}},{"code_sha256_prefix":"2b4ba03361a27d50","entry":"model_input","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"lib/log.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/lib/log.py","link_basis":"harvester_set","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":"2b4ba03361a27d50"}},{"code_sha256_prefix":"42cbf7cf6c30a797","entry":"train_dfa","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"lib/train_tools.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/lib/train_tools.py","link_basis":"harvester_set","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":"42cbf7cf6c30a797"}},{"code_sha256_prefix":"cc266e6cfd8eab7d","entry":"train_ohm","repo":"UnchartedRLab/SSP","repo_kind":"official","path":"lib/train_tools.py","file_url":"https://github.com/UnchartedRLab/SSP/blob/HEAD/lib/train_tools.py","link_basis":"harvester_set","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":"cc266e6cfd8eab7d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}