betaFeedback

WorksComputer Science

Constrained Diffusion from Binary Evaluations via Learned Doob h-Functions

Abstract

Conditional generation under constraints that can only be checked on a finished sample, such as a molecular property filter, remains challenging for diffusion models: most guidance methods require differentiable measurement operators, paired conditional data, or rollouts of the base model at every step. We present a framework grounded in the Doob hh-transform that reduces conditional generation to learning a single function, the probability that a noisy sample denoises into the constraint set. We learn this function from binary clean-sample evaluations alone, by squared-error regression on forward-noised labels; the base model is frozen, one lightweight head is trained per constraint, and noisy-state classifier guidance arises as a special case. The exact guidance step fades where the constraint signal provably vanishes and carries a factor of the inverse probability across samples, which normalized guidance discards: with the schedule and mean step size held fixed, equalizing the step costs 17.0 to 18.5 points of constraint satisfaction on CIFAR-10 at comparable FID, across independently trained estimators. Guidance is more than 50×\times cheaper per satisfying sample than rejection sampling at a 1.7% base rate, raises a Lipinski-type property filter on QM9 from 54.3% to 96.8%, and lifts satisfaction on Stable Diffusion 1.5 from 7.2% to 60.0% at one sixteenth of the cost of derivative-free selection, which reaches 9.0%. These results demonstrate that binary evaluations of clean samples are sufficient supervision for constrained generation across pixel, latent, and molecular diffusion.

Introduction

Many constraints of practical interest can be verified by evaluating a program on a completed sample but cannot be expressed as differentiable functions of it: whether a molecule satisfies a property filter, whether a graph contains a required substructure, or whether an image satisfies a pixel-level predicate. Any thresholded score defines such a constraint, and filters of this kind are routinely used to screen generated samples. Each is a binary test on a clean sample that provides neither a gradient nor a conditioning signal to a pretrained model; a classifier over noisy states, where required, must first be trained from its labels.

The problem is therefore conditional guidance of a frozen diffusion model with a binary label computed on finished samples. A classifier over noisy states trained on such labels estimates the same quantity as the estimator we use, so at the level of the estimator the method coincides with classifier guidance [11]. The contribution of this paper is not a new estimator. It is a controlled finding about how the guidance is applied: with the direction, the schedule and the mean step held fixed, the way the step magnitude is distributed across samples changes constraint satisfaction. It is supported by the characterization of hh for a hard indicator and by the distinction between data- and model-law estimands.

For a constraint set C\mathcal{C}, the posterior score decomposes as

∇xlog⁡pt(xt∣C)=∇xlog⁡pt(xt)+∇xlog⁡ht(xt),ht(x)=Pr⁡(X0∈C∣Xt=x),(1)\nabla_x \log p_t(x_t \mid\mathcal{C}) = \nabla_x \log p_t(x_t) + \nabla_x \log h_t(x_t), \qquad h_t(x) = \Pr(X_0 \in\mathcal{C} \mid X_t = x), \tag*{(1)}

so that conditioning a frozen model reduces to estimating a single scalar function: the probability that a noisy state denoises into C\mathcal{C}.

A classifier over noisy states trained on such labels [11] estimates hh directly, and Uehara et al. [49] interpret classifier guidance as a Doob hh-transform with hh learned by regression on forward-noised labelled data. Other guidance methods approximate this decomposition using information that is unavailable in the binary setting: conditioning labels during training [20], known measurement operators [7, 47], paired data for a learned generalized hh-transform [10], text guidance or reward models for training-free hh-transform editing [39], or differentiable evaluators [3, 56]. Estimators of hh itself differ along two axes. Simulation-based estimators fit hh to endpoints of the model’s own reverse process [32, 17] or estimate its gradient by Monte Carlo lookahead during sampling [60]; they require base-model evaluations or reward calls and target the model distribution rather than the data distribution. Related gradient-guidance methods use learned return or property predictors in trajectory, graph, and molecular diffusion [23, 50, 31]. More directly, Go et al. [16] regress clean-sample reward-model scores onto forward-noised latents, while the guarantees of Chang et al. [5] require the weight to be bounded away from zero, which excludes hard indicators.

We study this setting for hard indicator constraints, and our central observation concerns the size of the guidance step. Several guidance methods treat it as a free parameter and rescale the gradient to a fixed radius or norm [54, 36]. The Doob hh-transform [13] does not: its drift ∇log⁡ht=∇ht/ht\nabla\log h_t = \nabla h_t/h_t shrinks as the constraint signal contracts under forward noising and, at a given noise level, carries a factor 1/ht1/h_t across samples. We characterize hh as the unique bounded solution of the backward Kolmogorov Cauchy problem of the reverse-time diffusion among those attaining 1C1_C along the forward process; with the exact score and hh, the corresponding hh-transform yields the constrained marginals when initialized from the conditional terminal law, and Appendix § 10 bounds the practical initialization approximation. We prove that the variance of the constraint signal vanishes at high noise, so that little is left there for any estimator to act on, and we learn hh by a regression whose training pairs are obtained by forward-noising labelled data in closed form; the verifier labels training data and is never called during sampling. A noisy-state classifier targets the same hh and, for a binary reward, value-based decoding targets its model-law counterpart (Section 5), so the analysis applies to them as well.

This magnitude matters. With the schedule and the mean step size held fixed, equalizing the step across samples, which is what normalization does at each noise level, reduces satisfaction on CIFAR-10 by 17.0 to 18.5 points across three independently trained classifiers, at comparable constraint-conditional FID (FID against real images that satisfy the constraint), and reweighting the normalized step by 1/h^1/\hat h recovers part of the loss. With a 1000-step sampler the learned estimator has nearly identical calibration error on the model’s own trajectories and on forward-noised data, and relative to rejection sampling with the verifier, guidance reduces the sampling cost per satisfying sample by factors of 3.0 and 4.2 at base rates of 30.8% and 22.5%, and by 53 to 55 at 1.7%.

Our contributions are as follows. (1) A controlled measurement showing that the magnitude of the guidance step carries information: on the evaluated predicates the unnormalized drift’s step is strongly negatively correlated with h^\hat h, and with the schedule and mean step size held fixed, equalizing it costs 17.0 to 18.5 points of satisfaction at comparable FID across independently trained classifiers, which a 1/h^1/\hat h reweighting partially restores (Section 6.2). (2) The theory that explains it: hth_t is the unique bounded solution of the reverse-time backward Kolmogorov problem attaining 1C1_C along the forward process, the variance of its signal is non-increasing in the noise level and vanishes as αˉt→0\bar\alpha_t \to0 without spectral-gap assumptions, a noisy-state classifier estimates the same hh, and it differs from the target of rollout-based methods by an amount set by the score error of the base model (Sections 3 and 5). (3) A guidance method that needs only binary evaluations of clean samples: one lightweight estimator per constraint, trained by squared-error regression without base-model evaluations, whose log-gradient is positively aligned with a rollout reference (mean cosine 0.47 to 0.54 from t=400t = 400; Table 4 and Table 6), evaluated across pixel, latent and molecular diffusion, including composition (Sections 4 and 6).

Table 4: The learned guidance field on MNIST digit 3. Mean cosine between ∇log⁡hθ\nabla\log h_\theta and the rollout reference equation 5, over the eligible states among 50 per noise level (1,000 trajectories per state; Table 6), and the fraction of 5,000 held-out forward-noised samples with hθ<0.01h_\theta< 0.01.

Noise level tt500700900
Cosine to reference0.500.540.50
hθ<0.01h_\theta< 0.01 (%)21.600

Table 4.

ttEligible statesMean hMCh_{\mathrm{MC}}RMSE of hθh_\thetaCosine to reference
10025/500.5000.190−0.145
20025/500.4980.161−0.067
30025/500.4560.141+0.240
40028/500.3560.173+0.467
50042/500.2340.170+0.501
70050/500.1220.048+0.544
90050/500.1110.031+0.499

Table 6. The learned guidance field on MNIST digit 3 against the Monte Carlo reference of Appendix § 11.§ 3 (full version of Table 4). Eligible states have at least 10 satisfying endpoints out of K=1,000K = 1{,}000; the cosine is averaged over eligible states, and the root-mean-square error of hθh_\theta against hMCh_{\mathrm{MC}} and the mean of hMCh_{\mathrm{MC}} are computed over all 50 states.

Background and problem setting

Diffusion models. The forward SDE dXt=f(Xt,t) dt+g(t) dWt\mathrm{d}X_t = f(X_t,t)\,\mathrm{d}t + g(t)\,\mathrm{d}W_t transforms data X0∼p0X_0 \sim p_0 into noise as t→Tt \to T, and the reverse-time dynamics dXt=[f(Xt,t)−g(t)2∇xlog⁡pt(Xt)] dt+g(t) dW‾t\mathrm{d}X_t = [f(X_t,t) - g(t)^2 \nabla_x \log p_t(X_t)]\,\mathrm{d}t + g(t)\,\mathrm{d}\overline W_t use the score ∇xlog⁡pt\nabla_x \log p_t, approximated by sθ(x,t)s_\theta(x,t) [2, 48]. In the DDPM discretization ([21]), ∇xlog⁡pt(x)≈−εθ(x,t)/1−αˉt\nabla_x \log p_t(x) \approx-\varepsilon_\theta(x,t)/\sqrt{1-\bar{\alpha}_t} with αˉt=∏s=1t(1−βs)\bar{\alpha}_t = \prod_{s=1}^{t}(1-\beta_s).

Reverse-time generator. For a functional ϕ\phi of clean data, the posterior expectation u(x,t)=E[ϕ(X0)∣Xt=x]u(x,t)=\mathbb{E}[\phi(X_0)\mid X_t=x] is governed by the generator of the reverse-time diffusion,

L^tu=12g(t)2Δu+(g(t)2∇xlog⁡pt−f)⋅∇xu.(2)\widehat{\mathcal{L}}_t u = \frac{1}{2}g(t)^2\Delta u + \left(g(t)^2\nabla_x\log p_t-f\right)\cdot\nabla_xu. \tag*{(2)}

Unlike the forward generator, which propagates expectations of future states, L^t\widehat{\mathcal{L}}_t propagates expectations of the initial state, and depends on the data through the score.

Doob hh-transform. For ht(x)=Pr⁡(X0∈C∣Xt=x)h_t(x)=\Pr(X_0\in C\mid X_t=x), Bayes’ rule gives pt(x∣C)=pt(x)ht(x)/Pr⁡(X0∈C)p_t(x\mid C)=p_t(x)h_t(x)/\Pr(X_0\in C), so the conditional score is the unconditional score plus ∇xlog⁡ht\nabla_x\log h_t (Doob [13]). Adding this drift reweights reverse trajectories toward CC and is exact: started from pT(⋅∣X0∈C)p_T(\cdot\mid X_0\in C), the resulting process has marginals pt(⋅∣X0∈C)p_t(\cdot\mid X_0\in C).

Problem setting. A constraint is given only through its indicator 1C:X→{0,1}\mathbf{1}_C:\mathcal{X}\to\{0,1\}, evaluable on clean samples. The learner may evaluate 1C(x0)\mathbf{1}_C(x_0) on clean data and noise those samples forward through the known kernel. It has no differentiable relaxation of 1C\mathbf{1}_C, no evaluation of it on noisy states xtx_t, t>0t>0, no conditioning signal in the frozen base model, and does not roll the base model out to obtain labels. The goal is to sample from p0(⋅∣X0∈C)p_0(\cdot\mid X_0\in C) using the frozen score model and a learned estimate of hh. Proofs of all results are in Appendix § 10.

Theory

The results below rest on standard tools (time reversal, Itô’s formula, the Doob transform); what is specific here is the discontinuous initial condition 1C\mathbf{1}_C, for which hh vanishes on part of the space, and each result makes a prediction that § 6 tests.

Proposition 1 (Regression target). For each tt, the unique minimizer over measurable hh of E[(h(Xt)−1C(X0))2]\mathbb{E}[(h(X_t)-\mathbf{1}_C(X_0))^2], with (X0,Xt)(X_0,X_t) drawn from the data and the forward kernel, is ht(x)=Pr⁡(X0∈C∣Xt=x)h_t(x)=\Pr(X_0\in C\mid X_t=x).

Theorem 1 (Characterization). Under standard regularity conditions (Appendix § 10), for any measurable CC with 0<Pr⁡(X0∈C)<10<\Pr(X_0\in C)<1 the function ht(x)=Pr⁡(X0∈C∣Xt=x)h_t(x)=\Pr(X_0\in C\mid X_t=x) is the unique bounded classical solution of the Cauchy problem

∂th=L^th,h0=1C,(3)\partial_t h=\widehat{\mathcal{L}}_t h,\qquad h_0=\mathbf{1}_C, \tag*{(3)}

with L^t\widehat{\mathcal{L}}_t as in equation (2) and the initial condition attained along the forward process, hε(Xε)→1C(X0)h_\varepsilon(X_\varepsilon)\to\mathbf{1}_C(X_0) as ε↓0\varepsilon\downarrow0. Started from pT(⋅∣X0∈C)p_T(\cdot\mid X_0\in C), the reverse-time process with drift augmented by g(t)2∇xlog⁡htg(t)^2\nabla_x\log h_t has marginals pt(⋅∣X0∈C)p_t(\cdot\mid X_0\in C) at every tt.

Proposition 1 is the standard characterization of the conditional mean, and it is why binary clean labels suffice: 1C(X0)\mathbf{1}_C(X_0) is an unbiased sample of ht(Xt)h_t(X_t) at every noise level. Theorem 1 identifies the target of every guidance method in this setting as the unique bounded solution, in the sense made precise in Appendix § 10.§ 2, of a parabolic problem whose initial condition is the constraint indicator.

Proposition 2 (Signal contraction). Let hˉ=Pr⁡(X0∈C)\bar{h}=\Pr(X_0\in C) and σ2(t)=Var⁡[ht(Xt)]\sigma^2(t)=\operatorname{Var}[h_t(X_t)]. Then (i) E[ht(Xt)]=hˉ\mathbb{E}[h_t(X_t)]=\bar{h} for all tt, and σ2(t)\sigma^2(t) is non-increasing in tt; (ii) σ2(t)≤I(X0;Xt)/2\sigma^2(t)\le\sqrt{I(X_0;X_t)/2}, where II is mutual information in nats; and (iii) for the variance-preserving process on Rd\mathbb{R}^d with m2=E∥X0∥2<∞m_2=\mathbb{E}\lVert X_0\rVert^2<\infty, I(X0;Xt)≤d2log⁡(1+αtm2(1−αˉt)d)I(X_0;X_t)\le\frac{d}{2}\log\left(1+\frac{\alpha_t m_2}{(1-\bar{\alpha}_t)d}\right), so σ2(t)→0\sigma^2(t)\to0 as αˉt→0\bar{\alpha}_t\to0.

Proposition 2 makes high-noise guidance failure a property of the forward process rather than of any estimator: as tt grows, hth_t flattens toward hˉ\bar{h} and carries progressively less information about CC. On MNIST (LeCun et al. [30]) digit-3 the measured σ^2(t)\hat{\sigma}^2(t) falls by 492× between t=100t=100 and $t=900 ({xref}Figure 3a, {xref}Appendix C.5), and the mean guidance norm falls from 2.32 to 0.225 over the same range ({xref}Appendix B.3); {xref}Figure 1` shows the same contraction for a learned hθh_\theta on CIFAR-10.

Relation to the spectrum of the conditional-expectation operator. Moreira et al. [37] study the operator (Ttf)(x)=E[f(X0)∣Xt=x](T_t f)(x) = \mathbb{E}[f(X_0) \mid X_t = x] and, when it is compact (for instance for compactly supported data), its singular system (σt,k,ψt,k,ϕt,k)(\sigma_{t,k}, \psi_{t,k}, \phi_{t,k}) with σt,1=1\sigma_{t,1} = 1 and constant leading functions; they show that σt,k→0\sigma_{t,k} \to0 for k≥2k \ge2 as αˉt→0\bar{\alpha}_t \to0 and locate empirically the noise window in which guidance is effective. Since ht−hˉ=Tt(1C−hˉ)h_t - \bar{h} = T_t(\mathbf{1}_C - \bar{h}),

σ2(t)=∑k≥2σt,k2⟨1C,ψt,k⟩p02(4)\sigma^2(t) = \sum_{k \ge2} \sigma_{t,k}^2 \langle\mathbf{1}_C, \psi_{t,k} \rangle_{p_0}^2 \tag*{(4)}

so the variance of Proposition 2 is their spectrum weighted by the coefficients of the constraint. Proposition 2 adds monotonicity in tt and an explicit bound that requires only a finite second moment. Appendix § 13.§ 1 compares the two methods empirically.

From the regression target to the guidance field. Proposition 1 controls hθh_\theta in squared error, while the sampler uses ∇log⁡hθ\nabla\log h_\theta. Under the variance-preserving kernel the ideal field has the closed form (Appendix § 10.§ 5)

∇xtlog⁡ht(xt)=αˉt1−αˉt(E[X0∣Xt=xt,X0∈C]−E[X0∣Xt=xt])(5)\nabla_{x_t} \log h_t(x_t) = \frac{\sqrt{\bar{\alpha}_t}}{1-\bar{\alpha}_t} \left( \mathbb{E}[X_0 \mid X_t = x_t, X_0 \in C] - \mathbb{E}[X_0 \mid X_t = x_t] \right) \tag*{(5)}

which can be estimated by rolling the frozen model out from xtx_t. Table 4 and Table 6 (Appendix § 12.§ 1 and § 12.§ 2) compare the learned field with this reference on MNIST digit 3: the mean cosine is 0.47 to 0.54 at every measured noise level from t=400t = 400, where most states have enough satisfying rollouts to estimate the reference (Appendix § 12.§ 2), against a chance level near zero. The logarithm’s sensitivity to small hh has little effect in practice: sweeping δ\delta from 10−1010^{-10} to 10−210^{-2} leaves satisfaction at 94.8±0.5%94.8 \pm0.5\%, and the fraction of held-out states with hθ<0.01h_\theta< 0.01 falls from 89% at t=50t = 50 to 0% from t=700t = 700 (Appendix § 11.§ 3).

Method

Objective. We parameterize hθ(x,t)∈(0,1)h_\theta(x,t) \in(0,1) by a small network with a sigmoid output and minimize L=Lbdry+Lsup+λfcLfc\mathcal{L} = \mathcal{L}_{\mathrm{bdry}} + \mathcal{L}_{\mathrm{sup}} + \lambda_{\mathrm{fc}}\mathcal{L}_{\mathrm{fc}} with λfc=0.1\lambda_{\mathrm{fc}} = 0.1:

Lsup=Ex0,t,ϵ[(hθ(xt,t)−1C(x0))2],Lbdry=Ex0[(hθ(x0,0)−1C(x0))2],(6)\mathcal{L}_{\mathrm{sup}} = \mathbb{E}_{x_0,t,\epsilon}\left[(h_\theta(x_t,t)-1_C(x_0))^2\right], \qquad\mathcal{L}_{\mathrm{bdry}} = \mathbb{E}_{x_0}\left[(h_\theta(x_0,0)-1_C(x_0))^2\right], \tag*{(6)}
Lfc=Ex0,t[(hθ(xt,t)−sg⁡[hθ(xt+1′,t+1)])2],(7)\mathcal{L}_{\mathrm{fc}} = \mathbb{E}_{x_0,t}\left[(h_\theta(x_t,t)-\operatorname{sg}[h_\theta(x'_{t+1},t+1)])^2\right], \tag*{(7)}

where xtx_t and xt+1′x'_{t+1} are independent forward noisings of the same x0x_0 and sg⁡\operatorname{sg} is stop-gradient. Lsup\mathcal{L}_{\mathrm{sup}} alone identifies hh (Proposition 1) and suffices in practice (Appendix § 12.§ 7); it is the core of the method.

The other two are optional regularizers, used for every head reported in § 6: Lbdry\mathcal{L}_{\mathrm{bdry}} places weight on the discontinuous initial condition, which uniform timestep sampling rarely visits, and Lfc\mathcal{L}_{\mathrm{fc}} smooths the estimate across noise levels (Appendix § 11.§ 1). Every training pair is produced in closed form from labelled data, so training requires no base-model evaluations. Learning the guidance field directly would amount to training a score model on the constraint-satisfying samples alone, a regression in the data dimension from the positive fraction of the data (6.1% on Stable Diffusion); the scalar head is trained on every labelled sample, positive and negative, and its gradient is a conservative field by construction.

Sampling. In the DDPM parameterization we replace the noise prediction by

ϵ~(xt,t)=ϵθ(xt,t)−γ1−αˉt ∇xtlog⁡(hθ(xt,t)+δ),(8)\tilde{\epsilon}(x_t,t)=\epsilon_\theta(x_t,t)-\gamma\sqrt{1-\bar{\alpha}_t}\,\nabla_{x_t}\log\left(h_\theta(x_t,t)+\delta\right), \tag*{(8)}

with guidance scale γ\gamma and δ=10−8\delta=10^{-8} unless stated. At γ=1\gamma=1 and δ=0\delta=0, with an exact score and an exact hh, this is the hh-transform of Theorem 1 (Appendix § 10.§ 6); as is standard for guidance scales (Dhariwal & Nichol, [11]), we use γ>1\gamma>1, and δ\delta keeps log⁡h\log h finite where h≈0h\approx0. Each step costs one forward and one backward pass of hθh_\theta; there is no candidate set and no rollout. Algorithm 1 (Appendix § 12.§ 1) gives both procedures.

Composition. For C1∩C2C_1\cap C_2 with separately trained heads, we guide with w1∇log⁡h(1)+w2∇log⁡h(2)w_1\nabla\log h^{(1)}+w_2\nabla\log h^{(2)}. With w1=w2=1w_1=w_2=1 this is the exact joint correction when 1C1(X0)\mathbf{1}_{C_1}(X_0) and 1C2(X0)\mathbf{1}_{C_2}(X_0) are conditionally independent given XtX_t at every tt (Appendix § 10.§ 6); otherwise the weights trade off the two constraints, and the composed drift is not guaranteed to reach the joint constraint; Appendix § 13.§ 4 tests a strongly dependent pair.

Data and model estimands of hh

With a binary terminal reward, hh is the value E[1C(X0)∣Xt]\mathbb{E}[\mathbf{1}_C(X_0)\mid X_t] targeted by value-learning methods ([32, 53, 29, 49]), and our Lsup\mathcal{L}_{\mathrm{sup}} shares its gradient in expectation with consistency value regression. The difference lies in which conditional law the expectation is taken under. Rollout-based estimators ([32, 17]) regress onto endpoints of the model’s reverse process started at xx, and so estimate hmodel(x)=Pr⁡model(X0∈C∣Xt=x)h^{\mathrm{model}}(x)=\Pr_{\mathrm{model}}(X_0\in C\mid X_t=x). Forward noising of labelled data, as here and in Chang et al. [5], estimates htdata=hth^{\mathrm{data}}_t=h_t.

Proposition 3 (Estimand gap). Under the assumptions of Appendix § 10.§ 4, hmodelh^{\mathrm{model}} solves equation (3) with ∇xlog⁡pt\nabla_x\log p_t replaced by the model score sθs_\theta in Lbt\mathcal{L}_{b_t}. Consequently hmodel=hdatah^{\mathrm{model}}=h^{\mathrm{data}} for every CC if the model’s reverse process reproduces the data posterior, and equals the two differ by an amount governed by the score error sθ−∇xlog⁡pts_\theta-\nabla_x\log p_t rather than by either estimator.

With an exact score, guiding with hdatah^{\mathrm{data}} samples the data distribution restricted to CC, the reference of constraint-conditional FID. With the model’s score only hmodelh^{\mathrm{model}} gives an exact hh-transform of the process being sampled; § 6.3 compares the estimator’s calibration under the two laws for a real model. The two targets also differ in cost: forward noising gives every labelled sample an independent training pair at every noise level with no base-model evaluations, whereas the SVDD-MC targets of § 6.5 consumed 5,000,000 base-model forward passes for 5,000 independent endpoint outcomes. Equal gradients in expectation do not imply equal estimator variance at finite sample size.

Estimators of hh therefore fall into a two-by-two grid: rollout targets with soft rewards ([32]), rollout targets with hard constraints ([17]), forward-noising targets with weights bounded below ([5]), and forward-noising targets for hard indicators, the cell of noisy-state classifier guidance, whose target this work characterizes and studies where hh approaches zero (Table 5, Appendix § 12.§ 1). The analysis concerns hdatah^{\mathrm{data}} itself, so it applies to any estimator of it, including a classifier trained by cross-entropy on the same labels, whose loss has the same minimizer: ∇log⁡h=∇h/h\nabla\log h=\nabla h/h shrinks at high noise (by equation (5), ∥∇log⁡ht∥≤αˉtD/(1−αˉt)\lVert\nabla\log h_t\rVert\leq\sqrt{\bar{\alpha}_t}D/(1-\bar{\alpha}_t) for data of diameter DD) and carries a factor 1/h1/h at each noise level, whereas normalized guidance applies a step of fixed magnitude to every sample at every step. § 6.2 measures both effects.

Soft or bounded-below weightsHard indicator 1C1_C
Simulation (model law)SVDD, Value MatchingGuo et al. [17], DOIT
Forward noising (data law)Doob’s matching, StitchVMCG; this work

Table 5. Estimators of hh by training target and constraint type: SVDD (Li et al. [32]), Value Matching (Jensen et al. [24]), Guo et al. [17], DOIT (Zhu et al. [60]), Doob’s matching (Chang et al. [5]), StitchVM (Go et al. [16]), classifier guidance (CG) (Dhariwal & Nichol [11]).

Experiments

We evaluate in three settings where binary constraints arise: image predicates that no pretrained model conditions on, where we compare against a matched classifier and against rejection sampling and measure how the drift allocates the step (§ 6.1–§ 6.5); property filters in molecular design, including composition of independently trained constraints (§ 6.6); and text-to-image generation with Stable Diffusion 1.5 (§ 6.7).

Protocol. The base model is frozen throughout. Satisfaction is the fraction of samples that pass the predicate used for labelling (for the MNIST digits and the CIFAR-10 classes, a separately trained classifier judges the samples), with the standard deviation over sampling seeds for a single trained head (Wilson [51] 95% intervals where stated); FID (Heusel et al. [19]) uses real constraint-satisfying images (constraint-conditional) and a general reference set (full-distribution). Classifier-guidance baselines use a classifier over noisy states trained on the identical labels, optimizer and budget, at matched capacity, and guide with the standard rule ϵ←ϵ−γ1−αˉt g\epsilon\leftarrow\epsilon- \gamma\sqrt{1-\bar{\alpha}_t}\,g, g=∇xtlog⁡pϕ(y=1∣xt)g = \nabla_{x_t}\log p_\phi(y=1 \mid x_t); the normalized variant divides gg by ∥g∥\lVert g\rVert per sample. DPS requires a differentiable measurement operator, which a binary evaluation does not provide. Appendix § 11 gives every setting.

Matched-capacity comparison with classifier guidance

We define four predicates on CIFAR-10 (Krizhevsky [27]) images as deterministic functions of pixel statistics, with positive rates of 24.5–26.8% on the training set: red-pixel fraction, Sobel edge density, upper-half luminance, and low saturation (Appendix § 11.§ 4). None exists in the conditioning space of the base model, the DDPM of Ho et al. [21]. Our hθh_\theta has 675,969 parameters and the classifier 676,098, and a guided sample costs 0.404 s with either. Table 1 compares our head with the matched classifier under both rules. With the standard unnormalized drift, the two estimators reach at least 95.9% satisfaction from γ=5\gamma= 5 and constraint-conditional FID within 6.8 of each other, as § 5 predicts for two estimates of the same hh. Normalizing the classifier’s drift keeps satisfaction at 100% from γ=5\gamma= 5 but gives 1.6 to 3.2× the constraint-conditional FID of our drift at γ=5\gamma= 5 (paired samples in Figure 2); unlike the unnormalized drift, whose magnitude decays as the signal contracts, the normalized step is largest at t=999t = 999 (§ 6.2). Appendix § 13.§ 3 extends the normalized rule to γ∈[0.1,1]\gamma\in[0.1, 1], so that the rules can be compared at equal satisfaction and not only at equal γ\gamma.

Figure 2. Paired CIFAR-10 samples at γ=5\gamma= 5. Each column starts from the same xTx_T and uses the same sampling noise in every row. The figure shows the first ten samples generated without selection; across the full 64-sample batch, every guided sample in both rows satisfies the constraint. The middle row, the matched classifier under the normalized rule, achieves this by collapsing to a few image types: a red field with a small object in (a), dark-ground aircraft scenes in (b). Guidance with hθh_\theta keeps the content of the unguided sample in (a) and produces varied scenes in (b).

Table 1: Matched classifier under the standard and normalized rules, and ours, on four CIFAR-10 predicates (matched in capacity, labels, optimizer, budget and inference cost). Satisfaction (%) and FID against constraint-satisfying test images (FIDc_c); FIDfin_\mathrm{fin} Tables 7 and 8. Mean over 3 seeds × 1,000 samples. Unguided satisfaction in parentheses.

Predicateγ\gammaSatisfaction CGSatisfaction CG-normSatisfaction OursFIDc_c CGFIDc_c CG-normFIDc_c Ours
Red-pixel (31.3)5100.0100.0100.062.8187.058.2
15100.0100.0100.098.2212.393.1
Upper luminance (23.1)5100.0100.0100.043.481.443.9
15100.0100.0100.050.187.752.7
Edge density (16.5)599.7100.0100.052.596.959.3
15100.0100.0100.072.7109.578.8
Low saturation (16.8)599.5100.095.948.6101.645.9
15100.0100.099.971.2116.873.2

Table 1.

How the unnormalized drift allocates the step

By equation (5) and ∇log⁡h=∇h/h\nabla\log h = \nabla h/h, the unnormalized log-probability drift has two properties that a normalized step removes: its size varies over the noise schedule, and at each step it varies across samples, with a factor 1/h1/h. We measure both using the matched classifier’s estimate of this drift, so that the result concerns the sampling rule rather than our estimator, on red-pixel and upper luminance at γ=2\gamma= 2 (Appendix § 12.§ 4). Over the schedule, the mean step per unit γ\gamma, mˉ(t)\bar{m}(t), the mean of 1−αˉt∥g∥\sqrt{1-\bar{\alpha}_t}\lVert g\rVert over samples, peaks near t=500t = 500 on red-pixel and t=700t = 700 on upper luminance and is 4.4 and 3.7× smaller at t=999t = 999, whereas the normalized step 1−αˉt\sqrt{1-\bar{\alpha}_t} is largest at t=999t = 999. Across samples, step size and h^(xt)\hat{h}(x_t) have Spearman correlation between −0.60 and −0.998 at t∈{799,599,399,199}t \in\{799, 599, 399, 199\} on both predicates (250 trajectories; p<10−24p < 10^{-24}; Table 11).

tt799599399199
Red-pixel−0.688-0.688−0.598-0.598−0.969-0.969−0.998-0.998
Upper luminance−0.791-0.791−0.993-0.993−0.998-0.998−0.969-0.969

Table 11. Spearman correlation between the per-sample step 1−αˉt∥gi∥\sqrt{1-\bar{\alpha}_t}\lVert g_i\rVert and h^i=pϕ(y=1∣xt)\hat{h}_i=p_{\phi}(y=1\mid x_t) across 250 standard-rule trajectories at γ=2\gamma=2.

To isolate the allocation across samples, we keep the normalized direction and give every sample the step mˉ(t)\bar{m}(t) measured along the standard-rule trajectories, so that the schedule and the mean step are those of the standard rule (Table 2). Satisfaction falls by 18.4, 18.5 and 17.7 points on red-pixel and by 17.2, 17.3 and 17.0 on upper luminance for three independently trained classifiers, with FIDc_c within 1.2 of the standard rule in every case: the loss is a property of the rule rather than of one classifier. Weighting each sample’s step by (1/h^i)/mean⁡j(1/h^j)(1/\hat{h}_i)/\operatorname{mean}_j(1/\hat{h}_j), which keeps the mean step, recovers 35 to 46% and 60 to 69% of the loss, again at comparable FIDc_c; the rest is carried by the variation of ∥∇h∥\lVert\nabla h\rVert across samples.

Table 2: The step at a fixed schedule and mean step size, CIFAR-10, γ=2\gamma= 2, for independently trained classifiers (same recipe; training seeds 0, 1 and 2). All rules use the classifier’s gradient direction; “equal” and “1/h^1/\hat{h}” give each sample a step whose mean over samples is that classifier’s standard-rule mˉ(t)\bar{m}(t). Classifier 1 is the matched classifier of § 6.1: mean over sampling seeds 0 and 1 (1/h^1/\hat{h} upper luminance: seed 0); classifiers 2 and 3: sampling seed 0; 1,000 samples per run.

PredicateClassifierSatisfaction (%) StandardSatisfaction (%) EqualSatisfaction (%) 1/h^1/\hat{h}FIDc_c StandardFIDc_c EqualFIDc_c 1/h^1/\hat{h}
Red-pixel199.080.689.052.6051.8553.06
298.279.786.253.2553.0454.11
398.580.888.053.2153.3453.75
Upper luminance199.782.594.339.6140.7339.34
298.581.291.639.4940.2939.76
399.782.794.539.5540.3240.13

Table 2.

Appendix D.2 repeats the test in 26 further configurations (Table 27): at γ=1\gamma= 1 and 5, on edge density and low saturation, with 100- and 50-step samplers, with our head hθh_\theta in place of a classifier, on the class constraints cat and ship, with the estimator of Spectral Guidance, on a conjunction of two negatively dependent predicates, and on the molecular filter of § 6.6. The equal step lowers mean satisfaction in every one, by 1.1 to 22.4 points (Table 28, Table 29, Table 26, Table 32 and Table 33); its size varies with the constraint.

Predicateκ\kappa∇p^/p^\nabla\hat{p}/\hat{p}Equal1/p^1/\hat{p}
Red-pixel0.2578.97 ±\pm 1.13 / 59.073.10 ±\pm 1.34 / 56.977.33 ±\pm 1.52 / 58.9
0.594.53 ±\pm 0.57 / 66.589.27 ±\pm 0.78 / 63.692.70 ±\pm 0.91 / 65.7
Upper luminance0.2595.60 ±\pm 0.22 / 42.292.53 ±\pm 2.97 / 43.296.83 ±\pm 1.75 / 43.3
0.599.87 ±\pm 0.05 / 46.098.07 ±\pm 0.65 / 45.199.87 ±\pm 0.12 / 46.0

Table 26. The test of Table 2 with the Spectral Guidance estimator, in their sampler: satisfaction (%, mean ±\pm standard deviation) / mean FIDc_{\mathrm{c}} over 3 sampling seeds ×\times 1,000 samples.

SetEstimator (training seeds)ConstraintsScalesSampler; sampling seeds#Drop
Table 2classifier (0, 1, 2)red-pixel, upper lum.γ=2\gamma= 21000 steps; 0 (and 1 for classifier 1)617.0–18.5
Further scalesclassifier (0)red-pixel, upper lum.γ∈{1,5}\gamma\in\{1, 5\}1000; 048.4–22.4
Further predicatesclassifier (0)edge density, low saturationγ=2\gamma= 21000; 0218.5–22.2
Coarser samplersclassifier (0)red-pixel, upper lum.γ=2\gamma= 2100 and 50 steps; 046.2–17.4
Our headhθh_\theta (0)red-pixel, upper lum.γ=2\gamma= 21000; 0217.8–18.0
Class constraintsclassifier (0)cat, shipγ∈{2,5,10}\gamma\in\{2, 5, 10\}1000; 0 (and 1 at γ=5\gamma= 5)61.2–8.5
Spectral Guidance estimatorfϕf_\phi (one network)red-pixel, upper lum.κ∈{0.25,0.5}\kappa\in\{0.25, 0.5\}DDIM 100; 0, 1, 241.8–5.9
Dependent conjunctiontwo heads hθh_\theta, composedred-pixel ∧\land low saturationγ∈{5,10}\gamma\in\{5, 10\}1000; 0, 1, 225.2–7.3
Molecular filter (QM9)hθh_\theta (0)Lipinski-typeγ∈{2,5}\gamma\in\{2, 5\}1000; 0, 1, 221.1–2.7
Total8 constraints32

Table 27. Configurations of the matched-budget test. “Drop” is the range of the loss in satisfaction (points) of the equal step against the standard rule. The last row is on QM9; all others are on CIFAR-10.

PredicateSettingStandardEqual1/h^1/\hat{h}
Red-pixelclassifier, γ=1\gamma= 185.6 / 48.767.4 / 48.374.4 / 49.0
classifier, γ=5\gamma= 5100.0 / 64.387.7 / 64.292.3 / 63.4
classifier, γ=2\gamma= 2, 100 steps99.7 / 111.286.5 / 108.797.5 / 112.3
classifier, γ=2\gamma= 2, 50 steps100.0 / 156.693.8 / 155.599.8 / 157.5
hθh_\theta, γ=2\gamma= 297.8 / 50.679.8 / 50.493.0 / 50.3
Upper luminanceclassifier, γ=1\gamma= 193.8 / 42.271.4 / 44.987.8 / 43.5
classifier, γ=5\gamma= 5100.0 / 43.491.6 / 43.296.1 / 43.3
classifier, γ=2\gamma= 2, 100 steps99.6 / 102.582.2 / 108.291.2 / 103.6
classifier, γ=2\gamma= 2, 50 steps99.9 / 144.282.7 / 147.793.3 / 145.0
hθh_\theta, γ=2\gamma= 299.3 / 39.481.5 / 40.395.0 / 39.6
Edge densityclassifier, γ=2\gamma= 293.9 / 44.971.7 / 45.384.9 / 45.1
Low saturationclassifier, γ=2\gamma= 292.0 / 44.073.5 / 43.983.8 / 43.7

Table 28. The test of Table 2 at further scales, predicates and samplers, and with our head: satisfaction (%) / FIDc_c, sampling seed 0, 1,000 samples.

Classγ\gammaSampling seedStandardEqual1/h^1/\hat{h}
Cat2042.8 / 62.241.6 / 61.242.0 / 62.7
5064.3 / 58.660.3 / 58.163.0 / 58.8
5168.0 / 60.065.9 / 58.767.1 / 59.9
10076.4 / 63.272.0 / 61.675.5 / 62.8
Ship2054.9 / 51.251.0 / 55.651.3 / 52.5
5080.7 / 40.272.2 / 41.177.2 / 40.2
5179.6 / 41.071.4 / 41.975.0 / 41.1
10088.6 / 41.581.4 / 41.183.7 / 41.4

Table 29. The test of Table 2 on two class constraints: satisfaction (%) / FIDc_c, 1,000 samples per run. Unguided: cat 16.6%, ship 7.3%.

γ\gammaStandardEqual1/h^1/\hat{h}
562.5±2.062.5 \pm2.0 / 118.657.3±2.257.3 \pm2.2 / 118.861.6±2.061.6 \pm2.0 / 118.5
1083.4±0.383.4 \pm0.3 / 131.176.1±0.476.1 \pm0.4 / 131.580.4±1.180.4 \pm1.1 / 133.6

Table 32. The test of Table 2 on the conjunction of red-pixel and low saturation: joint satisfaction (%, mean ±\pm standard deviation) / mean FIDc\mathrm{FID}_{\mathrm{c}} over 3 sampling seeds ×\times 1,000 samples.

γ\gammaStandardEqual1/h^1/\hat{h}
287.4 ±\pm 0.5 (93.8 / 95.4)86.3 ±\pm 1.2 (93.1 / 96.3)87.8 ±\pm 0.7 (93.2 / 96.1)
593.7 ±\pm 0.4 (89.5 / 94.4)91.0 ±\pm 0.7 (89.5 / 95.3)93.5 ±\pm 0.9 (89.2 / 94.7)

Table 33. The test of Table 2 on the QM9 Lipinski-type filter: satisfaction (%, mean ±\pm standard deviation) and mean uniqueness / novelty (%) over 3 sampling seeds ×\times 1,000 molecules. Validity is 100% in every run.

Calibration under the data and model laws

We compare the calibration of the learned head under the two laws of Proposition 3 for a real model. Along 2,000 unguided trajectories we record hθ(xt,t)h_\theta(x_t,t) at ten noise levels once it against each trajectory’s outcome 1C(x0)\mathbb{1}_{C}(x_0), which measures its calibration to hmodelh^{\mathrm{model}}; on forward-noised test images at the same tt, the same score measures calibration to hdatah^{\mathrm{data}}. With the 1000-step sampler the head has nearly identical calibration error under the two laws: mean expected calibration error 0.051 and 0.051 on red-pixel, and 0.021 and 0.024 on upper luminance. Sampling with 100 steps moves the model’s red-pixel rate from 31.5% to 46.0% and raises the model-law error to 0.155, while the data-law error is 0.049; upper luminance, whose rate stays at 21.8%, keeps 0.023 against 0.024. The difference in calibration follows the shift of the model’s law on the constraint, and it does not prevent guidance: with 100 steps, γ=2\gamma= 2 reaches 99.5% on both predicates (Appendix § 12.§ 4).

Guidance and rejection sampling

Rejection sampling with the verifier draws exactly from the model’s constrained law, at 1/p1/p samples per accepted one for a pass rate pp. On red-pixel and upper luminance (p=30.8%p = 30.8\% and 22.5% over 4,000 and 4,500 unguided samples), the first 1,000 accepted samples have FIDc\mathrm{FID}_{c} 48.4 and 42.4 (Appendix § 12.§ 4); our guidance at γ=2\gamma= 2 reaches 97.2% and 99.5% at FIDc\mathrm{FID}_{c} 48.8 and 39.2 (Table 7), and since a guided step costs about 6% more than an unguided one on the same GPU, it needs 3.0 and 4.2× less sampling time per satisfying sample. For a rare constraint we raise the red-pixel threshold to the 99th percentile of the training statistic (1.00% positive; Appendix § 12.§ 4). The model passes it 1.7% of the time (Wilson interval 1.2–2.4%, n=2,000n = 2,000), so rejection draws about 59 samples per accepted one; guidance at γ=2\gamma= 2 reaches 95.5 to 99.0% over two training seeds of the head (the matched classifier: 95.4 to 96.0%), 53 to 55× less time per satisfying sample (38 to 77× over the Wilson interval). Bounds on the guidance error grow with the inverse probability of the condition ([45]); at 1% both estimators still exceed 95%.

Predicateγ\gammaSatisfaction (%) CG-normSatisfaction (%) OursFIDc\mathrm{FID}_{c} CG-normFIDc\mathrm{FID}_{c} OursFIDf\mathrm{FID}_{f} CG-normFIDf\mathrm{FID}_{f} Ours
Red-pixel031.354.042.5
2100.097.2107.348.8128.659.0
5100.0100.0187.058.2198.577.7
10100.0100.0209.475.1218.498.0
15100.0100.0212.393.1220.9115.4
Upper luminance023.169.942.5
299.999.561.739.299.657.2
5100.0100.081.443.9119.276.0
10100.0100.086.150.0124.286.3
15100.0100.087.752.7125.890.0
Edge density016.561.442.5
299.799.368.644.690.752.3
5100.0100.096.959.3122.577.0
10100.0100.0106.373.3133.192.9
15100.0100.0109.578.8137.298.7
Low saturation016.863.042.5
299.875.268.743.490.247.2
5100.095.9101.645.9120.658.9
10100.099.5111.761.1129.676.9
15100.099.9116.873.2134.988.7

Table 7. Full sweep of normalized classifier guidance (CG-norm) and ours behind Table 1 (the standard rule is in Table 8), on four CIFAR-10 predicates at every guidance scale, with the unguided model at γ=0\gamma= 0. Mean over 3 seeds ×\times 1,000 samples; the seed standard deviation is at most 0.8 for guided satisfaction (2.3 for unguided) and 2.0 for FID.

Supervision and inference cost

Against SVDD ([32]) on MNIST digit-3, with value networks matched at 122,657 parameters, our training targets need no base-model evaluations, where the rollout targets of SVDD-MC consume 5,000,000 base-model forward passes (340 s against 625 s of training). Our sampler runs at 0.050 s/sample with 95.1% satisfaction, against 0.294 and 1.048 s/sample for SVDD-PM with M=5M = 5 and M=20M = 20 candidates drawn in proportion to value (92.5% and 95.2%); keeping the best candidate reaches 100.0% at 5.7× our cost (Appendix § 12.§ 6).

Molecular property constraints

On QM9 ([43]) with the GDSS base model ([25]), we use RDKit1 predicates on decoded molecules: ring presence, and a Lipinski-type filter ([34]) (molecular weight below 125, at most one hydrogen-bond donor, at most two acceptors, thresholds scaled to QM9’s size range and giving a 35.3% positive rate). Guidance is added to the atom-feature score of GDSS; validity is at least 99.9% in every run (Appendix § 12.10). The unguided baseline and all guided runs use the same Euler–Maruyama discretization of the GDSS reverse SDE (Appendix § 11.§ 6). Table 3 supports three observations. First, on the Lipinski-type filter our method raises satisfaction from 54.3% to 96.8% at γ=10\gamma= 10 while retaining 83.2% uniqueness, with a satisfaction–diversity trade-off controlled by γ\gamma. Second, SVDD-PM reaches 96.0% at 7.4× the cost of GDSS’s predictor–corrector sampler measured on the same GPU (8.24 against 1.12 s/mol), since every step decodes and scores M=5M = 5 candidates, whereas our sampler adds one evaluation of the head and its gradients per step. Third, composition works without joint training: guiding with two independently trained heads raises the joint rate from 39.6% to 78.3%, and at γ=20\gamma= 20 it matches the product of the guided marginals (96.3% × 81.6% = 78.6%; Table 23), consistent with the two properties being nearly independent under the model (unguided: 39.6% joint, 41.6% product).

ConstraintMethodγ/M\gamma/ MSat.Uniq.Novel
Lipinski-typeUnguided054.398.098.3
Ours288.792.496.2
Ours1096.883.294.5
Ours5099.563.292.8
SVDD-PMM=5M = 596.097.897.1
Lipinski ∧\wedge ringUnguided039.698.098.3
Composed572.492.396.0
Composed2078.390.895.9

Table 3. QM9, 3 seeds ×\times 1,000 molecules. Satisfaction, uniqueness and novelty (%). The composed rows guide with log⁡hLip+log⁡hring\log h_{\mathrm{Lip}} + \log h_{\mathrm{ring}} from separately trained heads; their satisfaction is the joint rate. All rows use the same Euler–Maruyama sampler. SVDD-PM: 1 seed ×\times 500 molecules (Appendix § 11.§ 6).

γ\gammaJoint (%)Lipinski (%)Ring (%)Product (%)Unique (%)Novel (%)
039.6 ±\pm 0.454.376.741.698.098.3
572.4 ±\pm 0.492.978.673.092.396.0
1075.5 ±\pm 0.695.179.875.991.595.6
2078.3 ±\pm 0.596.381.678.690.895.9

Table 23.

Scale: Stable Diffusion 1.5

On Stable Diffusion 1.5 ([44]) with 50-step DDIM ([46]) and classifier-free guidance scale 7.5, we train hθh_{\theta} on a fixed 30,000-image COCO ([33]) subset labelled by a grayscale predicate (6.1% positive) and guide in latent space. Guidance scales are larger than in pixel space because classifier-free guidance inflates the noise prediction. Satisfaction rises from 7.2% to 60.0%, monotonically in γ\gamma up to γ=75\gamma= 75 (Table 19 and Table 20; samples in Figure 5, appendix), with constraint-conditional FID improving from 109.9 to 98.2. Derivative-free candidate selection reaches 9.0% at 16×\times our sampling cost. The normalized rule is more sensitive to the scale: swept from γ=1\gamma= 1 to 75, the matched classifier rises from 12.3% at γ=1\gamma= 1 to 65.1% at γ=10\gamma= 10 and declines to 24.7% at γ=75\gamma= 75, while our drift rises monotonically over its tested range (Table 20, Appendix § 12.9). The two rules are tuned separately here and differ in the size of the step and in its profile over time, so this comparison does not isolate how the step is allocated across samples; the matched-budget result of § 6.2 is established on CIFAR-10 and QM9, and we do not claim it for latent diffusion. On a separate set of 200 prompts (one seed, 500 images; Table 21), the classifier under the standard rule reaches 28.8, 46.6 and 54.4% at γ=10\gamma= 10, 35 and 75, against 30.0, 48.8 and 58.0% for our head, while the normalized rule falls from 61.8% at γ=10\gamma= 10 to 25.4% at γ=75\gamma= 75.

Methodγ\gamma / MMSat. (%)CLIPFIDc_cFIDf_fs/sample
Unguided07.226.19109.988.90.81
Ours1033.126.23102.689.91.03
Ours3551.126.0899.692.01.03
Ours7560.025.9698.293.51.03
SVDD-PMM=5M = 59.026.47133.9117.616.65

Table 19. Stable Diffusion 1.5, grayscale predicate, 3 seeds ×\times 500 images (SVDD-PM: 1 seed ×\times 300, M=5M = 5; Wilson 95% interval 6.3–12.8%). CLIP score of Radford et al. [42]; FIDc_c and FIDf_f against the references of Appendix § 11.§ 5.

Table 20: Full sweep behind Table 19: grayscale predicate on Stable Diffusion 1.5, 3 seeds ×\times 500 images; CG-norm is the matched classifier with the normalized rule. Satisfaction is the mean ±\pm standard deviation over seeds; CLIP score and FID are means. Rows marked † were run in a separate session with the same prompts, references and seeds.

Methodγ\gammaSatisfaction (%)CLIPFIDc\mathrm{FID}_{c}FIDf\mathrm{FID}_{f}
Unguided07.2 ±\pm 1.126.19109.988.9
Ours1033.1 ±\pm 1.126.23102.689.9
Ours2044.2 ±\pm 0.626.11100.491.0
Ours3551.1 ±\pm 1.426.0899.692.0
Ours5054.5 ±\pm 1.426.01100.093.6
Ours7560.0 ±\pm 0.525.9698.293.5
CG-norm†112.3 ±\pm 0.726.21109.289.4
CG-norm†2.520.3 ±\pm 1.526.22106.989.8
CG-norm†543.4 ±\pm 2.026.20103.790.8
CG-norm†7.561.6 ±\pm 3.626.10100.491.8
CG-norm1065.1 ±\pm 0.926.0999.392.5
CG-norm2056.2 ±\pm 1.626.00101.192.7
CG-norm3543.1 ±\pm 2.925.96101.192.3
CG-norm5034.1 ±\pm 2.625.87101.192.0
CG-norm7524.7 ±\pm 2.325.62103.594.0

Table 20.

Table 21: Stable Diffusion 1.5 on the second prompt set of Appendix § 11.§ 5 (1 seed ×\times 500 images): ours, the matched classifier with the standard rule (CG) and with the normalized rule (CG-norm). Satisfaction (%), CLIP score and FIDf\mathrm{FID}_{f}.

Methodγ\gammaSatisfaction (%)CLIPFIDf\mathrm{FID}_{f}
Unguided06.426.7787.25
Ours1030.026.6289.65
Ours3548.826.5290.89
Ours7558.026.3792.96
CG1028.826.6089.72
CG3546.626.5092.35
CG7554.426.2691.92
CG-norm1061.826.4091.66
CG-norm7525.426.0693.78

Table 21.

Stable Diffusion 1.5 grayscale constraint

Figure 5. Stable Diffusion 1.5, grayscale constraint. The first eight COCO captions in our sample (columns) and, in rows, the unguided sample and ours at γ=35\gamma= 35 and γ=75\gamma= 75 from the same seed (DDIM, 50 steps). Guidance with hθh_\theta reduces colour while largely keeping the layout of the unguided image.

Related work

Guidance with gradients or labels. Classifier guidance [11] and classifier-free guidance [20] require noisy-state classifiers or conditional training; DPS and Π\PiGDM [7, 47] require a known measurement operator, and Universal Guidance and FreeDoM [3, 56] differentiable evaluators. The decomposition equation (1) underlies conditional sampling in Song et al. [48], and Didi et al. [12] cast conditional generation, including motif scaffolding, as a Doob hh-transform; DEFT [10] learns a generalized hh-transform from paired data, h-Edit [39] applies the hh-transform to editing, and ensemble Kalman guidance [58] is derivative-free for black-box inverse problems but propagates an ensemble of particles. Self-attention guidance [22] uses the denoiser’s self-attention maps to select the regions it blurs and guides against, and perturbed-attention guidance [1] perturbs the self-attention maps themselves; both improve sample quality and take no constraint as input, and CFG++ [8] modifies classifier-free guidance for a conditionally trained model; they address sample quality or conditional models and can be combined with a constraint drift.

Analyses of guidance. Guidance does not in general sample the intended tilted distribution [6], and restricting it to a noise interval improves quality [28]; training-free methods often rescale the guidance gradient, for instance to a fixed radius [54, 36], the choice whose cost § 6.2 measures. Spectral Guidance [37] learns the leading singular functions of the conditional-expectation operator from independently noised views and projects any clean-data signal onto them; its released sampler rescales each sample’s log-gradient to a norm in [0.1,0.3][0.1, 0.3]. § 3 relates its spectral analysis to Proposition 2 and Appendix § 13.§ 1 compares with it. Recent theory characterizes when linear score combinations realize projective composition and when they fail [4].

Value functions and twisted sampling. SVDD ([32]) guides diffusion by soft value functions with candidate selection at each step; FUDGE ([53]), SIXO ([29]), controlled decoding ([38]), twisted SMC, including for indicator targets ([57]), and its amortized form in discrete diffusion ([26]) learn values or twists from base-model samples or SMC approximations of the target, and Value Matching ([24]) learns a value for reward tilting from on-policy rollouts. These methods differ in how the value or twist is estimated and in whether inference uses candidate selection, particles, or token-level reweighting. Reward fine-tuning instead updates the generator: Flow-GRPO ([35]) applies online policy-gradient reinforcement learning to flow models, DiffusionNFT ([59]) fine-tunes on the forward process from the model’s own online samples, and ReFL ([52]) backpropagates a differentiable reward into the generator. Noise Hypernetworks ([15]) keep a distilled generator frozen and train a network that modifies its initial noise, by maximizing a differentiable reward through the generator. These methods adapt the generator or its input using samples drawn from it, and are an alternative route to the same goal; we keep the generator and its input unchanged and train one small head per constraint from labelled data, with a check that need not be differentiable. We do not compare with them empirically. With an exact score and hh, the constrained score of Theorem 1 is a candidate teacher score for distribution-matching distillation ([55]), which we do not evaluate.

Learning hh directly. Guo et al. [17] learn hh for hard constraints with a martingale loss on trajectories of the pretrained model and give total-variation and Wasserstein guarantees; Chang et al. [5] learn hh by gradient-penalized regression on forward-noised samples with Wasserstein guarantees for weights bounded below; Go et al. [16] regress neural reward-model scores on forward-noised latents and guide with the value gradient; Uehara et al. [49] also describe guidance with the gradient of a value learned by Monte Carlo regression on samples of the pretrained model; and Zhu et al. [60] estimate the Doob correction for an event by Monte Carlo lookahead without training. § 5 and Table 5 position this work.

Discussion and conclusion

Guidance from binary labels is a Doob hh-transform, and its effectiveness depends less on the estimator of hh than on the drift constructed from it: ∇h/h\nabla h/h acts at noise levels where the signal has not contracted, its step is negatively correlated with h^\hat h across samples, and at a matched budget this allocation accounts for 17.0 to 18.5 points of satisfaction on CIFAR-10 that equal per-sample steps forgo, for each of the three classifiers we trained. In the regimes we evaluate, guidance is substantially cheaper per satisfying sample than rejection sampling, with the advantage increasing for the rarest constraint we study. One estimator per constraint, trained once from binary labels and combined by adding log-gradients, guides a frozen model at a modest overhead over unguided sampling (5 to 6% on CIFAR-10, 27% on Stable Diffusion) without invoking the verifier during sampling. In our experiments, rescaling the guidance gradient to a fixed size discards the information carried by the step size, and reweighting a normalized step by 1/h^1/\hat h restores part of it. Natural extensions are costly verifiers, such as docking, and rarer constraints.

AI use statement

Generative AI tools were used to aid and polish the writing and to help draft sections of the paper from the authors’ notes, results and instructions. The research idea and the method originate with the authors, who ran all experiments and produced all reported results. All AI-assisted text was reviewed and edited by the authors. Reported numerical results were checked against the corresponding experimental records, and references and citation-supported claims were manually reviewed against cited public records. The authors take full responsibility for the content of this work, including all text, claims, and results.

Ethics statement

This work uses public datasets (MNIST, CIFAR-10, COCO and QM9) and publicly released pretrained models, and involves no human subjects. The method steers a frozen generator toward outputs that pass a user-supplied check. Like other guidance methods it could be pointed at checks that encode harmful properties, and it inherits the biases of the base model and of the labelled data used to train each head.

Reproducibility statement

Appendix A proves every result of Sections 3 and 5 under the assumption stated there. Appendix B specifies each base model, head architecture, optimizer, training budget, sampler, predicate with its thresholds, FID reference set and timing protocol, and Appendix C reports the full sweeps behind every table of the main text, with seeds and sample counts in each caption. Code and trained heads will be released upon publication.

Proofs

Setting and standing assumption. Throughout, (Xt)t∈[0,T](X_t)_{t\in[0,T]} solves dXt=f(Xt,t) dt+g(t) dWt\mathrm{d}X_t=f(X_t,t)\,\mathrm{d}t+g(t)\,\mathrm{d}W_t with X0∼p0X_0\sim p_0 independent of WW, the set CC is measurable with hˉ=Pr⁡(X0∈C)∈(0,1)\bar h=\Pr(X_0\in C)\in(0,1), and Y=1C(X0)Y=1_C(X_0). We write qt(⋅∣x0)q_t(\cdot\mid x_0) for the transition density of XtX_t given X0=x0X_0=x_0, ptp_t for the marginal density, Gt=σ(Xr:r≥t)\mathcal{G}_t=\sigma(X_r:r\ge t), and

mt(x)=∫Cqt(x∣x0)p0(dx0),ht(x)=mt(x)pt(x).m_t(x)=\int_C q_t(x\mid x_0)p_0(\mathrm{d}x_0),\qquad h_t(x)=\frac{m_t(x)}{p_t(x)}.

so that ht(x)=Pr⁡(X0∈C∣Xt=x)h_t(x)=\Pr(X_0\in C\mid X_t=x) by Bayes’ rule, and mt/hˉ=pt(⋅∣X0∈C)m_t/\bar h=p_t(\cdot\mid X_0\in C). The regularity conditions of Theorem 1 are the following.

(A) The forward SDE has a unique strong solution, f(⋅,t)f(\cdot,t) is C1C^1 and g>0g>0. For t∈(0,T]t\in(0,T], ptp_t and mtm_t are positive, of class C1,2C^{1,2} in (t,x)(t,x), and solve the forward equation ∂tρ=Ftρ:=−∇⋅(fρ)+12g2Δρ\partial_t\rho=\mathcal{F}_t\rho:=-\nabla\cdot(f\rho)+\frac{1}{2}g^2\Delta\rho (for mtm_t this follows from the equation for qt(⋅∣x0)q_t(\cdot\mid x_0) by integrating over x0∈Cx_0\in C). For ρ=p\rho=p and for ρ=m/hˉ\rho=m/\bar h, the reverse-time SDE

dXˉs=[−f(Xˉs,T−s)+g(T−s)2∇log⁡ρT−s(Xˉs)]ds+g(T−s) dWˉs,s∈[0,T),(9)\mathrm{d}\bar X_s=\left[-f(\bar X_s,T-s)+g(T-s)^2\nabla\log\rho_{T-s}(\bar X_s)\right]\mathrm{d}s+g(T-s)\,\mathrm{d}\bar W_s,\qquad s\in[0,T), \tag*{(9)}

is well posed from every initial law, and its solution started from ρT\rho_T has the law of the time reversal of the forward process started from ρ0\rho_0 (Anderson, [2]; Haussmann & Pardoux, [18]).

For the variance-preserving and variance-exploding processes used in this paper the forward kernels are Gaussian, so ptp_t and mtm_t are smooth and strictly positive for t>0t>0; (A) is the usual assumption behind the reverse-time formulation of score-based models (Song et al., [48]).

Proof of Proposition 1

Proof. Fix tt and let hh be measurable with E[h(Xt)2]<∞\mathbb{E}[h(X_t)^2]<\infty. Expanding the square around ht(Xt)h_t(X_t),

E[(h(Xt)−Y)2]=E[(h(Xt)−ht(Xt))2]+E[(ht(Xt)−Y)2]+2E[(h(Xt)−ht(Xt))E[ht(Xt)−Y∣Xt]].\mathbb{E}\left[(h(X_t)-Y)^2\right]=\mathbb{E}\left[(h(X_t)-h_t(X_t))^2\right]+\mathbb{E}\left[(h_t(X_t)-Y)^2\right] +2\mathbb{E}\left[(h(X_t)-h_t(X_t))\mathbb{E}[h_t(X_t)-Y\mid X_t]\right].

The last term vanishes because E[Y∣Xt]=ht(Xt)\mathbb{E}[Y\mid X_t]=h_t(X_t), and the second does not depend on hh. The objective is therefore minimized exactly by the functions that agree with hth_t ptp_t-almost everywhere, and by hth_t alone among continuous functions, since pt>0p_t>0. Lsup\mathcal{L}_{\mathrm{sup}} averages this objective over noise levels drawn uniformly from the time grid, so its minimizer is hth_t at every level. Only pairs (X0,Xt)(X_0,X_t) enter, and the forward kernel generates them in closed form.

Proof of Theorem 1

The initial condition h0=1Ch_0=1_C is discontinuous, so we state in which sense it is attained: along the process. Theorem 1 is the combination of the four parts below.

Theorem 1 (precise form). Assume (A). Then (a) h∈C1,2((0,T]×Rd)h\in C^{1,2}((0,T]\times\mathbb{R}^d), 0≤h≤10\le h\le1, and ∂th=L^th\partial_t h=\widehat{\mathcal{L}}_t h on (0,T]×Rd(0,T]\times\mathbb{R}^d; (b) ht(Xt)→1C(X0)h_t(X_t)\to1_C(X_0) almost surely and in L2L^2 as t↓0t\downarrow0; (c) if u∈C1,2((0,T]×Rd)u\in C^{1,2}((0,T]\times\mathbb{R}^d) is bounded, satisfies ∂tu=L^tu\partial_tu=\widehat{\mathcal{L}}_tu, and u(ε,Xε)→1C(X0)u(\varepsilon,X_\varepsilon)\to1_C(X_0) in L1L^1 as ε↓0\varepsilon\downarrow0, then u=hu=h; (d) the reverse-time dynamics with drift augmented by g(t)2∇log⁡htg(t)^2\nabla\log h_t, started from pT(⋅∣X0∈C)p_T(\cdot\mid X_0\in C), have marginal pt(⋅∣X0∈C)p_t(\cdot\mid X_0\in C) at every t∈(0,T]t\in(0,T], and their limit as t↓0t\downarrow0 exists almost surely and has law p0(⋅∣X0∈C)p_0(\cdot\mid X_0\in C).

Proof. (a) The equation. By (A), h=m/ph=m/p is of class C1,2C^{1,2} with values in [0,1][0,1]. For C1,2C^{1,2} functions the product rule gives

Ft(hp)=hFtp−pf⋅∇h+g2∇p⋅∇h+12g2pΔh.\mathcal{F}_t(hp)=h\mathcal{F}_tp-pf\cdot\nabla h+g^2\nabla p\cdot\nabla h+\frac{1}{2}g^2p\Delta h.

Since ∂tm=Ftm\partial_tm=\mathcal{F}_tm and ∂tp=Ftp\partial_tp=\mathcal{F}_tp,

∂th=∂tm−h ∂tpp=Ft(hp)−hFtpp=12g2Δh+(g2∇log⁡pt−f)⋅∇h=L^th.\partial_th=\frac{\partial_tm-h\,\partial_tp}{p}=\frac{\mathcal{F}_t(hp)-h\mathcal{F}_tp}{p}=\frac{1}{2}g^2\Delta h+\left(g^2\nabla\log p_t-f\right)\cdot\nabla h=\widehat{\mathcal{L}}_th.

The same computation with ∫ϕ(x0)qt(⋅∣x0) p0(dx0)\int\phi(x_0)q_t(\cdot\mid x_0)\,p_0(\mathrm{d}x_0) in place of mtm_t shows that u(x,t)=E[ϕ(X0)∣Xt=x]u(x,t)=\mathbb{E}[\phi(X_0)\mid X_t=x] solves ∂tu=L^tu\partial_t u=\widehat{\mathcal{L}}_t u for bounded ϕ\phi with the corresponding regularity, as stated in § 2.

(b) The initial condition. Because (Xt)(X_t) is Markov, X0X_0 is conditionally independent of (Xr)r>t(X_r)_{r>t} given XtX_t, so ht(Xt)=E[Y∣Xt]=E[Y∣Gt]h_t(X_t)=\mathbb{E}[Y\mid X_t]=\mathbb{E}[Y\mid\mathcal{G}_t]. As t↓0t\downarrow0 the σ\sigma-fields Gt\mathcal{G}_t increase to G0+=⋁t>0Gt\mathcal{G}_{0+}=\bigvee_{t>0}\mathcal{G}_t, which contains σ(X0)\sigma(X_0) because X0=lim⁡t↓0XtX_0=\lim_{t\downarrow0}X_t by continuity of paths. By (a) and continuity of paths, s↦hT−s(XT−s)=E[Y∣GT−s]s\mapsto h_{T-s}(X_{T-s})=\mathbb{E}[Y\mid\mathcal{G}_{T-s}] is a continuous bounded martingale for the increasing filtration (GT−s)s∈[0,T)(\mathcal{G}_{T-s})_{s\in[0,T)}, so it converges almost surely as s↑Ts\uparrow T. Along any sequence tn↓0t_n\downarrow0, Lévy’s upward theorem identifies the limit as E[Y∣G0+]=Y\mathbb{E}[Y\mid\mathcal{G}_{0+}]=Y. Hence ht(Xt)→Yh_t(X_t)\to Y almost surely, and in L2L^2 by bounded convergence.

(c) Uniqueness. Let Xˉs=XT−s\bar{X}_s=X_{T-s} and v(s,x)=u(T−s,x)v(s,x)=u(T-s,x) for s∈[0,T)s\in[0,T). By (A), Xˉ\bar{X} solves equation (9) with ρ=p\rho=p, whose generator at time ss is LT−s\mathcal{L}_{T-s}, and ∂sv=−LT−sv\partial_s v=-\mathcal{L}_{T-s}v. By Itô’s formula [41], v(s,Xˉs)v(s,\bar{X}_s) is a local martingale on [0,T−ε][0,T-\varepsilon]. It is bounded, hence a martingale, also with respect to the filtration σ(Xˉr:r≤s)=GT−s\sigma(\bar{X}_r:r\le s)=\mathcal{G}_{T-s} generated by Xˉ\bar{X}; this property depends only on the law of Xˉ\bar{X}, so it holds for the time reversal of XX. Therefore u(t,Xt)=E[u(ε,Xε)∣Gt]u(t,X_t)=\mathbb{E}[u(\varepsilon,X_\varepsilon)\mid\mathcal{G}_t] for 0<ε<t0<\varepsilon<t. Letting ε↓0\varepsilon\downarrow0 and using that conditional expectation is a contraction in L2L^2, u(t,Xt)=E[Y∣Gt]=ht(Xt)u(t,X_t)=\mathbb{E}[Y\mid\mathcal{G}_t]=h_t(X_t) almost surely. Hence u(t,⋅)=htu(t,\cdot)=h_t ptp_t-almost everywhere, and everywhere because both are continuous and pt>0p_t>0.

(d) Marginals. Conditionally on X0∈CX_0\in C, the process solves the same forward SDE (the Brownian motion is independent of X0X_0) from the initial law p0(⋅∣X0∈C)=1Cp0/hˉp_0(\cdot\mid X_0\in C)=1_Cp_0/\bar{h}, so its marginals are mˉt/hˉ=ptht/hˉ=pt(⋅∣X0∈C)\bar{m}_t/\bar{h}=p_th_t/\bar{h}=p_t(\cdot\mid X_0\in C). By (A), its time reversal solves equation (9) with ρ=m/hˉ\rho=m/\bar{h}, whose drift contains g22∇log⁡(mt/hˉ)=g22∇log⁡pt+g22∇log⁡ht\frac{g^2}{2}\nabla\log(m_t/\bar{h})=\frac{g^2}{2}\nabla\log p_t+\frac{g^2}{2}\nabla\log h_t: these are the reverse-time dynamics with drift augmented by g(t)2∇log⁡htg(t)^2\nabla\log h_t. Started from pT(⋅∣X0∈C)p_T(\cdot\mid X_0\in C), they have marginal pt(⋅∣X0∈C)p_t(\cdot\mid X_0\in C) at every t∈(0,T]t\in(0,T]. The time reversal of the conditioned forward process extends continuously to s=Ts=T with value X0X_0; since the solution has the same law on C([0,T),Rd)C([0,T),\mathbb{R}^d), its limit as s↑Ts\uparrow T exists almost surely and has law p0(⋅∣X0∈C)p_0(\cdot\mid X_0\in C). □

Initialization. Samplers start the reverse dynamics from pTp_T, or its Gaussian approximation, rather than from pT(⋅∣X0∈C)p_T(\cdot\mid X_0\in C). Since pT(⋅∣X0∈C)/pT=hT/hˉp_T(\cdot\mid X_0\in C)/p_T=h_T/\bar{h}, the bound E∣hT(XT)−hˉ∣≤I(X0;XT)/2\mathbb{E}|h_T(X_T)-\bar{h}|\le\sqrt{I(X_0;X_T)/2} from the proof of Proposition 2(ii) gives

TV⁡(pT(⋅∣X0∈C),pT)=E∣hT(XT)−hˉ∣2hˉ≤I(X0;XT)/22hˉ,\operatorname{TV}(p_T(\cdot\mid X_0\in C),p_T)=\frac{\mathbb{E}|h_T(X_T)-\bar{h}|}{2\bar{h}}\le\frac{\sqrt{I(X_0;X_T)/2}}{2\bar{h}},

and the guided reverse dynamics, being a Markov kernel, cannot increase this distance; starting from N(0,I)\mathcal{N}(0,I) instead of pTp_T adds TV⁡(pT,N(0,I))\operatorname{TV}(p_T,\mathcal{N}(0,I)) by the triangle inequality. The error due to initialization therefore vanishes as the forward process forgets X0X_0.

Proof of Proposition 2

Proof. (i) E[ht(Xt)]=E[E[Y∣Xt]]=E[Y]=hˉ\mathbb{E}[h_t(X_t)]=\mathbb{E}[\mathbb{E}[Y\mid X_t]]=\mathbb{E}[Y]=\bar{h}. For 0≤s<t0\le s<t, X0→Xs→XtX_0\to X_s\to X_t is a Markov chain, so E[Y∣Xs,Xt]=E[Y∣Xs]=hs(Xs)\mathbb{E}[Y\mid X_s,X_t]=\mathbb{E}[Y\mid X_s]=h_s(X_s) and, by the tower property, ht(Xt)=E[hs(Xs)∣Xt]h_t(X_t)=\mathbb{E}[h_s(X_s)\mid X_t]. The law of total variance gives σ2(s)=σ2(t)+E[Var⁡(hs(Xs)∣Xt)]≥σ2(t)\sigma^2(s)=\sigma^2(t)+\mathbb{E}[\operatorname{Var}(h_s(X_s)\mid X_t)]\ge\sigma^2(t).

(ii) Since ht(Xt)h_t(X_t) and hˉ\bar{h} lie in [0,1][0,1], σ2(t)≤E∣ht(Xt)−hˉ∣\sigma^2(t)\le\mathbb{E}|h_t(X_t)-\bar{h}|. The joint law of (Y,Xt)(Y,X_t) has density htpth_tp_t at Y=1Y=1 and (1−ht)pt(1-h_t)p_t at Y=0Y=0, and the product of its marginal laws has ptp_t and (1−hˉ)pt(1-\bar{h})p_t. Hence

TV⁡(PY,Xt,PY⊗PXt)=12∫(∣ht−hˉ∣+∣(1−ht)−(1−hˉ)∣)pt=E∣ht(Xt)−hˉ∣.\operatorname{TV}(P_{Y,X_t},P_Y\otimes P_{X_t})=\frac{1}{2}\int\left(|h_t-\bar{h}|+|(1-h_t)-(1-\bar{h})|\right)p_t=\mathbb{E}|h_t(X_t)-\bar{h}|.

Pinsker’s inequality bounds this by KL⁡(PY,Xt∥PY⊗PXt)/2=I(Y;Xt)/2\sqrt{\operatorname{KL}(P_{Y,X_t}\|P_Y\otimes P_{X_t})/2}=\sqrt{I(Y;X_t)/2}, and the data-processing inequality for Y→X0→XtY\to X_0\to X_t gives I(Y;Xt)≤I(X0;Xt)I(Y;X_t)\le I(X_0;X_t) [9].

(iii) For the variance-preserving process, Xt=αˉtX0+1−αˉt ϵX_t=\sqrt{\bar{\alpha}_t}X_0+\sqrt{1-\bar{\alpha}_t}\,\epsilon with ϵ∼N(0,Id)\epsilon\sim\mathcal{N}(0,I_d) independent of X0X_0. Writing HH for differential entropy, I(X0;Xt)=H(Xt)−H(Xt∣X0)I(X_0;X_t)=H(X_t)-H(X_t\mid X_0) with H(Xt∣X0)=d2log⁡(2πe(1−αˉt))H(X_t\mid X_0)=\frac{d}{2}\log\left(2\pi e(1-\bar{\alpha}_t)\right). Among densities on Rd\mathbb{R}^d with second moment st=E∥Xt∥2=αˉtm2+s_t=\mathbb{E}\|X_t\|^2=\bar{\alpha}_t m_2+ (1−αˉt)d(1-\bar{\alpha}_t)d, the isotropic Gaussian has the largest entropy ([9]), so H(Xt)≤d2log⁡(2πe st/d)H(X_t) \le\frac{d}{2}\log(2\pi e\,s_t/d). Subtracting,

I(X0;Xt)≤d2log⁡αˉtm2+(1−αˉt)d(1−αˉt)d=d2log⁡(1+αˉtm2(1−αˉt)d),I(X_0;X_t) \le\frac{d}{2}\log\frac{\bar{\alpha}_t m_2+(1-\bar{\alpha}_t)d}{(1-\bar{\alpha}_t)d}=\frac{d}{2}\log\left(1+\frac{\bar{\alpha}_t m_2}{(1-\bar{\alpha}_t)d}\right),

which tends to 0 as αˉt→0\bar{\alpha}_t\to0; by (ii), so does σ2(t)\sigma^2(t).

Proof of Proposition 3

Let X^\hat{X} be the model’s reverse-time process, equation equation (9) with ∇log⁡pT−s\nabla\log p_{T-s} replaced by sθ(⋅,T−s)s_\theta(\cdot,T-s), and write X^(t)\hat{X}_{(t)} for its state at diffusion time tt. A rollout-based estimator regresses 1C(X^(0))1_C(\hat{X}_{(0)}) on the state X^(t)=x\hat{X}_{(t)}=x from which the rollout starts, so it targets htmodel(x)=Pr⁡(X^(0)∈C∣X^(t)=x)h_t^{\mathrm{model}}(x)=\Pr(\hat{X}_{(0)}\in C\mid\hat{X}_{(t)}=x). We assume that this SDE is well posed on [0,T][0,T] and that hmodel∈C1,2((0,T]×Rd)h^{\mathrm{model}}\in C^{1,2}((0,T]\times\mathbb{R}^d); for the size of the gap we also assume the integrability condition stated below and that both hdatah^{\mathrm{data}} and hmodelh^{\mathrm{model}} approach 1C1_C along the model’s paths.

Proof. Equation. By the Markov property, htmodel(x)=E[hεmodel(X^(ε))∣X^(t)=x]h_t^{\mathrm{model}}(x)=\mathbb{E}[h_\varepsilon^{\mathrm{model}}(\hat{X}_{(\varepsilon)})\mid\hat{X}_{(t)}=x] for 0<ε<t0<\varepsilon<t, so hmodelh^{\mathrm{model}} evaluated along X^\hat{X} is a martingale and, by Itô’s formula, solves the Kolmogorov backward equation of X^\hat{X} (Øksendal [41]). In diffusion time this equation reads ∂thmodel=L^tθhmodel\partial_t h^{\mathrm{model}}=\widehat{\mathcal{L}}_t^\theta h^{\mathrm{model}} with L^tθ=12g2Δ+(g2sθ−f)⋅∇\widehat{\mathcal{L}}_t^\theta=\frac{1}{2}g^2\Delta+(g^2s_\theta-f)\cdot\nabla, which is equation (3) with ∇log⁡pt\nabla\log p_t replaced by sθs_\theta. The initial condition is attained along X^\hat{X}, by the argument of Theorem 1(b).

Equality. If sθ=∇log⁡pts_\theta=\nabla\log p_t, the two Cauchy problems and the two reverse processes coincide: started from pTp_T, the model process has, by (A), the law of the time reversal of XX, so attainment of the initial condition along X^\hat{X} is attainment along XX, and part (c) of Theorem 1 gives hmodel=hdatah^{\mathrm{model}}=h^{\mathrm{data}} for every CC. More generally, if the model’s reverse process has the transition laws of the true reverse process, then Pr⁡(X^(0)∈C∣X^(t)=x)=Pr⁡(X0∈C∣Xt=x)\Pr(\hat{X}_{(0)}\in C\mid\hat{X}_{(t)}=x)=\Pr(X_0\in C\mid X_t=x) by definition.

Size of the gap. Let et=∇log⁡pt−sθ(⋅,t)e_t=\nabla\log p_t-s_\theta(\cdot,t) and wt=htdata−htmodelw_t=h_t^{\mathrm{data}}-h_t^{\mathrm{model}}. Subtracting the two equations, ∂tw=L^tθw+g(t)2et⋅∇htdata\partial_t w=\widehat{\mathcal{L}}_t^\theta w+g(t)^2e_t\cdot\nabla h_t^{\mathrm{data}}. Applying Itô’s formula to ww along X^\hat{X} from diffusion time tt down to ε\varepsilon, and assuming E[∫εtg(τ)2∣eτ⋅∇hτdata∣(X^(τ)) dτ∣X^(t)=x]<∞\mathbb{E}\left[\int_\varepsilon^t g(\tau)^2\left|e_\tau\cdot\nabla h_\tau^{\mathrm{data}}\right|(\hat{X}_{(\tau)})\,\mathrm{d}\tau\mid\hat{X}_{(t)}=x\right]<\infty (with ∣w∣≤1|w|\le1 this also makes the stochastic integral a true martingale),

wt(x)=E[wε(X^(ε))∣X^(t)=x]+E[∫εtg(τ)2eτ(X^(τ))⋅∇hτdata(X^(τ)) dτ∣X^(t)=x].w_t(x)=\mathbb{E}\left[w_\varepsilon(\hat{X}_{(\varepsilon)})\mid\hat{X}_{(t)}=x\right]+\mathbb{E}\left[\int_\varepsilon^t g(\tau)^2e_\tau(\hat{X}_{(\tau)})\cdot\nabla h_\tau^{\mathrm{data}}(\hat{X}_{(\tau)})\,\mathrm{d}\tau\mid\hat{X}_{(t)}=x\right].

The first term vanishes as ε↓0\varepsilon\downarrow0 when both functions approach 1C1_C along the model’s paths, and the gap is then an integral of the score error along the model’s paths, weighted by the gradient of hdatah^{\mathrm{data}}: it vanishes when e≡0e\equiv0 and does not depend on how either function is estimated.

The closed form of the guidance field

For the variance-preserving kernel qt(x∣x0)=N(x;αˉtx0,(1−αˉt)I)q_t(x\mid x_0)=\mathcal{N}(x;\sqrt{\bar{\alpha}_t}x_0,(1-\bar{\alpha}_t)I), ∇xqt(x∣x0)=qt(x∣x0)(αˉtx0−x)/(1−αˉt)\nabla_xq_t(x\mid x_0)=q_t(x\mid x_0)(\sqrt{\bar{\alpha}_t}x_0-x)/(1-\bar{\alpha}_t). Differentiating mtm_t and ptp_t under the integral sign, which the Gaussian factor permits,

∇log⁡mt(x)=αˉtE[X0∣Xt=x,X0∈C]−x1−αˉt,∇log⁡pt(x)=αˉtE[X0∣Xt=x]−x1−αˉt,\nabla\log m_t(x)=\frac{\sqrt{\bar{\alpha}_t}\mathbb{E}[X_0\mid X_t=x,X_0\in C]-x}{1-\bar{\alpha}_t},\qquad \nabla\log p_t(x)=\frac{\sqrt{\bar{\alpha}_t}\mathbb{E}[X_0\mid X_t=x]-x}{1-\bar{\alpha}_t},

the second being Tweedie’s formula (Efron [14]). Their difference is equation (5). The reference field of Table 4 and Table 6 estimates both conditional means from the same reverse trajectories of the frozen model started at xtx_t. These trajectories follow the model’s reverse process, so the reference is the right-hand side of equation (5) with the model’s posterior in place of the data posterior. It equals ∇log⁡htmodel\nabla\log h_t^{\mathrm{model}} when the model’s reverse kernel from level tt to 0 has the form Kt(dx0∣x)∝μt(dx0)qt(x∣x0)K_t(\mathrm{d}x_0\mid x)\propto\mu_t(\mathrm{d}x_0)q_t(x\mid x_0), as for an exact score, and otherwise differs from it by a term due to the model’s error. Since hθh_\theta estimates htdatah_t^{\mathrm{data}}, the reported cosines contain the estimated gap of Proposition 3 and this discrepancy.

The guided sampler and composition

In the DDPM parameterization sθ=−ϵθ/1−αˉts_\theta= -\epsilon_\theta/ \sqrt{1-\bar{\alpha}_t}, so the replacement equation (8) is the same as replacing the score by s~=sθ+γ∇log⁡(hθ+δ)\tilde{s} = s_\theta+ \gamma\nabla\log(h_\theta+ \delta). With γ=1\gamma= 1, δ=0\delta= 0 and exact sθs_\theta and hθh_\theta, s~=∇log⁡pt+∇log⁡ht=∇log⁡pt(⋅∣X0∈C)\tilde{s} = \nabla\log p_t + \nabla\log h_t = \nabla\log p_t(\cdot\mid X_0 \in C), the score in the drift of Theorem 1(d); a sampler that discretizes the reverse-time dynamics with a score therefore discretizes the hh-transformed dynamics when it is given s~\tilde{s}. DDIM discretizes the probability-flow ODE, whose velocity uses the score in the same way; with the conditional score it transports pT(⋅∣X0∈C)p_T(\cdot\mid X_0 \in C) through the same marginals, which also solve the forward equation. On QM9 we add γ∇log⁡(hθ+δ)\gamma\nabla\log(h_\theta+ \delta) to the node-feature score only, so even at γ=1\gamma= 1 the correction is partial. On Stable Diffusion the correction is added to the classifier-free-guided noise prediction, so it conditions the guided sampler rather than a single score model.

If, for every t∈(0,T]t \in(0,T], 1C1(X0)\mathbf{1}_{C_1}(X_0) and 1C2(X0)\mathbf{1}_{C_2}(X_0) are conditionally independent given XtX_t, then Pr⁡(X0∈C1∩C2∣Xt=x)=ht(1)(x)ht(2)(x)\Pr(X_0 \in C_1 \cap C_2 \mid X_t = x) = h_t^{(1)}(x)h_t^{(2)}(x), the correction for the intersection is ∇log⁡ht(1)+∇log⁡ht(2)\nabla\log h_t^{(1)} + \nabla\log h_t^{(2)}, and Theorem 1(d) applied to C1∩C2C_1 \cap C_2 gives marginals pt(⋅∣X0∈C1∩C2)p_t(\cdot\mid X_0 \in C_1 \cap C_2). With weights (w1,w2)(w_1,w_2) the drift at time tt uses the score of the density proportional to pt(ht(1))w1(ht(2))w2p_t\left(h_t^{(1)}\right)^{w_1}\left(h_t^{(2)}\right)^{w_2}; for weights other than (1,1)(1,1) this family does not in general solve the forward equation, so it is not the marginal law of the guided process, and the weights act as a trade-off between the constraints.

Implementation details

Training objective

The heads of § 6.1, § 6.6 and § 6.7 minimize Lbdry+Lsup+0.1Lfc\mathcal{L}_{\mathrm{bdry}} + \mathcal{L}_{\mathrm{sup}} + 0.1\mathcal{L}_{\mathrm{fc}} exactly as written in § 4: tt is drawn uniformly from {0,…,T−1}\{0,\ldots,T-1\} for Lsup\mathcal{L}_{\mathrm{sup}} and from {0,…,T−2}\{0,\ldots,T-2\} for Lfc\mathcal{L}_{\mathrm{fc}}, and xtx_t and xt+1′x'_{t+1} are noised from the same x0x_0 with independent noise. (Noise levels are indexed from 0 to T−1T-1 in code, matching the samplers’ timestep indices; Algorithm 1 draws one tt for both terms, the code draws them independently, and the expected objective is the same.) The two regularizers play different roles. Lbdry\mathcal{L}_{\mathrm{bdry}} is minimized by h(⋅,0)=1Ch(\cdot,0)=\mathbf{1}_C, the initial condition itself, so it adds weight at t=0t=0 without changing the target. Lfc\mathcal{L}_{\mathrm{fc}} is a smoothing penalty and moves the target: when its stop-gradient target equals ht+1h_{t+1}, the minimizer of Lsup+λfcLfc\mathcal{L}_{\mathrm{sup}}+\lambda_{\mathrm{fc}}\mathcal{L}_{\mathrm{fc}} at level tt is, pointwise,

ht(x)+λfc E[ht+1(Xt+1′)∣Xt=x]1+λfc\frac{h_t(x)+\lambda_{\mathrm{fc}}\,\mathbb{E}\left[h_{t+1}(X'_{t+1})\mid X_t=x\right]}{1+\lambda_{\mathrm{fc}}}

a convex combination of hth_t and the posterior mean, given Xt=xX_t=x, of the label after an extra independent noising of X0X_0 to level $t+1. The second term need not be close to hth_t even for adjacent levels. With λfc=0.1\lambda_{\mathrm{fc}}=0.1 the bias is at most $1/11$ in absolute value, and Proposition 1 rests on Lsup\mathcal{L}_{\mathrm{sup}} alone.

The MNIST heads of § 3 and § 6.5 and Appendix § 12.§ 8 (digit 3, even digit, digit >5>5) use the same three terms and weights with one difference in the consistency term: its pair is (xt,xt−1)(x_t,x_{t-1}), noised from the same x0x_0 with a shared noise draw, and the stop-gradient is on the less noisy member hθ(xt−1,t−1)h_\theta(x_{t-1},t-1). The two members of this pair are close, so this term moves the target less than independent noisings do; the small-hh evidence of Table 4 and Table 6 comes from these heads.

Evaluation protocol

Satisfaction is the fraction of generated samples that satisfy the constraint; every run also records a Wilson 95% interval (Wilson, [51]). For the pixel predicates, the Stable Diffusion predicate and the molecular predicates, the function that labels the training data also scores the samples. For the MNIST digit constraints and the CIFAR-10 classes cat and ship, the training labels are the dataset labels, and a classifier trained separately on the same dataset judges the generated samples. Tables report means over seeds and, where shown, the standard deviation over seeds (normalized by the number of seeds).

FID (Heusel et al., [19]) is computed with torch-fidelity (Obukhov et al., [40]) between the samples of one seed and a reference set; the reference sets are listed per experiment below. The CLIP score is 100 times the cosine similarity between the image and prompt embeddings of the OpenAI CLIP ViT-L/14 model ([42]), averaged over images.

Molecular metrics. Validity is the fraction of generated graphs that decode to a valid RDKit molecule. Satisfaction and uniqueness are computed over valid molecules, and novelty is the fraction of unique valid molecules whose SMILES string is not among the 120,732 distinct SMILES of the 120,803 training molecules. QM9 is drawn from an exhaustive enumeration of small molecules, so a novel molecule here is one absent from the training set, not new chemistry.

Timing is wall-clock time per sample over a full run on one GPU. The MNIST, CIFAR-10 and QM9 runs used an NVIDIA RTX 4090, except the QM9 SVDD-PM run and the unguided reference it is compared with, which both ran on an NVIDIA T4, and the runs of Appendix § 12.§ 4, Table 8 and the unguided Euler–Maruyama QM9 baseline, which used an NVIDIA A100. On Stable Diffusion, the unguided, guided and classifier-guided runs of Table 19 and Table 20 shared one session, the SVDD-PM run used a second one, and the runs of Table 21 a third, on an NVIDIA A100.

Predicateγ=5\gamma= 5 Sat.γ=5\gamma= 5 FIDc\mathrm{FID}_{c}γ=5\gamma= 5 FIDf\mathrm{FID}_{f}γ=15\gamma= 15 Sat.γ=15\gamma= 15 FIDc\mathrm{FID}_{c}γ=15\gamma= 15 FIDf\mathrm{FID}_{f}
Red-pixel100.062.882.6100.098.2120.1
Upper luminance100.043.475.0100.050.186.6
Edge density99.752.567.5100.072.790.4
Low saturation99.548.662.4100.071.285.6

Table 8. Classifier guidance with the standard rule on the four CIFAR-10 predicates of Table 1. Satisfaction (%), FIDc\mathrm{FID}_{c} and FIDf\mathrm{FID}_{f}; mean over 3 seeds ×\times 1,000 samples; the seed standard deviation is at most 1.3 for FIDc\mathrm{FID}_{c} and 0.2 for satisfaction.

MNIST

Data and base model. MNIST (LeCun et al., [30]), scaled to [−1,1][-1,1]: the 60,000 training images label and train the heads, and held-out quantities use the test set. The base model is a DDPM with a small U-Net that we trained on MNIST, with a linear schedule from β1=10−4\beta_1 = 10^{-4} to βT=0.02\beta_T = 0.02, T=1000T = 1000, sampled with 1000 ancestral steps.

Heads. Every MNIST head, including the SVDD-MC value network, has 122,657 parameters: three 3×33 \times3 convolutions with 32, 64 and 128 channels (ReLU, two 2×22 \times2 max-pools, global average pooling), a 32-dimensional sinusoidal time embedding followed by a linear layer, and a head 160→128→64→1160 \to128 \to64 \to1 with a sigmoid output. The heads of § 3 and § 6.5 and Appendix § 12.§ 8 were trained with Adam (learning rate 5×10−45 \times10^{-4}, batch 128) for 30 epochs (20 for the digit >5> 5 head). The ablation heads of Appendix § 12.§ 7 were trained with AdamW (learning rate 3×10−43 \times10^{-4}, weight decay 10−410^{-4}, batch 128) for 30 epochs.

Diagnostics of § 3. σ^2(t)\hat{\sigma}^{2}(t) is the sample variance of hθ(Xt,t)h_\theta(X_t,t) over forward-noised test images, every 10 steps; the guidance norm is the mean ℓ2\ell_2 norm of ∇log⁡(hθ+δ)\nabla\log(h_\theta+ \delta) over forward-noised test images. For the Monte Carlo reference (Table 4 and Table 6) we take, at each tt, 50 test images, 25 of them of digit 3, noise each once, and run K=1,000K = 1{,}000 reverse trajectories of the frozen model from each xtx_t in bfloat16 precision. Endpoints are judged by the classifier; hMC=(nsat+0.5)/(K+1)h_{\mathrm{MC}} = (n_{\mathrm{sat}} + 0.5)/(K + 1), and the reference field is equation (5) with both conditional means taken over the same trajectories. The reference costs 50Kt50Kt denoiser evaluations at level tt, from 5×1065 \times10^6 at t=100t = 100 to 4.5×1074.5 \times10^7 at t=900t = 900. The δ\delta sweep uses δ∈{10−10,10−8,10−6,10−4,10−2}\delta\in\{10^{-10}, 10^{-8}, 10^{-6}, 10^{-4}, 10^{-2}\} at γ=5\gamma= 5 with 3 seeds ×\times 1,000 samples per value; the small-hh end uses 5,000 held-out samples per noise level.

Results of § 3. The mean guidance norm is 2.32 at t=100t = 100 and 0.225 at t=900t = 900. The fraction of held-out states with hθ<0.01h_\theta< 0.01 is 89% at t=50t = 50, 21.6% at t=500t = 500, 2.4% at t=600t = 600 and 0% from t=700t = 700 on. Over the five values of δ\delta, satisfaction is 94.8±0.5%94.8 \pm0.5\%.

SVDD (§ 6.5). At every step each particle draws MM candidates from the base model’s transition (one shared denoiser call for the mean) and keeps one of them, either with probability proportional to its value or the one of highest value. SVDD-PM values a candidate by the classifier’s probability of digit 3 on its posterior-mean (Tweedie) estimate, which costs one denoiser call per candidate. The SVDD-MC value network is trained by regression on 500,000 pairs (xt,t)(x_t,t), taken every 10 steps along 5,000 unguided trajectories of the base model and labelled by the classifier’s verdict on each trajectory’s endpoint (10.8% positive). Building these targets takes 5,000,000 per-sample denoiser evaluations (233.1 s), and the regression 391.5 s. Our head was retrained under the same harness (optimizer, epochs, batch size and steps per epoch) to time it: 340.3 s and no denoiser evaluations. The SVDD comparison uses 5 seeds ×\times 5,000 samples per method.

CIFAR-10

Base model. The CIFAR-10 (Krizhevsky, [27]) DDPM of Ho et al. [21] (google/ddpm-cifar10-32), sampled with 1000 ancestral steps.

Predicates. On images in [0,1][0,1], with luminance Y=0.299R+0.587G+0.114BY = 0.299R + 0.587G + 0.114B: red-pixel holds if more than 5% of pixels satisfy R>G+0.15R > G + 0.15 and R>B+0.15R > B + 0.15; edge density holds if the mean Sobel gradient magnitude of YY (3×33 \times3 kernels, zero padding) exceeds 0.8453; low saturation holds if the mean over pixels of (max⁡−min⁡)/(max⁡+10−8)(\max- \min)/(\max+ 10^{-8}) across the colour channels is below 0.1712; upper luminance holds if the mean of YY over rows 0–15 minus its mean over rows 16–31 exceeds 0.1430. The last three thresholds are the 75th, 25th and 75th percentiles of the statistic on the first 10,000 training images. Positive rates on the 50,000 training images are 26.8%, 24.8%, 25.0% and 24.5%. For the class constraints of Table 9, labels are the CIFAR-10 classes.

Classγ\gammaSatisfaction (%)FIDc\mathrm{FID}_{c}FIDf\mathrm{FID}_{f}
Cat014.282.542.5
232.766.654.5
551.260.870.5
1066.260.086.2
1571.562.595.8
Ship07.2140.442.5
250.252.777.3
575.941.5114.7
1084.642.6132.8
1587.544.0139.5

Table 9. Our guidance on two CIFAR-10 class constraints. A separately trained classifier judges the samples and selects the constraint-conditional FID reference from the test set. Mean over 3 seeds ×\times 1,000 samples; the seed standard deviation is at most 2.0.

Heads. hθh_\theta has 675,969 parameters: 3×33 \times3 convolutions 3→64→643 \to64 \to64, max-pool, 64→128→12864 \to128 \to128, max-pool, 128→256128 \to256 (batch normalization and ReLU after each), global average pooling, a 64-dimensional sinusoidal time embedding with a linear layer, and a head 320→256→128→1320 \to256 \to128 \to1 (ReLU, dropout 0.1 after the first layer, sigmoid output). It is trained on the full training set with AdamW (learning rate 3×10−43 \times10^{-4}, weight decay 10−410^{-4}, batch 128) for 50 epochs, in 435–448 s. The classifier-guidance baseline uses the same trunk and time embedding with a two-logit head (676,098 parameters), trained by cross-entropy on the same labels, at uniformly drawn tt, with the same optimizer, batch size and number of epochs (301–322 s, plus about 4 s to label the training set). It guides with the standard rule ϵ←ϵ−γ1−αˉt g\epsilon\leftarrow\epsilon- \gamma\sqrt{1-\bar{\alpha}_t}\,g, g=∇xtlog⁡pϕ(y=1∣xt,t)g = \nabla_{x_t} \log p_\phi(y=1 \mid x_t,t), or with the normalized rule, which divides gg by ∥g∥\lVert g \rVert per sample (CG-norm). A guided sample costs 0.404 s with either method, against 0.386 s unguided.

FID references. Each seed contributes 1,000 samples. The full-distribution reference is the CIFAR-10 test set (10,000 images). The constraint-conditional reference contains the test images that satisfy the predicate: 2,704 (red-pixel), 2,538 (edge density), 2,536 (low saturation) and 2,416 (upper luminance); for cat and ship, it contains the test images that the evaluation classifier assigns to the class.

Stable Diffusion 1.5

Base model and sampler. Stable Diffusion 1.5 (Rombach et al., [44]) (runwayml/stable-diffusion-v1-5) at 512×512512 \times512, DDIM (Song et al., [46]) with 50 steps and classifier-free guidance scale 7.5. The head operates on the 4×64×644 \times64 \times64 latents (VAE posterior mean scaled by 0.18215) and is queried on the latent the U-Net sees at every step.

Predicate and data. An image is grayscale if its mean HSV saturation (PIL, scaled to [0,1)[0,1)) is below 0.10. The same function labels the training images, center-cropped to 512×512512 \times512, and scores the decoded samples. Training uses a fixed subset of 30,000 COCO train2017 images (Lin et al., [33]) (6.1% positive), split into 28,500 for training and 1,500 for probing.

Heads. hθh_\theta has 1,672,833 parameters: 3×33 \times3 convolutions 4→64→128→256→2564 \to64 \to128 \to256 \to256 with stride 2 and a final 256→256256 \to256 convolution, each followed by group normalization (8 groups) and SiLU, global average pooling, a 64-dimensional time embedding, and the head of the CIFAR-10 network. It is trained on Stable Diffusion’s 1000-step noise schedule with AdamW (learning rate 3×10−43 \times10^{-4}, weight decay 10−410^{-4}, batch 256) for 100 epochs, in 313 s. The classifier-guidance baseline has the same trunk with a two-logit head (1,672,962 parameters), trained by cross-entropy with the same optimizer, batch size and number of epochs (149 s). It guides with the normalized rule in Table 20, and with both rules in Table 21. On the prone split, the held-out accuracy of hθh_\theta (thresholded at 0.5) at t=100,300,500,700,900t = 100, 300, 500, 700, 900 is 98.4, 98.0, 97.5, 96.1 and 94.7%, and that of the classifier is 98.1, 97.6, 97.8, 95.1 and 94.5%.

Prompts and metrics. The prompts are the first captions of 200 randomly chosen COCO train2017 images. For each seed they are shuffled with the seed and cycled to 500 images, so all methods see the same prompts in the same order. The constraint-conditional FID reference is the set of 1,842 grayscale images in the 30,000-image subset; the full-distribution reference is 5,000 random COCO val2017 images, center-cropped to 512×512512 \times512. Table 21 uses a second prompt set, the first captions of 200 COCO train2017 images chosen with seed 0, with 1 seed ×\times 500 images per run and the same full-distribution reference.

SVDD-PM. At every step, M=5M = 5 stochastic DDIM candidates (η=1\eta= 1) are drawn; each is valued by the predicate on its decoded posterior-mean estimate (from the text-conditional prediction), and the candidate of highest value is kept; 1 seed ×\times 300 images.

QM9

Base model and samplers. The released GDSS checkpoint for QM9 [25]: a variance-preserving SDE (β\beta from 0.1 to 1.0) on node features and a variance-exploding SDE (σ\sigma from 0.2 to 1.0) on the adjacency, with 1,000 steps and node counts drawn from the training graphs. All runs integrate the reverse SDE with the reverse-diffusion (Euler–Maruyama) predictor and the same score networks; guided runs add γ∇log⁡(hθ+δ)\gamma\nabla\log(h_\theta+ \delta) to the node-feature score, and the unguided baseline is the same sampler with γ=0\gamma= 0. For reference, GDSS’s predictor–corrector sampler (reverse-diffusion predictor, one Langevin corrector step, signal-to-noise ratio 0.2, scale 0.9) gives 66.9% on the Lipinski-type filter. Each seed generates 1,000 molecules in batches of 50.

Data and predicates. The QM9 [43] training split as preprocessed by GDSS: 120,803 kekulized molecules with at most nine heavy atoms, all of which decode to valid molecules; the remaining 13,082 molecules form the test split. Predicates are computed with RDKit on the decoded SMILES, identically for training labels and generated molecules. Ring presence holds if the molecule has at least one ring (89.5% of training molecules). The Lipinski-type filter [34] requires molecular weight below 125, at most one hydrogen-bond donor and at most two acceptors (35.3%); the thresholds were chosen by grid search for the positive rate closest to 35%, since QM9 molecules are far smaller than the drug-like molecules for which the original cutoffs were designed.

Heads. hθh_\theta has 320,321 parameters: the node features and the adjacency rows are each encoded by two linear layers of width 256 with ReLU and averaged over nodes, a 64-dimensional time embedding is appended, and a head 576 → 256 → 128 → 1 with sigmoid output follows. Training noises both the node features and the adjacency with their forward kernels and uses Adam (learning rate 3×10−43 \times10^{-4}, batch 32) for 150 epochs.

SVDD-PM. In the same Euler–Maruyama loop, each step draws M=5M = 5 candidate transitions, decodes the posterior-mean estimate of each into a molecule, scores it with the predicate, and keeps the candidate of highest value; 1 seed × 500 molecules, timed on a T4 GPU, like the unguided reference it is compared with, GDSS’s predictor–corrector sampler (8.24 against 1.12 s per molecule). The unguided Euler–Maruyama baseline took 0.60 s per molecule on an NVIDIA A100.

Additional results

Tables and algorithm referenced from the main text

Algorithm 1 Training and guided sampling

Train: repeat: draw x0x_0 with label y=1C(x0)y = 1_C(x_0), draw tt; form xt,xt+1′x_t, x'_{t+1} by independent forward noising of x0x_0; take a gradient step on (hθ(xt,t)−y)2+(hθ(x0,0)−y)2+λfc(hθ(xt,t)−sg⁡[hθ(xt+1′,t+1)])2(h_\theta(x_t,t)-y)^2+(h_\theta(x_0,0)-y)^2+\lambda_{\mathrm{fc}}(h_\theta(x_t,t)-\operatorname{sg}[h_\theta(x'_{t+1},t+1)])^2

Sample: xT∼N(0,I)x_T \sim\mathcal{N}(0,I) for t=T,…,1t=T,\ldots,1 do gt←∇xtlog⁡(hθ(xt,t)+δ)g_t \leftarrow\nabla_{x_t}\log(h_\theta(x_t,t)+\delta) ϵ~←ϵθ(xt,t)−γ1−αˉt gt\tilde{\epsilon} \leftarrow\epsilon_\theta(x_t,t)-\gamma\sqrt{1-\bar{\alpha}_t}\,g_t xt−1←x_{t-1} \leftarrow reverse step of the base sampler with ϵ~\tilde{\epsilon} end for return x0x_0

The learned guidance field

Table 6 extends Table 4 to seven noise levels. From t=400t = 400 on, where most states have enough satisfying endpoints to measure the reference, the cosine lies between 0.47 and 0.54, and the error of hθh_\theta against hMCh_{\mathrm{MC}} falls from 0.17 to 0.03. At t≤300t \le300 the other half of the states have fewer than 10 satisfying endpoints, so the eligible states are those with hMCh_{\mathrm{MC}} near 1. There ∇log⁡ht\nabla\log h_t is small and its estimate in equation (5) rests on the few endpoints outside CC, so we do not interpret the cosine at these levels.

CIFAR-10

Table 7 gives the complete sweep of ours and of the normalized rule behind Table 1. At every guidance scale and under both protocols our samples are closer to the reference than those of normalized classifier guidance: the ratio of its FID to ours ranges from 1.39 to 3.21 for FIDc\mathrm{FID}_c and from 1.39 to 2.55 for FIDf\mathrm{FID}_f. Table 8 gives the standard rule of Table 1 with FIDf\mathrm{FID}_f. On the class constraints of Table 9, satisfaction rises from 14.2% to 71.5% (cat) and from 7.2% to 87.5% (ship), and FIDc\mathrm{FID}_c improves from 82.5 and 140.4 to at most 62.5 and 44.0 for γ≥5\gamma\ge5, while FIDf\mathrm{FID}_f rises as the samples concentrate on one class.

Allocation, estimand and rejection experiments

These runs use the base model and heads of Appendix § 11.§ 4, 1,000 ancestral steps unless stated, 1,000 samples per run, and an NVIDIA A100; the classifier-guidance arms use the matched classifiers of § 6.1 with the standard rule (and, in Table 2, two further classifiers trained with the same recipe). Unguided pass rates differ slightly between the sample sets of Table 1, Table 12 and the rejection runs below (30.8 to 31.5% on red-pixel, 21.8 to 23.1% on upper luminance), as expected at these sample sizes.

Predicate1000 steps100 steps
Pass (%)Model lawData lawPass (%)Model lawData law
Red-pixel31.50.0510.05146.00.1550.049
Upper luminance21.80.0210.02421.80.0230.024

Table 12. Calibration of hθh_{\theta} under the model’s law and the data law (mean expected calibration error over ten noise levels), with the model’s unguided pass rate over the 2,000 trajectories.

Step profile. Along 250 standard-rule trajectories at γ=2\gamma= 2, mˉ(t)\bar{m}(t) is the mean over samples of 1−αˉt∥g∥\sqrt{1-\bar{\alpha}_{t}}\lVert g\rVert (Table 10). The rule with an equal step gives every sample γmˉ(t)g/∥g∥\gamma\bar{m}(t)g/\lVert g\rVert; the 1/h^1/\hat{h} rule gives sample ii the step γmˉ(t)wigi/∥gi∥\gamma\bar{m}(t)w_i g_i/\lVert g_i\rVert with wi=(1/h^i)/mean⁡j(1/h^j)w_i = (1/\hat{h}_i)/\operatorname{mean}_{j}(1/\hat{h}_j) over the batch of 250 and h^i=pϕ(y=1∣xt)\hat{h}_i = p_{\phi}(y=1 \mid x_t) floored at 10−310^{-3}. Classifiers 2 and 3 of Table 2 are trained with training seeds 1 and 2 and the budget of Appendix § 11.§ 4; for each, mˉ(t)\bar{m}(t) is measured along its own 1,000 standard-rule trajectories (sampling seed 0).

tt99989979969959949939929919999
Red-pixel, ours0.0670.0660.1180.2090.2760.3500.3760.3010.2320.143
Red-pixel, CG0.0910.0840.1470.2450.3560.4010.3170.2320.1310.069
Upper lum., ours0.1630.1810.3580.4890.3720.1860.0900.0440.0230.012
Upper lum., CG0.1410.2050.4320.5260.2660.0990.0460.0180.0120.006
Normalized1.0001.0000.9990.9970.9870.9600.8970.7770.5840.321

Table 10. Mean step per unit γ\gamma, 1−αˉt∥∇log⁡h^∥\sqrt{1-\bar{\alpha}_{t}}\lVert\nabla\log\hat{h}\rVert averaged over 250 trajectories at γ=2\gamma= 2: “ours” rows along our guided trajectories, CG rows along standard-rule trajectories of the matched classifier. The normalized rule’s step is 1−αˉt\sqrt{1-\bar{\alpha}_{t}}.

Step and h^\hat{h} across samples. Along 250 standard-rule trajectories at γ=2\gamma= 2 (sampling seed 600), Table 11 gives the Spearman correlation between each sample’s step and h^(xt)\hat{h}(x_t); every correlation has p<10−24p < 10^{-24}.

Estimands. Calibration is the expected calibration error with ten equal-width bins, averaged over ten noise levels spaced evenly along the sampler’s schedule; model-law scores use 2,000 unguided trajectories (seed 300) and their outcomes, data-law scores the 10,000 forward-noised CIFAR-10 test images. With 100 steps the sampler uses the base model’s scheduler with 100 strided timesteps (Table 12). Guided runs with 100 steps (seed 0), satisfaction (%) and FIDc\mathrm{FID}_{c}: red-pixel unguided 45.7 / 118.1, ours γ=2\gamma=2 99.5 / 103.9, CG γ=2\gamma=2 99.7 / 107.6; upper luminance unguided 22.3 / 140.1, ours γ=2\gamma=2 99.5 / 104.3, CG γ=2\gamma=2 99.6 / 104.3.

Rejection sampling and the rare constraint. Rejection runs draw 4,000 (red-pixel) and 4,500 (upper luminance) unguided samples with seed 100 and keep the first 1,000 that pass: 1,230 of 4,000 (30.8%) and 1,014 of 4,500 (22.5%) pass, and the first 1,000 accepted samples have FIDc\mathrm{FID}_{c} 48.4 and 42.4 and FIDf\mathrm{FID}_{f} 58.2 and 51.6. The rare constraint holds if the red-pixel fraction of the image exceeds 0.6104, the 99th percentile over the training set: 498 of 50,000 training and 87 of 10,000 test images pass, and its FIDc\mathrm{FID}_{c} reference is all 585. Both estimators are retrained on these labels with the budget of Appendix § 11.§ 4, with two training seeds (Table 13). Unguided and guided samples take 0.326 and 0.345 s.

Methodγ\gammaSat. (seed 0)FIDc\mathrm{FID}_{c} (seed 0)Sat. (seed 1)FIDc\mathrm{FID}_{c} (seed 1)
Ours299.080.295.579.8
599.9104.9––
10100.0131.9––
CG295.478.696.080.8
5100.0109.0––
10100.0149.6––

Table 13. The rare constraint (1.00% of training images; the model passes 1.7% of 2,000 unguided samples). Satisfaction (%) and FIDc\mathrm{FID}_{c}, sampling seed 0, 1,000 samples per run, for heads trained with seed 0 and seed 1; CG uses the standard rule; –: not run.

Classifier accuracy across noise levels

By t=750t = 750 every classifier is within 1.3 points of its majority baseline (Table 14, Figure 3b). On red-pixel, our head loses its accuracy at the same rate as the classifier. Both estimate the same function (§ 5); what differs between the two methods is the drift applied once the signal is gone.

Figure 3. Signal contraction in three settings. (a) The constraint-signal variance σ^2(t)\hat{\sigma}^{2}(t) on MNIST falls 492× between t=100t = 100 and t=900t = 900 (Proposition 2). (b) On CIFAR-10, the held-out accuracy of the matched noisy classifier above its majority baseline decays to within 1.3 points of that baseline by t=750t = 750 for all four predicates. (c) On Stable Diffusion 1.5, the held-out accuracies of hθh_{\theta} and the matched classifier are within 1.0 point of each other at every probed noise level.

PredicateEstimatort=0t = 0250500750999Majority
Red-pixelClassifier96.788.577.572.672.573.2
Red-pixelhθh_{\theta}94.387.277.672.872.973.2
Upper luminanceClassifier98.497.490.976.874.475.5
Edge densityClassifier95.791.482.174.374.675.2
Low saturationClassifier96.690.680.875.274.975.0

Table 14. Held-out accuracy (%) across noise levels. Classifier rows: the matched noisy-state classifiers of § 6.1 on the first 2,000 CIFAR-10 test images (Figure 3b). hθh_{\theta} row: our head for red-pixel, thresholded at 0.5, on the 4,000 test images of Figure 1, of which 27.1% are positive. The majority baseline is 100 minus the training positive rate.

Figure 1. The learned hθh_\theta on held-out, forward-noised CIFAR-10 images (red-pixel, Y=1C(x0)Y = 1_C(x_0)). (a) Two test images with Y=1Y = 1 and two with Y=0Y = 0 along one forward path, with hθ(xt,t)h_\theta(x_t,t) under each. (b) Over 4,000 test images the label groups separate at small tt and merge as tt grows. (c) The variance of the learned hθ(Xt,t)h_\theta(X_t,t) falls from 0.15 at t=0t = 0 to 3×10−43 \times10^{-4} at t=900t = 900, as Proposition 2 predicts for hth_t.

Comparison with SVDD on MNIST

With proportional selection SVDD-PM needs M=20M = 20 candidates, at 21× our time per sample, to match our satisfaction; keeping the best of M=5M = 5 candidates reaches 100.0% at 5.7× our time per sample (Table 15). Every SVDD-PM step also evaluates the checker on the posterior-mean estimates of MM candidates, whereas our sampler never calls it.

MethodMMCandidate selectionSatisfaction (%)s/sample
Ours (γ=5\gamma= 5)––95.1 ± 0.30.050
SVDD-PM5proportional to value92.5 ± 0.30.294
SVDD-PM20proportional to value95.2 ± 0.31.048
SVDD-PM5highest value100.0 ± 0.00.283

Table 15. Guidance on MNIST digit 3 against SVDD-PM, 5 seeds × 5,000 samples, our head and the SVDD-MC value network have 122,657 parameters each. Time is per sample on one RTX 4090. Training the SVDD-MC value network took 624.6 s, of which 233.1 s built the targets from 5,000,000 denoiser evaluations; training our head took 340.3 s and no denoiser evaluations.

Objective ablations

The method needs only Lsup\mathcal{L}_{\mathrm{sup}} (Table 16): with three training seeds per objective, Lsup\mathcal{L}_{\mathrm{sup}} alone reaches 86.7 ± 3.3%, and removing either regularizer, or both, does not lower satisfaction. The four objectives reach 81.3 to 86.7%, and the spread across training seeds (standard deviation 1.5 to 3.3 points) is several times larger than the spread across sampling seeds (0.14 to 0.44 points). This is what Proposition 1 predicts: Lsup\mathcal{L}_{\mathrm{sup}} alone identifies hh. The heads of § 6 were trained with the full objective before this ablation and are reported unchanged; we attribute no result to the regularizers. Among constructions of the consistency pair (Table 17), independent noisings of the same x0x_0, the construction of § 4, are best at γ=2\gamma= 2 and within 0.4 points of the best at γ≥5\gamma\ge5.

ObjectivePer training seed (%)Mean (%)
Lbdry+Lsup+0.1Lfc\mathcal{L}_{\mathrm{bdry}} + \mathcal{L}_{\mathrm{sup}} + 0.1\mathcal{L}_{\mathrm{fc}} (full)79.2 / 79.9 / 84.981.3 ± 2.5
Lbdry+Lsup\mathcal{L}_{\mathrm{bdry}} + \mathcal{L}_{\mathrm{sup}}85.3 / 83.9 / 89.686.3 ± 2.4
Lsup+0.1Lfc\mathcal{L}_{\mathrm{sup}} + 0.1\mathcal{L}_{\mathrm{fc}}87.4 / 83.9 / 86.786.0 ± 1.5
Lsup\mathcal{L}_{\mathrm{sup}} only88.2 / 82.2 / 89.886.7 ± 3.3

Table 16. Loss ablation on MNIST digit 3 at γ=3\gamma= 3 (strict fp32). Three heads per objective (training seeds 0–2), each evaluated over 5 sampling seeds × 5,000 samples; mean and standard deviation across training seeds. For every head, the standard deviation across sampling seeds is 0.14 to 0.44 points.

Pair (xt,xt+1′x_t, x'_{t+1})γ=2\gamma= 2γ=5\gamma= 5γ=10\gamma= 10
Independent noisings of x0x_0 (§ 4)76.7 ± 0.694.0 ± 0.198.3 ± 0.1
Shared noise draw72.8 ± 0.694.1 ± 0.298.7 ± 0.1
xt+1′x'_{t+1} drawn from q(xt+1∣xt)q(x_{t+1} \mid x_t)63.2 ± 0.587.8 ± 0.396.1 ± 0.2

Table 17. Construction of the consistency pair in Lfc\mathcal{L}_{\mathrm{fc}} on MNIST digit 3: one head per construction (training seed 0, default GPU precision), evaluated over 5 seeds × 5,000 samples. Satisfaction (%), mean ± standard deviation over seeds.

Composition on MNIST

Guiding with one head raises its own constraint but leaves the joint rate between 25.7% and 31.8%. Adding the two log-gradients raises the joint rate from 16.1% to 67.3% at γ=10\gamma= 10 with equal weights, and to 74.3% when the even head is weighted twice; the weights move satisfaction between the two constraints (Table 18).

Guidanceγ=2\gamma= 2γ=5\gamma= 5γ=10\gamma= 10
Unguided16.1 (53.7, 33.3)
Even only25.7 (84.9, 31.0)26.9 (92.5, 29.6)26.8 (95.7, 28.5)
>5> 5 only29.5 (51.4, 63.2)31.8 (45.7, 76.8)29.9 (39.4, 84.6)
Composed, (1, 1)43.2 (81.6, 56.5)56.0 (87.1, 66.7)67.3 (91.3, 74.8)
Composed, (2, 1)46.4 (88.1, 54.9)60.4 (92.1, 66.9)74.3 (95.5, 78.2)
Composed, (1, 2)48.0 (78.3, 65.7)61.0 (85.2, 74.1)71.4 (90.3, 80.1)
Composed, (0.5, 1)39.1 (72.5, 58.9)50.9 (79.8, 67.7)60.9 (85.2, 74.0)
Composed, (1, 0.5)37.3 (83.8, 46.9)49.6 (89.1, 57.8)60.3 (92.0, 66.9)

Table 18. Composition of two separately trained MNIST heads, digit even and digit >5> 5, whose intersection is {6,8}\{6, 8\}. Entries: joint satisfaction (%), followed by the two marginal rates (even, >5> 5) in parentheses; mean over 5 seeds ×\times 5,000 samples (seed standard deviation at most 1.0). Weights (w1,w2)(w_1,w_2) multiply log hevenh_{\mathrm{even}} and log h>5h_{>5}; (1,0.5)(1, 0.5) at γ=10\gamma= 10 applies the same guidance as (2,1)(2, 1) at γ=5\gamma= 5, as does (0.5,1)(0.5, 1) at γ=10\gamma= 10 with (1,2)(1, 2) at γ=5\gamma= 5.

Stable Diffusion 1.5

Our satisfaction increases with γ\gamma at every step of the sweep, from 33.1% at γ=10\gamma= 10 to 60.0% at γ=75\gamma= 75, while the CLIP score stays within 0.23 of the unguided value and FIDc_c improves from 109.9 to between 98.2 and 102.6. Normalized classifier guidance is highest at γ=10\gamma= 10 (65.1%): it rises from 12.3% at γ=1\gamma= 1 and declines as γ\gamma grows, to 24.7% at γ=75\gamma= 75 (Table 20).

QM9

On the Lipinski-type filter satisfaction rises with γ\gamma from 88.7% to 99.5% while uniqueness falls from 92.4% to 63.2%, and novelty stays at or above 92.8%, against 54.3% for the unguided model with the same sampler (Table 22). With composed guidance the joint rate is within 0.7 points of the product of the guided marginals at every γ≥5\gamma\ge5 (Table 23).

Methodγ\gamma / MMSatisfaction (%)Valid (%)Unique (%)Novel (%)
Lipinski-type filter
Unguided054.3 ±\pm 0.9100.098.098.3
Ours288.7 ±\pm 0.4100.092.496.2
Ours594.1 ±\pm 0.4100.088.895.2
Ours1096.8 ±\pm 0.2100.083.294.5
Ours2098.1 ±\pm 0.2100.076.094.4
Ours5099.5 ±\pm 0.4100.063.292.8
SVDD-PM{sup}†M=5M=596.0100.097.897.1

Table 22.

Table 22: Full QM9 results for the Lipinski-type filter, 3 seeds ×\times 1,000 molecules, all with the Euler–Maruyama sampler (satisfaction: mean ±\pm standard deviation over seeds). {sup}†SVDD-PM: 1 seed ×\times 500 molecules on a T4 GPU (Appendix § 11.§ 6).

Table 23: Composition on QM9: separately trained Lipinski-type and ring-presence heads, guided by log⁡hLip+log⁡hring\log h_{\mathrm{Lip}}+\log h_{\mathrm{ring}}; γ=0\gamma=0 is the unguided model with the same sampler, the run of Table 22. Joint satisfaction (mean ±\pm standard deviation over 3 seeds ×\times 1,000 molecules), the two marginal rates, and the product of the two rates shown.

Additional figures

Figure 4 computes hth_t exactly on a two-dimensional example, Figure 5 shows paired Stable Diffusion samples (§ 6.7), and Figure 6 plots the QM9 composition of Table 23.

Figure 4. The constraint posterior hth_t on a two-dimensional example, computed exactly. First panel: p0p_0 is a mixture of eight Gaussians and CC is a half-plane (shaded), with Pr⁡(X0∈C)=0.375\Pr(X_0 \in C)=0.375. Next three panels: ht(x)=Pr⁡(X0∈C∣Xt=x)h_t(x)=\Pr(X_0 \in C \mid X_t=x) at three noise levels; black curves are the 0.25, 0.5 and 0.75 level sets and the dashed line is the boundary of CC. As tt grows, hth_t flattens toward Pr⁡(X0∈C)\Pr(X_0 \in C) (Proposition 2). Last panel: deterministic reverse paths guided by ∇log⁡ht\nabla\log h_t with γ=1\gamma=1, from xTx_T (open circles) to x0x_0 (filled). All 2,000 guided samples land in CC, against 38.6% without guidance.

Figure 6. QM9 composition with separately trained Lipinski-type and ring-presence heads, guided by log⁡hLip+log⁡hring\log h_{\mathrm{Lip}} + \log h_{\mathrm{ring}}. Joint satisfaction (mean ±\pm seed standard deviation, 3 seeds ×\times 1,000 molecules) against the product of the two guided marginal rates, with the marginals shown for reference.

Further experiments

All runs in this section use 1,000 samples per run and seed, the CIFAR-10 base model, heads, predicates and FID references of Appendix § 11.§ 4, and an NVIDIA A100 unless stated (the class-constraint runs of Table 29 used an NVIDIA L4). The molecular runs of Appendix § 13.§ 5 use the QM9 model, head and metrics of Appendix § 11.§ 6 and were run partly on CPU.

Comparison with Spectral Guidance

Their method. We use the authors’ released code (github.com/gabmoreira/spectralguidance, commit 4a1f266). No trained network is released, so we trained their feature network fϕf_\phi with their CIFAR-10 configuration (K=512K = 512 singular functions, base width 256, batch 2048, learning rate 10−410^{-4}, ridge 10−310^{-3}, 1,000 epochs) on the same base model as ours, and ran their encoding script on the 50,000 training images at t=10,20,…,990t = 10, 20, \ldots, 990. The mean of the 16 largest values of the learned spectrum is 0.91 for t∈[300,400)t \in[300, 400), 0.56 for t∈[500,600)t \in[500, 600) and 0.05 for t≥800t \ge800, consistent with the transition near t≈400t \approx400 that they report. The guidance signal is the binary label 1C(x0)\mathbf{1}_{C}(x_0) of each training image, projected onto their basis as in their code.

Sampler. Both methods are run in their sampler with the settings of their example notebook: DDIM with 100 steps and η=1\eta= 1, the base network in half precision, guidance at every step, and the update x←x+κ1−αˉt sx \leftarrow x + \kappa\sqrt{1-\bar{\alpha}_t}\,s with strength κ\kappa. For Spectral Guidance ss is their released rule, ∇p^/p^\nabla\hat{p}/\hat{p} rescaled per sample to a norm in [0.1,0.3][0.1, 0.3]. For ours s=∇log⁡hθs = \nabla\log h_\theta with the heads of Appendix § 11.§ 4, unrescaled. With deterministic cuDNN, our copy of their loop reproduces their sample batch exactly (maximum absolute difference 0 over 16 samples on both predicates).

Tuning and reporting. Each method is swept over κ\kappa on sampling seed 0 (8 values for ours, 9 and 10 for Spectral Guidance). For each method and predicate we select the strength with the lowest FIDc\mathrm{FID}_c among those with at least 99.9% satisfaction on seed 0. The comparison is then reported on seeds 1 and 2, which play no part in the selection (Table 24). Satisfaction, FIDc\mathrm{FID}_c and FIDf\mathrm{FID}_f follow Appendix § 11.§ 2 and Appendix § 11.§ 4: the constraint-conditional reference is the 2,704 (red-pixel) or 2,416 (upper luminance) test images that satisfy the predicate, and the full reference is the 10,000 test images.

PredicateMethodκ\kappaSat. (%)FIDc\mathrm{FID}_cFIDf\mathrm{FID}_fs/sample
Red-pixelSpectral Guidance1.599.8576.0799.180.039
Red-pixelOurs0.2599.7051.3263.310.025
Upper luminanceSpectral Guidance1.099.5049.4185.700.039
Upper luminanceOurs0.2599.9543.9666.210.025

Table 24. Spectral Guidance and ours in the Spectral Guidance sampler (DDIM, 100 steps, η=1\eta= 1), each at its selected strength κ\kappa: mean over the two evaluation seeds (1 and 2) × 1,000 samples; the tuning seed 0 is excluded. Each seed is within 0.1 of the mean in satisfaction and within 1.3 in FID. Time is wall-clock sampling time per sample.

On the evaluation seeds our FIDc\mathrm{FID}_c is 24.8 lower on red-pixel and 5.5 lower on upper luminance, at satisfaction within 0.5 points. Including the tuning seed changes each mean by at most 0.3 (three-seed FIDc\mathrm{FID}_c: 51.10 against 76.00, and 43.83 against 49.42).

Timing. The time in Table 24 is the wall-clock time of the complete sampling loop for 1,000 samples in batches of 250 on one A100, divided by 1,000. It includes the 100 base-model evaluations and the guidance gradient at each step, and excludes image saving, FID computation and all training. The same loop without guidance takes 0.023 s per sample, so guidance adds about 0.002 s with our head and 0.016 s with fϕf_\phi; the difference of 35% in total sampling time is the cost of differentiating a larger network (9M parameters as reported by the authors, against 0.68M).

Estimates of hh. On the 10,000 test images, forward-noised with the same noise for both methods, Table 25 scores each estimate of hth_t against the label 1C(x0)\mathbf{1}_{C}(x_0) by the area under the ROC curve, which does not depend on the scale of the estimate.

tt10100300500700900
Red-pixel.996 / .894.987 / .895.922 / .850.797 / .767.616 / .585.523 / .499
Upper luminance.999 / .984.999 / .984.995 / .980.972 / .959.817 / .798.582 / .522

Table 25. AUROC of the estimate of hth_t against 1C(x0)\mathbf{1}_{C}(x_0) on 10,000 forward-noised test images: ours / Spectral Guidance.

Step allocation with their estimator. Table 26 applies the test of § 6.2 to the Spectral Guidance estimate p^\hat{p}: the unscaled step ∇p^/p^\nabla\hat{p}/\hat{p}, an equal step per-sample so that rule’s mean step mˉ(t)\bar{m}(t), and the 1/p^1/\hat{p}-weighted step at the same mean (p^\hat{p} floored at 10−310^{-3}); mˉ(t)\bar{m}(t) is measured for each seed along its own unscaled trajectories.

The equal step has the lower mean satisfaction in all four rows (5.9, 5.3, 3.1 and 1.8 points). The difference exceeds the sum of the two seed standard deviations in three of the four rows. FIDc_{\mathrm{c}} of the equal step is within 3 of the unrescaled step in every row.

The matched-budget test in further configurations

Table 27 lists every configuration in which the test of § 6.2 has been run; a configuration is one estimator, constraint, guidance scale and sampler. Tables 28 and 29 give the results beyond Table 2, with the protocol of Appendix § 12.§ 4; for the class constraints, binary noisy-state classifiers are trained on the dataset labels with the recipe of Appendix § 11.§ 4 and samples are judged as in Table 9.

On the class constraints the equal step is lower in all eight runs, with FIDc_c within 1.6 of the standard rule in seven of them. The loss is 7.2 to 8.5 points on ship at γ=5\gamma= 5 and 10, where the Wilson 95% intervals of the two rules do not overlap, and 1.2 to 4.4 points on cat, in the same direction in every run. The test on a dependent conjunction is in Appendix § 13.§ 4 and the test on a molecular constraint in Appendix § 13.§ 5.

The normalized rule at small scales on CIFAR-10

Section 6.1 compares the rules at equal γ\gamma, where the normalized step is the larger one. Table 30 extends the normalized rule down to γ=0.1\gamma= 0.1 so that the two can be compared at equal satisfaction.

γ\gammaRed-pixel CG-normRed-pixel OursUpper luminance CG-normUpper luminance Ours
0.139.3 / 52.6–29.5 / 66.0–
0.2550.2 / 51.0–44.7 / 56.3–
0.574.4 / 53.355.4 / 49.769.8 / 45.155.8 / 54.8
195.1 / 61.780.3 / 49.496.8 / 43.299.9 / 45.0
2100.0 / 108.197.7 / 50.699.9 / 62.399.2 / 39.5
5–100.0 / 58.2100.0 / 80.3100.0 / 43.4

Table 30. The matched classifier under the normalized rule (CG-norm) and ours over the guidance scale: satisfaction (%) / FIDc_c, sampling seed 0, 1,000 samples, 1000 steps; – marks a setting that was not run.

Compared along the curves, each normalized point has a point of ours with satisfaction at least as high and lower FIDc\mathrm{FID}_{\mathrm{c}}. Three-seed means at γ≥2\gamma\ge2 are in Table 7.

Composition of strongly dependent constraints

Red-pixel and low saturation are negatively dependent on CIFAR-10: 26.75% and 25.03% of training images satisfy each, and 1.28% satisfy both, against 6.69% under independence. Table 31 guides with log⁡hred+log⁡hsat\log h_{\mathrm{red}}+\log h_{\mathrm{sat}} from the two separately trained heads of § 6.1 (1000 steps).

γ\gammaJointRed-pixelLow saturationProductFIDc\mathrm{FID}_{\mathrm{c}}
00.531.415.14.7160.64
230.484.239.533.3124.91
562.5±2.062.5 \pm2.097.064.062.1118.65
1083.4±0.383.4 \pm0.397.683.981.9131.05

Table 31. Composition of red-pixel and low saturation: joint and marginal satisfaction (%) and the product of the two guided marginals; mean over 3 sampling seeds ×\times 1,000 samples (±\pm standard deviation for the joint rate) at γ=5\gamma= 5 and 10, seed 0 otherwise. FIDc\mathrm{FID}_{\mathrm{c}} is against the 140 test images that satisfy both.

The joint rate rises from 0.5% to 83.4% and, from γ=5\gamma= 5, is at or above the product of the guided marginals in every seed. This is one pair of constraints; as stated in § 4, summed log-gradients are exact only under conditional independence, and the result does not establish that arbitrary constraints compose.

Matched-budget test on the conjunction. Table 32 applies the test of § 6.2 to this conjunction. The direction is the gradient of log⁡hred+log⁡hsat\log h_{\mathrm{red}}+\log h_{\mathrm{sat}}, mˉ(t)\bar{m}(t) is measured along the standard-rule trajectories of the same seed, and the 1/h^1/\hat{h} rule uses h^=hredhsat\hat{h}=h_{\mathrm{red}}h_{\mathrm{sat}} floored at 10−310^{-3}.

The equal step is lower in all six seed-level comparisons, by 5.2 points on average at γ=5\gamma= 5 and 7.3 at γ=10\gamma= 10, at FIDc\mathrm{FID}_{\mathrm{c}} within 0.5 of the standard rule; the 1/h^1/\hat{h} weighting recovers 82% and 59% of the mean loss.

The matched-budget test on a molecular constraint

Table 33 applies the test of § 6.2 to the Lipinski-type filter of § 6.6, with the head, sampler and metrics of Appendix § 11.§ 6 (Euler–Maruyama, 1000 steps, 1,000 molecules per run). The guidance term acts on the node features, mˉ(t)\bar{m}(t) is the mean norm of ∇log⁡hθ\nabla\log h_\theta along the standard-rule trajectories of the same seed, and h^\hat{h} is floored at 10−310^{-3}.

The equal step is lower in all six seed-level comparisons. At γ=5\gamma= 5 the loss is 2.7 points on average, between 1.5 and 3.3 points across the three seeds, and the 1/h^1/\hat{h} weighting recovers over 90% of it. At γ=2\gamma= 2 the loss is 1.1 points, in the same direction in all three seeds. Validity is 100% under all three rules, and uniqueness and novelty differ by less than one point between them, so the loss in satisfaction is not offset by a gain in validity, uniqueness or novelty.

References

  1. [1]Donghoon Ahn, Hyoungwon Cho, Jaewon Min, Jungwoo Kim, Wooseok Jang, SeonHwa Kim, Hyun Hee Park, Kyong Hwan Jin, and Seungyong Kim. Self-rectifying diffusion sampling with perturbed-attention guidance. In European Conference on Computer Vision, 2024.arxiv.org/abs/2403.17377
  2. [2]Brian D. O. Anderson. Reverse-time diffusion equation models. Stochastic Processes and their Applications, 12(3):313–326, 1982.DOI
  3. [3]Arpit Bansal, Hong-Min Chu, Avi Schwarzschild, Roni Sengupta, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Universal guidance for diffusion models. In International Conference on Learning Representations, 2024.
  4. [4]Arwen Bradley, Preetum Nakkiran, David Berthelot, James Thornton, and Joshua M. Susskind. Mechanisms of projective composition of diffusion models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of the Machine Learning Research, pp. 5319–5354, 2025.arxiv.org/abs/2502.04549
  5. [5]Jinyuan Chang, Chenguang Duan, Yuling Jiao, Ruoxuan Li, Yi Xu, and Jerry Zhijian Yang. Inference-time alignment for diffusion models via variationally stable Doob’s matching. arXiv preprint arXiv:2601.06514, 2026.arxiv.org/abs/2601.06514
  6. [6]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, volume 37, pp. 84968–85005, 2024.arxiv.org/abs/2409.13074
  7. [7]Hyungjin Chung, Jeongsol Kim, Michael T. McCann, Marc L. Klasky, and Jong Chul Ye. Diffusion posterior sampling for general noisy inverse problems. In International Conference on Learning Representations, 2023.arxiv.org/abs/2209.14687
  8. [8]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.arxiv.org/abs/2406.08070
  9. [9]Thomas M. Cover and Joy A. Thomas. Elements of Information Theory. John Wiley & Sons, second edition, 2006.
  10. [10]Alexander Denker, Francisco Vargas, Shreyas Padhy, Kieran Didi, Simon Mathis, Vincent Dutordoir, Riccardo Barbano, Emile Mathieu, Urszula Julia Komorowska, and Pietro Lio. DEFT: Efficient fine-tuning of diffusion models by learning the generalised h-transform. In Advances in Neural Information Processing Systems, volume 37, pp. 19636–19682, 2024.
  11. [11]Prafulla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. In Advances in Neural Information Processing Systems, volume 34, pp. 8780–8794, 2021.
  12. [12]Kieran Didi, Francisco Vargas, Simon Mathis, Vincent Dutordoir, Emile Mathieu, Urszula Julia Komorowska, and Pietro Lio. A framework for conditional diffusion modelling with applications in motif scaffolding for protein design. arXiv preprint arXiv:2312.09236, 2023.arxiv.org/abs/2312.09236
  13. [13]J. L. Doob. Conditional Brownian motion and the boundary limits of harmonic functions. Bulletin de la Société Mathématique de France, 85:431–458, 1957.DOI
  14. [14]Bradley Efron. Tweedie’s formula and selection bias. Journal of the American Statistical Associa- tion, 106(496):1602–1614, 2011.pubmed.ncbi.nlm.nih.gov/22505788
  15. [15]Luca Eyring, Shyamgopal Karthik, Alexey Dosovitskiy, Nataniel Ruiz, and Zeynep Akata. Noise hypernetworks: Amortizing test-time compute in diffusion models. In Advances in Neural Infor- mation Processing Systems, 2025.
  16. [16]Hyojun Go, Hyungjin Chung, Prune Truong, Goutam Bhat, Li Mi, Zhaochong An, Zixiang Zhao, Dominik Narnhofer, Serge Belongie, Federico Tombari, and Konrad Schindler. Stitched value model for diffusion alignment. In Advances in Neural Information Processing Systems, 2026.arxiv.org/abs/2605.19804
  17. [17]Zhengyi Guo, Wenpin Tang, and Renyuan Xu. Conditional diffusion guidance under hard constraint: A stochastic analysis approach. arXiv preprint arXiv:2602.05533, 2026.arxiv.org/abs/2602.05533
  18. [18]U. G. Haussmann and E. Pardoux. Time reversal of diffusions. The Annals of Probability, 14(4): 1188–1205, 1986.DOI
  19. [19]Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a local Nash equilibrium. In Advances in Neural Information Processing Systems, volume 30, 2017.
  20. [20]Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022. A short version appeared at the NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications.arxiv.org/abs/2207.12598
  21. [21]Jonathan Ho, Ajay N. Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, volume 33, pp. 6840–6851, 2020.arxiv.org/abs/2006.11239
  22. [22]Susung Hong, Gyuseong Lee, Wooseok Jang, and Seungryong Kim. Improving sample quality of diffusion models using self-attention guidance. In IEEE/CVF International Conference on Computer Vision, pp. 7462–7471, 2023.arxiv.org/abs/2210.00939
  23. [23]Michael Janner, Yilun Du, Joshua B. Tenenbaum, and Sergey Levine. Planning with diffusion for flexible behavior synthesis. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 9902–9915, 2022.arxiv.org/abs/2205.09991
  24. [24]Cristian Perez Jensen, Luca Schaufelberger, Riccardo De Santi, Kjell Jorner, and Andreas Krause. Value matching: Scalable and gradient-free reward-guided flow adaptation. In International Conference on Learning Representations, 2026.
  25. [25]Jaehyeong Jo, Seul Lee, and Sung Ju Hwang. Score-based generative modeling of graphs via the system of stochastic differential equations. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 10362–10383, 2022.arxiv.org/abs/2202.02514
  26. [26]Jaihoon Kim, Taehoon Yoon, Prin Phunyaphibarn, Seungjun Kim, Morteza Mardani, and Minhyuk Sung. Contrastive distribution matching for amortized sequential Monte Carlo in discrete diffu- sion. In Advances in Neural Information Processing Systems, 2026.arxiv.org/abs/2605.23346
  27. [27]Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
  28. [28]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, volume 37, pp. 122458–122483, 2024.arxiv.org/abs/2404.07724
  29. [29]Dieterich Lawson, Allan Raventós, Andrew Warrington, and Scott Linderman. SIXO: Smoothing inference with twisted objectives. In Advances in Neural Information Processing Systems, vol- ume 35, pp. 38844–38858, 2022.arxiv.org/abs/2206.05952
  30. [30]Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
  31. [31]Seul Lee, Jaehyeong Jo, and Sung Ju Hwang. Exploring chemical space with score-based out-of-distribution generation. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 18872–18892, 2023.arxiv.org/abs/2206.07632
  32. [32]Xiner Li, Yulai Zhao, Chenyu Wang, Gabriele Scalia, Gokcen Eraslan, Surag Nair, Tommaso Biancalani, Shuiwang Ji, Aviv Regev, Sergey Levine, and Masatoshi Uehara. Derivative-free guidance in continuous and discrete diffusion models with soft value-based decoding. In Advances in Neural Information Processing Systems, volume 38, pp. 95507–95545, 2025.arxiv.org/abs/2408.08252
  33. [33]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 Computer Vision – ECCV 2014, volume 8693 of Lecture Notes in Computer Science, pp. 740–755. Springer, 2014.arxiv.org/abs/1405.0312
  34. [34]Christopher A. Lipinski, Franco Lombardo, Beryl W. Dominy, and Paul J. Feeney. Experimental and computational approaches to estimate solubility and permeability in drug discovery and development settings. Advanced Drug Delivery Reviews, 23(1–3):3–25, 1997.
  35. [35]Jie Liu, Gongye Liu, Jiajun Liang, Yangguang Li, Jiaheng Liu, Xintao Wang, Pengfei Wan, Di Zhang, and Wanli Ouyang. Flow-GRPO: Training flow matching models via online RL. In Advances in Neural Information Processing Systems, 2025.arxiv.org/abs/2505.05470
  36. [36]Jiajun Ma, Tianyang Hu, Wenjia Wang, and Jiacheng Sun. Elucidating the design space of classifier-guided diffusion generation. In International Conference on Learning Representations, 2024.arxiv.org/abs/2310.11311
  37. [37]Gabriel Moreira, Manuel Marques, João Paulo Costeira, and Chenyan Xiong. Spectral guidance for flexible and efficient control of diffusion models. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pp. 90295–90322, 2026.arxiv.org/abs/2605.28900
  38. [38]Sidharth Mudgal, Jong Lee, Harish Ganapathy, Yaguang Li, Tao Wang, Yanping Huang, Zhifeng Chen, Heng-Tze Cheng, Michael Collins, Trevor Strohman, Jilin Chen, Alex Beutel, and Ahmad Beirami. Controlled decoding from language models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 36486–36503, 2024.arxiv.org/abs/2310.17022
  39. [39]Toan Nguyen, Kien Do, Duc Kieu, and Thin Nguyen. h-Edit: Effective and flexible diffusion-based editing via Doob’s h-transform. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 28490–28501, 2025.arxiv.org/abs/2503.02187
  40. [40]Anton Obukhov, Maximilian Seitzer, Po-Wei Wu, Semen Zhydenko, Jonathan Kyl, and Elvis Yu-Jing Lin. High-fidelity performance metrics for generative models in PyTorch. https://github.com/toshas/torch-fidelity, 2020.DOI
  41. [41]Bernt Øksendal. Stochastic Differential Equations: An Introduction with Applications. Universitext. Springer, sixth edition, 2003.
  42. [42]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 8748–8763, 2021.arxiv.org/abs/2103.00020
  43. [43]Raghunathan Ramakrishnan, Pavlo O. Dral, Matthias Rupp, and O. Anatole von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific Data, 1:140022, 2014.
  44. [44]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 (CVPR), pp. 10684–10695, 2022.arxiv.org/abs/2112.10752
  45. [45]Sharan Sahu, Arisina Banerjee, and Yuchen Wu. Provably reliable classifier guidance via cross-entropy control. In Advances in Neural Information Processing Systems, 2026.arxiv.org/abs/2601.21200
  46. [46]Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021a.arxiv.org/abs/2010.02502
  47. [47]Jiaming Song, Arash Vahdat, Morteza Mardani, and Jan Kautz. Pseudoinverse-guided diffusion models for inverse problems. In International Conference on Learning Representations, 2023.
  48. [48]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.
  49. [49]Masatoshi Uehara, Yulai Zhao, Tommaso Biancalani, and Sergey Levine. Understanding reinforcement learning-based fine-tuning of diffusion models: A tutorial and review. arXiv preprint arXiv:2407.13734, 2024.arxiv.org/abs/2407.13734
  50. [50]Clément Vignac, Igor Krawczuk, Antoine Siraudin, Bohan Wang, Volkan Cevher, and Pascal Frossard. DiGress: Discrete denoising diffusion for graph generation. In International Conference on Learning Representations, 2023.arxiv.org/abs/2209.14734
  51. [51]Edwin B. Wilson. Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22(158):209–212, 1927.DOI
  52. [52]Jiazheng Xu, Xiao Liu, Yuchen Wu, Yuxuan Tong, Qinkai Li, Ming Ding, Jie Tang, and Yuxiao Dong. ImageReward: Learning and evaluating human preferences for text-to-image generation. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2304.05977
  53. [53]Kevin Yang and Dan Klein. FUDGE: Controlled text generation with future discriminators. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 3511–3535, 2021.
  54. [54]Lingxiao Yang, Shutong Ding, Yifan Cai, Jingyi Yu, Jingya Wang, and Ye Shi. Guidance with spherical Gaussian constraint for conditional diffusion. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 56071–56095, 2024.arxiv.org/abs/2402.03201
  55. [55]Tianwei Yin, Michaël Gharbi, Richard Zhang, Eli Shechtman, Frédo Durand, William T. Freeman, and Taesung Park. One-step diffusion with distribution matching distillation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024.arxiv.org/abs/2311.18828
  56. [56]Jiwen Yu, Yinhua 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 (ICCV), pp. 23174–23184, 2023.arxiv.org/abs/2303.09833
  57. [57]Stephen Zhao, Rob Brekelmans, Alireza Makhzani, and Roger Baker Grosse. Probabilistic inference in language models via twisted sequential Monte Carlo. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 60704–60748, 2024.arxiv.org/abs/2404.17546
  58. [58]Hongkai Zheng, Wenda Chu, Austin Wang, Nikola B. Kovachki, Ricardo Baptista, and Yisong Yue. Ensemble Kalman diffusion guidance: A derivative-free method for inverse problems. Transactions on Machine Learning Research, 2025.arxiv.org/abs/2409.20175
  59. [59]Kaiwen Zheng, Huayu Chen, Haotian Ye, Haoxiang Wang, Qinsheng Zhang, Kai Jiang, Hang Su, Stefano Ermon, Jun Zhu, and Ming-Yu Liu. DiffusionNFT: Online diffusion reinforcement with forward process. In International Conference on Learning Representations, 2026.arxiv.org/abs/2509.16117
  60. [60]Qijie Zhu, Zeqi Ye, Han Liu, Zhaoran Wang, and Minshuo Chen. Training-free adaptation of diffusion models via Doob’s h-transform. In International Conference on Machine Learning, 2026.arxiv.org/abs/2602.16198

Paper details

vlnc:W_ez4msjwb
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Generative AI tools

View statement
Looking for related papers…
Contents