{"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/fairness-for-image-generation-with-uncertain","title":"Fairness for Image Generation with Uncertain Sensitive Attributes","arxiv_id":"2106.12182","date":"2021-06-23","proceeding":null,"authors":["Ajil Jalal","Sushrut Karmalkar","Jessica Hoffmann","Alexandros G. Dimakis","Eric Price"],"abstract":"This work tackles the issue of fairness in the context of generative procedures, such as image super-resolution, which entail different definitions from the standard classification setting. Moreover, while traditional group fairness definitions are typically defined with respect to specified protected groups -- camouflaging the fact that these groupings are artificial and carry historical and political motivations -- we emphasize that there are no ground truth identities. For instance, should South and East Asians be viewed as a single group or separate groups? Should we consider one race as a whole or further split by gender? Choosing which groups are valid and who belongs in them is an impossible dilemma and being \"fair\" with respect to Asians may require being \"unfair\" with respect to South Asians. This motivates the introduction of definitions that allow algorithms to be \\emph{oblivious} to the relevant groupings. We define several intuitive notions of group fairness and study their incompatibilities and trade-offs. We show that the natural extension of demographic parity is strongly dependent on the grouping, and \\emph{impossible} to achieve obliviously. On the other hand, the conceptually new definition we introduce, Conditional Proportional Representation, can be achieved obliviously through Posterior Sampling. Our experiments validate our theoretical results and achieve fair image reconstruction using state-of-the-art generative models.","url_abs":"https://arxiv.org/abs/2106.12182v2","url_pdf":"https://arxiv.org/pdf/2106.12182v2.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":"fairness-for-image-generation-with-uncertain","repo_url":"https://github.com/ajiljalal/code-cs-fairness","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"fairness","task_name":"Fairness"},{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"image-reconstruction","task_name":"Image Reconstruction"},{"task_slug":"image-super-resolution","task_name":"Image Super-Resolution"},{"task_slug":"super-resolution","task_name":"Super-Resolution"},{"task_slug":null,"task_name":"valid"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2106.12182","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.12182"}},"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/ajiljalal/code-cs-fairness","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":1,"unverified":11},"by_repo_kind":{"official":{"samples":12,"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":"6f65e378a4313f87","entry":"make_kernel","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"stylegan2/model.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/stylegan2/model.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6f65e378a4313f87"}},{"code_sha256_prefix":"49323c1346259836","entry":"flatten_eps","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"glow/model.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/glow/model.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":"49323c1346259836"}},{"code_sha256_prefix":"857ba6b23095a4f0","entry":"get_figsize","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"src/metrics_utils.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/src/metrics_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":"857ba6b23095a4f0"}},{"code_sha256_prefix":"8ad7897be275437c","entry":"get_image_nums","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"src/view_estimated_celebA_cs.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/src/view_estimated_celebA_cs.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":"8ad7897be275437c"}},{"code_sha256_prefix":"3f8654a051989cdf","entry":"get_l2_loss","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/src/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":"3f8654a051989cdf"}},{"code_sha256_prefix":"ef7378456cb1ffb8","entry":"get_measurement_loss","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/src/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":"ef7378456cb1ffb8"}},{"code_sha256_prefix":"3a73f73ee48b894d","entry":"int_or_float","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"src/metrics_utils.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/src/metrics_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":"3a73f73ee48b894d"}},{"code_sha256_prefix":"5967953b68048c6e","entry":"load_if_pickled","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/src/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":"5967953b68048c6e"}},{"code_sha256_prefix":"a55018130198de2e","entry":"load_pb","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"glow/model.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/glow/model.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":"a55018130198de2e"}},{"code_sha256_prefix":"a03608be0d70054a","entry":"rep_error_deep_decoder","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"include/compression.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/include/compression.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":"a03608be0d70054a"}},{"code_sha256_prefix":"e714657a883c50dd","entry":"rep_error_wavelet","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"include/compression.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/include/compression.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":"e714657a883c50dd"}},{"code_sha256_prefix":"b1faad04059b6767","entry":"unflatten_eps","repo":"ajiljalal/code-cs-fairness","repo_kind":"official","path":"glow/model.py","file_url":"https://github.com/ajiljalal/code-cs-fairness/blob/HEAD/glow/model.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":"b1faad04059b6767"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}