{"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/arxiv-2512-20233","title":"How I Met Your Bias: Investigating Bias Amplification in Diffusion Models","arxiv_id":"2512.20233","date":"2025-12-23","proceeding":null,"authors":["Nathan Roos","Ekaterina Iakovleva","Ani Gjergji","Vito Paolo Pastore","Enzo Tartaglione"],"abstract":"Diffusion-based generative models demonstrate state-of-the-art performance across various image synthesis tasks, yet their tendency to replicate and amplify dataset biases remains poorly understood. Although previous research has viewed bias amplification as an inherent characteristic of diffusion models, this work provides the first analysis of how sampling algorithms and their hyperparameters influence bias amplification. We empirically demonstrate that samplers for diffusion models -- commonly optimized for sample quality and speed -- have a significant and measurable effect on bias amplification. Through controlled studies with models trained on Biased MNIST, Multi-Color MNIST and BFFHQ, and with Stable Diffusion, we show that sampling hyperparameters can induce both bias reduction and amplification, even when the trained model is fixed. Source code is available at https://github.com/How-I-met-your-bias/how_i_met_your_bias.","url_abs":"https://arxiv.org/abs/2512.20233","url_pdf":"https://arxiv.org/pdf/2512.20233","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2512.20233","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2512.20233"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/yang-song/score","reach":{"status":"gone","observed_at":"2026-09-16","how":"tree_404+repo_404"}},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/NVlabs/edm","reach":{"status":"ok","spdx":"NOASSERTION"}},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/How-I-metyour-bias/how","reach":{"status":"gone","observed_at":"2026-09-16","how":"tree_404+repo_404"}}],"summary":{"ran_honours":3,"ran":2,"ran_draft_wrong":3,"ran_fixture":1,"unverified":6},"by_repo_kind":{"found_in_text":{"samples":15,"ran":9,"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":15,"samples":[{"code_sha256_prefix":"45e941764344e7f3","entry":"calculate_fid_from_inception_stats","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"fid.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/fid.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"45e941764344e7f3"}},{"code_sha256_prefix":"6d32f9cf6f29b386","entry":"constant","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"torch_utils/misc.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/torch_utils/misc.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6d32f9cf6f29b386"}},{"code_sha256_prefix":"a2b45afa097b55b6","entry":"file_ext","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"dataset_tool.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/dataset_tool.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a2b45afa097b55b6"}},{"code_sha256_prefix":"674eca7b9e1b6439","entry":"format_time","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"dnnlib/util.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/dnnlib/util.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"674eca7b9e1b6439"}},{"code_sha256_prefix":"32af001972a0699f","entry":"format_time_brief","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"dnnlib/util.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/dnnlib/util.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"32af001972a0699f"}},{"code_sha256_prefix":"dd1dc700e87f36cc","entry":"maybe_min","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"dataset_tool.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/dataset_tool.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dd1dc700e87f36cc"}},{"code_sha256_prefix":"cacd4f6ec202d9b4","entry":"parse_int_list","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"generate.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/generate.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cacd4f6ec202d9b4"}},{"code_sha256_prefix":"07b21b35ecb4815c","entry":"parse_tuple","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"dataset_tool.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/dataset_tool.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"07b21b35ecb4815c"}},{"code_sha256_prefix":"d41a4250066bce93","entry":"weight_init","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"training/networks.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/training/networks.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d41a4250066bce93"}},{"code_sha256_prefix":"9fbf646e18eed1db","entry":"ablation_sampler","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"generate.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/generate.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9fbf646e18eed1db"}},{"code_sha256_prefix":"9d31d2c4cd16bb2d","entry":"ask_yes_no","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"dnnlib/util.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/dnnlib/util.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9d31d2c4cd16bb2d"}},{"code_sha256_prefix":"8b16b0674af254db","entry":"edm_sampler","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"generate.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/generate.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8b16b0674af254db"}},{"code_sha256_prefix":"e8b31ffccfa05efc","entry":"is_persistent","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"torch_utils/persistence.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/torch_utils/persistence.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e8b31ffccfa05efc"}},{"code_sha256_prefix":"b5ae713738eb4d27","entry":"params_and_buffers","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"torch_utils/misc.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/torch_utils/misc.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b5ae713738eb4d27"}},{"code_sha256_prefix":"f4664bbb3c2df6e0","entry":"profiled_function","repo":"NVlabs/edm","repo_kind":"found_in_text","path":"torch_utils/misc.py","file_url":"https://github.com/NVlabs/edm/blob/HEAD/torch_utils/misc.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f4664bbb3c2df6e0"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_api"},"syntology_extracted_results":null}