TFG: Unified Training-Free Guidance for Diffusion Models

Haotian Ye, Haowei Lin, Jiaqi Han, Minkai Xu, Sheng Liu +4 more
9/24/2024
cs.LGcs.AI

No official code found. Best implementation: YWolfeee/Training-Free-Guidance (88 stars, last commit 2025-10-29). 1 more below.

Abstract

Given an unconditional diffusion model and a predictor for a target property of interest (e.g., a classifier), the goal of training-free guidance is to generate samples with desirable target properties without additional training. Existing methods, though effective in various individual applications, often lack theoretical grounding and rigorous testing on extensive benchmarks. As a result, they could even fail on simple tasks, and applying them to a new problem becomes unavoidably difficult. This paper introduces a novel algorithmic framework encompassing existing methods as special cases, unifying the study of training-free guidance into the analysis of an algorithm-agnostic design space. Via theoretical and empirical investigation, we propose an efficient and effective hyper-parameter searching strategy that can be readily applied to any downstream task. We systematically benchmark across 7 diffusion models on 16 tasks with 40 targets, and improve performance by 8.5% on average. Our framework and benchmark offer a solid foundation for conditional generation in a training-free manner.

View on arXivView PDF

Code Implementations(2)

Code for TFG: Unified Training-Free Guidance for Diffusion Models

8811Shell, PythonOct 30, 202411 months ago

Code for TFG: Unified Training-Free Guidance for Diffusion Models

00Shell, PythonFeb 20, 202611 months ago

Similar Papers

Cite this paper

@article{ye2024tfg,
  title  = {TFG: Unified Training-Free Guidance for Diffusion Models},
  author = {Haotian Ye and Haowei Lin and Jiaqi Han and Minkai Xu and Sheng Liu and Yitao Liang and Jianzhu Ma and James Zou and Stefano Ermon},
  year   = {2024},
  eprint = {2409.15761},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2409.15761},
  url    = {http://arxiv.org/abs/2409.15761v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.15761.svg)](https://codeofpaper.com/paper/2409.15761)

Discussion