{"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/disparate-impact-in-differential-privacy-from","title":"Disparate Impact in Differential Privacy from Gradient Misalignment","arxiv_id":"2206.07737","date":"2022-06-15","proceeding":null,"authors":["Maria S. Esipova","Atiyeh Ashari Ghomi","Yaqiao Luo","Jesse C. Cresswell"],"abstract":"As machine learning becomes more widespread throughout society, aspects including data privacy and fairness must be carefully considered, and are crucial for deployment in highly regulated industries. Unfortunately, the application of privacy enhancing technologies can worsen unfair tendencies in models. In particular, one of the most widely used techniques for private model training, differentially private stochastic gradient descent (DPSGD), frequently intensifies disparate impact on groups within data. In this work we study the fine-grained causes of unfairness in DPSGD and identify gradient misalignment due to inequitable gradient clipping as the most significant source. This observation leads us to a new method for reducing unfairness by preventing gradient misalignment in DPSGD.","url_abs":"https://arxiv.org/abs/2206.07737v2","url_pdf":"https://arxiv.org/pdf/2206.07737v2.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":"disparate-impact-in-differential-privacy-from","repo_url":"https://github.com/layer6ai-labs/fair-dp","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"fairness","task_name":"Fairness"}],"methods":[{"method_slug":"gradient-clipping","method_name":"Gradient Clipping"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2206.07737","atlas_url":"https://app.syntology.ai/?focus=2206.07737","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2206.07737"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/layer6ai-labs/fair-dp","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":13,"unverified":7},"by_repo_kind":{"official":{"samples":20,"ran":13,"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":"d48cdb50834535cb","entry":"find_restricted","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/sample_weights.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/sample_weights.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d48cdb50834535cb"}},{"code_sha256_prefix":"662c5904b4c6285c","entry":"find_sample_weights","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/sample_weights.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/sample_weights.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"662c5904b4c6285c"}},{"code_sha256_prefix":"6dd56a11e1804c30","entry":"get_base_config","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"config/images.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/config/images.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6dd56a11e1804c30"}},{"code_sha256_prefix":"94195ffc4edab034","entry":"get_base_config","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"config/tabular.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/config/tabular.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"94195ffc4edab034"}},{"code_sha256_prefix":"d7777e765eeb5bcc","entry":"get_dpsgd_config","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"config/images.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/config/images.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d7777e765eeb5bcc"}},{"code_sha256_prefix":"fff7c82ecd9ee149","entry":"get_grad_norms","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"utils.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fff7c82ecd9ee149"}},{"code_sha256_prefix":"bb600563f7cd81b9","entry":"get_grad_norms_clip","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"utils.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bb600563f7cd81b9"}},{"code_sha256_prefix":"cfc5de3ebf0a6a02","entry":"get_grads","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"utils.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cfc5de3ebf0a6a02"}},{"code_sha256_prefix":"6475a837db4b9ffa","entry":"get_loader","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/loaders.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/loaders.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6475a837db4b9ffa"}},{"code_sha256_prefix":"904394d274d6ea35","entry":"get_non_private_config","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"config/images.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/config/images.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"904394d274d6ea35"}},{"code_sha256_prefix":"76b2d595deed55ec","entry":"make_tabular_train_valid_split","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/tabular.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/tabular.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"76b2d595deed55ec"}},{"code_sha256_prefix":"cedce733510deb6a","entry":"make_tabular_train_valid_test_split","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/tabular.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/tabular.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cedce733510deb6a"}},{"code_sha256_prefix":"78a52ca7f816d91f","entry":"normalize","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/tabular.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/tabular.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"78a52ca7f816d91f"}},{"code_sha256_prefix":"4cebf08a8c6f6a66","entry":"create_model","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"models/model_factory.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/models/model_factory.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4cebf08a8c6f6a66"}},{"code_sha256_prefix":"2e961d46685a37df","entry":"get_config","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"config/get_config.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/config/get_config.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2e961d46685a37df"}},{"code_sha256_prefix":"890beb904c12fdd3","entry":"get_loaders","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/loaders.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/loaders.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"890beb904c12fdd3"}},{"code_sha256_prefix":"e4c16432bb236cd3","entry":"get_loaders_from_config","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/loaders.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/loaders.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e4c16432bb236cd3"}},{"code_sha256_prefix":"fc7d5370a85734a0","entry":"get_raw_image_tensors","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/image.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/image.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fc7d5370a85734a0"}},{"code_sha256_prefix":"84bf999cc44df2b8","entry":"get_torchvision_datasets","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/image.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/image.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"84bf999cc44df2b8"}},{"code_sha256_prefix":"79d3bedd230ed9b5","entry":"image_tensors_to_dataset","repo":"layer6ai-labs/fair-dp","repo_kind":"official","path":"datasets/image.py","file_url":"https://github.com/layer6ai-labs/fair-dp/blob/HEAD/datasets/image.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"79d3bedd230ed9b5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}