arXiv · 2412.09966
EP-CFG: Energy-Preserving Classifier-Free Guidance
Abstract
Classifier-free guidance (CFG) is widely used in diffusion models but often introduces over-contrast and over-saturation artifacts at higher guidance strengths. We present EP-CFG (Energy-Preserving Classifier-Free Guidance), which addresses these issues by preserving the energy distribution of the conditional prediction during the guidance process. Our method simply rescales the energy of the guided output to match that of the conditional prediction at each denoising step, with an optional robust variant for improved artifact suppression. Through experiments, we show that EP-CFG maintains natural image quality and preserves details across guidance strengths while retaining CFG's semantic alignment benefits, all with minimal computational overhead.
Explore related subjects
Keep this discovery
Kai Zhang, Fujun Luan, Sai Bi, Jianming Zhang. 2024-12-13. EP-CFG: Energy-Preserving Classifier-Free Guidance. https://arxiv.org/abs/2412.09966
Cite the original work for its findings. Save a collection to share your selection of sources.