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 -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 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 for a hard indicator and by the distinction between data- and model-law estimands.
For a constraint set , the posterior score decomposes as
so that conditioning a frozen model reduces to estimating a single scalar function: the probability that a noisy state denoises into .
A classifier over noisy states trained on such labels [11] estimates directly, and Uehara et al. [49] interpret classifier guidance as a Doob -transform with 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 -transform [10], text guidance or reward models for training-free -transform editing [39], or differentiable evaluators [3, 56]. Estimators of itself differ along two axes. Simulation-based estimators fit 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 -transform [13] does not: its drift shrinks as the constraint signal contracts under forward noising and, at a given noise level, carries a factor across samples. We characterize as the unique bounded solution of the backward Kolmogorov Cauchy problem of the reverse-time diffusion among those attaining along the forward process; with the exact score and , the corresponding -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 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 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 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 , 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 reweighting partially restores (Section 6.2). (2) The theory that explains it: is the unique bounded solution of the reverse-time backward Kolmogorov problem attaining along the forward process, the variance of its signal is non-increasing in the noise level and vanishes as without spectral-gap assumptions, a noisy-state classifier estimates the same , 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 ; 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 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 .
| Noise level | 500 | 700 | 900 |
| Cosine to reference | 0.50 | 0.54 | 0.50 |
| (%) | 21.6 | 0 | 0 |
Table 4.
| Eligible states | Mean | RMSE of | Cosine to reference | |
| 100 | 25/50 | 0.500 | 0.190 | −0.145 |
| 200 | 25/50 | 0.498 | 0.161 | −0.067 |
| 300 | 25/50 | 0.456 | 0.141 | +0.240 |
| 400 | 28/50 | 0.356 | 0.173 | +0.467 |
| 500 | 42/50 | 0.234 | 0.170 | +0.501 |
| 700 | 50/50 | 0.122 | 0.048 | +0.544 |
| 900 | 50/50 | 0.111 | 0.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 ; the cosine is averaged over eligible states, and the root-mean-square error of against and the mean of are computed over all 50 states.
Background and problem setting
Diffusion models. The forward SDE transforms data into noise as , and the reverse-time dynamics use the score , approximated by [2, 48]. In the DDPM discretization ([21]), with .
Reverse-time generator. For a functional of clean data, the posterior expectation is governed by the generator of the reverse-time diffusion,
Unlike the forward generator, which propagates expectations of future states, propagates expectations of the initial state, and depends on the data through the score.
Doob -transform. For , Bayes’ rule gives , so the conditional score is the unconditional score plus (Doob [13]). Adding this drift reweights reverse trajectories toward and is exact: started from , the resulting process has marginals .
Problem setting. A constraint is given only through its indicator , evaluable on clean samples. The learner may evaluate on clean data and noise those samples forward through the known kernel. It has no differentiable relaxation of , no evaluation of it on noisy states , , 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 using the frozen score model and a learned estimate of . 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 , for which vanishes on part of the space, and each result makes a prediction that § 6 tests.
Proposition 1 (Regression target). For each , the unique minimizer over measurable of , with drawn from the data and the forward kernel, is .
Theorem 1 (Characterization). Under standard regularity conditions (Appendix § 10), for any measurable with the function is the unique bounded classical solution of the Cauchy problem
with as in equation (2) and the initial condition attained along the forward process, as . Started from , the reverse-time process with drift augmented by has marginals at every .
Proposition 1 is the standard characterization of the conditional mean, and it is why binary clean labels suffice: is an unbiased sample of 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 and . Then (i) for all , and is non-increasing in ; (ii) , where is mutual information in nats; and (iii) for the variance-preserving process on with , , so as .
Proposition 2 makes high-noise guidance failure a property of the forward process rather than of any estimator: as grows, flattens toward and carries progressively less information about . On MNIST (LeCun et al. [30]) digit-3 the measured falls by 492× between 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 on CIFAR-10.
Relation to the spectrum of the conditional-expectation operator. Moreira et al. [37] study the operator and, when it is compact (for instance for compactly supported data), its singular system with and constant leading functions; they show that for as and locate empirically the noise window in which guidance is effective. Since ,
so the variance of Proposition 2 is their spectrum weighted by the coefficients of the constraint. Proposition 2 adds monotonicity in 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 in squared error, while the sampler uses . Under the variance-preserving kernel the ideal field has the closed form (Appendix § 10.§ 5)
which can be estimated by rolling the frozen model out from . 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 , 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 has little effect in practice: sweeping from to leaves satisfaction at , and the fraction of held-out states with falls from 89% at to 0% from (Appendix § 11.§ 3).
Method
Objective. We parameterize by a small network with a sigmoid output and minimize with :
where and are independent forward noisings of the same and is stop-gradient. alone identifies (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: places weight on the discontinuous initial condition, which uniform timestep sampling rarely visits, and 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
with guidance scale and unless stated. At and , with an exact score and an exact , this is the -transform of Theorem 1 (Appendix § 10.§ 6); as is standard for guidance scales (Dhariwal & Nichol, [11]), we use , and keeps finite where . Each step costs one forward and one backward pass of ; there is no candidate set and no rollout. Algorithm 1 (Appendix § 12.§ 1) gives both procedures.
Composition. For with separately trained heads, we guide with . With this is the exact joint correction when and are conditionally independent given at every (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
With a binary terminal reward, is the value targeted by value-learning methods ([32, 53, 29, 49]), and our 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 , and so estimate . Forward noising of labelled data, as here and in Chang et al. [5], estimates .
Proposition 3 (Estimand gap). Under the assumptions of Appendix § 10.§ 4, solves equation (3) with replaced by the model score in . Consequently for every if the model’s reverse process reproduces the data posterior, and equals the two differ by an amount governed by the score error rather than by either estimator.
With an exact score, guiding with samples the data distribution restricted to , the reference of constraint-conditional FID. With the model’s score only gives an exact -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 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 approaches zero (Table 5, Appendix § 12.§ 1). The analysis concerns 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: shrinks at high noise (by equation (5), for data of diameter ) and carries a factor 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 weights | Hard indicator | |
| Simulation (model law) | SVDD, Value Matching | Guo et al. [17], DOIT |
| Forward noising (data law) | Doob’s matching, StitchVM | CG; this work |
Table 5. Estimators of 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 , ; the normalized variant divides by 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 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 and constraint-conditional FID within 6.8 of each other, as § 5 predicts for two estimates of the same . Normalizing the classifier’s drift keeps satisfaction at 100% from but gives 1.6 to 3.2× the constraint-conditional FID of our drift at (paired samples in Figure 2); unlike the unnormalized drift, whose magnitude decays as the signal contracts, the normalized step is largest at (§ 6.2). Appendix § 13.§ 3 extends the normalized rule to , so that the rules can be compared at equal satisfaction and not only at equal .
Figure 2. Paired CIFAR-10 samples at . Each column starts from the same 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 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 (FID); FID Tables 7 and 8. Mean over 3 seeds × 1,000 samples. Unguided satisfaction in parentheses.
| Predicate | Satisfaction CG | Satisfaction CG-norm | Satisfaction Ours | FID CG | FID CG-norm | FID Ours | |
| Red-pixel (31.3) | 5 | 100.0 | 100.0 | 100.0 | 62.8 | 187.0 | 58.2 |
| 15 | 100.0 | 100.0 | 100.0 | 98.2 | 212.3 | 93.1 | |
| Upper luminance (23.1) | 5 | 100.0 | 100.0 | 100.0 | 43.4 | 81.4 | 43.9 |
| 15 | 100.0 | 100.0 | 100.0 | 50.1 | 87.7 | 52.7 | |
| Edge density (16.5) | 5 | 99.7 | 100.0 | 100.0 | 52.5 | 96.9 | 59.3 |
| 15 | 100.0 | 100.0 | 100.0 | 72.7 | 109.5 | 78.8 | |
| Low saturation (16.8) | 5 | 99.5 | 100.0 | 95.9 | 48.6 | 101.6 | 45.9 |
| 15 | 100.0 | 100.0 | 99.9 | 71.2 | 116.8 | 73.2 |
Table 1.
How the unnormalized drift allocates the step
By equation (5) and , 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 . 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 (Appendix § 12.§ 4). Over the schedule, the mean step per unit , , the mean of over samples, peaks near on red-pixel and on upper luminance and is 4.4 and 3.7× smaller at , whereas the normalized step is largest at . Across samples, step size and have Spearman correlation between −0.60 and −0.998 at on both predicates (250 trajectories; ; Table 11).
| 799 | 599 | 399 | 199 | |
| Red-pixel | ||||
| Upper luminance |
Table 11. Spearman correlation between the per-sample step and across 250 standard-rule trajectories at .
To isolate the allocation across samples, we keep the normalized direction and give every sample the step 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 FID 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 , which keeps the mean step, recovers 35 to 46% and 60 to 69% of the loss, again at comparable FID; the rest is carried by the variation of across samples.
Table 2: The step at a fixed schedule and mean step size, CIFAR-10, , for independently trained classifiers (same recipe; training seeds 0, 1 and 2). All rules use the classifier’s gradient direction; “equal” and “” give each sample a step whose mean over samples is that classifier’s standard-rule . Classifier 1 is the matched classifier of § 6.1: mean over sampling seeds 0 and 1 ( upper luminance: seed 0); classifiers 2 and 3: sampling seed 0; 1,000 samples per run.
| Predicate | Classifier | Satisfaction (%) Standard | Satisfaction (%) Equal | Satisfaction (%) | FID Standard | FID Equal | FID |
| Red-pixel | 1 | 99.0 | 80.6 | 89.0 | 52.60 | 51.85 | 53.06 |
| 2 | 98.2 | 79.7 | 86.2 | 53.25 | 53.04 | 54.11 | |
| 3 | 98.5 | 80.8 | 88.0 | 53.21 | 53.34 | 53.75 | |
| Upper luminance | 1 | 99.7 | 82.5 | 94.3 | 39.61 | 40.73 | 39.34 |
| 2 | 98.5 | 81.2 | 91.6 | 39.49 | 40.29 | 39.76 | |
| 3 | 99.7 | 82.7 | 94.5 | 39.55 | 40.32 | 40.13 |
Table 2.
Appendix D.2 repeats the test in 26 further configurations (Table 27): at and 5, on edge density and low saturation, with 100- and 50-step samplers, with our head 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 | Equal | |||
| Red-pixel | 0.25 | 78.97 1.13 / 59.0 | 73.10 1.34 / 56.9 | 77.33 1.52 / 58.9 |
| 0.5 | 94.53 0.57 / 66.5 | 89.27 0.78 / 63.6 | 92.70 0.91 / 65.7 | |
| Upper luminance | 0.25 | 95.60 0.22 / 42.2 | 92.53 2.97 / 43.2 | 96.83 1.75 / 43.3 |
| 0.5 | 99.87 0.05 / 46.0 | 98.07 0.65 / 45.1 | 99.87 0.12 / 46.0 |
Table 26. The test of Table 2 with the Spectral Guidance estimator, in their sampler: satisfaction (%, mean standard deviation) / mean FID over 3 sampling seeds 1,000 samples.
| Set | Estimator (training seeds) | Constraints | Scales | Sampler; sampling seeds | # | Drop |
| Table 2 | classifier (0, 1, 2) | red-pixel, upper lum. | 1000 steps; 0 (and 1 for classifier 1) | 6 | 17.0–18.5 | |
| Further scales | classifier (0) | red-pixel, upper lum. | 1000; 0 | 4 | 8.4–22.4 | |
| Further predicates | classifier (0) | edge density, low saturation | 1000; 0 | 2 | 18.5–22.2 | |
| Coarser samplers | classifier (0) | red-pixel, upper lum. | 100 and 50 steps; 0 | 4 | 6.2–17.4 | |
| Our head | (0) | red-pixel, upper lum. | 1000; 0 | 2 | 17.8–18.0 | |
| Class constraints | classifier (0) | cat, ship | 1000; 0 (and 1 at ) | 6 | 1.2–8.5 | |
| Spectral Guidance estimator | (one network) | red-pixel, upper lum. | DDIM 100; 0, 1, 2 | 4 | 1.8–5.9 | |
| Dependent conjunction | two heads , composed | red-pixel low saturation | 1000; 0, 1, 2 | 2 | 5.2–7.3 | |
| Molecular filter (QM9) | (0) | Lipinski-type | 1000; 0, 1, 2 | 2 | 1.1–2.7 | |
| Total | 8 constraints | 32 |
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.
| Predicate | Setting | Standard | Equal | |
| Red-pixel | classifier, | 85.6 / 48.7 | 67.4 / 48.3 | 74.4 / 49.0 |
| classifier, | 100.0 / 64.3 | 87.7 / 64.2 | 92.3 / 63.4 | |
| classifier, , 100 steps | 99.7 / 111.2 | 86.5 / 108.7 | 97.5 / 112.3 | |
| classifier, , 50 steps | 100.0 / 156.6 | 93.8 / 155.5 | 99.8 / 157.5 | |
| , | 97.8 / 50.6 | 79.8 / 50.4 | 93.0 / 50.3 | |
| Upper luminance | classifier, | 93.8 / 42.2 | 71.4 / 44.9 | 87.8 / 43.5 |
| classifier, | 100.0 / 43.4 | 91.6 / 43.2 | 96.1 / 43.3 | |
| classifier, , 100 steps | 99.6 / 102.5 | 82.2 / 108.2 | 91.2 / 103.6 | |
| classifier, , 50 steps | 99.9 / 144.2 | 82.7 / 147.7 | 93.3 / 145.0 | |
| , | 99.3 / 39.4 | 81.5 / 40.3 | 95.0 / 39.6 | |
| Edge density | classifier, | 93.9 / 44.9 | 71.7 / 45.3 | 84.9 / 45.1 |
| Low saturation | classifier, | 92.0 / 44.0 | 73.5 / 43.9 | 83.8 / 43.7 |
Table 28. The test of Table 2 at further scales, predicates and samplers, and with our head: satisfaction (%) / FID, sampling seed 0, 1,000 samples.
| Class | Sampling seed | Standard | Equal | ||
| Cat | 2 | 0 | 42.8 / 62.2 | 41.6 / 61.2 | 42.0 / 62.7 |
| 5 | 0 | 64.3 / 58.6 | 60.3 / 58.1 | 63.0 / 58.8 | |
| 5 | 1 | 68.0 / 60.0 | 65.9 / 58.7 | 67.1 / 59.9 | |
| 10 | 0 | 76.4 / 63.2 | 72.0 / 61.6 | 75.5 / 62.8 | |
| Ship | 2 | 0 | 54.9 / 51.2 | 51.0 / 55.6 | 51.3 / 52.5 |
| 5 | 0 | 80.7 / 40.2 | 72.2 / 41.1 | 77.2 / 40.2 | |
| 5 | 1 | 79.6 / 41.0 | 71.4 / 41.9 | 75.0 / 41.1 | |
| 10 | 0 | 88.6 / 41.5 | 81.4 / 41.1 | 83.7 / 41.4 |
Table 29. The test of Table 2 on two class constraints: satisfaction (%) / FID, 1,000 samples per run. Unguided: cat 16.6%, ship 7.3%.
| Standard | Equal | ||
| 5 | / 118.6 | / 118.8 | / 118.5 |
| 10 | / 131.1 | / 131.5 | / 133.6 |
Table 32. The test of Table 2 on the conjunction of red-pixel and low saturation: joint satisfaction (%, mean standard deviation) / mean over 3 sampling seeds 1,000 samples.
| Standard | Equal | ||
| 2 | 87.4 0.5 (93.8 / 95.4) | 86.3 1.2 (93.1 / 96.3) | 87.8 0.7 (93.2 / 96.1) |
| 5 | 93.7 0.4 (89.5 / 94.4) | 91.0 0.7 (89.5 / 95.3) | 93.5 0.9 (89.2 / 94.7) |
Table 33. The test of Table 2 on the QM9 Lipinski-type filter: satisfaction (%, mean standard deviation) and mean uniqueness / novelty (%) over 3 sampling seeds 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 at ten noise levels once it against each trajectory’s outcome , which measures its calibration to ; on forward-noised test images at the same , the same score measures calibration to . 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, 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 samples per accepted one for a pass rate . On red-pixel and upper luminance ( and 22.5% over 4,000 and 4,500 unguided samples), the first 1,000 accepted samples have 48.4 and 42.4 (Appendix § 12.§ 4); our guidance at reaches 97.2% and 99.5% at 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%, ), so rejection draws about 59 samples per accepted one; guidance at 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 | Satisfaction (%) CG-norm | Satisfaction (%) Ours | CG-norm | Ours | CG-norm | Ours | |
| Red-pixel | 0 | 31.3 | 54.0 | 42.5 | |||
| 2 | 100.0 | 97.2 | 107.3 | 48.8 | 128.6 | 59.0 | |
| 5 | 100.0 | 100.0 | 187.0 | 58.2 | 198.5 | 77.7 | |
| 10 | 100.0 | 100.0 | 209.4 | 75.1 | 218.4 | 98.0 | |
| 15 | 100.0 | 100.0 | 212.3 | 93.1 | 220.9 | 115.4 | |
| Upper luminance | 0 | 23.1 | 69.9 | 42.5 | |||
| 2 | 99.9 | 99.5 | 61.7 | 39.2 | 99.6 | 57.2 | |
| 5 | 100.0 | 100.0 | 81.4 | 43.9 | 119.2 | 76.0 | |
| 10 | 100.0 | 100.0 | 86.1 | 50.0 | 124.2 | 86.3 | |
| 15 | 100.0 | 100.0 | 87.7 | 52.7 | 125.8 | 90.0 | |
| Edge density | 0 | 16.5 | 61.4 | 42.5 | |||
| 2 | 99.7 | 99.3 | 68.6 | 44.6 | 90.7 | 52.3 | |
| 5 | 100.0 | 100.0 | 96.9 | 59.3 | 122.5 | 77.0 | |
| 10 | 100.0 | 100.0 | 106.3 | 73.3 | 133.1 | 92.9 | |
| 15 | 100.0 | 100.0 | 109.5 | 78.8 | 137.2 | 98.7 | |
| Low saturation | 0 | 16.8 | 63.0 | 42.5 | |||
| 2 | 99.8 | 75.2 | 68.7 | 43.4 | 90.2 | 47.2 | |
| 5 | 100.0 | 95.9 | 101.6 | 45.9 | 120.6 | 58.9 | |
| 10 | 100.0 | 99.5 | 111.7 | 61.1 | 129.6 | 76.9 | |
| 15 | 100.0 | 99.9 | 116.8 | 73.2 | 134.9 | 88.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 . Mean over 3 seeds 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 and 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 while retaining 83.2% uniqueness, with a satisfaction–diversity trade-off controlled by . 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 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 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).
| Constraint | Method | Sat. | Uniq. | Novel | |
| Lipinski-type | Unguided | 0 | 54.3 | 98.0 | 98.3 |
| Ours | 2 | 88.7 | 92.4 | 96.2 | |
| Ours | 10 | 96.8 | 83.2 | 94.5 | |
| Ours | 50 | 99.5 | 63.2 | 92.8 | |
| SVDD-PM | 96.0 | 97.8 | 97.1 | ||
| Lipinski ring | Unguided | 0 | 39.6 | 98.0 | 98.3 |
| Composed | 5 | 72.4 | 92.3 | 96.0 | |
| Composed | 20 | 78.3 | 90.8 | 95.9 |
Table 3. QM9, 3 seeds 1,000 molecules. Satisfaction, uniqueness and novelty (%). The composed rows guide with from separately trained heads; their satisfaction is the joint rate. All rows use the same Euler–Maruyama sampler. SVDD-PM: 1 seed 500 molecules (Appendix § 11.§ 6).
| Joint (%) | Lipinski (%) | Ring (%) | Product (%) | Unique (%) | Novel (%) | |
| 0 | 39.6 0.4 | 54.3 | 76.7 | 41.6 | 98.0 | 98.3 |
| 5 | 72.4 0.4 | 92.9 | 78.6 | 73.0 | 92.3 | 96.0 |
| 10 | 75.5 0.6 | 95.1 | 79.8 | 75.9 | 91.5 | 95.6 |
| 20 | 78.3 0.5 | 96.3 | 81.6 | 78.6 | 90.8 | 95.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 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 up to (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 our sampling cost. The normalized rule is more sensitive to the scale: swept from to 75, the matched classifier rises from 12.3% at to 65.1% at and declines to 24.7% at , 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 , 35 and 75, against 30.0, 48.8 and 58.0% for our head, while the normalized rule falls from 61.8% at to 25.4% at .
| Method | / | Sat. (%) | CLIP | FID | FID | s/sample |
| Unguided | 0 | 7.2 | 26.19 | 109.9 | 88.9 | 0.81 |
| Ours | 10 | 33.1 | 26.23 | 102.6 | 89.9 | 1.03 |
| Ours | 35 | 51.1 | 26.08 | 99.6 | 92.0 | 1.03 |
| Ours | 75 | 60.0 | 25.96 | 98.2 | 93.5 | 1.03 |
| SVDD-PM | 9.0 | 26.47 | 133.9 | 117.6 | 16.65 |
Table 19. Stable Diffusion 1.5, grayscale predicate, 3 seeds 500 images (SVDD-PM: 1 seed 300, ; Wilson 95% interval 6.3–12.8%). CLIP score of Radford et al. [42]; FID and FID against the references of Appendix § 11.§ 5.
Table 20: Full sweep behind Table 19: grayscale predicate on Stable Diffusion 1.5, 3 seeds 500 images; CG-norm is the matched classifier with the normalized rule. Satisfaction is the mean 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 | Satisfaction (%) | CLIP | |||
| Unguided | 0 | 7.2 1.1 | 26.19 | 109.9 | 88.9 |
| Ours | 10 | 33.1 1.1 | 26.23 | 102.6 | 89.9 |
| Ours | 20 | 44.2 0.6 | 26.11 | 100.4 | 91.0 |
| Ours | 35 | 51.1 1.4 | 26.08 | 99.6 | 92.0 |
| Ours | 50 | 54.5 1.4 | 26.01 | 100.0 | 93.6 |
| Ours | 75 | 60.0 0.5 | 25.96 | 98.2 | 93.5 |
| CG-norm† | 1 | 12.3 0.7 | 26.21 | 109.2 | 89.4 |
| CG-norm† | 2.5 | 20.3 1.5 | 26.22 | 106.9 | 89.8 |
| CG-norm† | 5 | 43.4 2.0 | 26.20 | 103.7 | 90.8 |
| CG-norm† | 7.5 | 61.6 3.6 | 26.10 | 100.4 | 91.8 |
| CG-norm | 10 | 65.1 0.9 | 26.09 | 99.3 | 92.5 |
| CG-norm | 20 | 56.2 1.6 | 26.00 | 101.1 | 92.7 |
| CG-norm | 35 | 43.1 2.9 | 25.96 | 101.1 | 92.3 |
| CG-norm | 50 | 34.1 2.6 | 25.87 | 101.1 | 92.0 |
| CG-norm | 75 | 24.7 2.3 | 25.62 | 103.5 | 94.0 |
Table 20.
Table 21: Stable Diffusion 1.5 on the second prompt set of Appendix § 11.§ 5 (1 seed 500 images): ours, the matched classifier with the standard rule (CG) and with the normalized rule (CG-norm). Satisfaction (%), CLIP score and .
| Method | Satisfaction (%) | CLIP | ||
| Unguided | 0 | 6.4 | 26.77 | 87.25 |
| Ours | 10 | 30.0 | 26.62 | 89.65 |
| Ours | 35 | 48.8 | 26.52 | 90.89 |
| Ours | 75 | 58.0 | 26.37 | 92.96 |
| CG | 10 | 28.8 | 26.60 | 89.72 |
| CG | 35 | 46.6 | 26.50 | 92.35 |
| CG | 75 | 54.4 | 26.26 | 91.92 |
| CG-norm | 10 | 61.8 | 26.40 | 91.66 |
| CG-norm | 75 | 25.4 | 26.06 | 93.78 |
Table 21.

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 and from the same seed (DDIM, 50 steps). Guidance with 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 GDM [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 -transform; DEFT [10] learns a generalized -transform from paired data, h-Edit [39] applies the -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 . § 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 , the constrained score of Theorem 1 is a candidate teacher score for distribution-matching distillation ([55]), which we do not evaluate.
Learning directly. Guo et al. [17] learn 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 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 -transform, and its effectiveness depends less on the estimator of than on the drift constructed from it: acts at noise levels where the signal has not contracted, its step is negatively correlated with 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 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, solves with independent of , the set is measurable with , and . We write for the transition density of given , for the marginal density, , and
so that by Bayes’ rule, and . The regularity conditions of Theorem 1 are the following.
(A) The forward SDE has a unique strong solution, is and . For , and are positive, of class in , and solve the forward equation (for this follows from the equation for by integrating over ). For and for , the reverse-time SDE
is well posed from every initial law, and its solution started from has the law of the time reversal of the forward process started from (Anderson, [2]; Haussmann & Pardoux, [18]).
For the variance-preserving and variance-exploding processes used in this paper the forward kernels are Gaussian, so and are smooth and strictly positive for ; (A) is the usual assumption behind the reverse-time formulation of score-based models (Song et al., [48]).
Proof of Proposition 1
Proof. Fix and let be measurable with . Expanding the square around ,
The last term vanishes because , and the second does not depend on . The objective is therefore minimized exactly by the functions that agree with -almost everywhere, and by alone among continuous functions, since . averages this objective over noise levels drawn uniformly from the time grid, so its minimizer is at every level. Only pairs enter, and the forward kernel generates them in closed form.
Proof of Theorem 1
The initial condition 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) , , and on ; (b) almost surely and in as ; (c) if is bounded, satisfies , and in as , then ; (d) the reverse-time dynamics with drift augmented by , started from , have marginal at every , and their limit as exists almost surely and has law .
Proof. (a) The equation. By (A), is of class with values in . For functions the product rule gives
Since and ,
The same computation with in place of shows that solves for bounded with the corresponding regularity, as stated in § 2.
(b) The initial condition. Because is Markov, is conditionally independent of given , so . As the -fields increase to , which contains because by continuity of paths. By (a) and continuity of paths, is a continuous bounded martingale for the increasing filtration , so it converges almost surely as . Along any sequence , Lévy’s upward theorem identifies the limit as . Hence almost surely, and in by bounded convergence.
(c) Uniqueness. Let and for . By (A), solves equation (9) with , whose generator at time is , and . By Itô’s formula [41], is a local martingale on . It is bounded, hence a martingale, also with respect to the filtration generated by ; this property depends only on the law of , so it holds for the time reversal of . Therefore for . Letting and using that conditional expectation is a contraction in , almost surely. Hence -almost everywhere, and everywhere because both are continuous and .
(d) Marginals. Conditionally on , the process solves the same forward SDE (the Brownian motion is independent of ) from the initial law , so its marginals are . By (A), its time reversal solves equation (9) with , whose drift contains : these are the reverse-time dynamics with drift augmented by . Started from , they have marginal at every . The time reversal of the conditioned forward process extends continuously to with value ; since the solution has the same law on , its limit as exists almost surely and has law . □
Initialization. Samplers start the reverse dynamics from , or its Gaussian approximation, rather than from . Since , the bound from the proof of Proposition 2(ii) gives
and the guided reverse dynamics, being a Markov kernel, cannot increase this distance; starting from instead of adds by the triangle inequality. The error due to initialization therefore vanishes as the forward process forgets .
Proof of Proposition 2
Proof. (i) . For , is a Markov chain, so and, by the tower property, . The law of total variance gives .
(ii) Since and lie in , . The joint law of has density at and at , and the product of its marginal laws has and . Hence
Pinsker’s inequality bounds this by , and the data-processing inequality for gives [9].
(iii) For the variance-preserving process, with independent of . Writing for differential entropy, with . Among densities on with second moment , the isotropic Gaussian has the largest entropy ([9]), so . Subtracting,
which tends to 0 as ; by (ii), so does .
Proof of Proposition 3
Let be the model’s reverse-time process, equation equation (9) with replaced by , and write for its state at diffusion time . A rollout-based estimator regresses on the state from which the rollout starts, so it targets . We assume that this SDE is well posed on and that ; for the size of the gap we also assume the integrability condition stated below and that both and approach along the model’s paths.
Proof. Equation. By the Markov property, for , so evaluated along is a martingale and, by Itô’s formula, solves the Kolmogorov backward equation of (Øksendal [41]). In diffusion time this equation reads with , which is equation (3) with replaced by . The initial condition is attained along , by the argument of Theorem 1(b).
Equality. If , the two Cauchy problems and the two reverse processes coincide: started from , the model process has, by (A), the law of the time reversal of , so attainment of the initial condition along is attainment along , and part (c) of Theorem 1 gives for every . More generally, if the model’s reverse process has the transition laws of the true reverse process, then by definition.
Size of the gap. Let and . Subtracting the two equations, . Applying Itô’s formula to along from diffusion time down to , and assuming (with this also makes the stochastic integral a true martingale),
The first term vanishes as when both functions approach 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 : it vanishes when and does not depend on how either function is estimated.
The closed form of the guidance field
For the variance-preserving kernel , . Differentiating and under the integral sign, which the Gaussian factor permits,
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 . 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 when the model’s reverse kernel from level to 0 has the form , as for an exact score, and otherwise differs from it by a term due to the model’s error. Since estimates , the reported cosines contain the estimated gap of Proposition 3 and this discrepancy.
The guided sampler and composition
In the DDPM parameterization , so the replacement equation (8) is the same as replacing the score by . With , and exact and , , the score in the drift of Theorem 1(d); a sampler that discretizes the reverse-time dynamics with a score therefore discretizes the -transformed dynamics when it is given . DDIM discretizes the probability-flow ODE, whose velocity uses the score in the same way; with the conditional score it transports through the same marginals, which also solve the forward equation. On QM9 we add to the node-feature score only, so even at 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 , and are conditionally independent given , then , the correction for the intersection is , and Theorem 1(d) applied to gives marginals . With weights the drift at time uses the score of the density proportional to ; for weights other than 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 exactly as written in § 4: is drawn uniformly from for and from for , and and are noised from the same with independent noise. (Noise levels are indexed from 0 to in code, matching the samplers’ timestep indices; Algorithm 1 draws one for both terms, the code draws them independently, and the expected objective is the same.) The two regularizers play different roles. is minimized by , the initial condition itself, so it adds weight at without changing the target. is a smoothing penalty and moves the target: when its stop-gradient target equals , the minimizer of at level is, pointwise,
a convex combination of and the posterior mean, given , of the label after an extra independent noising of to level $t+1. The second term need not be close to even for adjacent levels. With the bias is at most $1/11$ in absolute value, and Proposition 1 rests on alone.
The MNIST heads of § 3 and § 6.5 and Appendix § 12.§ 8 (digit 3, even digit, digit ) use the same three terms and weights with one difference in the consistency term: its pair is , noised from the same with a shared noise draw, and the stop-gradient is on the less noisy member . The two members of this pair are close, so this term moves the target less than independent noisings do; the small- 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 | Sat. | Sat. | ||||
| Red-pixel | 100.0 | 62.8 | 82.6 | 100.0 | 98.2 | 120.1 |
| Upper luminance | 100.0 | 43.4 | 75.0 | 100.0 | 50.1 | 86.6 |
| Edge density | 99.7 | 52.5 | 67.5 | 100.0 | 72.7 | 90.4 |
| Low saturation | 99.5 | 48.6 | 62.4 | 100.0 | 71.2 | 85.6 |
Table 8. Classifier guidance with the standard rule on the four CIFAR-10 predicates of Table 1. Satisfaction (%), and ; mean over 3 seeds 1,000 samples; the seed standard deviation is at most 1.3 for and 0.2 for satisfaction.
MNIST
Data and base model. MNIST (LeCun et al., [30]), scaled to : 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 to , , sampled with 1000 ancestral steps.
Heads. Every MNIST head, including the SVDD-MC value network, has 122,657 parameters: three convolutions with 32, 64 and 128 channels (ReLU, two max-pools, global average pooling), a 32-dimensional sinusoidal time embedding followed by a linear layer, and a head with a sigmoid output. The heads of § 3 and § 6.5 and Appendix § 12.§ 8 were trained with Adam (learning rate , batch 128) for 30 epochs (20 for the digit head). The ablation heads of Appendix § 12.§ 7 were trained with AdamW (learning rate , weight decay , batch 128) for 30 epochs.
Diagnostics of § 3. is the sample variance of over forward-noised test images, every 10 steps; the guidance norm is the mean norm of over forward-noised test images. For the Monte Carlo reference (Table 4 and Table 6) we take, at each , 50 test images, 25 of them of digit 3, noise each once, and run reverse trajectories of the frozen model from each in bfloat16 precision. Endpoints are judged by the classifier; , and the reference field is equation (5) with both conditional means taken over the same trajectories. The reference costs denoiser evaluations at level , from at to at . The sweep uses at with 3 seeds 1,000 samples per value; the small- end uses 5,000 held-out samples per noise level.
Results of § 3. The mean guidance norm is 2.32 at and 0.225 at . The fraction of held-out states with is 89% at , 21.6% at , 2.4% at and 0% from on. Over the five values of , satisfaction is .
SVDD (§ 6.5). At every step each particle draws 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 , 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 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 , with luminance : red-pixel holds if more than 5% of pixels satisfy and ; edge density holds if the mean Sobel gradient magnitude of ( kernels, zero padding) exceeds 0.8453; low saturation holds if the mean over pixels of across the colour channels is below 0.1712; upper luminance holds if the mean of 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 | Satisfaction (%) | |||
| Cat | 0 | 14.2 | 82.5 | 42.5 |
| 2 | 32.7 | 66.6 | 54.5 | |
| 5 | 51.2 | 60.8 | 70.5 | |
| 10 | 66.2 | 60.0 | 86.2 | |
| 15 | 71.5 | 62.5 | 95.8 | |
| Ship | 0 | 7.2 | 140.4 | 42.5 |
| 2 | 50.2 | 52.7 | 77.3 | |
| 5 | 75.9 | 41.5 | 114.7 | |
| 10 | 84.6 | 42.6 | 132.8 | |
| 15 | 87.5 | 44.0 | 139.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 1,000 samples; the seed standard deviation is at most 2.0.
Heads. has 675,969 parameters: convolutions , max-pool, , max-pool, (batch normalization and ReLU after each), global average pooling, a 64-dimensional sinusoidal time embedding with a linear layer, and a head (ReLU, dropout 0.1 after the first layer, sigmoid output). It is trained on the full training set with AdamW (learning rate , weight decay , 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 , 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 , , or with the normalized rule, which divides by 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 , DDIM (Song et al., [46]) with 50 steps and classifier-free guidance scale 7.5. The head operates on the 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 ) is below 0.10. The same function labels the training images, center-cropped to , 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. has 1,672,833 parameters: convolutions with stride 2 and a final 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 , weight decay , 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 (thresholded at 0.5) at 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 . Table 21 uses a second prompt set, the first captions of 200 COCO train2017 images chosen with seed 0, with 1 seed 500 images per run and the same full-distribution reference.
SVDD-PM. At every step, stochastic DDIM candidates () 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 300 images.
QM9
Base model and samplers. The released GDSS checkpoint for QM9 [25]: a variance-preserving SDE ( from 0.1 to 1.0) on node features and a variance-exploding SDE ( 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 to the node-feature score, and the unguided baseline is the same sampler with . 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. 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 , batch 32) for 150 epochs.
SVDD-PM. In the same Euler–Maruyama loop, each step draws 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 with label , draw ; form by independent forward noising of ; take a gradient step on
Sample: for do reverse step of the base sampler with end for return
The learned guidance field
Table 6 extends Table 4 to seven noise levels. From 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 against falls from 0.17 to 0.03. At the other half of the states have fewer than 10 satisfying endpoints, so the eligible states are those with near 1. There is small and its estimate in equation (5) rests on the few endpoints outside , 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 and from 1.39 to 2.55 for . Table 8 gives the standard rule of Table 1 with . 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 improves from 82.5 and 140.4 to at most 62.5 and 44.0 for , while 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.
| Predicate | 1000 steps | 100 steps | ||||
| Pass (%) | Model law | Data law | Pass (%) | Model law | Data law | |
| Red-pixel | 31.5 | 0.051 | 0.051 | 46.0 | 0.155 | 0.049 |
| Upper luminance | 21.8 | 0.021 | 0.024 | 21.8 | 0.023 | 0.024 |
Table 12. Calibration of 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 , is the mean over samples of (Table 10). The rule with an equal step gives every sample ; the rule gives sample the step with over the batch of 250 and floored at . Classifiers 2 and 3 of Table 2 are trained with training seeds 1 and 2 and the budget of Appendix § 11.§ 4; for each, is measured along its own 1,000 standard-rule trajectories (sampling seed 0).
| 999 | 899 | 799 | 699 | 599 | 499 | 399 | 299 | 199 | 99 | |
| Red-pixel, ours | 0.067 | 0.066 | 0.118 | 0.209 | 0.276 | 0.350 | 0.376 | 0.301 | 0.232 | 0.143 |
| Red-pixel, CG | 0.091 | 0.084 | 0.147 | 0.245 | 0.356 | 0.401 | 0.317 | 0.232 | 0.131 | 0.069 |
| Upper lum., ours | 0.163 | 0.181 | 0.358 | 0.489 | 0.372 | 0.186 | 0.090 | 0.044 | 0.023 | 0.012 |
| Upper lum., CG | 0.141 | 0.205 | 0.432 | 0.526 | 0.266 | 0.099 | 0.046 | 0.018 | 0.012 | 0.006 |
| Normalized | 1.000 | 1.000 | 0.999 | 0.997 | 0.987 | 0.960 | 0.897 | 0.777 | 0.584 | 0.321 |
Table 10. Mean step per unit , averaged over 250 trajectories at : “ours” rows along our guided trajectories, CG rows along standard-rule trajectories of the matched classifier. The normalized rule’s step is .
Step and across samples. Along 250 standard-rule trajectories at (sampling seed 600), Table 11 gives the Spearman correlation between each sample’s step and ; every correlation has .
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 : red-pixel unguided 45.7 / 118.1, ours 99.5 / 103.9, CG 99.7 / 107.6; upper luminance unguided 22.3 / 140.1, ours 99.5 / 104.3, CG 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 48.4 and 42.4 and 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 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 | Sat. (seed 0) | (seed 0) | Sat. (seed 1) | (seed 1) | |
| Ours | 2 | 99.0 | 80.2 | 95.5 | 79.8 |
| 5 | 99.9 | 104.9 | – | – | |
| 10 | 100.0 | 131.9 | – | – | |
| CG | 2 | 95.4 | 78.6 | 96.0 | 80.8 |
| 5 | 100.0 | 109.0 | – | – | |
| 10 | 100.0 | 149.6 | – | – |
Table 13. The rare constraint (1.00% of training images; the model passes 1.7% of 2,000 unguided samples). Satisfaction (%) and , 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 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 on MNIST falls 492× between and (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 for all four predicates. (c) On Stable Diffusion 1.5, the held-out accuracies of and the matched classifier are within 1.0 point of each other at every probed noise level.
| Predicate | Estimator | 250 | 500 | 750 | 999 | Majority | |
| Red-pixel | Classifier | 96.7 | 88.5 | 77.5 | 72.6 | 72.5 | 73.2 |
| Red-pixel | 94.3 | 87.2 | 77.6 | 72.8 | 72.9 | 73.2 | |
| Upper luminance | Classifier | 98.4 | 97.4 | 90.9 | 76.8 | 74.4 | 75.5 |
| Edge density | Classifier | 95.7 | 91.4 | 82.1 | 74.3 | 74.6 | 75.2 |
| Low saturation | Classifier | 96.6 | 90.6 | 80.8 | 75.2 | 74.9 | 75.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). 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 on held-out, forward-noised CIFAR-10 images (red-pixel, ). (a) Two test images with and two with along one forward path, with under each. (b) Over 4,000 test images the label groups separate at small and merge as grows. (c) The variance of the learned falls from 0.15 at to at , as Proposition 2 predicts for .
Comparison with SVDD on MNIST
With proportional selection SVDD-PM needs candidates, at 21× our time per sample, to match our satisfaction; keeping the best of 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 candidates, whereas our sampler never calls it.
| Method | Candidate selection | Satisfaction (%) | s/sample | |
| Ours () | – | – | 95.1 ± 0.3 | 0.050 |
| SVDD-PM | 5 | proportional to value | 92.5 ± 0.3 | 0.294 |
| SVDD-PM | 20 | proportional to value | 95.2 ± 0.3 | 1.048 |
| SVDD-PM | 5 | highest value | 100.0 ± 0.0 | 0.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 (Table 16): with three training seeds per objective, 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: alone identifies . 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 , the construction of § 4, are best at and within 0.4 points of the best at .
| Objective | Per training seed (%) | Mean (%) |
| (full) | 79.2 / 79.9 / 84.9 | 81.3 ± 2.5 |
| 85.3 / 83.9 / 89.6 | 86.3 ± 2.4 | |
| 87.4 / 83.9 / 86.7 | 86.0 ± 1.5 | |
| only | 88.2 / 82.2 / 89.8 | 86.7 ± 3.3 |
Table 16. Loss ablation on MNIST digit 3 at (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 () | |||
| Independent noisings of (§ 4) | 76.7 ± 0.6 | 94.0 ± 0.1 | 98.3 ± 0.1 |
| Shared noise draw | 72.8 ± 0.6 | 94.1 ± 0.2 | 98.7 ± 0.1 |
| drawn from | 63.2 ± 0.5 | 87.8 ± 0.3 | 96.1 ± 0.2 |
Table 17. Construction of the consistency pair in 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 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 | |||
| Unguided | 16.1 (53.7, 33.3) | ||
| Even only | 25.7 (84.9, 31.0) | 26.9 (92.5, 29.6) | 26.8 (95.7, 28.5) |
| only | 29.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 , whose intersection is . Entries: joint satisfaction (%), followed by the two marginal rates (even, ) in parentheses; mean over 5 seeds 5,000 samples (seed standard deviation at most 1.0). Weights multiply log and log ; at applies the same guidance as at , as does at with at .
Stable Diffusion 1.5
Our satisfaction increases with at every step of the sweep, from 33.1% at to 60.0% at , while the CLIP score stays within 0.23 of the unguided value and FID improves from 109.9 to between 98.2 and 102.6. Normalized classifier guidance is highest at (65.1%): it rises from 12.3% at and declines as grows, to 24.7% at (Table 20).
QM9
On the Lipinski-type filter satisfaction rises with 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 (Table 23).
| Method | / | Satisfaction (%) | Valid (%) | Unique (%) | Novel (%) |
| Lipinski-type filter | |||||
| Unguided | 0 | 54.3 0.9 | 100.0 | 98.0 | 98.3 |
| Ours | 2 | 88.7 0.4 | 100.0 | 92.4 | 96.2 |
| Ours | 5 | 94.1 0.4 | 100.0 | 88.8 | 95.2 |
| Ours | 10 | 96.8 0.2 | 100.0 | 83.2 | 94.5 |
| Ours | 20 | 98.1 0.2 | 100.0 | 76.0 | 94.4 |
| Ours | 50 | 99.5 0.4 | 100.0 | 63.2 | 92.8 |
| SVDD-PM{sup}† | 96.0 | 100.0 | 97.8 | 97.1 |
Table 22.
Table 22: Full QM9 results for the Lipinski-type filter, 3 seeds 1,000 molecules, all with the Euler–Maruyama sampler (satisfaction: mean standard deviation over seeds). {sup}†SVDD-PM: 1 seed 500 molecules on a T4 GPU (Appendix § 11.§ 6).
Table 23: Composition on QM9: separately trained Lipinski-type and ring-presence heads, guided by ; is the unguided model with the same sampler, the run of Table 22. Joint satisfaction (mean standard deviation over 3 seeds 1,000 molecules), the two marginal rates, and the product of the two rates shown.
Additional figures
Figure 4 computes 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 on a two-dimensional example, computed exactly. First panel: is a mixture of eight Gaussians and is a half-plane (shaded), with . Next three panels: 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 . As grows, flattens toward (Proposition 2). Last panel: deterministic reverse paths guided by with , from (open circles) to (filled). All 2,000 guided samples land in , against 38.6% without guidance.
Figure 6. QM9 composition with separately trained Lipinski-type and ring-presence heads, guided by . Joint satisfaction (mean seed standard deviation, 3 seeds 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 with their CIFAR-10 configuration ( singular functions, base width 256, batch 2048, learning rate , ridge , 1,000 epochs) on the same base model as ours, and ran their encoding script on the 50,000 training images at . The mean of the 16 largest values of the learned spectrum is 0.91 for , 0.56 for and 0.05 for , consistent with the transition near that they report. The guidance signal is the binary label 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 , the base network in half precision, guidance at every step, and the update with strength . For Spectral Guidance is their released rule, rescaled per sample to a norm in . For ours 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 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 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, and 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.
| Predicate | Method | Sat. (%) | s/sample | |||
| Red-pixel | Spectral Guidance | 1.5 | 99.85 | 76.07 | 99.18 | 0.039 |
| Red-pixel | Ours | 0.25 | 99.70 | 51.32 | 63.31 | 0.025 |
| Upper luminance | Spectral Guidance | 1.0 | 99.50 | 49.41 | 85.70 | 0.039 |
| Upper luminance | Ours | 0.25 | 99.95 | 43.96 | 66.21 | 0.025 |
Table 24. Spectral Guidance and ours in the Spectral Guidance sampler (DDIM, 100 steps, ), each at its selected strength : 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 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 : 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 ; 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 . On the 10,000 test images, forward-noised with the same noise for both methods, Table 25 scores each estimate of against the label by the area under the ROC curve, which does not depend on the scale of the estimate.
| 10 | 100 | 300 | 500 | 700 | 900 | |
| 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 against 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 : the unscaled step , an equal step per-sample so that rule’s mean step , and the -weighted step at the same mean ( floored at ); 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. FID 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 FID within 1.6 of the standard rule in seven of them. The loss is 7.2 to 8.5 points on ship at 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 , where the normalized step is the larger one. Table 30 extends the normalized rule down to so that the two can be compared at equal satisfaction.
| Red-pixel CG-norm | Red-pixel Ours | Upper luminance CG-norm | Upper luminance Ours | |
| 0.1 | 39.3 / 52.6 | – | 29.5 / 66.0 | – |
| 0.25 | 50.2 / 51.0 | – | 44.7 / 56.3 | – |
| 0.5 | 74.4 / 53.3 | 55.4 / 49.7 | 69.8 / 45.1 | 55.8 / 54.8 |
| 1 | 95.1 / 61.7 | 80.3 / 49.4 | 96.8 / 43.2 | 99.9 / 45.0 |
| 2 | 100.0 / 108.1 | 97.7 / 50.6 | 99.9 / 62.3 | 99.2 / 39.5 |
| 5 | – | 100.0 / 58.2 | 100.0 / 80.3 | 100.0 / 43.4 |
Table 30. The matched classifier under the normalized rule (CG-norm) and ours over the guidance scale: satisfaction (%) / FID, 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 . Three-seed means at 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 from the two separately trained heads of § 6.1 (1000 steps).
| Joint | Red-pixel | Low saturation | Product | ||
| 0 | 0.5 | 31.4 | 15.1 | 4.7 | 160.64 |
| 2 | 30.4 | 84.2 | 39.5 | 33.3 | 124.91 |
| 5 | 97.0 | 64.0 | 62.1 | 118.65 | |
| 10 | 97.6 | 83.9 | 81.9 | 131.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 1,000 samples ( standard deviation for the joint rate) at and 10, seed 0 otherwise. is against the 140 test images that satisfy both.
The joint rate rises from 0.5% to 83.4% and, from , 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 , is measured along the standard-rule trajectories of the same seed, and the rule uses floored at .
The equal step is lower in all six seed-level comparisons, by 5.2 points on average at and 7.3 at , at within 0.5 of the standard rule; the 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, is the mean norm of along the standard-rule trajectories of the same seed, and is floored at .
The equal step is lower in all six seed-level comparisons. At the loss is 2.7 points on average, between 1.5 and 3.3 points across the three seeds, and the weighting recovers over 90% of it. At 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]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]Brian D. O. Anderson. Reverse-time diffusion equation models. Stochastic Processes and their Applications, 12(3):313–326, 1982.DOI
- [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]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]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]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]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]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]Thomas M. Cover and Joy A. Thomas. Elements of Information Theory. John Wiley & Sons, second edition, 2006.
- [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]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]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]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]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]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]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]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]U. G. Haussmann and E. Pardoux. Time reversal of diffusions. The Annals of Probability, 14(4): 1188–1205, 1986.DOI
- [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]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]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]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]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]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]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]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]Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
- [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]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]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]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]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]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]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]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]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]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]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]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]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]Bernt Øksendal. Stochastic Differential Equations: An Introduction with Applications. Universitext. Springer, sixth edition, 2003.
- [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]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]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]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]Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021a.arxiv.org/abs/2010.02502
- [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]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]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]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]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]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]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]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]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]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]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]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]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]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




