{"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/differentially-private-sharpness-aware","title":"Differentially Private Sharpness-Aware Training","arxiv_id":"2306.05651","date":"2023-06-09","proceeding":null,"authors":["Jinseong Park","Hoki Kim","Yujin Choi","Jaewook Lee"],"abstract":"Training deep learning models with differential privacy (DP) results in a degradation of performance. The training dynamics of models with DP show a significant difference from standard training, whereas understanding the geometric properties of private learning remains largely unexplored. In this paper, we investigate sharpness, a key factor in achieving better generalization, in private learning. We show that flat minima can help reduce the negative effects of per-example gradient clipping and the addition of Gaussian noise. We then verify the effectiveness of Sharpness-Aware Minimization (SAM) for seeking flat minima in private learning. However, we also discover that SAM is detrimental to the privacy budget and computational time due to its two-step optimization. Thus, we propose a new sharpness-aware training method that mitigates the privacy-optimization trade-off. Our experimental results demonstrate that the proposed method improves the performance of deep learning models with DP from both scratch and fine-tuning. Code is available at https://github.com/jinseongP/DPSAT.","url_abs":"https://arxiv.org/abs/2306.05651v1","url_pdf":"https://arxiv.org/pdf/2306.05651v1.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":"differentially-private-sharpness-aware","repo_url":"https://github.com/jinseongp/dpsat","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[{"method_slug":"gradient-clipping","method_name":"Gradient Clipping"},{"method_slug":"sam","method_name":"SAM"},{"method_slug":"sharpness-aware-minimization","method_name":"Sharpness-Aware Minimization"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2306.05651","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2306.05651"}},"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/TheSunWillRise/DPNAS","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/woodyx218/private_vision","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jinseongp/dpsat","reach":null}],"summary":{"ran_honours":1,"ran":1,"unverified":9},"by_repo_kind":{"official":{"samples":1,"ran":1,"repositories":1},"found_in_text":{"samples":10,"ran":1,"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":"b81882decca625ee","entry":"get_num_params","repo":"TheSunWillRise/DPNAS","repo_kind":"found_in_text","path":"dp_evaluate/models.py","file_url":"https://github.com/TheSunWillRise/DPNAS/blob/HEAD/dp_evaluate/models.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":2,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b81882decca625ee"}},{"code_sha256_prefix":"f0eda3d04ebbaf0b","entry":"DPSAT","repo":"jinseongp/dpsat","repo_kind":"official","path":"src/optim/minimizer.py","file_url":"https://github.com/jinseongp/dpsat/blob/HEAD/src/optim/minimizer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f0eda3d04ebbaf0b"}},{"code_sha256_prefix":"5133e2a3b3e11e2f","entry":"GN","repo":"TheSunWillRise/DPNAS","repo_kind":"found_in_text","path":"dp_evaluate/models.py","file_url":"https://github.com/TheSunWillRise/DPNAS/blob/HEAD/dp_evaluate/models.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":"5133e2a3b3e11e2f"}},{"code_sha256_prefix":"2858772fbc33adfd","entry":"GN","repo":"TheSunWillRise/DPNAS","repo_kind":"found_in_text","path":"dp_search/operations.py","file_url":"https://github.com/TheSunWillRise/DPNAS/blob/HEAD/dp_search/operations.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":"2858772fbc33adfd"}},{"code_sha256_prefix":"e93d9ddbfeb73ced","entry":"accuracy","repo":"TheSunWillRise/DPNAS","repo_kind":"found_in_text","path":"dp_search/utils.py","file_url":"https://github.com/TheSunWillRise/DPNAS/blob/HEAD/dp_search/utils.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":"e93d9ddbfeb73ced"}},{"code_sha256_prefix":"e885a1ad06793510","entry":"get_data","repo":"TheSunWillRise/DPNAS","repo_kind":"found_in_text","path":"dp_evaluate/data.py","file_url":"https://github.com/TheSunWillRise/DPNAS/blob/HEAD/dp_evaluate/data.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":"e885a1ad06793510"}},{"code_sha256_prefix":"6d9077445a734b41","entry":"imagewise_accuracy","repo":"TheSunWillRise/DPNAS","repo_kind":"found_in_text","path":"dp_search/utils.py","file_url":"https://github.com/TheSunWillRise/DPNAS/blob/HEAD/dp_search/utils.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":"6d9077445a734b41"}},{"code_sha256_prefix":"fc98656f39d43732","entry":"random_sample_loader","repo":"TheSunWillRise/DPNAS","repo_kind":"found_in_text","path":"dp_evaluate/data.py","file_url":"https://github.com/TheSunWillRise/DPNAS/blob/HEAD/dp_evaluate/data.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":"fc98656f39d43732"}},{"code_sha256_prefix":"4bfe7d10338dc3c4","entry":"subjectiwise_accuracy","repo":"TheSunWillRise/DPNAS","repo_kind":"found_in_text","path":"dp_search/utils.py","file_url":"https://github.com/TheSunWillRise/DPNAS/blob/HEAD/dp_search/utils.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":"4bfe7d10338dc3c4"}},{"code_sha256_prefix":"bd31d8cae37a3810","entry":"test","repo":"TheSunWillRise/DPNAS","repo_kind":"found_in_text","path":"dp_evaluate/train_utils.py","file_url":"https://github.com/TheSunWillRise/DPNAS/blob/HEAD/dp_evaluate/train_utils.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":"bd31d8cae37a3810"}},{"code_sha256_prefix":"d655d781dc686594","entry":"train","repo":"TheSunWillRise/DPNAS","repo_kind":"found_in_text","path":"dp_evaluate/train_utils.py","file_url":"https://github.com/TheSunWillRise/DPNAS/blob/HEAD/dp_evaluate/train_utils.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":"d655d781dc686594"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}