English

Bridging the Gap: Addressing Discrepancies in Diffusion Model Training for Classifier-Free Guidance

Machine Learning 2023-11-03 v1 Artificial Intelligence Computer Vision and Pattern Recognition

Abstract

Diffusion models have emerged as a pivotal advancement in generative models, setting new standards to the quality of the generated instances. In the current paper we aim to underscore a discrepancy between conventional training methods and the desired conditional sampling behavior of these models. While the prevalent classifier-free guidance technique works well, it's not without flaws. At higher values for the guidance scale parameter ww, we often get out of distribution samples and mode collapse, whereas at lower values for ww we may not get the desired specificity. To address these challenges, we introduce an updated loss function that better aligns training objectives with sampling behaviors. Experimental validation with FID scores on CIFAR-10 elucidates our method's ability to produce higher quality samples with fewer sampling timesteps, and be more robust to the choice of guidance scale ww. We also experiment with fine-tuning Stable Diffusion on the proposed loss, to provide early evidence that large diffusion models may also benefit from this refined loss function.

Keywords

Cite

@article{arxiv.2311.00938,
  title  = {Bridging the Gap: Addressing Discrepancies in Diffusion Model Training for Classifier-Free Guidance},
  author = {Niket Patel and Luis Salamanca and Luis Barba},
  journal= {arXiv preprint arXiv:2311.00938},
  year   = {2023}
}

Comments

Accepted at NeurIPS Diffusion Workshop 2023

R2 v1 2026-06-28T13:09:12.933Z