Papers › Training Unbiased Diffusion Models From Biased Dataset

Training Unbiased Diffusion Models From Biased Dataset

2 Mar 2024arXiv:2403.01189archive 2025-07-28

Yeongmin Kim, Byeonghu Na, Minsang Park, JoonHo Jang, Dongjun Kim, Wanmo Kang, Il-Chul Moon

With significant advancements in diffusion models, addressing the potential risks of dataset bias becomes increasingly important. Since generated outputs directly suffer from dataset bias, mitigating latent bias becomes a key factor in improving sample quality and proportion. This paper proposes time-dependent importance reweighting to mitigate the bias for the diffusion models. We demonstrate that the time-dependent density ratio becomes more precise than previous approaches, thereby minimizing error propagation in generative learning. While directly applying it to score-matching is intractable, we discover that using the time-dependent density ratio both for reweighting and score correction can lead to a tractable form of the objective function to regenerate the unbiased data density. Furthermore, we theoretically establish a connection with traditional score-matching, and we demonstrate its convergence to an unbiased distribution. The experimental evidence supports the usefulness of the proposed method, which outperforms baselines including time-independent importance reweighting on CIFAR-10, CIFAR-100, FFHQ, and CelebA with various bias settings. Our code is available at https://github.com/alsdudrla10/TIW-DSM.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.01189")

Code

Syntology Ran 27 of 37 code samples harvested from 3 repositories linked to this paper; 10 have no recorded run. Of those that ran: 5 ran · honoured contract; 9 ran · our draft was wrong; 2 ran · fixture could not drive it; 11 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 14 ran; found in paper text by Syntology: 20 samples from 2 repositories, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

alsdudrla10/tiw-dsm officialmentioned in papermentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

37 samples harvested; 27 ran; 5 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran · honoured contract
9ran · our draft was wrong
2ran · fixture could not drive it
11ran
10unverified

Licence: 37 of the 37 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

approx_standard_normal_cdf alsdudrla10/TIW-DSM/guided_diffusion/losses.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · cfd76fd0d89574a4 · report
calculate_fid_from_inception_stats alsdudrla10/TIW-DSM/fid.py official repository ran · honoured contract no licence file found · pointer only · 45e941764344e7f3 · report
compute_t_cos_from_t_lin alsdudrla10/TIW-DSM/guided_diffusion/unet.py official repository ran fingerprinted no licence file found · pointer only · 7e78740874fe261b · report
discretized_gaussian_log_likelihood alsdudrla10/TIW-DSM/guided_diffusion/losses.py official repository ran · our draft was wrong no licence file found · pointer only · cd33283d615fb3d7 · report
file_ext alsdudrla10/TIW-DSM/dataset_tool.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · a2b45afa097b55b6 · report
format_time alsdudrla10/TIW-DSM/dnnlib/util.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 674eca7b9e1b6439 · report
format_time_brief alsdudrla10/TIW-DSM/dnnlib/util.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 32af001972a0699f · report
get_discriminator alsdudrla10/TIW-DSM/classifier_lib.py official repository ran licence not identified · pointer only · 624251787df4cb51 · report
get_reverse_discriminator alsdudrla10/TIW-DSM/classifier_lib.py official repository ran licence not identified · pointer only · 6afce2a3a100ae5d · report
maybe_min alsdudrla10/TIW-DSM/dataset_tool.py official repository ran · honoured contract no licence file found · pointer only · dd1dc700e87f36cc · report
normal_kl alsdudrla10/TIW-DSM/guided_diffusion/losses.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · cf2798b666b231ca · report
parse_int_list alsdudrla10/TIW-DSM/generate.py official repository ran · honoured contract no licence file found · pointer only · cacd4f6ec202d9b4 · report
parse_tuple alsdudrla10/TIW-DSM/dataset_tool.py official repository ran no licence file found · pointer only · 07b21b35ecb4815c · report
weight_init alsdudrla10/TIW-DSM/training/networks.py official repository ran · fixture could not drive it no licence file found · pointer only · d41a4250066bce93 · report
ablation_sampler alsdudrla10/TIW-DSM/generate.py official repository unverified no licence file found · pointer only · 9fbf646e18eed1db · report
ask_yes_no alsdudrla10/TIW-DSM/dnnlib/util.py official repository unverified no licence file found · pointer only · 9d31d2c4cd16bb2d · report
edm_sampler alsdudrla10/TIW-DSM/generate.py official repository unverified no licence file found · pointer only · 8b16b0674af254db · report
D_arch ermongroup/fairgen/src/KL-BigGAN/BigGAN.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 85eb95cce203dfc7 · report
G_arch ermongroup/fairgen/src/KL-BigGAN/BigGAN.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · e8c308c9283407d7 · report
build_celeba_classification_dataset ermongroup/fairgen/src/dataset_splits.py found in paper text by Syntology ran no licence file found · pointer only · c2057f330c5906c9 · report
conv3x3 ermongroup/fairgen/src/clf_models.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · fac5364e2f53c6db · report
find_classes ermongroup/fairgen/src/KL-BigGAN/datasets.py found in paper text by Syntology ran no licence file found · pointer only · 52d10a10fb72fb9f · report
get_log_ratio alsdudrla10/DG/classifier_lib.py found in paper text by Syntology ran · fixture could not drive it licence not identified · pointer only · aa3432c25ff63849 · report
is_image_file ermongroup/fairgen/src/KL-BigGAN/datasets.py found in paper text by Syntology ran no licence file found · pointer only · 4e6a8faaf8e44abe · report
list_dir ermongroup/fairgen/src/KL-BigGAN/dataset_utils.py found in paper text by Syntology ran no licence file found · pointer only · 0d8aca7e68b6e3c8 · report
list_files ermongroup/fairgen/src/KL-BigGAN/dataset_utils.py found in paper text by Syntology ran no licence file found · pointer only · 0fcbc473379434c0 · report
load_attributes ermongroup/fairgen/src/preprocess_celeba.py found in paper text by Syntology ran · honoured contract no licence file found · pointer only · b0b12a75d3201590 · report
load_eval_partition ermongroup/fairgen/src/preprocess_celeba.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 115ca35fe166b65c · report
make_dataset ermongroup/fairgen/src/KL-BigGAN/datasets.py found in paper text by Syntology ran no licence file found · pointer only · 79e61b6269a450e8 · report
vpsde alsdudrla10/DG/classifier_lib.py found in paper text by Syntology ran licence not identified · pointer only · b973e7772b10cd3a · report
D_arch ermongroup/fairgen/src/KL-BigGAN/BigGANdeep.py found in paper text by Syntology unverified no licence file found · pointer only · a99a05ac52533be9 · report
G_arch ermongroup/fairgen/src/KL-BigGAN/BigGANdeep.py found in paper text by Syntology unverified no licence file found · pointer only · 44d6a6343f6eb182 · report
build_90_10_unbalanced_datasets_clf_celeba ermongroup/fairgen/src/dataset_splits.py found in paper text by Syntology unverified no licence file found · pointer only · e5c036d214df6b76 · report
build_model ermongroup/fairgen/src/clf_models.py found in paper text by Syntology unverified no licence file found · pointer only · bbf5414ac067dc67 · report
build_multi_celeba_classification_datset ermongroup/fairgen/src/dataset_splits.py found in paper text by Syntology unverified no licence file found · pointer only · c6662a10d22a9f45 · report
check_integrity ermongroup/fairgen/src/KL-BigGAN/dataset_utils.py found in paper text by Syntology unverified no licence file found · pointer only · 7345763c9b9300fb · report
get_grad_log_ratio alsdudrla10/DG/classifier_lib.py found in paper text by Syntology unverified licence not identified · pointer only · 6e1f031f85a7338e · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections