No Training, No Problem: Rethinking Classifier-Free Guidance for Diffusion Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Sadat, Seyedmorteza, Kansy, Manuel, Hilliges, Otmar, Weber, Romann M.
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910981175640064
author Sadat, Seyedmorteza
Kansy, Manuel
Hilliges, Otmar
Weber, Romann M.
author_facet Sadat, Seyedmorteza
Kansy, Manuel
Hilliges, Otmar
Weber, Romann M.
contents Classifier-free guidance (CFG) has become the standard method for enhancing the quality of conditional diffusion models. However, employing CFG requires either training an unconditional model alongside the main diffusion model or modifying the training procedure by periodically inserting a null condition. There is also no clear extension of CFG to unconditional models. In this paper, we revisit the core principles of CFG and introduce a new method, independent condition guidance (ICG), which provides the benefits of CFG without the need for any special training procedures. Our approach streamlines the training process of conditional diffusion models and can also be applied during inference on any pre-trained conditional model. Additionally, by leveraging the time-step information encoded in all diffusion networks, we propose an extension of CFG, called time-step guidance (TSG), which can be applied to any diffusion model, including unconditional ones. Our guidance techniques are easy to implement and have the same sampling cost as CFG. Through extensive experiments, we demonstrate that ICG matches the performance of standard CFG across various conditional diffusion models. Moreover, we show that TSG improves generation quality in a manner similar to CFG, without relying on any conditional information.
format Preprint
id arxiv_https___arxiv_org_abs_2407_02687
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle No Training, No Problem: Rethinking Classifier-Free Guidance for Diffusion Models
Sadat, Seyedmorteza
Kansy, Manuel
Hilliges, Otmar
Weber, Romann M.
Machine Learning
Computer Vision and Pattern Recognition
Classifier-free guidance (CFG) has become the standard method for enhancing the quality of conditional diffusion models. However, employing CFG requires either training an unconditional model alongside the main diffusion model or modifying the training procedure by periodically inserting a null condition. There is also no clear extension of CFG to unconditional models. In this paper, we revisit the core principles of CFG and introduce a new method, independent condition guidance (ICG), which provides the benefits of CFG without the need for any special training procedures. Our approach streamlines the training process of conditional diffusion models and can also be applied during inference on any pre-trained conditional model. Additionally, by leveraging the time-step information encoded in all diffusion networks, we propose an extension of CFG, called time-step guidance (TSG), which can be applied to any diffusion model, including unconditional ones. Our guidance techniques are easy to implement and have the same sampling cost as CFG. Through extensive experiments, we demonstrate that ICG matches the performance of standard CFG across various conditional diffusion models. Moreover, we show that TSG improves generation quality in a manner similar to CFG, without relying on any conditional information.
title No Training, No Problem: Rethinking Classifier-Free Guidance for Diffusion Models
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2407.02687