Adversarial Learning of Classifier-Free Guidance Schedules
Summary
This paper proposes learning dynamic classifier-free guidance schedules for diffusion models using adversarial learning to improve text-to-image generation quality by adapting guidance scales to different states.
View Cached Full Text
Cached at: 08/17/26, 10:18 AM
# Adversarial Learning of Classifier-Free Guidance Schedules
Source: [https://arxiv.org/html/2608.14038](https://arxiv.org/html/2608.14038)
Alexandre Galashov11footnotemark:1Affiliation:Google DeepMind, Gatsby UCLEmail:[agalashov@google\.com](mailto:)Arnaud DoucetAffiliation:Google DeepMindEmail:[arnauddoucet@google\.com](mailto:)Mauricio DelbracioAffiliation:GoogleEmail:[mdelbra@google\.com](mailto:)Valentin De BortoliAffiliation:Google DeepMindEmail:[vdebortoli@google\.com](mailto:)
###### Abstract
Modern text\-to\-image diffusion models rely on classifier\-free guidance \(CFG\) to achieve high image fidelity and text alignment\. However, CFG typically applies a static, global scale across all timesteps, samples, and conditions — a choice that is generally suboptimal and can introduce artifacts, as different states may benefit from different levels of guidance\. While time\-varying schedules are known to improve quality, designing them by hand is non\-trivial and application\-dependent\. In this paper, we learn the guidance schedule as a function of diffusion time, conditioning and the current noisy sample, in order to better align sampled images with the text prompt\. We frame this as a density ratio estimation problem: a discriminator is trained to estimate the time\-dependent log\-density ratio between the true and guided marginal distributions, while a lightweight generator network predicts the optimal, state\-dependent guidance scale\. Empirically, our approach outperforms both heuristic CFG schedules and prior methods for learning dynamic guidance on text\-to\-image generation benchmarks\.
## 1Introduction
Diffusion models\([Song & Ermon 2019](https://arxiv.org/html/2608.14038#bib.bib38);[Song et al\. 2021a](https://arxiv.org/html/2608.14038#bib.bib37);[Song et al\. 2021b](https://arxiv.org/html/2608.14038#bib.bib39)\)and flow matching models\([Lipman et al\. 2023](https://arxiv.org/html/2608.14038#bib.bib21)\)have emerged as state\-of\-the\-art generative models for high\-fidelity image and video generation\. The impressive practical performance of these models is largely driven by the use of Classifier\-Free Guidance \(CFG\)\([Ho & Salimans 2022](https://arxiv.org/html/2608.14038#bib.bib11)\)during the sampling process\.
For flow matching, CFG replaces the conditional velocity approximationvθ\(xt,t,c\)v\_\{\\theta\}\(x\_\{t\},t,c\)with a linear combination of conditional and unconditional approximations;i\.e\.,\(1\+ω\)vθ\(xt,t,c\)−ωvθ\(xt,t,∅\)\(1\+\\omega\)v\_\{\\theta\}\(x\_\{t\},t,c\)\-\\omega v\_\{\\theta\}\(x\_\{t\},t,\\varnothing\), whereω\\omegais the guidance weight\. A value ofω=0\\omega=0corresponds to conditional sampling, whileω=−1\\omega=\-1corresponds to the unconditional one\. In practice, most of modern text\-to\-image \(T2I\) applications employ a constant guidance weightω≈7\.5\\omega\\approx 7\.5\([Rombach et al\. 2022](https://arxiv.org/html/2608.14038#bib.bib29)\)\. Using such high guidance weight increases prompt alignment \(i\.e\. CLIP score\) and improves image quality\.
Relying on a constant guidance weightω\\omegacan lead to artifacts and over\-saturation in the generated images\([Saharia et al\. 2022](https://arxiv.org/html/2608.14038#bib.bib32);[Kynkäänniemi et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib17);[Sadat et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib30)\)\. Manually designed dynamical guidance schedules\([Kynkäänniemi et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib17);[Wang et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib43)\)have been shown to mitigate these issues\. However, these schedules introduce hyperparameters that can be difficult to tune across datasets, and are typically agnostic to the specific conditioning, applying the same guidance scale regardless of the complexity of text prompt or the specific class label\.
Recently, efforts have shifted towards learning optimal guidance schedules that adapt to different conditioning information, thereby offering greater flexibility\.[Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)demonstrate that it is possible to learn time\- and conditioning\-dependent guidance weights that improve the Fréchet Inception Distance \(FID\)\([Heusel et al\. 2017](https://arxiv.org/html/2608.14038#bib.bib10)\)relative to constant CFG and manually designed CFG schedule baselines while maintaining comparable text alignment\. Their approach is motivated by*marginal consistency condition*which encourages marginals of the true noising and the guided denoising distributions to match\. Their practical implementation, however, relied on a stronger \(in a sense that it implies*marginal consistency*\),*self\-consistency*objective which is while stable to train, failed to surpass constant CFG in text alignment\.
In this paper, we shift our focus from satisfying the strict self\-consistency condition to the weakermarginal consistencycondition\. Unlike prior work that operates on raw latents via an energy distance kernel\([Székely & Rizzo 2004](https://arxiv.org/html/2608.14038#bib.bib41)\)with maximum mean discrepancy \(MMD\)\([Gretton et al\. 2012](https://arxiv.org/html/2608.14038#bib.bib8)\), we employ an adversarial framework to learn the guidance schedule by matching the marginal distribution of the guided trajectories to that of the true data distribution at every timestep\.
We demonstrate that this condition can be formulated as an objective that involves density ratio estimation, which naturally fits into a generative adversarial network \(GAN\) framework\([Goodfellow et al\. 2014](https://arxiv.org/html/2608.14038#bib.bib7)\)\. In our setup, a discriminator estimates the log\-density ratio between real and classifier\-free guided samples, while a generator learns to predict guidance scales that maximize this ratio\. By optimizing for marginal consistency across the sampling trajectory, our method achieves good prompt adherence as well as sample quality, outperforming constant guidance and learned guidance baselines in T2I benchmarks\.
Our main contributions are summarized as follows\. First, we propose a method to learn guidance schedules based on the marginal consistency condition, encouraging the distribution of guided samples to match the true data distribution at every timestep along the sampling trajectory\. Second, we use an adversarial framework to estimate density ratios and learn dynamic time\-, conditioning\-, and noisy sample\-dependent guidance scales\. Third, we show that our method outperforms constant and manually selected guidance schedule baselines as well as prior learned schedules on T2I benchmarks\.
## 2Background
Notation\.Following the flow matching \(FM\) convention\([Lipman et al\. 2023](https://arxiv.org/html/2608.14038#bib.bib21)\), our framework uses continuous timet∈\[0,1\]t\\in\[0,1\], wheret=0t=0is pure noise andt=1t=1is data\. Denoising steps proceed from a proposal timestepssto a target timesteptt\(s<ts<t\)\. Here,ptp\_\{t\}denotes the true marginal distribution of the noised data\. We also usept\|sp\_\{t\|s\}to denote the conditional distributionpt\|s\(xt\|xs\)p\_\{t\|s\}\(x\_\{t\}\|x\_\{s\}\)for anyssandtt;p1\|cp\_\{1\|c\}to denotep\(x1\|c\)p\(x\_\{1\}\|c\); andp1,cp\_\{1,c\}to denote the joint distributionp\(x1,c\)p\(x\_\{1\},c\)\. We writepts,𝝎\(xt\)p\_\{t\}^\{s,\\bm\{\\omega\}\}\(x\_\{t\}\)for the marginal distribution of the guided particles, obtained by taking a sampling step from timesstottusing the dynamically guided vector field \(see definitions below\)\. We use the bold notation𝝎\\bm\{\\omega\}to denote the schedule of the guidance weights\. Finally,𝒩\(μ,Σ\)\\mathcal\{N\}\(\\mu,\\Sigma\)denotes the Gaussian distribution with meanμ\\muand covarianceΣ\\Sigma, and𝒩\(x,μ,Σ\)\\mathcal\{N\}\(x;\\mu,\\Sigma\)represents its density evaluated atxx\.
Flow matching\.The goal of conditional generative modeling is to sample from a target conditional distributionp1\|cp\_\{1\|c\}onℝd\\mathbb\{R\}^\{d\}, wherec∼p\(c\)c\\sim p\(c\)is a conditioning signal \(e\.g\., a text prompt\)\. To achieve this, Flow matching\([Lipman et al\. 2023](https://arxiv.org/html/2608.14038#bib.bib21)\)constructs a probability path connecting a standard Gaussianp0=𝒩\(0,Id\)p\_\{0\}=\\mathcal\{N\}\(0,\\mathrm\{Id\}\)att=0t=0to the data distributionp1=pdatap\_\{1\}=p\_\{\\mathrm\{data\}\}att=1t=1by using
xt=\(1−t\)ε\+tx1,ε∼𝒩\(0,Id\),x1∼p1\|c\.\\textstyle x\_\{t\}=\(1\-t\)\\,\\varepsilon\+t\\,x\_\{1\},\\quad\\varepsilon\\sim\\mathcal\{N\}\(0,\\mathrm\{Id\}\),\\quad x\_\{1\}\\sim p\_\{1\|c\}\.\(1\)This induces the conditional distributionpt\|1\(xt\|x1\)=𝒩\(xt,tx1,\(1−t\)2Id\)p\_\{t\|1\}\(x\_\{t\}\|x\_\{1\}\)=\\mathcal\{N\}\(x\_\{t\};\\,t\\,x\_\{1\},\\,\(1\-t\)^\{2\}\\mathrm\{Id\}\)\. The conditional velocity field generating this path isut\(xt\|x1\)=x1−εu\_\{t\}\(x\_\{t\}\|x\_\{1\}\)=x\_\{1\}\-\\varepsilon\. A neural networkvθ\(xt,t,c\)v\_\{\\theta\}\(x\_\{t\},t,c\)is trained to approximate the marginal velocity field by minimizing the following objective
ℒ\(θ\)=𝔼t∼𝒰\[0,1\],\(x1,c\)∼p1,c,ε∼𝒩\(0,Id\)\[‖vθ\(xt,t,c\)−\(x1−ε\)‖2\]\.\\textstyle\\mathcal\{L\}\(\\theta\)=\\mathbb\{E\}\_\{t\\sim\\mathcal\{U\}\[0,1\],\\,\(x\_\{1\},c\)\\sim p\_\{1,c\},\\,\\varepsilon\\sim\\mathcal\{N\}\(0,\\mathrm\{Id\}\)\}\\left\[\\left\\\|v\_\{\\theta\}\(x\_\{t\},t,c\)\-\(x\_\{1\}\-\\varepsilon\)\\right\\\|^\{2\}\\right\]\.\(2\)
Conditional sampling\.At inference time, the samples are generated by integrating the following the ordinary differential equation \(ODE\) with learned velocity field starting fromx0∼𝒩\(0,Id\)x\_\{0\}\\sim\\mathcal\{N\}\(0,\\mathrm\{Id\}\),
dxt=vθ\(xt,t,c\)dt,\\mathrm\{d\}x\_\{t\}=v\_\{\\theta\}\(x\_\{t\},t,c\)\\mathrm\{d\}t,\(3\)fromt=0t=0tot=1t=1\. Using Euler solver and time discretization0=t0<t1<⋯<tN=10=t\_\{0\}<t\_\{1\}<\\dots<t\_\{N\}=1, we get
xtk\+1=xtk\+\(tk\+1−tk\)vθ\(xtk,tk,c\),k=0,…,N−1\.\\textstyle x\_\{t\_\{k\+1\}\}=x\_\{t\_\{k\}\}\+\(t\_\{k\+1\}\-t\_\{k\}\)\\,v\_\{\\theta\}\(x\_\{t\_\{k\}\},t\_\{k\},c\),\\quad k=0,\\dots,N\-1\.\(4\)For a single step from timessto timet\>st\>s, the update isxt=xs\+\(t−s\)vθ\(xs,s,c\)x\_\{t\}=x\_\{s\}\+\(t\-s\)\\,v\_\{\\theta\}\(x\_\{s\},s,c\)\. The predicted clean data from a noisy samplextx\_\{t\}can be recovered as
x^1\(xt,t,c\)=xt\+\(1−t\)vθ\(xt,t,c\)\.\\textstyle\\hat\{x\}\_\{1\}\(x\_\{t\},t,c\)=x\_\{t\}\+\(1\-t\)\\,v\_\{\\theta\}\(x\_\{t\},t,c\)\.\(5\)
Classifier\-Free Guidance \(CFG\)\.Letvθ\(xt,t,∅\)v\_\{\\theta\}\(x\_\{t\},t,\\varnothing\)be the unconditional velocity \(trained by randomly dropping the conditioning\) andω\\omegais the guidance weight\. Classifier\-Free Guidance\([Ho & Salimans 2022](https://arxiv.org/html/2608.14038#bib.bib11)\)replaces the conditional velocity with the guided velocity
vθcfg\(xt,t,c,ω\)=vθ\(xt,t,c\)\+ω\(vθ\(xt,t,c\)−vθ\(xt,t,∅\)\),\\textstyle v\_\{\\theta\}^\{\\mathrm\{cfg\}\}\(x\_\{t\},t,c;\\omega\)=v\_\{\\theta\}\(x\_\{t\},t,c\)\+\\omega\\left\(v\_\{\\theta\}\(x\_\{t\},t,c\)\-v\_\{\\theta\}\(x\_\{t\},t,\\varnothing\)\\right\),\(6\)ω=−1\\omega=\-1yields unconditional sampling,ω=0\\omega=0conditional sampling, whileω\>0\\omega\>0amplifies the conditioning\. Typically,ω≈7\.5\\omega\\approx 7\.5is standard for T2I applications\([Saharia et al\. 2022](https://arxiv.org/html/2608.14038#bib.bib32);[Rombach et al\. 2022](https://arxiv.org/html/2608.14038#bib.bib29)\)\. However, constantω\\omegaacross time and conditioning may lead to artifacts such as over\-saturation\([Kynkäänniemi et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib17);[Sadat et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib30)\)\.
Dynamic guidance schedules\.A natural extension of CFG is to allow the guidance weightω\\omegato vary across the sampling trajectory, i\.e\.,ω=ω\(t\)\\omega=\\omega\(t\)\. Several heuristic schedules have been proposed, including limiting guidance to a time interval \(LIG;[Kynkäänniemi et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib17)\), clamp\-linear schedules \(CLG;[Wang et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib43)\), and time\-dependent rescaling\([Sadat et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib31)\)\. While these can improve over constant guidance, they still apply the same schedule globally across all samples and conditionings, and require manual tuning for each model and application\.
Learnable guidance schedules and marginal consistency\.Rather than hand\-designing a schedule, one can*learn*guidance weightsωc,\(s,t\)\\omega\_\{c,\(s,t\)\}as functions of the conditioningccand the timestepss,ts,twiths<ts<t\(timettis the target and timessis the source time\)\. One could attempt to learnω\\omegawith guided velocityvθcfg\(xs,s,c,ω\)v\_\{\\theta\}^\{\\mathrm\{cfg\}\}\(x\_\{s\},s,c;\\omega\)equation[6](https://arxiv.org/html/2608.14038#S2.E6)from equation[2](https://arxiv.org/html/2608.14038#S2.E2)\. However, this will necessarily lead toω=0\\omega=0sincevθv\_\{\\theta\}is already a minimizer of equation[2](https://arxiv.org/html/2608.14038#S2.E2)\. Recent work in learned guidance has explored enforcing*consistency conditions*to learnω\\omega\. Let the true marginal at timettbe given by
pt\(xt\)=∫pt\|1\(xt\|x1\)p1,c\(x1,c\)dx1𝑑c\.p\_\{t\}\(x\_\{t\}\)=\\int p\_\{t\|1\}\(x\_\{t\}\|x\_\{1\}\)\\,p\_\{1,c\}\(x\_\{1\},c\)\\,\\mathrm\{d\}x\_\{1\}\\,\\mathrm\{d\}c\.\(7\)Sampling\(x1,c\)∼p1,c\(x\_\{1\},c\)\\sim p\_\{1,c\}, noising to timessviaxs∼ps\|1\(⋅\|x1\)x\_\{s\}\\sim p\_\{s\|1\}\(\\cdot\|x\_\{1\}\), and taking a guided step fromsstottusing \(equation[6](https://arxiv.org/html/2608.14038#S2.E6)\) with weightω\\omega, will lead to a*guided marginal*
pts,𝝎\(xt\)=∫\[∫pt\|s,c\(θ,𝝎\)\(xt\|xs,c\)ps\|1\(xs\|x1\)dxs\]p1,c\(x1,c\)dx1𝑑c,p\_\{t\}^\{s,\\bm\{\\omega\}\}\(x\_\{t\}\)=\\int\\left\[\\int p\_\{t\|s,c\}^\{\(\\theta,\\bm\{\\omega\}\)\}\(x\_\{t\}\|x\_\{s\},c\)\\,p\_\{s\|1\}\(x\_\{s\}\|x\_\{1\}\)\\,\\mathrm\{d\}x\_\{s\}\\,\\right\]p\_\{1,c\}\(x\_\{1\},c\)\\,\\mathrm\{d\}x\_\{1\}\\,\\mathrm\{d\}c,\(8\)wherept\|s,c\(θ,𝝎\)\(xt\|xs,c\)p\_\{t\|s,c\}^\{\(\\theta,\\bm\{\\omega\}\)\}\(x\_\{t\}\|x\_\{s\},c\)is the guided transition kernel from timesstott; for a deterministic Euler solver,pt\|s\(θ,𝝎\)\(xt\|xs,c\)=δ\(xt−xs−\(t−s\)vθcfg\(xs,s,c,𝝎\)\)p\_\{t\|s\}^\{\(\\theta,\\bm\{\\omega\}\)\}\(x\_\{t\}\|x\_\{s\},c\)=\\updelta\\\!\\left\(x\_\{t\}\-x\_\{s\}\-\(t\-s\)\\,v\_\{\\theta\}^\{\\mathrm\{cfg\}\}\(x\_\{s\},s,c;\\,\\bm\{\\omega\}\)\\right\)\. We say that the guided process satisfies*marginal consistency*if, for all0≤s<t≤10\\leq s<t\\leq 1,
pts,𝝎\(xt\)≈pt\(xt\)\.p\_\{t\}^\{s,\\bm\{\\omega\}\}\(x\_\{t\}\)\\approx p\_\{t\}\(x\_\{t\}\)\.\(9\)[Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)enforced a stronger*self\-consistency*variant of equation[9](https://arxiv.org/html/2608.14038#S2.E9)—matchingpt\|1,cp\_\{t\|1,c\}andpt\|1,cs,𝝎p^\{s,\\bm\{\\omega\}\}\_\{t\|1,c\}\(the inner integral in equation[8](https://arxiv.org/html/2608.14038#S2.E8)\)—using MMD\([Gretton et al\. 2012](https://arxiv.org/html/2608.14038#bib.bib8)\)with energy kernel\([Székely & Rizzo 2004](https://arxiv.org/html/2608.14038#bib.bib41)\), achieving strong FID improvements but not consistently outperforming constant guidance on text alignment metrics\. They argued that the gradients of the objective based on*marginal consistency*suffer from high variance due to a marginalization over\(x1,c\)\(x\_\{1\},c\)and the use of the MMD with a fixed energy kernel defined on raw high dimensional data\. In the next section, we propose an adversarial approach to enforce marginal consistency via density ratio estimation, yielding superior text\-to\-image performance\.
## 3Learning to Guide with Density Ratio Estimation
Figure 1:Marginal consistency via GAN\. We draw two independent samples,x11x\_\{1\}^\{1\}andx12x\_\{1\}^\{2\}, from the data distribution\. First samplex11x\_\{1\}^\{1\}is noised to the timessand then denoised with guidance to the timettwhich denotes our generated path\. Second samplex12x\_\{1\}^\{2\}is noised to the timettthrough forward process and denotes the real samples\. The discriminator is then trained to discriminate between these two\.We introduce our method for learning the dynamic guidance weights𝝎\\bm\{\\omega\}for diffusion sampling with a generative adversarial network \(GAN\)\. To enforce the*marginal consistency*condition, we derive an adversarial objective based on density ratio estimation using a learned discriminator\. We assume access to a pre\-trained conditional flow matching model,vθ\(xt,t,c\)v\_\{\\theta\}\(x\_\{t\},t,c\), and an unconditional model,vθ\(xt,t,∅\)v\_\{\\theta\}\(x\_\{t\},t,\\varnothing\)\.
### 3\.1Guidance learning objective
In standard CFG \(equation[6](https://arxiv.org/html/2608.14038#S2.E6)\), a static scalarω\\omegacontrols the guidance strength uniformly across all timesteps and inputs\. We parametrize the guidance weights to be a function of the times\(s,t\)\(s,t\), the conditioningcc, and the current noisy samplexsx\_\{s\}i\.e\.𝝎xs,c,\(s,t\)\{\\bm\{\\omega\}\}\_\{x\_\{s\},c,\(s,t\)\}\. Intuitively, adding more information to the guidance weights might allow the model to more finely adjust the guidance weights and adapt to a specific noise trajectory\.
Adversarial objective\.For\(s,t\)∼p\(s,t\)\(s,t\)\\sim p\(s,t\)\(see Section[3\.2](https://arxiv.org/html/2608.14038#S3.SS2)for more details\), the*marginal consistency*condition dictatespts,𝝎\(xt\)≈pt\(xt\)p\_\{t\}^\{s,\\bm\{\\omega\}\}\(x\_\{t\}\)\\approx p\_\{t\}\(x\_\{t\}\), i\.e\. the distribution of our guided particles should match the true data distribution\. This can be achieved by minimizing the Kullback\-Leibler \(KL\) divergence
𝔼\(s,t\)∼p\(s,t\)\[KL\(pts,𝝎\(xt\)∥pt\(xt\)\)\]\.\\textstyle\\mathbb\{E\}\_\{\(s,t\)\\sim p\(s,t\)\}\\left\[\\mathrm\{KL\}\\left\(p\_\{t\}^\{s,\\bm\{\\omega\}\}\(x\_\{t\}\)\\\|p\_\{t\}\(x\_\{t\}\)\\right\)\\right\]\.\(10\)This divergence can be rewritten in terms of the density ratiort𝝎\(xt\)=pt\(xt\)/pts,𝝎\(xt\)r^\{\\bm\{\\omega\}\}\_\{t\}\(x\_\{t\}\)=p\_\{t\}\(x\_\{t\}\)/p\_\{t\}^\{s,\\bm\{\\omega\}\}\(x\_\{t\}\)as:
KL\(pts,𝝎\(xt\)∥pt\(xt\)\)=−𝔼pts,𝝎\[logrt𝝎\(xt\)\]\.\\textstyle\\mathrm\{KL\}\\left\(p\_\{t\}^\{s,\\bm\{\\omega\}\}\(x\_\{t\}\)\\\|p\_\{t\}\(x\_\{t\}\)\\right\)=\-\\mathbb\{E\}\_\{p\_\{t\}^\{s,\\bm\{\\omega\}\}\}\\left\[\\log r\_\{t\}^\{\\bm\{\\omega\}\}\(x\_\{t\}\)\\right\]\.\(11\)We train a generator to predict𝝎\\bm\{\\omega\}to minimize this divergence and a discriminator to estimate this log\-density ratio, providing training signal to the generator\. The approach is illustrated in Figure[1](https://arxiv.org/html/2608.14038#S3.F1)\.
Discriminator\.We define a discriminatordϕ\(xt,s,t,c\)d\_\{\\phi\}\(x\_\{t\},s,t,c\)with parametersϕ\\phiwhich needs to distinguish between true marginal samplesxtreal∼pt\(xt\)x\_\{t\}^\{\\text\{real\}\}\\sim p\_\{t\}\(x\_\{t\}\)and guided marginal samplesxtfake\(𝝎\)∼pts,𝝎\(xt\)x\_\{t\}^\{\\text\{fake\}\}\(\\bm\{\\omega\}\)\\sim p\_\{t\}^\{s,\\bm\{\\omega\}\}\(x\_\{t\}\)\. We optimize this via a standard binary cross\-entropy loss \(minus sign due to maximization\):
ℒdisc\(ϕ\)=−\{𝔼pt\[logσ\(dϕ\)\]\+𝔼pts,𝝎\[log\(1−σ\(dϕ\)\)\]\},\\textstyle\\mathcal\{L\}\_\{disc\}\(\\phi\)=\-\\left\\\{\\mathbb\{E\}\_\{p\_\{t\}\}\\left\[\\log\\sigma\(d\_\{\\phi\}\)\\right\]\+\\mathbb\{E\}\_\{p\_\{t\}^\{s,\\bm\{\\omega\}\}\}\\left\[\\log\(1\-\\sigma\(d\_\{\\phi\}\)\)\\right\]\\right\\\},\(12\)whereσ\(⋅\)\\sigma\(\\cdot\)is the sigmoid function\. At convergence, the optimal discriminatord⋆d^\{\\star\}is a Bayes classifier\. Extracting the logit from this optimal discriminator directly recovers the log\-density ratio:
log\(d⋆1−d⋆\)=log\(pt\(xt\)pts,𝝎\(xt\)\)=logrt𝝎\(xt\)≈dϕ\(xt,s,t,c\)\.\\textstyle\\log\\left\(\\dfrac\{d^\{\\star\}\}\{1\-d^\{\\star\}\}\\right\)=\\log\\left\(\\dfrac\{p\_\{t\}\(x\_\{t\}\)\}\{p\_\{t\}^\{s,\\bm\{\\omega\}\}\(x\_\{t\}\)\}\\right\)=\\log r\_\{t\}^\{\\bm\{\\omega\}\}\(x\_\{t\}\)\\approx d\_\{\\phi\}\(x\_\{t\},s,t,c\)\.\(13\)
We apply a standardR1R\_\{1\}gradient penalty\([Mescheder et al\. 2018](https://arxiv.org/html/2608.14038#bib.bib23)\)to the discriminator to ensure smooth ratio estimation with a constantγ\>0\\gamma\>0\(hyperparameter\):
ℒreg\(ϕ\)=γ2𝔼xtreal\[‖∇xtdϕ\(xtreal,s,t,c\)‖2\]\.\\mathcal\{L\}\_\{\\text\{reg\}\}\(\\phi\)=\\frac\{\\gamma\}\{2\}\\mathbb\{E\}\_\{x\_\{t\}^\{\\text\{real\}\}\}\[\\\|\\nabla\_\{x\_\{t\}\}d\_\{\\phi\}\(x\_\{t\}^\{\\text\{real\}\},s,t,c\)\\\|^\{2\}\]\.\(14\)
The total loss for the discriminator is
ℒD\(ϕ\)=ℒdisc\(ϕ\)−γ2𝔼xtreal\[‖∇xtdϕ\(xtreal,s,t,c\)‖2\]\\textstyle\\mathcal\{L\}\_\{D\}\(\\phi\)=\\mathcal\{L\}\_\{disc\}\(\\phi\)\-\\frac\{\\gamma\}\{2\}\\mathbb\{E\}\_\{x\_\{t\}^\{\\text\{real\}\}\}\[\\\|\\nabla\_\{x\_\{t\}\}d\_\{\\phi\}\(x\_\{t\}^\{\\text\{real\}\},s,t,c\)\\\|^\{2\}\]\(15\)
Generator\.We define a generator or a guidance network𝝎xs,c,\(s,t\)ψ=𝝎\(xs,s,t,c,ψ\)\>0\\bm\{\\omega\}^\{\\psi\}\_\{x\_\{s\},c,\(s,t\)\}=\\bm\{\\omega\}\(x\_\{s\},s,t,c;\\psi\)\>0with parametersψ\\psi, which outputs non\-negative guidance weights\. Employing these weights via guided velocity equation[6](https://arxiv.org/html/2608.14038#S2.E6)specifies guided marginal distributionpts,𝝎\(xt\)p\_\{t\}^\{s,\\bm\{\\omega\}\}\(x\_\{t\}\)equation[8](https://arxiv.org/html/2608.14038#S2.E8)\. We write herextfake\(ψ\)∼pts,𝝎x\_\{t\}^\{\\text\{fake\}\}\(\\psi\)\\sim p\_\{t\}^\{s,\\bm\{\\omega\}\}to highlight the dependence on parametersψ\\psi\. The generator is trained by optimizing
ℒgen\(ψ\)=𝔼pts,𝝎\[−dϕ\(xtfake\(ψ\),s,t,c\)\]\.\\textstyle\\mathcal\{L\}\_\{gen\}\(\\psi\)=\\mathbb\{E\}\_\{p\_\{t\}^\{s,\\bm\{\\omega\}\}\}\\left\[\-d\_\{\\phi\}\(x\_\{t\}^\{\\text\{fake\}\}\(\\psi\),s,t,c\)\\right\]\.\(16\)
To prevent the guidance scale from exploding or over\-correcting out of distribution, we introduce a stabilizingL2L\_\{2\}penalty to the generator loss with time\-dependent regularization weightλ\(t\)\\lambda\(t\),
ℛ\(𝝎,t\)=λ\(t\)𝝎2\.\\textstyle\\mathcal\{R\}\(\{\\bm\{\\omega\},t\}\)=\\lambda\(t\)\\bm\{\\omega\}^\{2\}\.\(17\)In practice, we setλ\(t\)=at2\\lambda\(t\)=at^\{2\}, whereaais a hyperparameter\.
Reward\-based regularization\.Similar to prior work\([Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)\), we introduce a reward\-based loss term\. We compute the first\-order approximation of the clean data usingvtcfg,𝝎v\_\{t\}^\{\\text\{cfg\},\\bm\{\\omega\}\}as
x^1\(𝝎\)=xs\+\(1−s\)⋅vtcfg,𝝎\(xs,s,1,c,ψ\)\\textstyle\\hat\{x\}\_\{1\}\(\\bm\{\\omega\}\)=x\_\{s\}\+\(1\-s\)\\cdot v\_\{t\}^\{\\text\{cfg\},\\bm\{\\omega\}\}\(x\_\{s\},s,1,c;\\psi\)\(18\)We define the reward loss as the negative expectation of a practitioner\-defined reward functionR\(x^1,c\)R\(\\hat\{x\}\_\{1\},c\), such as the CLIP score for text\-to\-image models,
ℒReward\(𝝎\)=−𝔼\[R\(x^1\(𝝎\),c\)\]\.\\textstyle\\mathcal\{L\}\_\{\\text\{Reward\}\}\(\\bm\{\\omega\}\)=\-\\mathbb\{E\}\\left\[R\(\\hat\{x\}\_\{1\}\(\\bm\{\\omega\}\),c\)\\right\]\.\(19\)The total loss for the generator is given as
ℒG\(ψ\)=ℒgen\(ψ\)\+ℛ\(𝝎,t\)\+ηℒReward\(𝝎\),\\displaystyle\\textstyle\\mathcal\{L\}\_\{\\text\{G\}\}\(\\psi\)=\\mathcal\{L\}\_\{gen\}\(\\psi\)\+\\mathcal\{R\}\(\{\\bm\{\\omega\},t\}\)\+\\eta\\mathcal\{L\}\_\{\\text\{Reward\}\}\(\\bm\{\\omega\}\),\(20\)whereη\>0\\eta\>0is a hyperparameter\. In our framework, adversarial loss and regularization loss terms ensure that the samples remain on the data manifold while the reward term pushes for better alignment\.
### 3\.2Guidance Learning Algorithm Settings
Time distributionp\(s,t\)p\(s,t\)\.We use the same time distributionp\(s,t\)p\(s,t\)as previously leveraged in[Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)in our experiments, and we re\-write it in a flow matching notation\. The target time is given byt∼𝒰\[ζ\+δ,1−ζ\]t\\sim\\mathcal\{U\}\[\\zeta\+\\delta,\\,1\-\\zeta\], whereζ\\zetais a small constant which serves as boundary buffers that prevent optimization from encountering numerical singularities or vanishing signals found at extreme noise or pure data limits\. In our experiment we set it to small constant\(10−2\)\(10^\{\-2\}\)without further tuning\. The step size between the source and target timesteps isΔs∼𝒰\[δ,t−ζ\]\\Delta s\\sim\\mathcal\{U\}\[\\delta,\\,t\-\\zeta\]\. Therefore, the source time iss=t−Δss=t\-\\Delta s\. Similar to prior observations, we observe thatδ=0\.1\\delta=0\.1slightly outperformsδ=0\.01\\delta=0\.01, even if inference utilizes smaller steps\. See[Table4](https://arxiv.org/html/2608.14038#S5.T4)for an ablation onδ\\delta\. This is likely because a largerδ\\deltaprovides a more robust signal to the discriminator\. To ensure that the generator interpolates smoothly to the smaller step sizes utilized at inference, we make our guidance weight predictor more robust by conditioning on coordinate\-invariant geometric statistics rather than raw high dimensional latents and Fourier embeddings for timesteps\. See our discussion on network parametrization below\. In Appendix[C](https://arxiv.org/html/2608.14038#A3), we discuss alternative choices of time distribution\.
Network Parametrization\.The discriminatordϕ\(xt,s,t,c\)d\_\{\\phi\}\(x\_\{t\},s,t,c\)is a convolutional network with parametersϕ\\phi\. The guidance network𝝎\(xs,s,t,c,ψ\)\\bm\{\\omega\}\(x\_\{s\},s,t,c;\\psi\)is a lightweight multi\-layer perceptron \(MLP\) with parametersψ\\psi\. Becausexsx\_\{s\}is high dimensional latent, feeding raw latents into the MLP is computationally inefficient\. We instead compute a vector of summary statistics that captures the relationship between the current state, the conditioning, and the sampling trajectory\. Specifically, we extract the following statistics: 1\) The log norm of the conditional velocity‖vθ\(xs,s,c\)‖\\\|v\_\{\\theta\}\(x\_\{s\},s,c\)\\\|and the CFG direction‖vδ‖\\\|v\_\{\\delta\}\\\|, wherevδ=vθ\(xs,s,c\)−vθ\(xs,s,∅\)v\_\{\\delta\}=v\_\{\\theta\}\(x\_\{s\},s,c\)\-v\_\{\\theta\}\(x\_\{s\},s,\\varnothing\)\. 2\) The cosine similarity between the current latentxsx\_\{s\}and the guidance directionvδv\_\{\\delta\}, calculated asxs⋅vδ‖xs‖‖vδ‖\\frac\{x\_\{s\}\\cdot v\_\{\\delta\}\}\{\\\|x\_\{s\}\\\|\\\|v\_\{\\delta\}\\\|\}\. This captures how well the current sample aligns with the intended conditioning signal\. 3\) The log distance to the data manifoldlog\(1−s\)\\log\(1\-s\)and the log step size of the current jumplog\(t−s\)\\log\(t\-s\)\. The MLP takes a concatenated feature vector with these values as an input\. In addition, we find it useful to feed in Fourier embeddings ofss,ttandt−st\-sto the generator\. This helps the network interpolate smoothly to smaller step sizes utilized at inference\. We apply softplus activation at the output to ensure strictly non\-negative guidance weights, mirroring the standard CFG behavior\. For more architectural details, see[AppendixC](https://arxiv.org/html/2608.14038#A3)\.
Training strategy\.The training of our guidance scheduler follows an adversarial paradigm that alternates between updating the discriminator and the generatori\.e\.,the guidance MLP\. To ensure stable convergence and accurate density ratio estimation, we adopt the Two\-Time\-Scale Update Rule \(TTUR\)\([Heusel et al\. 2017](https://arxiv.org/html/2608.14038#bib.bib10)\), performing a single gradient step for each network alternately\.
A key distinction in our training loop is the use of independent image\-conditioning pairs,\(x11,c1\)\(x\_\{1\}^\{1\},c^\{1\}\)and\(x12,c2\)\(x\_\{1\}^\{2\},c^\{2\}\), drawn from the dataset𝒟\\mathcal\{D\}\. We use the first pair to generate the “real” marginal targetxtrealx\_\{t\}^\{\\text\{real\}\}and the second pair to define the “fake” guided samplextfakex\_\{t\}^\{\\text\{fake\}\}\. This independent sampling is fundamental to enforcing marginal consistency; it prevents the discriminator from trivially learning to identify the specific noise or structure of a single trajectory\. Instead, it forces the discriminator to evaluate whether the distribution of the guided particles matches the global data distribution at that specific timestep\. While this independent sampling is theoretically more aligned with the marginal consistency objective, we observe in practice that the framework is robust to this choice, yielding comparable performance even when correlated pairs are used\. See[Table13](https://arxiv.org/html/2608.14038#A2.T13)for quantitative results\.
Putting together the above components, we summarize our method in[Algorithm1](https://arxiv.org/html/2608.14038#alg1)\.
Pretrained FM model
vθv\_\{\\theta\}, a T2I dataset, time distribution
p\(s,t\)p\(s,t\),
γ\\gammadiscriminator regularization parameter,
λ\\lambdagenerator regularization parameter,
η\\etagenerator reward score parameter\. Discriminator
dϕ\(xt,s,t,c\)d\_\{\\phi\}\(x\_\{t\},s,t,c\)with parameters
ϕ\\phiand guidance network
𝝎\(xs,s,t,c,ψ\)\\bm\{\\omega\}\(x\_\{s\},s,t,c;\\psi\)with parameters
ψ\\psi\. Learning rates
αD\\alpha\_\{D\}and
αG\\alpha\_\{G\}for discriminator and generator\.
whilenot convergeddo
Sample times
s,t∼p\(s,t\)s,t\\sim p\(s,t\)
\(Real path\) Sample
\(x11,c1\)∼𝒟\(x\_\{1\}^\{1\},c^\{1\}\)\\sim\\mathcal\{D\},
ϵ∼𝒩\(0,I\)\\epsilon\\sim\\mathcal\{N\}\(0,I\),
xtreal=\(1−t\)ϵ\+tx11x\_\{t\}^\{\\text\{real\}\}=\(1\-t\)\\epsilon\+tx\_\{1\}^\{1\}
Sample
\(x12,c2\)∼𝒟\(x\_\{1\}^\{2\},c^\{2\}\)\\sim\\mathcal\{D\},
z∼𝒩\(0,I\)z\\sim\\mathcal\{N\}\(0,I\),
xs=\(1−s\)z\+sx12x\_\{s\}=\(1\-s\)z\+sx\_\{1\}^\{2\}
Compute
vsc=vθ\(xs,s,c2\)v^\{c\}\_\{s\}=v\_\{\\theta\}\(x\_\{s\},s,c^\{2\}\)and
vsu=vθ\(xs,s,∅\)v^\{u\}\_\{s\}=v\_\{\\theta\}\(x\_\{s\},s,\\varnothing\)
Compute
vscfg,𝝎\(ψ\)=vsc\+𝝎\(xs,s,t,c,ψ\)\(vsc−vsu\)v\_\{s\}^\{\\text\{cfg\},\\bm\{\\omega\}\}\(\\psi\)=v\_\{s\}^\{c\}\+\\bm\{\\omega\}\(x\_\{s\},s,t,c;\\psi\)\(v\_\{s\}^\{c\}\-v\_\{s\}^\{u\}\)
\(Fake path\)
xtfake\(ψ\)=xs\+vscfg,𝝎\(ψ\)\(t−s\)x\_\{t\}^\{\\text\{fake\}\}\(\\psi\)=x\_\{s\}\+v\_\{s\}^\{\\text\{cfg\},\\bm\{\\omega\}\}\(\\psi\)\(t\-s\)⊳\\trianglerightEuler/DDIM ODE sampling
Update GAN discriminator
dϕd\_\{\\phi\}by optimizing
ℒD\(ϕ\)\\mathcal\{L\}\_\{D\}\(\\phi\)\(equation[15](https://arxiv.org/html/2608.14038#S3.E15)\)
ϕ←ϕ−αD∇ℒD\(ϕ\)\\displaystyle\\phi\\leftarrow\\phi\-\\alpha\_\{D\}\\nabla\\mathcal\{L\}\_\{D\}\(\\phi\)
Use the updated discriminator to update the generator
ψ\\psiby minimizing
ℒG\(ψ\)\\mathcal\{L\}\_\{G\}\(\\psi\)\(equation[20](https://arxiv.org/html/2608.14038#S3.E20)\)
ψ←ψ−αG∇ℒG\(ψ\)\\psi\\leftarrow\\psi\-\\alpha\_\{G\}\\nabla\\mathcal\{L\}\_\{G\}\(\\psi\)\(21\)
Algorithm 1Algorithm to learn parameter of CFG with Flow Matching model\.
## 4Related Work
Classifier\-free guidance and Variants\.Classifier\-Free Guidance \(CFG\)\([Ho & Salimans 2022](https://arxiv.org/html/2608.14038#bib.bib11)\)has become the standard for conditional sampling in diffusion and flow models\. A significant amount of effort has been directed towards understanding the underlying mechanics of this success\.[Chidambaram et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib3)find that CFG might fail to sample from the intended tilted distribution, instead driving the trajectory towards "archetypes" of the class in the distribution\. Further analysis in high\-dimensional settings\([Pavasovic et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib25)\)and general data distributions\([Li & Jiao 2025](https://arxiv.org/html/2608.14038#bib.bib19)\)has clarified how CFG alters the geometry of the score\-field\. From a practical perspective, several training\-free strategies have been proposed to mitigate oversaturation and artifacts associated with high constant guidance scales\. CFG\+\+\([Chung et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib4)\)introduces manifold constraints to the sampling process, while[Sadat et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib30)decompose network predictions into parallel and orthogonal components\. Autoguidance\([Karras et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib14)\)rethinks the guidance direction by using a lower\-quality version of the model as the unconditional reference\.
Heuristic\-based dynamic schedules have also seen rapid development\.[Kynkäänniemi et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib17)apply guidance on a limited interval to improve image fidelity and alignment, while[Wang et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib43)provide an extensive analysis of guidance dynamics\. We adapt clamp\-linear schedule from this work as a baseline\.[Malarz et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib22)use the density of a beta distribution to modulate the guidance signal\. Other training\-free methods include rectified guidance\([Xia et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib46)\), geo\-guide[Poleski et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib26), and adaptive guidance\([Castillo et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib2)\)\. While these methods avoid the cost of training, they generally rely on global schedules that are agnostic to the specific semantic complexity of the conditioning\.
Our work belongs to the emerging category of learned guidance schedules\. Unlike[Felix et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib5)which uses internal model predictions;i\.e\.,feedback during inference, we optimize a dedicated guidance scheduler\. Closely related to our work is MMD guidance\([Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)\)\. The key distinction is that we enforce a weaker marginal consistency condition instead of the strict self\-consistency condition in an adversarial framework\.
Another line of work that is related to our work is discriminator guidance\([Kim et al\. 2022](https://arxiv.org/html/2608.14038#bib.bib15);[Verine et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib42)\)\. These methods use a discriminator as corrector to provide auxiliary score gradient, thereby increasing inference\-time complexity\. On the other hand, we use the discriminator strictly as a training supervisor to learn optimal guidance schedule\. As our generator is a lightweight MLP, our method can achieve better alignment with the prompts while maintaining the sampling efficiency of the original backbone\.
Adversarial training in Generative Modeling\.Our method leverages the principles of Generative Adversarial Networks\([Goodfellow et al\. 2014](https://arxiv.org/html/2608.14038#bib.bib7)\)to learn dynamic guidance schedules\. GANs were traditionally used as standard alone generative models, but later on they have also been integrated into likelihood\-based settings, especially in the context of diffusion models, to enhance sampling efficiency and quality\. Diffusion GAN\([Wang et al\. 2023](https://arxiv.org/html/2608.14038#bib.bib44)\)and Denoising Diffusion GAN\([Xiao et al\. 2022](https://arxiv.org/html/2608.14038#bib.bib47)\)use a discriminator to match the conditional or marginal distributions of denoising steps, thereby speeding up sampling while maintaining visual fidelity\. In this work, we do not use the adversarial loss to train the primary generative backbone\. Instead, we use it to provide a training signal for the guidance scheduler\.
## 5Experiments
### 5\.1Experimental Setup
Datasets and Models\.We evaluate the performance of our method on the standard text\-to\-image generation task using MS\-COCO 2014 dataset\([Lin et al\. 2014](https://arxiv.org/html/2608.14038#bib.bib20)\)at512×512512\\times 512resolution\. Our experiments utilize two sizes of a custom\-trained flow matching model\([Lipman et al\. 2023](https://arxiv.org/html/2608.14038#bib.bib21)\)based on the Multimodal Diffusion Transformer backbone\([Labs et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib18)\)with parameter counts of 740M \(MMDiT\-XS\) and 1\.05B \(MMDiT\-S\)\. During all subsequent training of the guidance network, this remains frozen\. For CFG, instead of using empty conditioning∅\\varnothingin equation[6](https://arxiv.org/html/2608.14038#S2.E6), we use a fixed negative promptcneg=c\_\{\\text\{neg\}\}=“blurred, blurry, disfigured, ugly, tiling, poorly drawn” and therefore replace the unconditional velocity termvθ\(xt,t,∅\)v\_\{\\theta\}\(x\_\{t\},t,\\varnothing\)byvθ\(xt,t,cneg\)v\_\{\\theta\}\(x\_\{t\},t,c\_\{\\text\{neg\}\}\)\. We found that it led to higher quality images than∅\\varnothingand we use it for our learned models and the baselines\. We provide detailed hyperparameter settings for optimizer as well as details of the model architecture in[AppendixC](https://arxiv.org/html/2608.14038#A3)\.
Baselines\.We evaluate our method against a diverse set of guidance strategies: 1\)Fixed Guidance: We consider unguided \(ω=0\\omega=0\) and the standard constant CFG \(ω=7\.5\\omega=7\.5\) as our primary foundational baselines\. 2\)Heuristic\-based guidance schedules: We evaluate state\-of\-the\-art manually designed schedules, including Limited Interval Guidance \(LIG\)\([Kynkäänniemi et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib17)\)and Clamp\-linear schedules \(CLG\)\([Wang et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib43)\)\. For these baselines, we perform extensive hyperparameter tuning to find the optimal ranges for MS\-COCO, as detailed in[AppendixB](https://arxiv.org/html/2608.14038#A2)\. 3\)Learned Self\-Consistency \(MMD\+SC\) / Marginal\-Consistency \(MMD\+MC\): We compare against the approach by[Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6), which utilizes Maximum Mean Discrepancy and an energy kernel to enforce self\-consistency / marginal\-consistency\.
Evaluation Metrics\.We employ a suite of metrics to better capture the trade\-off between image fidelity and text alignment\. We use FID\([Heusel et al\. 2017](https://arxiv.org/html/2608.14038#bib.bib10)\)to measure the distributional distance between generated and real images\. We report the CLIP score\([Hessel et al\. 2021](https://arxiv.org/html/2608.14038#bib.bib9);[Radford et al\. 2021](https://arxiv.org/html/2608.14038#bib.bib28)\)to measure alignment between the generated images match the input prompts\. We include LAION Aesthetics metric\([Schuhmann 2022](https://arxiv.org/html/2608.14038#bib.bib35)\)to capture visual quality\. Finally, we also report Human Preference Score v2 \(HPSv2\)\([Wu et al\. 2023](https://arxiv.org/html/2608.14038#bib.bib45)\)and PickScore\([Kirstain et al\. 2023](https://arxiv.org/html/2608.14038#bib.bib16)\)to measure alignment with human preferences, and prompt adherence\.
### 5\.2Text\-to\-Image \(T2I\) Generation
Table 1:MS COCO512×512512\\times 512\. Performance of different methods on a small, MMDiT\-XS model\. We highlight the best metric inbold\.Table 2:MS COCO512×512512\\times 512\. Performance of different methods on a large, MMDiT\-S model\. We highlight the best metric inbold\.Results\.We summarize the quantitative performance of our method on MS\-COCO 512×\\times512 benchmark in[Table1](https://arxiv.org/html/2608.14038#S5.T1)for MMDiT\-XS and in[Table2](https://arxiv.org/html/2608.14038#S5.T2)for MMDiT\-S\. We used the same generator architecture for MMD\+SC/MMD\+MC baseline and we add more extensive comparisons in[SectionB\.1](https://arxiv.org/html/2608.14038#A2.SS1), where we replicated the same setup as in\([Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)\)\. Across both model sizes, our approach based on adversarial framework that enforces marginal consistency \(GAN \+ MC\) consistently achieves better metrics compared to the baselines in almost all alignment and human preference metrics\. Specifically, our method yields superior CLIP, Aesthetic, and HPSv2 scores compared to constant guidance and manually tuned heuristic schedules\.
As shown in[Table1](https://arxiv.org/html/2608.14038#S5.T1), MMDiT\-XS model benefits significantly from our learned schedule\. While the LIG achieves the lowest FID \(25\.64\), it does so at the cost of lower alignment\. Our method achieves a CLIP score of 0\.305 and an Aesthetic score of 5\.32, the highest in the group\. The gains observed in the smaller model translate effectively to the larger MMDiT\-S architecture as shown in[Table2](https://arxiv.org/html/2608.14038#S5.T2)\. GAN \+ MC outperforms baselines on CLIP \(0\.3068\), Aesthetic \(5\.34\), and HPSv2 \(0\.2856\)\. This indicates that our approach scales with model capacity, providing a more reliable guidance signal than manually engineered schedules\.
This suggests that learning a dynamic, conditioning\-dependent schedule via marginal consistency allows the model to better navigate the trade\-off between image realism and adherence to complex text prompts\. Our approach also demonstrates a clear advantage over self\-consistency framework of[Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)on alignment and human preference metrics\. Finally, as observed in[Tables1](https://arxiv.org/html/2608.14038#S5.T1)and[2](https://arxiv.org/html/2608.14038#S5.T2), our method also results in a marginal increase in FID\. This increase is a known characteristic of adversarial training and CLIP\-reward optimization, where the model prioritizes semantic features and visual pop over the matching of low\-level Inception\-v3 statistics\. This increase also highlights the known misalignment between Inception\-v3 statistics and human aesthetic preferences in high guidance regimes\([Jayasumana et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib12)\)\.
We provide qualitative results in[Figure6](https://arxiv.org/html/2608.14038#A4.F6)for MMDiT\-XS, and in[Figures3](https://arxiv.org/html/2608.14038#S5.F3),[4](https://arxiv.org/html/2608.14038#S5.F4)and[5](https://arxiv.org/html/2608.14038#S5.F5)for MMDiT\-S\. Our method generates images that are more realistic and better aligned with the text prompts\. The learned guidance weights are shown in[Figure2](https://arxiv.org/html/2608.14038#S5.F2)\. We observe high variability depending on the prompt\.

Prompt 1\. A black dog lays his head on a book of maps\.
Prompt 2\. A side by side comparison of the same room in the past and present\.
Prompt 3\. People are cross country skiing through a field\.
Prompt 4\. A person holds a flip phone displaying the screen\.
Prompt 5\. A cake has had a slice taken out of it and put onto the plate\.
Prompt 6\. A display case in front of a store filled with umbrellas\.
Prompt 7\. A black and white dog laying on a bed\.
Prompt 8\. A kitchen that has various paintings on the walls and a large fish aquarium against the wall\.
Figure 2:Learned guidance weights on MS COCO512×512512\\times 512trained with[Algorithm1](https://arxiv.org/html/2608.14038#alg1)on MMDiT\-S\. Please refer to[Figures3](https://arxiv.org/html/2608.14038#S5.F3)and[4](https://arxiv.org/html/2608.14038#S5.F4)for the corresponding images\.
### 5\.3Ablations
Conditioning Information\.We run the ablation on the kind of information the guidance network𝝎\\bm\{\\omega\}receives\. Previously,[Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)concluded that passing both time\-steps\(t,s\)\(t,s\)and conditioningccwas strictly better than less information\. In[Table3](https://arxiv.org/html/2608.14038#S5.T3), we show that addingxtx\_\{t\}to the guidance network, consistently improves performance but hurts FID\.
Table 3:MS COCO512×512512\\times 512\. Impact of conditioning information on empirical performance of our method\. Inboldwe highlight the best metric among each model size\.Time distribution\.We study impact of parameterδ\\deltaon performance of MMDiT\-XS\. The results are given in[Table4](https://arxiv.org/html/2608.14038#S5.T4)\. We see that overall the performance is quite robust to the choice ofδ\\delta\. We also provide comparisons to alternative time distributionp\(s,t\)p\(s,t\)in[SectionB\.9](https://arxiv.org/html/2608.14038#A2.SS9)\.
Additional ablations\.Due to space contraints, we provide additional ablations in the Appendix sections\. In[SectionB\.4](https://arxiv.org/html/2608.14038#A2.SS4), we study the impact of sampling steps on the performance of our method\. On top of that, in[SectionB\.5](https://arxiv.org/html/2608.14038#A2.SS5), we study alternative choice of the generator network architecture\. Finally, in[SectionB\.6](https://arxiv.org/html/2608.14038#A2.SS6), we study the impact of noise in training and in[SectionB\.6](https://arxiv.org/html/2608.14038#A2.SS6)we study the impact of how the pairs of\(x1,c\)\(x\_\{1\},c\)are sampled\.
Table 4:Impact ofδ\\deltavariations on MMDiT\-XS performance\.




\(a\)A black dog lays his head on a book of maps\.





\(b\)A side by side comparison of the same room in the past and present\.





\(c\)People are cross country skiing through a field\.
Figure 3:T2I Results on MS\-COCO with MMDiT\-S\. \(left\-to\-right\) We provide results of images generated from the given text prompt with CFGω=7\.5\\omega=7\.5, Clamp linear guidance \(CLG\), Limited Interval guidance \(LIG\), MMD guidance, and our method\. Qualitatively, our method \(rightmost\) exhibits better adherence to text prompts, precisely capturing nuanced details such as the dog’s interaction with a book of maps in \(a\), the temporal dichotomy of the split room in \(b\), and the specific winter\-field context in \(c\) that baselines simplify or omit\.




\(a\)A car and a public transit vehicle on a road\.





\(b\)A person holds a flip phone displaying the screen\.





\(c\)A cake has had a slice taken out of it and put onto the plate\.





\(d\)A display case in front of a store filled with umbrellas\.





\(e\)A white dog sitting on a ledge of a window\.





\(f\)A black and white dog laying on a bed\.
Figure 4:T2I Results on MS\-COCO with MMDiT\-S\. \(left\-to\-right\) We provide results of images generated from the given text prompt with CFGω=7\.5\\omega=7\.5, CLG, LIG, MMD and our method\.




\(a\)A kitchen that has various paintings on the walls and a large fish aquarium against the wall\.





\(b\)A couple of people are flying a kite on top of a sandy beach\.
Figure 5:T2I Results on MS\-COCO with MMDiT\-S\. \(left\-to\-right\) We provide results of images generated from the given text prompt with CFGω=7\.5\\omega=7\.5, CLG, LIG, MMD and our method\.
## 6Discussion and Limitations
We introduce an adversarial method to learn dynamic guidance schedules by enforcing a marginal consistency condition along the diffusion sampling trajectory\. We train a lightweight MLP through an objective that matches the marginal densities of the guided distribution and true data distribution along the sampling trajectory\. Empirically, our method outperforms constant CFG schedule, heuristic\-based dynamic schedules, as well as, prior learned guidance approaches on human preference and text alignment metrics on the MS\-COCO512×512512\\times 512benchmark\. Despite its empirical success, our method has several limitations that provide avenues for future work\. First, while our learned schedule introduces negligible computational overhead during inference, the training procedure is complex\. Optimizing an adversarial game over a diffusion trajectory requires careful choice of training objectives, optimization strategies such as Two\-Time\-Scale Update Rule \(TTUR\)\. Second, the learned guidance scheduler is backbone\-specific\. As the network relies on the local geometric statistics of a specific pre\-trained flow matching model \(e\.g\., MMDiT\), the scheduler cannot be transferred zero\-shot to a different architecture or velocity field without re\-training\. Finally, our objective for T2I incorporates a CLIP reward loss\. There are avenues to explore alternate reward signals that might overcome drawbacks of CLIP reward\([Kang et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib13)\), which we leave as future work\.
## References
- Bansal et al\. \(2023\)Arpit Bansal, Hong\-Min Chu, Avi Schwarzschild, Soumyadip Sengupta, Micah Goldblum, Jonas Geiping, and Tom Goldstein\.Universal guidance for diffusion models\.In*Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition*, pp\. 843–852, 2023\.
- Castillo et al\. \(2025\)Angela Castillo, Jonas Kohler, Juan C Pérez, Juan Pablo Pérez, Albert Pumarola, Bernard Ghanem, Pablo Arbeláez, and Ali Thabet\.Adaptive guidance: Training\-free acceleration of conditional diffusion models\.In*Proceedings of the AAAI Conference on Artificial Intelligence*, volume 39, pp\. 1962–1970, 2025\.
- Chidambaram et al\. \(2024\)Muthu Chidambaram, Khashayar Gatmiry, Sitan Chen, Holden Lee, and Jianfeng Lu\.What does guidance do? a fine\-grained analysis in a simple setting\.In*Advances in Neural Information Processing Systems*, 2024\.
- Chung et al\. \(2025\)Hyungjin Chung, Jeongsol Kim, Geon Yeong Park, Hyelin Nam, and Jong Chul Ye\.CFG\+\+: Manifold\-constrained classifier free guidance for diffusion models\.In*International Conference on Learning Representations*, 2025\.
- Felix et al\. \(2025\)Koulischer Felix, Deleu Johannes, Demeester Thomas, and Ambrogioni Luca\.Feedback guidance of diffusion models\.In*Advances in Neural Information Processing Systems*, 2025\.
- Galashov et al\. \(2026\)Alexandre Galashov, Ashwini Pokle, Arnaud Doucet, Arthur Gretton, Mauricio Delbracio, and Valentin De Bortoli\.Learn to guide your diffusion model\.In*International Conference on Learning Representations*, 2026\.
- Goodfellow et al\. \(2014\)Ian Goodfellow, Jean Pouget\-Abadie, Mehdi Mirza, Bing Xu, David Warde\-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio\.Generative adversarial nets\.*Advances in Neural Information Processing Systems*, 2014\.
- Gretton et al\. \(2012\)Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Schölkopf, and Alexander Smola\.A kernel two\-sample test\.*Journal of Machine Learning Research*, 13\(1\):723–773, 2012\.
- Hessel et al\. \(2021\)Jack Hessel, Ari Holtzman, Maxwell Forbes, Ronan Le Bras, and Yejin Choi\.Clipscore: A reference\-free evaluation metric for image captioning\.In*Empirical Methods in Natural Language Processing*, 2021\.
- Heusel et al\. \(2017\)M\. Heusel, H\. Ramsauer, T\. Unterthiner, B\. Nessler, G\. Klambauer, and S\. Hochreiter\.GANs trained by a two time\-scale update rule converge to a Nash equilibrium\.In*Advances in Neural Information Processing Systems*, 2017\.
- Ho & Salimans \(2022\)Jonathan Ho and Tim Salimans\.Classifier\-free diffusion guidance\.*arXiv preprint arXiv:2207\.12598*, 2022\.
- Jayasumana et al\. \(2024\)Sadeep Jayasumana, Srikumar Ramalingam, Andreas Veit, Daniel Glasner, Ayan Chakrabarti, and Sanjiv Kumar\.Rethinking fid: Towards a better evaluation metric for image generation\.In*Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition*, pp\. 9307–9315, 2024\.
- Kang et al\. \(2025\)Raphi Kang, Yue Song, Georgia Gkioxari, and Pietro Perona\.Is CLIP ideal? no\. can we fix it? yes\!In*Proceedings of the IEEE/CVF International Conference on Computer Vision*, pp\. 22436–22446, 2025\.
- Karras et al\. \(2024\)Tero Karras, Miika Aittala, Tuomas Kynkäänniemi, Jaakko Lehtinen, Timo Aila, and Samuli Laine\.Guiding a diffusion model with a bad version of itself\.In*Advances in Neural Information Processing Systems*, 2024\.
- Kim et al\. \(2022\)Dongjun Kim, Yeongmin Kim, Se Jung Kwon, Wanmo Kang, and Il\-Chul Moon\.Refining generative process with discriminator guidance in score\-based diffusion models\.*arXiv preprint arXiv:2211\.17091*, 2022\.
- Kirstain et al\. \(2023\)Yuval Kirstain, Adam Polyak, Uriel Singer, Shahbuland Matiana, Joe Penna, and Omer Levy\.Pick\-a\-pic: An open dataset of user preferences for text\-to\-image generation\.In*Advances in Neural Information Processing Systems*, 2023\.
- Kynkäänniemi et al\. \(2024\)Tuomas Kynkäänniemi, Miika Aittala, Tero Karras, Samuli Laine, Timo Aila, and Jaakko Lehtinen\.Applying guidance in a limited interval improves sample and distribution quality in diffusion models\.In*Advances in Neural information Processing Systems*, 2024\.
- Labs et al\. \(2025\)Black Forest Labs, Stephen Batifol, Andreas Blattmann, Frederic Boesel, Saksham Consul, Cyril Diagne, Tim Dockhorn, Jack English, Zion English, Patrick Esser, Sumith Kulal, Kyle Lacey, Yam Levi, Cheng Li, Dominik Lorenz, Jonas Müller, Dustin Podell, Robin Rombach, Harry Saini, Axel Sauer, and Luke Smith\.Flux\.1 kontext: Flow matching for in\-context image generation and editing in latent space, 2025\.URL[https://arxiv\.org/abs/2506\.15742](https://arxiv.org/abs/2506.15742)\.
- Li & Jiao \(2025\)Gen Li and Yuchen Jiao\.Provable efficiency of guidance in diffusion models for general data distribution\.In*International Conference on Machine Learning*, 2025\.
- Lin et al\. \(2014\)Tsung\-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick\.Microsoft COCO: Common objects in context\.In*European Conference on Computer Vision*, pp\. 740–755\. Springer, 2014\.
- Lipman et al\. \(2023\)Yaron Lipman, Ricky TQ Chen, Heli Ben\-Hamu, Maximilian Nickel, and Matt Le\.Flow matching for generative modeling\.In*International Conference on Learning Representations*, 2023\.
- Malarz et al\. \(2025\)Dawid Malarz, Artur Kasymov, Maciej Zięba, Jacek Tabor, and Przemysław Spurek\.Classifier\-free guidance with adaptive scaling\.*arXiv preprint arXiv:2502\.10574*, 2025\.
- Mescheder et al\. \(2018\)Lars Mescheder, Andreas Geiger, and Sebastian Nowozin\.Which training methods for gans do actually converge?In*International Conference on Machine Learning*\. PMLR, 2018\.
- Miyato et al\. \(2018\)Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida\.Spectral normalization for generative adversarial networks\.*arXiv preprint arXiv:1802\.05957*, 2018\.
- Pavasovic et al\. \(2025\)Krunoslav Lehman Pavasovic, Jakob Verbeek, Giulio Biroli, and Marc Mézard\.Understanding classifier\-free guidance: High\-dimensional theory and non\-linear generalizations\.*arXiv preprint arXiv:2502\.07849*, 2025\.
- Poleski et al\. \(2025\)Mateusz Poleski, Jacek Tabor, and Przemyslaw Spurek\.Geoguide: Geometric guidance of diffusion models\.In*Proceedings of the Winter Conference on Applications of Computer Vision*, pp\. 297–305, 2025\.
- Radford et al\. \(2015\)Alec Radford, Luke Metz, and Soumith Chintala\.Unsupervised representation learning with deep convolutional generative adversarial networks\.*arXiv preprint arXiv:1511\.06434*, 2015\.
- Radford et al\. \(2021\)Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al\.Learning transferable visual models from natural language supervision\.In*International Conference on Machine Learning*, 2021\.
- Rombach et al\. \(2022\)Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer\.High\-resolution image synthesis with latent diffusion models\.In*Proceedings of the IEEE/CVF conference on Computer Vision and Pattern Recognition*, 2022\.
- Sadat et al\. \(2024\)Seyedmorteza Sadat, Otmar Hilliges, and Romann M Weber\.Eliminating oversaturation and artifacts of high guidance scales in diffusion models\.In*International Conference on Learning Representations*, 2024\.
- Sadat et al\. \(2025\)Seyedmorteza Sadat, Manuel Kansy, Otmar Hilliges, and Romann M Weber\.No training, no problem: Rethinking classifier\-free guidance for diffusion models\.In*International Conference on Learning Representations*, 2025\.
- Saharia et al\. \(2022\)Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily L Denton, Kamyar Ghasemipour, Raphael Gontijo Lopes, Burcu Karagol Ayan, and Tim Salimans\.Photorealistic text\-to\-image diffusion models with deep language understanding\.In*Advances in Neural Information Processing Systems*, 2022\.
- Salimans & Ho \(2022\)Tim Salimans and Jonathan Ho\.Progressive distillation for fast sampling of diffusion models\.In*International Conference on Learning Representations*, 2022\.
- Sauer et al\. \(2024\)Axel Sauer, Frederic Boesel, Tim Dockhorn, Andreas Blattmann, Patrick Esser, and Robin Rombach\.Fast high\-resolution image synthesis with latent adversarial diffusion distillation\.In*SIGGRAPH Asia 2024 Conference Papers*, pp\. 1–11, 2024\.
- Schuhmann \(2022\)Christoph Schuhmann\.LAION\-Aesthetics\.[https://laion\.ai/blog/laion\-aesthetics/](https://laion.ai/blog/laion-aesthetics/), 2022\.Accessed: 2025\-06\-27\.
- Shen et al\. \(2024\)Yifei Shen, Xinyang Jiang, Yifan Yang, Yezhen Wang, Dongqi Han, and Dongsheng Li\.Understanding and improving training\-free loss\-based diffusion guidance\.In*Advances in Neural Information Processing Systems*, 2024\.
- Song et al\. \(2021a\)Jiaming Song, Chenlin Meng, and Stefano Ermon\.Denoising diffusion implicit models\.In*International Conference on Learning Representations*, 2021a\.
- Song & Ermon \(2019\)Yang Song and Stefano Ermon\.Generative modeling by estimating gradients of the data distribution\.In*Advances in Neural Information Processing Systems*, 2019\.
- Song et al\. \(2021b\)Yang Song, Jascha Sohl\-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole\.Score\-based generative modeling through stochastic differential equations\.In*International Conference on Learning Representations*, 2021b\.
- Song et al\. \(2023\)Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever\.Consistency models\.In*International Conference on Machine Learning*, 2023\.
- Székely & Rizzo \(2004\)G\. Székely and M\. Rizzo\.Testing for equal distributions in high dimension\.*InterStat*, 5, 2004\.
- Verine et al\. \(2025\)Alexandre Verine, Ahmed Mehdi Inane, Florian Le Bronnec, Benjamin Negrevergne, and Yann Chevaleyre\.Improving discriminator guidance in diffusion models\.In*Joint European Conference on Machine Learning and Knowledge Discovery in Databases*, pp\. 222–238\. Springer, 2025\.
- Wang et al\. \(2024\)Xi Wang, Nicolas Dufour, Nefeli Andreou, Marie\-Paule Cani, Victoria Fernández Abrevaya, David Picard, and Vicky Kalogeiton\.Analysis of classifier\-free guidance weight schedulers\.*Transactions on Machine Learning Research*, 2024\.
- Wang et al\. \(2023\)Zhendong Wang, Huangjie Zheng, Pengcheng He, Weizhu Chen, and Mingyuan Zhou\.Diffusion\-GAN: Training GANs with diffusion\.In*International Conference on Learning Representations*, 2023\.
- Wu et al\. \(2023\)Xiaoshi Wu, Yiming Hao, Keqiang Sun, Yixiong Chen, Feng Zhu, Rui Zhao, and Hongsheng Li\.Human preference score v2: A solid benchmark for evaluating human preferences of text\-to\-image synthesis\.*arXiv preprint arXiv:2306\.09341*, 2023\.
- Xia et al\. \(2025\)Mengfei Xia, Nan Xue, Yujun Shen, Ran Yi, Tieliang Gong, and Yong\-Jin Liu\.Rectified diffusion guidance for conditional generation\.In*Proceedings of the Computer Vision and Pattern Recognition Conference*, pp\. 13371–13380, 2025\.
- Xiao et al\. \(2022\)Zhisheng Xiao, Karsten Kreis, and Arash Vahdat\.Tackling the generative learning trilemma with denoising diffusion GANs\.In*International Conference on Learning Representations*, 2022\.
- Xu et al\. \(2025\)Yilun Xu, Weili Nie, and Arash Vahdat\.One\-step diffusion models withff\-divergence distribution matching\.*arXiv preprint arXiv:2502\.15681*, 2025\.
- Yin et al\. \(2024a\)Tianwei Yin, Michaël Gharbi, Taesung Park, Richard Zhang, Eli Shechtman, Fredo Durand, and William T Freeman\.Improved distribution matching distillation for fast image synthesis\.In*Advances in Neural Information Processing Systems*, 2024a\.
- Yin et al\. \(2024b\)Tianwei Yin, Michaël Gharbi, Richard Zhang, Eli Shechtman, Fredo Durand, William T Freeman, and Taesung Park\.One\-step diffusion with distribution matching distillation\.In*Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition*, 2024b\.
- Yu et al\. \(2023\)Jiwen Yu, Yinhuai Wang, Chen Zhao, Bernard Ghanem, and Jian Zhang\.Freedom: Training\-free energy\-guided conditional diffusion model\.In*Proceedings of the IEEE/CVF International Conference on Computer Vision*, pp\. 23174–23184, 2023\.
## Organization of the appendix
In[appendixA](https://arxiv.org/html/2608.14038#A1), we present the extended related work\. In[appendixB](https://arxiv.org/html/2608.14038#A2), we present additional results and ablations which were not included in the main paper\. It includes additional experimental comparisons to baselines in Appendix[B](https://arxiv.org/html/2608.14038#A2)\. Moreover, it includes additional ablations over the hyperparameters for the considered baselines, see Appendix[B\.2](https://arxiv.org/html/2608.14038#A2.SS2)\. Appendix[B\.3](https://arxiv.org/html/2608.14038#A2.SS3)shows results for the parameters of the time distributionp\(s,t\)p\(s,t\)from[Section3\.2](https://arxiv.org/html/2608.14038#S3.SS2)\. On top of that, in Appendix[B\.4](https://arxiv.org/html/2608.14038#A2.SS4), we show how the number of sampling steps affects performance of our guidance method\. Moreover, in Appendix[B\.5](https://arxiv.org/html/2608.14038#A2.SS5), we show the impact of the generator network architecture for learning the guidance weights\. Furthermore, in Appendix[B\.6](https://arxiv.org/html/2608.14038#A2.SS6), we study the importance of the correlation in the noise distribution of clean data for the Algorithm[1](https://arxiv.org/html/2608.14038#alg1)\. In Appendix[B\.7](https://arxiv.org/html/2608.14038#A2.SS7), we study the impact of how the pairs\(x1,c\)\(x\_\{1\},c\)are sampled\. Finally, in Appendix[B\.9](https://arxiv.org/html/2608.14038#A2.SS9)we discuss alternative choices for the time distribution\. In Appendix[C](https://arxiv.org/html/2608.14038#A3), we provide the experimental details and in Appendix[D](https://arxiv.org/html/2608.14038#A4), we show different image samples from various models\.
## Appendix AExtended Related Work
Approaches for General Guidance\.Beyond the scope of CFG, a broader class of methods aim to guide diffusion model by leveraging external models or constraints without requiring any re\-training\. Universal guidance\([Bansal et al\. 2023](https://arxiv.org/html/2608.14038#bib.bib1)\)pioneered this area by demonstrating that the gradients of any differentiable model such as the CLIP feature extractor\([Radford et al\. 2021](https://arxiv.org/html/2608.14038#bib.bib28)\), a segmentation network, and an object detection network, can be used guide the diffusion sampling process towards specific attributes\. Loss\-based guidance methods such as FreeDoM\([Yu et al\. 2023](https://arxiv.org/html/2608.14038#bib.bib51)\)and subsequent works\([Shen et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib36)\)treat the guidance process as a form of energy\-based optimization where the latent state is iteratively udpated to minimize a user\-defined loss\.
Distillation\.Our approach also shares conceptual similarities with the literature on diffusion distillation, especially adversarial distillation methods\. Distribution matching distillation \(DMD, DMDv2\)\([Yin et al\. 2024b](https://arxiv.org/html/2608.14038#bib.bib50);[Yin et al\. 2024a](https://arxiv.org/html/2608.14038#bib.bib49)\)and latent adversarial diffusion distillation \(LADD\)\([Sauer et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib34)\)utilize a discriminator to match the marginal distribution of generated samples to the real data distribution, eliminating the blurriness from trajectory\-based distillation methods such as Progressive distillation\([Salimans & Ho 2022](https://arxiv.org/html/2608.14038#bib.bib33)\)and consistency models\([Song et al\. 2023](https://arxiv.org/html/2608.14038#bib.bib40)\)\.ff\-distill\([Xu et al\. 2025](https://arxiv.org/html/2608.14038#bib.bib48)\)further generalizes this by minimizingff\-divergence via an adversarial game\.
## Appendix BAdditional results and ablations
### B\.1Extensive comparisons to baselines
To complement the results from[Section5\.2](https://arxiv.org/html/2608.14038#S5.SS2), we add additional comparison to\([Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)\)baseline in[Table5](https://arxiv.org/html/2608.14038#A2.T5)and in[Table6](https://arxiv.org/html/2608.14038#A2.T6)\.
Table 5:MS COCO512×512512\\times 512\. Performance of different methods on a small, MMDiT\-XS model\. We highlight the best metric inbold\.†\\daggerindicates that we follow the setup from[Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)\.Table 6:MS COCO512×512512\\times 512\. Performance of different methods on a large, MMDiT\-S model\. We highlight the best metric inbold\.†\\daggerindicates that we follow the setup from[Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)\.
### B\.2Text\-to\-Image Generation baseline ablations
In[Table7](https://arxiv.org/html/2608.14038#A2.T7), we present results on MMDiT\-XS model of limited interval guidance\([Kynkäänniemi et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib17)\)baseline with a large sweep over the hyperparameters such as the guidance weight and the interval\. Furthermore, in[Table8](https://arxiv.org/html/2608.14038#A2.T8), we present results for clap\-linear guidance schedule\([Wang et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib43)\)\.
Table 7:MS COCO512×512512\\times 512\. Performance of limited interval guidance\([Kynkäänniemi et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib17)\)on the MMDiT\-XS model with128128sampling steps\. We highlight the best metrics inbold\.Table 8:MS COCO512×512512\\times 512\. Performance of clamp\-linear guidance schedulewt=max\(c1,2w1tT\)w\_\{t\}=\\text\{max\}\(c\_\{1\},\\frac\{2w\_\{1\}t\}\{T\}\)\([Wang et al\. 2024](https://arxiv.org/html/2608.14038#bib.bib43)\)on the MMDiT\-XS model with128128sampling steps\. We highlight the best metrics inbold\.
### B\.3Ablation on time distributionp\(s,t\)p\(s,t\)from[Section3\.2](https://arxiv.org/html/2608.14038#S3.SS2)
In[Table9](https://arxiv.org/html/2608.14038#A2.T9), we present results with different hyperparameters of the time distributionp\(s,t\)p\(s,t\)discussed in[Section3\.2](https://arxiv.org/html/2608.14038#S3.SS2)\. We see that overall the performance of the method is quite robust to these parameters – the CLIP score does not seem to be affected much by these parameters\.
Table 9:Performance metrics for MMDiT\-XS for different values ofδ\\deltavalues in time distributionp\(s,t\)p\(s,t\)and different CLIP reward scaleη\\eta\.
### B\.4Impact of number of sampling steps
In[Table10](https://arxiv.org/html/2608.14038#A2.T10), we show the impact of number of sampling steps on performance of our method\. We see that overall, doing more sampling steps leads to better perceptual metrics and to a better prompt alignment\.
Table 10:Impact of number of sampling steps on the performance of our GAN\-based guidance scheduler\. We use MMDiT\-S backbone\.
### B\.5Impact of generator architecture
In[Table11](https://arxiv.org/html/2608.14038#A2.T11), we present results of our method where we vary the architecture of our generator\. See[AppendixC](https://arxiv.org/html/2608.14038#A3)for more details on the generator architecture\. We see, that light\-weight MLP generator which receives the statistics ofxsx\_\{s\}, leads to overall better performance compared to a more complex Convolutional neural net which receives raw latentsxsx\_\{s\}\.
Table 11:Impact of generator architecture and choice of inputs \(i\.e\.,rawxsx\_\{s\}vs statistics\) with MMDiT\-XS backbone\.
### B\.6Impact of how the noise is sampled during training
In[Algorithm1](https://arxiv.org/html/2608.14038#alg1), the real targetxtrealx\_\{t\}^\{\\text\{real\}\}and the proposal basexsx\_\{s\}can be constructed using either coupled \(ϵ=z\\epsilon=z\) or independent \(ϵ≠z\\epsilon\\neq z\) Gaussian noise vectors\. We evaluate this design choice in[Table12](https://arxiv.org/html/2608.14038#A2.T12)using an MMDiT\-XS backbone\. The empirical metrics indicate that enforcing true independence between the target and proposal noise states provides minor improvements in downstream generation quality \(e\.g\., lower FID and improved HPSv2\)\. This confirms that the marginal consistency objective is robust to the underlying noise coupling strategy, as the network generalizes effectively without requiring correlated trajectory pairings during training\.
Table 12:Impact of how the noise sampled on the performance of our GAN\-based guidance scheduler\. We use MMDiT\-XS backbone\.
### B\.7Impact of how image\-conditioning pairs are sampled
The ablation study in[Table13](https://arxiv.org/html/2608.14038#A2.T13)demonstrates that our method is quite robust to the sampling strategy of image\-conditioning pairs\. While independent sampling is theoretically more aligned with the marginal consistency objective, it yields nearly identical performance to correlated sampling across most metrics, with only a marginal improvement observed in HPSv2 \(0\.29270\.2927vs\.0\.28290\.2829\)\.
Table 13:Impact of choosing independent image\-conditioning pairs on performance of our method with MMDiT\-XS backbone\.
### B\.8Impact of CLIP reward loss
We perform an ablation of our method without CLIP reward loss[Equation19](https://arxiv.org/html/2608.14038#S3.E19)\. We notice that the metrics such as CLIP score and human preference metrics drop marginally in the absence of this loss for MMDiT\-XS model\. We summarize these results in[Table14](https://arxiv.org/html/2608.14038#A2.T14)\.
Table 14:Impact of choosing independent image\-conditioning pairs on performance of our method with MMDiT\-XS backbone\.
### B\.9Alternative choices for the distributionp\(s,t\)p\(s,t\)
The distributionp\(s,t\)p\(s,t\)from Section[3\.2](https://arxiv.org/html/2608.14038#S3.SS2)samplesttuniformly and then draws the step sizeΔs\\Delta suniformly conditional ontt\. The set of valid time pairs forms a triangular \(trapezoid\) region
𝒯=\{\(s,t\):ζ\+δ≤t≤1−ζ,ζ≤s≤t−δ\}\.\\mathcal\{T\}=\\bigl\\\{\(s,t\)\\;:\\;\\zeta\+\\delta\\leq t\\leq 1\-\\zeta,\\;\\;\\zeta\\leq s\\leq t\-\\delta\\bigr\\\}\.\(22\)However,p\(s,t\)p\(s,t\)from Section[3\.2](https://arxiv.org/html/2608.14038#S3.SS2)does not lead to a uniform distribution over this region\.
#### Uniform distribution over𝒯\\mathcal\{T\}\.
We now discuss a choice where we sample uniformly over𝒯\\mathcal\{T\}\. In order to achieve this, we: \(1\) drawu∼𝒰\[0,1\]u\\sim\\mathcal\{U\}\[0,1\]; \(2\) computet=ζ\+δ\+\(1−2ζ−δ\)ut=\\zeta\+\\delta\+\(1\-2\\zeta\-\\delta\)\\,\\sqrt\{u\}; and \(3\) samples∼𝒰\[ζ,t−δ\]s\\sim\\mathcal\{U\}\[\\zeta,\\,t\-\\delta\]\.
Now, we will write a quick derivation for that\. A uniform joint density over𝒯\\mathcal\{T\}requiresp\(s,t\)=1/\|𝒯\|p\(s,t\)=1/\|\\mathcal\{T\}\|for all\(s,t\)∈𝒯\(s,t\)\\in\\mathcal\{T\}\. Factoring the joint asp\(s,t\)=p\(t\)p\(s∣t\)p\(s,t\)=p\(t\)\\,p\(s\\mid t\)and choosings\|t∼𝒰\[ζ,t−δ\]s\\mid t\\sim\\mathcal\{U\}\[\\zeta,\\,t\-\\delta\], i\.e\.p\(s∣t\)=1/w\(t\)p\(s\\mid t\)=1/w\(t\)wherew\(t\)=t−δ−ζw\(t\)=t\-\\delta\-\\zetais the width of the valid strip attt, we obtain
p\(s,t\)=p\(t\)⋅1w\(t\)\.p\(s,t\)=p\(t\)\\cdot\\frac\{1\}\{w\(t\)\}\.\(23\)Setting this equal to1/\|𝒯\|1/\|\\mathcal\{T\}\|and solving forp\(t\)p\(t\)gives
p\(t\)=w\(t\)\|𝒯\|=t−δ−ζ\|𝒯\|,p\(t\)=\\frac\{w\(t\)\}\{\|\\mathcal\{T\}\|\}=\\frac\{t\-\\delta\-\\zeta\}\{\|\\mathcal\{T\}\|\},\(24\)confirming thatttmust be sampled with probability proportional to the strip widthw\(t\)w\(t\)\. The area of𝒯\\mathcal\{T\}is
\|𝒯\|=∫ζ\+δ1−ζw\(t\)𝑑t=∫ζ\+δ1−ζ\(t−δ−ζ\)𝑑t=\(1−2ζ−δ\)22\.\|\\mathcal\{T\}\|=\\int\_\{\\zeta\+\\delta\}^\{1\-\\zeta\}w\(t\)\\,\\mathrm\{d\}t=\\int\_\{\\zeta\+\\delta\}^\{1\-\\zeta\}\(t\-\\delta\-\\zeta\)\\,\\mathrm\{d\}t=\\frac\{\(1\-2\\zeta\-\\delta\)^\{2\}\}\{2\}\.\(25\)The CDF ofttunder equation[24](https://arxiv.org/html/2608.14038#A2.E24)is
F\(t\)=\(t−ζ−δ\)2\(1−2ζ−δ\)2,F\(t\)=\\frac\{\(t\-\\zeta\-\\delta\)^\{2\}\}\{\(1\-2\\zeta\-\\delta\)^\{2\}\},\(26\)which inverts to
t=ζ\+δ\+\(1−2ζ−δ\)u,u∼𝒰\[0,1\]\.t=\\zeta\+\\delta\+\(1\-2\\zeta\-\\delta\)\\,\\sqrt\{u\},\\qquad u\\sim\\mathcal\{U\}\[0,1\]\.\(27\)Giventt, the source times\|t∼𝒰\[ζ,t−δ\]s\\mid t\\sim\\mathcal\{U\}\[\\zeta,\\,t\-\\delta\]\. Substituting back, the joint density isp\(s,t\)=p\(t\)/w\(t\)=1/\|𝒯\|p\(s,t\)=p\(t\)/w\(t\)=1/\|\\mathcal\{T\}\|, which is constant over𝒯\\mathcal\{T\}\.
#### Beta\-trapezoid distribution over𝒯\\mathcal\{T\}\.
The uniform\-joint sampler above can be generalized by replacing the uniform quantileu∼𝒰\[0,1\]u\\sim\\mathcal\{U\}\[0,1\]with a Beta\-distributed one,u∼Beta\(α,β\)u\\sim\\mathrm\{Beta\}\(\\alpha,\\beta\), and feeding it through the same inverse CDF equation[27](https://arxiv.org/html/2608.14038#A2.E27)\. Whenα=β=1\\alpha=\\beta=1, the Beta distribution reduces to𝒰\[0,1\]\\mathcal\{U\}\[0,1\], exactly recovering the uniform\-joint distribution\. Since the inverse CDFt=ζ\+δ\+\(1−2ζ−δ\)ut=\\zeta\+\\delta\+\(1\-2\\zeta\-\\delta\)\\,\\sqrt\{u\}is monotonically increasing inuu, biasinguutoward larger values translates directly into biasingtttoward larger values\. Settingα\>β\\alpha\>\\betaincreases the mean of the Beta distribution \(recall𝔼\[u\]=α/\(α\+β\)\\mathbb\{E\}\[u\]=\\alpha/\(\\alpha\+\\beta\)\), which shifts mass toward largertt\(closer to data\), whileβ\>α\\beta\>\\alphashifts mass toward smallertt\(closer to noise\)\.
#### Results\.
We present the results in[Table15](https://arxiv.org/html/2608.14038#A2.T15)\. The last 3 rows represent the distributionp\(s,t\)p\(s,t\)from Section[3\.2](https://arxiv.org/html/2608.14038#S3.SS2)\. We see that overallβ<α\\beta<\\alpha, leads to worse results, whileα≥β\\alpha\\geq\\betaperforms better\. Overall,α=1,β=2\\alpha=1,\\beta=2leads to the best results, which are comparable to the ones obtained with the distributionp\(s,t\)p\(s,t\)from Section[3\.2](https://arxiv.org/html/2608.14038#S3.SS2)\.
Table 15:Beta\-trapezoid time distribution ablation on MMDiT\-XS\.We vary the Beta distribution parameters\(α,β\)\(\\alpha,\\beta\)and minimum step sizeδ\\delta\. Whenα=β=1\\alpha=\\beta=1, the distribution reduces to uniform sampling over the triangular support𝒯\\mathcal\{T\}\. The last 3 rows correspond to the distributionp\(s,t\)p\(s,t\)from Section[3\.2](https://arxiv.org/html/2608.14038#S3.SS2)\.
## Appendix CExperimental Details
We specify architectural details of discriminator and guidance network below\. in addition, we state our optimizer hyperparameter settings in[Table16](https://arxiv.org/html/2608.14038#A3.T16)\.
#### Discriminator architecture\.
The discriminatordϕ\(xt,s,t,c\)d\_\{\\phi\}\(x\_\{t\},s,t,c\)is a convolutional network inspired by DCGAN architecture\([Radford et al\. 2015](https://arxiv.org/html/2608.14038#bib.bib27)\)\. It follows a modular downsampling structure consisting of five primary modules\. Each module utilizes a Conv\-Residual\-AdaGN\-Leaky\-ReLU block\. For convolutional layers, we utilize4×44\\times 4kernels with a stride of 2 and explicit padding of 1 for the first three stages to progressively reduce spatial resolution while doubling feature depth\. The final two stages utilize2×22\\times 2kernels to reach a1×11\\times 1spatial bottleneck\. Each block incorporates a residual connection with a1×11\\times 1projection convolution to match feature dimensions\. We also apply spectral normalization\([Miyato et al\. 2018](https://arxiv.org/html/2608.14038#bib.bib24)\)to all convolutional layers to enforce Lipschitz continuity and prevent GAN instability\. The discriminator starts with a base feature width of 64, expanding to 1024 in the final layer\. The Leaky ReLU uses slope of 0\.2\.
The network also accepts two time steps, the source timessand target timett\. Each temporal scalar is projected into a 64\-dimensional space via separate MLP\-based time encoders\. These embeddings are concatenated and processed through a two\-layer MLP with SiLU activation to create a joint temporal embedding𝐞joint\\mathbf\{e\}\_\{\\text\{joint\}\}\. The CLIP text embeddingscCLIPc\_\{\\text\{CLIP\}\}are projected via a dedicated MLP to match the hidden dimension of the temporal features\. These three embeddings are concatenated and passed through a two layer MLP with SiLU activations, and then injected into each convolutional block using Adaptive Group Normalization \(AdaGN\)\.
We use the same discriminator architecture for both MMDiT\-XS and MMDiT\-S\. Overall, this discriminator has 5M trainable parameters\. We also use this same architecture for the generator architecture for the results in[Table11](https://arxiv.org/html/2608.14038#A2.T11)\.
#### Guidance network architecture\.
The guidance network𝝎\(xs,s,t,c,ψ\)\\bm\{\\omega\}\(x\_\{s\},s,t,c;\\psi\)is a MLP that predicts guidance scale\. We utilize Fourier Embeddings to project the source timess, target timett, and the temporal gap\(s−t\)\(s\-t\)into a 256\-dimensional space\. We use standard sinusoidal frequencies with a1/100001/10000scaling factor\. These embeddings are concatenated and passed through a linear layer with Layer Normalization and SiLU activation\. We also input the CLIP text embeddings after projecting them into a 256\-dimensional hidden space via a Dense\-LayerNorm\-SiLU block\. We also condition the network on a 5\-dimensional vector of coordinate\-invariant geometric statistics as described in[section3\.2](https://arxiv.org/html/2608.14038#S3.SS2)of the main paper\. These statistics are projected to a 128\-dimensional feature vector\. The fused features are passed into a central backbone consisting of a projection layer followed by two Residual Blocks\. Each residual block follows the structure:
Output=SiLU\(x\+LayerNorm\(Dense\(SiLU\(LayerNorm\(Dense\(x\)\)\)\)\)\)\\displaystyle\\text\{Output\}=\\text\{SiLU\}\(x\+\\text\{LayerNorm\}\(\\text\{Dense\}\(\\text\{SiLU\}\(\\text\{LayerNorm\}\(\\text\{Dense\}\(x\)\)\)\)\)\)\(28\)The final layer is a linear projection to a single scalar, followed by a softplus activation to ensure non\-negative guidance scale\. We utilize a zero\-initialization strategy for the final weight matrix\. The bias of the final layer is initialized tosoftplus−1\(α\)\\text\{softplus\}^\{\-1\}\(\\alpha\), whereα\\alphais the starting guidance multiplier \(e\.g\., 1\.0\)\. This ensures that at the start of training, the model defaults to a standard constant schedule before learning to optimize the trajectory\.
Table 16:Training and Sampling Details\.Hyperparameter settings for MMDiT\-XS, MMDiT\-S\.
#### Training details\.
The training details are specified in[Table16](https://arxiv.org/html/2608.14038#A3.T16)\. All models are trained for6000060000iterations\. During training, we track CLIP score on a subset of30003000images from MS\-COCO512×512512\\times 512\. We use this metric to select the best checkpoint for every studied method\.
#### Baselines training details\.
For MMD\+SC and MMD\+MC baselines, unless specified otherwise, we follow the same training protocol as above and use the guidance network𝝎\(xs,s,t,c\)\\bm\{\\omega\}\(x\_\{s\},s,t,c\)\. The only difference is that we do not employ discriminator and we do not use regularization equation[17](https://arxiv.org/html/2608.14038#S3.E17)\. On top of that, we consider the same experimental setup where we do not includexsx\_\{s\}into the guidance network𝝎\(s,t,c\)\\bm\{\\omega\}\(s,t,c\)\. Finally, we also include results with𝝎\(s,t,c\)†\\bm\{\\omega\}\(s,t,c\)^\{\\dagger\}, where we follow the setup from[Galashov et al\. 2026](https://arxiv.org/html/2608.14038#bib.bib6)\.
## Appendix DImage samples
In[Figure7](https://arxiv.org/html/2608.14038#A4.F7)and in[Figure6](https://arxiv.org/html/2608.14038#A4.F6), we present the image samples for various methods\.





\(a\)A city bus is riding down the empty street\.





\(b\)Stuffed teddy bear sitting next to garbage can on the side of the road\.





\(c\)The train moves thru this part of the city\.





\(d\)The dark mirror shows a bathroom in its reflection\.





\(e\)A computer monitor sitting on top of a computer desk\.





\(f\)Luggage sitting on and around airline luggage cards on the tarmac\.





\(g\)A batter swings at the ball during a baseball game\.
Figure 6:T2I Results on MS\-COCO with MMDiT\-XS\. \(left\-to\-right\) We provide results of images generated from the given text prompt with CFGω=7\.5\\omega=7\.5, CLG, LIG, MMD and our method\.



\(a\)Two zebras in the zoo by some trees\.




\(b\)A man riding a snowboard down the side of a snow covered ski slope\.




\(c\)A grey cat sitting by a round mirror\.




\(d\)A small board sits on the water next to a city\.




\(e\)Wild animals graze in field in front of a lake and snow covered mountains\.




\(f\)A group of stuffed animals are arranged together\.
Figure 7:Variation with seeds: T2I Results on MS\-COCO with MMDiT\-S\. \(left\-to\-right\) We provide results of images generated from the given text prompt with different seeds \(0,1,2,3\) with our method\.Similar Articles
Information-Theoretic Classifier-Free Guidance with Adaptive Schedule Optimization
Proposes an information-theoretic framework for optimizing classifier-free guidance schedules in diffusion models, achieving improved trade-offs between condition consistency and sample diversity on ImageNet and COCO benchmarks.
Commitment Before Realization: When Classifier-Free Guidance Becomes Unnecessary in Masked Diffusion Language Models
This paper investigates when classifier-free guidance (CFG) is actually necessary in masked diffusion language models, showing that guidance dependence is prompt-specific and can often be removed without losing constraint satisfaction, leading to a defined 'commitment horizon'.
Class-frequency Guided Noise Schedule for Diffusion Models
This paper proposes a class-frequency guided noise schedule for diffusion models that assigns larger-scale noises to low-frequency classes to improve generation quality on imbalanced datasets, demonstrating substantial improvements over baselines.
Rethinking Classifier-Free Guidance in On-Policy Diffusion Distillation
This paper identifies a failure mode in classifier-free guidance distillation called Negative Branch Asymmetry, where errors in the positive and negative CFG branches cancel out, and proposes Positive-Direction Matching to supervise branches separately for more robust distilled models.
A Frozen Pixel-Space Diffusion Model Can Guide Itself with Its Own Samples
This paper introduces Synthetic Self-Guidance (SSG), a method that attaches a lightweight prediction head to a frozen pretrained pixel-space diffusion model, using the discrepancy between intermediate and final predictions as self-guidance during sampling. It shows that model-generated samples suffice for training the head, improving FID by over 50% on several variants without classifier-free guidance and enhancing strong baselines with CFG.