ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2503.18886
41
1

CFG-Zero*: Improved Classifier-Free Guidance for Flow Matching Models

24 March 2025
Weichen Fan
Amber Yijia Zheng
Raymond A. Yeh
Ziwei Liu
ArXivPDFHTML
Abstract

Classifier-Free Guidance (CFG) is a widely adopted technique in diffusion/flow models to improve image fidelity and controllability. In this work, we first analytically study the effect of CFG on flow matching models trained on Gaussian mixtures where the ground-truth flow can be derived. We observe that in the early stages of training, when the flow estimation is inaccurate, CFG directs samples toward incorrect trajectories. Building on this observation, we propose CFG-Zero*, an improved CFG with two contributions: (a) optimized scale, where a scalar is optimized to correct for the inaccuracies in the estimated velocity, hence the * in the name; and (b) zero-init, which involves zeroing out the first few steps of the ODE solver. Experiments on both text-to-image (Lumina-Next, Stable Diffusion 3, and Flux) and text-to-video (Wan-2.1) generation demonstrate that CFG-Zero* consistently outperforms CFG, highlighting its effectiveness in guiding Flow Matching models. (Code is available atthis http URL)

View on arXiv
@article{fan2025_2503.18886,
  title={ CFG-Zero*: Improved Classifier-Free Guidance for Flow Matching Models },
  author={ Weichen Fan and Amber Yijia Zheng and Raymond A. Yeh and Ziwei Liu },
  journal={arXiv preprint arXiv:2503.18886},
  year={ 2025 }
}
Comments on this paper