A Geometric Analysis of Density and Amplitude Coupling in Classifier-Free Guidance

Classifier-Free Guidance (CFG) is an essential tool for conditional generation with diffusion and flow-matching models, but at the high guidance scales where prompt alignment is strongest, it has two side effects. First, it changes the density of the samples, i.e., their likelihood under the model, and with it their level of detail, so that density controls can no longer set the detail independently of guidance. Second, it oversaturates the image. We show that guidance directly changes the density only through its component along the conditional score and, as previously observed, oversaturates the image through its component along the clean-image estimate, which increases the amplitude of that estimate. Existing methods correct at most one of these components, and since the two directions are not orthogonal, correcting one after the other partly undoes the first. We therefore project the update orthogonally to both at once, which yields Density-Decoupled CFG ($\text{D}^2$-CFG), in which the guidance scale controls prompt alignment without directly changing the density, and a separate quantile parameter controls the sample density. We prove that the decoupling is exact for Gaussian data and verify it with exact likelihoods in linear diffusion models of ImageNet. At high guidance scales on SDXL and SD3.5, $\text{D}^2$-CFG reduces oversaturation while matching or slightly improving prompt alignment, and improves FID at the highest scales, with no additional network evaluations. On SD3.5, the projection must be paired with a spherical retraction that controls norm growth; the retraction accounts for most of the improvement, and the projection adds a smaller gain on top.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-03
Primary Topic
Generative Adversarial Networks and Image Synthesis
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A Geometric Analysis of Density and Amplitude Coupling in Classifier-Free Guidance

Peyman Milanfar, Kuldeep Purohit, Mauricio Delbracio, Hossein Talebi et al.
arXiv
Generative Adversarial Networks and Image Synthesis
preprint

A Geometric Analysis of Density and Amplitude Coupling in Classifier-Free Guidance

Peyman Milanfar, Kuldeep Purohit, Mauricio Delbracio, Hossein Talebi, Mojtaba Sahraee-Ardakan, Nicolas Zilberstetin, Yuyang Hu
preprint en

Abstract

Classifier-Free Guidance (CFG) is an essential tool for conditional generation with diffusion and flow-matching models, but at the high guidance scales where prompt alignment is strongest, it has two side effects. First, it changes the density of the samples, i.e., their likelihood under the model, and with it their level of detail, so that density controls can no longer set the detail independently of guidance. Second, it oversaturates the image. We show that guidance directly changes the density only through its component along the conditional score and, as previously observed, oversaturates the image through its component along the clean-image estimate, which increases the amplitude of that estimate. Existing methods correct at most one of these components, and since the two directions are not orthogonal, correcting one after the other partly undoes the first. We therefore project the update orthogonally to both at once, which yields Density-Decoupled CFG ($\text{D}^2$-CFG), in which the guidance scale controls prompt alignment without directly changing the density, and a separate quantile parameter controls the sample density. We prove that the decoupling is exact for Gaussian data and verify it with exact likelihoods in linear diffusion models of ImageNet. At high guidance scales on SDXL and SD3.5, $\text{D}^2$-CFG reduces oversaturation while matching or slightly improving prompt alignment, and improves FID at the highest scales, with no additional network evaluations. On SD3.5, the projection must be paired with a spherical retraction that controls norm growth; the retraction accounts for most of the improvement, and the projection adds a smaller gain on top.

arXiv
Google (United States) (US)
Generative Adversarial Networks and Image Synthesis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon