Introduction
Diffusion models have become a dominant framework for sampling from a data density p ( x ) p(x) p ( x ) over objects x x x . Their conditional generation mechanisms, including classifier guidance (CG; 15) and classifier-free guidance (CFG; 25), are now standard across modalities, including images [42 ] , molecules [27 ] , audio [39 ] , decision-making and robotic control [28 , 1 ] . CFG amplifies a desired condition by extrapolating between conditional and unconditional scores, and recent work has characterized the induced density and the resulting fidelity–diversity trade-off [54 , 10 , 7 , 38 , 56 ] .
In contrast, negative guidance aims to steer generation away from an undesired condition. This capability is important for AI safety, where harmful outputs should be suppressed [43 , 20 , 21 ] , and where memorized or copyrighted training data should not be reproduced [8 , 46 ] . It is also important for controllable generation, where constraints are often more naturally expressed by negation than by positive prompts [2 , 3 ] . Throughout this paper, c c c denotes the undesired condition and ¬ c \neg c ¬ c its complement. The conditional probability p ( ¬ c ∣ x ) p(\neg c \mid x) p ( ¬ c ∣ x ) satisfies p ( ¬ c ∣ x ) = 1 − p ( c ∣ x ) p(\neg c \mid x)=1-p(c \mid x) p ( ¬ c ∣ x ) = 1 − p ( c ∣ x ) . Thus c c c plays the opposite role to the conditioning variable in CFG: the goal is to reduce p ( c ∣ x ) p(c \mid x) p ( c ∣ x ) for generated samples while preserving the structure of p ( x ) p(x) p ( x ) .
Existing negative guidance methods add a CFG-like repulsive term to the sampling dynamics of a fixed pretrained diffusion model, either without retraining the score network [20 , 51 ] or by editing internal representations [21 , 5 ] . The repulsion is constructed from either a pretrained conditional score for p ( x ∣ c ) p(x \mid c) p ( x ∣ c ) [34 ] , or a finite set of reference samples from p ( x ∣ c ) p(x \mid c) p ( x ∣ c ) [29 ] . These methods share two structural limitations: the repulsive update uses only information local to each sample, so the resulting sampler does not target an explicit density, and the induced bias cannot be reduced by allocating more computation. We formalize these limitations in § 2 .
We instead formulate negative guidance as sampling from the explicit avoidance target
p t a r g e t ( x ) ∝ p ( x ) ( 1 − p ( c ∣ x ) ) λ , λ ≥ 0 , (1) p_{\mathrm{target}}(x) \propto p(x)\left(1-p(c \mid x)\right)^\lambda,\qquad\lambda\ge0, \tag*{(1)} p target ( x ) ∝ p ( x ) ( 1 − p ( c ∣ x ) ) λ , λ ≥ 0 , (1)
where λ \lambda λ is a user-controlled avoidance strength that parametrizes the target density itself: λ = 0 \lambda= 0 λ = 0 recovers the unconditional density, and λ → ∞ \lambda\to\infty λ → ∞ concentrates mass on the support of ¬ c \neg c ¬ c . When the condition c c c is a semantic concept rather than a deterministic rule, p ( c ∣ x ) p(c \mid x) p ( c ∣ x ) varies smoothly with x x x , and intermediate λ \lambda λ continuously interpolates between fidelity to p ( x ) p(x) p ( x ) and avoidance of c c c . The remaining challenge is to sample from (1) using only the information available in negative guidance: an unconditional score for p ( x ) p(x) p ( x ) together with either a conditional score for p ( x ∣ c ) p(x \mid c) p ( x ∣ c ) or reference samples from p ( x ∣ c ) p(x \mid c) p ( x ∣ c ) .
Our approach rests on the observation that estimating p ( c ∣ x ) p(c \mid x) p ( c ∣ x ) in this setting can be cast as a Positive–Unlabeled (PU) learning problem [14 , 18 ] , with samples associated with class c c c as positives and unconditional diffusion particles as unlabeled data. We pair an online PU estimator of p ( c ∣ x ) p(c \mid x) p ( c ∣ x ) with Sequential Monte Carlo (SMC; [13 , 11 ] ) targeting (1), which corrects the residual mismatch between guided particles and the target marginal. The resulting sampler is asymptotically exact in the particle limit, in the same spirit as test-time diffusion alignment via SMC [52 , 45 , 31 ] , while keeping per-step PU updates lightweight.
Our contributions.
We formulate negative guidance as sampling from the explicit avoidance density (1), realized through the finite-step reverse process of a trained diffusion model, for both reference-sample and conditional-score specifications.
We design an SMC sampler driven by an online PU estimator of p ( c ∣ x ) p(c \mid x) p ( c ∣ x ) , prove its asymptotic exactness, and show that any existing negative-guidance method can serve as its proposal kernel.
Empirically, our sampler matches an oracle diffusion sampler with access to the true score for p ( x ∣ ¬ c ) p(x \mid\neg c) p ( x ∣ ¬ c ) on Gaussian mixtures and Pareto-dominates representative baselines on avoidance–quality trade-offs under both specifications, including image generation with a pretrained score network.
Existing Negative Guidance Methods
This section reviews representative negative guidance methods, namely sign-flipped CFG (NegCFG; also analyzed as standard negative prompting by 3), Dynamic Negative Guidance (DNG, 34), and the Safe Denoiser [29 ] . We then identify structural limitations that motivate our formulation.
Diffusion models. We use a variance-preserving diffusion process [48 , 26 ] with forward kernel
q t ( x t ∣ x 0 ) = N ( x t ; α ˉ t x 0 , ( 1 − α ˉ t ) I ) , t = 1 , … , T , (2) q_t(x_t \mid x_0) = \mathcal{N}\left(x_t; \sqrt{\bar{\alpha}_t}x_0, (1-\bar{\alpha}_t)I\right), \qquad t=1,\ldots,T, \tag*{(2)} q t ( x t ∣ x 0 ) = N ( x t ; α ˉ t x 0 , ( 1 − α ˉ t ) I ) , t = 1 , … , T , (2)
where N ( x ; μ , Σ ) \mathcal{N}(x;\mu,\Sigma) N ( x ; μ , Σ ) denotes the Gaussian density in x x x with mean μ \mu μ and covariance Σ \Sigma Σ and I I I is the identity matrix. This kernel induces noisy marginals p t ( x t ) p_t(x_t) p t ( x t ) with p T ( x T ) p_T(x_T) p T ( x T ) close to N ( 0 , I ) \mathcal{N}(0,I) N ( 0 , I ) . A pretrained noise predictor ϵ ^ θ ( x t , t ) \hat{\epsilon}_\theta(x_t,t) ϵ ^ θ ( x t , t ) parameterizes the unconditional score via
ϵ ^ θ ( x t , t ) ≈ − 1 − α ˉ t ∇ x t log p t ( x t ) , \hat{\epsilon}_\theta(x_t,t) \approx-\sqrt{1-\bar{\alpha}_t}\nabla_{x_t}\log p_t(x_t), ϵ ^ θ ( x t , t ) ≈ − 1 − α ˉ t ∇ x t log p t ( x t ) ,
and, when available, a conditional predictor ϵ ^ θ ( x t , t ∣ c ) \hat{\epsilon}_\theta(x_t,t \mid c) ϵ ^ θ ( x t , t ∣ c ) analogously parameterizes ∇ x t log p t ( x t ∣ c ) \nabla_{x_t}\log p_t(x_t \mid c) ∇ x t log p t ( x t ∣ c ) . Tweedie’s formula [17 ] gives the standard denoised estimate
x ^ 0 ( x t ) = x t − 1 − α ˉ t ϵ ^ θ ( x t , t ) α ˉ t ≈ E [ x 0 ∣ x t ] . \hat{x}_0(x_t) = \frac{x_t-\sqrt{1-\bar{\alpha}_t}\hat{\epsilon}_\theta(x_t,t)}{\sqrt{\bar{\alpha}_t}} \approx\mathbb{E}[x_0 \mid x_t]. x ^ 0 ( x t ) = α ˉ t x t − 1 − α ˉ t ϵ ^ θ ( x t , t ) ≈ E [ x 0 ∣ x t ] .
DDPM (Denoising Diffusion Probabilistic Models) sampling [26 ] starts from x T ∼ N ( 0 , I ) x_T \sim\mathcal{N}(0,I) x T ∼ N ( 0 , I ) and applies the reverse kernels p θ ( x t − 1 ∣ x t ) = N ( x t − 1 ; μ θ ( x t , t ) , σ t 2 I ) p_\theta(x_{t-1}\mid x_t)=\mathcal{N}(x_{t-1};\mu_\theta(x_t,t),\sigma_t^2 I) p θ ( x t − 1 ∣ x t ) = N ( x t − 1 ; μ θ ( x t , t ) , σ t 2 I ) for t = T , T − 1 , … , 1 t=T,T-1,\ldots,1 t = T , T − 1 , … , 1 . All guidance methods reviewed here modify only the mean μ θ \mu_\theta μ θ , leaving the variance σ t 2 I \sigma_t^2 I σ t 2 I unchanged; this is exploited in § 3 . Full closed-form expressions are deferred to Appendix § 16 .§ 1 .
Sign-flipped CFG (NegCFG). NegCFG combines unconditional and conditional noise predictors:
ϵ ^ C F G ( x t , t ) ← ϵ ^ θ ( x t , t ) − η ( ϵ ^ θ ( x t , t ∣ c ) − ϵ ^ θ ( x t , t ) ) , \hat{\epsilon}_{\mathrm{CFG}}(x_t,t)\leftarrow\hat{\epsilon}_\theta(x_t,t)-\eta\left(\hat{\epsilon}_\theta(x_t,t\mid c)-\hat{\epsilon}_\theta(x_t,t)\right), ϵ ^ CFG ( x t , t ) ← ϵ ^ θ ( x t , t ) − η ( ϵ ^ θ ( x t , t ∣ c ) − ϵ ^ θ ( x t , t ) ) ,
and throughout this paper η > 0 \eta>0 η > 0 consistently denotes repulsion from condition c c c , while η < 0 \eta<0 η < 0 corresponds to standard CFG that amplifies c c c . Several variants build on this basic rule with stabilization mechanisms that suppress artifacts arising from score extrapolation, though these mechanisms are tailored to specific applications or architectures [43 , 9 ] .
Dynamic Negative Guidance (DNG). DNG [34 ] starts from the exact score decomposition
∇ x t log p t ( x t ∣ ¬ c ) ← ∇ x t log p t ( x t ) + η ∇ x t log ( 1 − p t ( c ∣ x t ) ) , (3) \nabla_{x_t}\log p_t(x_t\mid\neg c)\leftarrow\nabla_{x_t}\log p_t(x_t)+\eta\nabla_{x_t}\log\left(1-p_t(c\mid x_t)\right), \tag*{(3)} ∇ x t log p t ( x t ∣ ¬ c ) ← ∇ x t log p t ( x t ) + η ∇ x t log ( 1 − p t ( c ∣ x t ) ) , (3)
which requires the global posterior p t ( c ∣ x t ) p_t(c\mid x_t) p t ( c ∣ x t ) . Applying Bayes’ rule yields a CFG-style repulsion scaled by the posterior odds:
∇ x t log ( 1 − p t ( c ∣ x t ) ) = − p t ( c ∣ x t ) 1 − p t ( c ∣ x t ) ( ∇ x t log p t ( x t ∣ c ) − ∇ x t log p t ( x t ) ) . \nabla_{x_t}\log\left(1-p_t(c\mid x_t)\right)=-\frac{p_t(c\mid x_t)}{1-p_t(c\mid x_t)}\left(\nabla_{x_t}\log p_t(x_t\mid c)-\nabla_{x_t}\log p_t(x_t)\right). ∇ x t log ( 1 − p t ( c ∣ x t ) ) = − 1 − p t ( c ∣ x t ) p t ( c ∣ x t ) ( ∇ x t log p t ( x t ∣ c ) − ∇ x t log p t ( x t ) ) .
Since p t ( c ∣ x t ) p_t(c\mid x_t) p t ( c ∣ x t ) is unavailable during sampling, DNG estimates it recursively via a local Gaussian approximation to the reverse transition [37 ] :
log p t − 1 ( c ∣ x t − 1 ) ← log p t ( c ∣ x t ) − 1 2 σ t 2 ( ∥ x t − 1 − μ θ ( x t , t ∣ c ) ∥ 2 − ∥ x t − 1 − μ θ ( x t , t ) ∥ 2 ) , (4) \log p_{t-1}(c\mid x_{t-1})\leftarrow\log p_t(c\mid x_t)-\frac{1}{2\sigma_t^2}\left(\lVert x_{t-1}-\mu_\theta(x_t,t\mid c)\rVert^2-\lVert x_{t-1}-\mu_\theta(x_t,t)\rVert^2\right), \tag*{(4)} log p t − 1 ( c ∣ x t − 1 ) ← log p t ( c ∣ x t ) − 2 σ t 2 1 ( ∥ x t − 1 − μ θ ( x t , t ∣ c ) ∥ 2 − ∥ x t − 1 − μ θ ( x t , t ) ∥ 2 ) , (4)
introducing an approximation bias whose magnitude has no known bound. Appendix § 16 .4 supplements this point with the conditions under which DNG becomes exact and how they differ from our setting.
Reference-particle negative guidance. NegCFG and DNG both require a pretrained conditional score ϵ ^ θ ( x t , t ∣ c ) \hat{\epsilon}_\theta(x_t,t\mid c) ϵ ^ θ ( x t , t ∣ c ) , which does not exist for user-specified conditions such as copyrighted or memorized content [29 ] ; in such cases, the condition is instead provided as a finite reference set { x c i } i = 1 N \{x_c^i\}_{i=1}^{N} { x c i } i = 1 N . The Safe Denoiser [29 ] addresses this regime by modifying the denoised estimate itself:
x ^ s a f e ( x t ) = x ^ 0 ( x t ) + η N ∑ i = 1 N q t ( x t ∣ x c i ) ( x ^ 0 ( x t ) − ∑ k = 1 N x c k q t ( x t ∣ x c k ) ∑ j = 1 N q t ( x t ∣ x c j ) ) . \hat{x}_{\mathrm{safe}}(x_t)=\hat{x}_0(x_t)+\frac{\eta}{N}\sum_{i=1}^{N}q_t(x_t\mid x_c^i)\left(\hat{x}_0(x_t)-\frac{\sum_{k=1}^{N}x_c^kq_t(x_t\mid x_c^k)}{\sum_{j=1}^{N}q_t(x_t\mid x_c^j)}\right). x ^ safe ( x t ) = x ^ 0 ( x t ) + N η i = 1 ∑ N q t ( x t ∣ x c i ) ( x ^ 0 ( x t ) − ∑ j = 1 N q t ( x t ∣ x c j ) ∑ k = 1 N x c k q t ( x t ∣ x c k ) ) .
where q t ( x t ∣ x c i ) q_t(x_t\mid x_c^i) q t ( x t ∣ x c i ) is the forward kernel (2) evaluated as a likelihood (not a sampling density) and η > 0 \eta>0 η > 0 controls the repulsion strength. Geometrically, the bracketed term pushes x ^ 0 ( x t ) \hat{x}_0(x_t) x ^ 0 ( x t ) away from the kernel-weighted mean of the references, and the prefactor amplifies the repulsion when x t x_t x t lies near the reference region. In practice, η \eta η and the time window over which guidance is applied must be tuned per condition [29 , 30 ] , navigating an implicit avoidance–quality trade-off. Shielded Diffusion [32 ] takes a similar reference-particle approach but sparsifies the repulsion, activating it only when x ^ 0 ( x t ) \hat{x}_0(x_t) x ^ 0 ( x t ) falls within a fixed radius of the reference region.
Structural limitations. These methods are lightweight and effective in practice, but share a structural limitation: each replaces the global posterior p t ( c ∣ x t ) p_t(c\mid x_t) p t ( c ∣ x t ) in (3) with a single-particle surrogate, namely a conditional score, a Gaussian-transition ratio, or nearby reference particles. The repulsion-strength hyperparameter exposed by each method thus carries no density-level meaning, and the induced bias cannot be bounded or reduced by additional computation. § 3 instead estimates p t ( c ∣ x t ) p_t(c\mid x_t) p t ( c ∣ x t ) from multiple particles via online PU learning and corrects residual bias with SMC, targeting (1) with λ \lambda λ as the sole density-level knob.
Proposed Method: PU Steering
The limitations above have a common root: without a global estimate of p t ( c ∣ x t ) p_t(c\mid x_t) p t ( c ∣ x t ) , no per-particle update can target (1) as an explicit density. PU Steering closes this gap by combining (i) a tempered SMC path toward (1), (ii) an online PU classifier f t ≈ p t ( c ∣ x t ) f_t\approx p_t(c\mid x_t) f t ≈ p t ( c ∣ x t ) fit from the running particles, and (iii) a particle-density correction that makes those particles unbiased unlabeled data for the PU step. Any existing negative-guidance method plugs in as the proposal kernel, and an analysis-friendly form of the sampler is asymptotically exact for (1) (Section 4). § 3.1 presents the meta-algorithm; § 3.2 and § 3.3 specialize it to the reference-sample and score-based regimes.
Common Framework
PU Steering combines three components, described in turn below: an SMC backbone, a PU posterior estimator that yields f t f_t f t online, and an importance-weight correction that bridges them.
SMC backbone. SMC targets a sequence γ T , γ T − 1 , … , γ 0 \gamma_T,\gamma_{T-1},\ldots,\gamma_0 γ T , γ T − 1 , … , γ 0 in turn via a weighted particle system, alternating at each step a proposal that moves each particle, and a weight update that retargets it to the next γ t \gamma_t γ t . Following test-time alignment of diffusion models via SMC [52 , 31 ] (recalled in Appendix § 16 .§ 3 ), we deploy SMC along the reverse diffusion with the tempered path
γ t ( x t ) ∝ p θ , t ( x t ) ( 1 − f t ( x t ) ) λ t , 0 = λ T ≤ … ≤ λ 0 = λ , (5) \gamma_t(x_t) \propto p_{\theta,t}(x_t)(1-f_t(x_t))^{\lambda_t}, \qquad0=\lambda_T\leq\ldots\leq\lambda_0=\lambda, \tag*{(5)} γ t ( x t ) ∝ p θ , t ( x t ) ( 1 − f t ( x t ) ) λ t , 0 = λ T ≤ … ≤ λ 0 = λ , (5)
realizing our target (1) at t = 0 t=0 t = 0 whenever f 0 = p θ , 0 ( c ∣ ⋅ ) f_0=p_{\theta,0}(c\mid\cdot) f 0 = p θ , 0 ( c ∣ ⋅ ) . Here p θ , t p_{\theta,t} p θ , t denotes the marginal of the pretrained reverse process in § 2 , so p θ , t ( x t ) ≈ p t ( x t ) p_{\theta,t}(x_t)\approx p_t(x_t) p θ , t ( x t ) ≈ p t ( x t ) and γ T ( x T ) = N ( x T ; 0 , I ) \gamma_T(x_T)=\mathcal{N}(x_T;0,I) γ T ( x T ) = N ( x T ; 0 , I ) . All operations of PU Steering below are defined on this path of the pretrained sampler: posteriors and class-conditional densities are those of p θ , t p_{\theta,t} p θ , t , and p t a r g e t p_{\mathrm{target}} p target denotes (1) with p p p replaced by p θ , 0 p_{\theta,0} p θ , 0 . Unlike [52 , 31 ] , where the potential defining γ t \gamma_t γ t is pre-specified, we estimate f t f_t f t online from the running particles. Section 4 shows that the marginal of γ 0 \gamma_0 γ 0 depends only on the terminal f 0 f_0 f 0 , so neither accurate ∇ x t f t \nabla_{x_t}f_t ∇ x t f t for all t t t nor accurate f t f_t f t at t > 0 t>0 t > 0 is required.
Concretely, M M M particles are initialized at t = T t=T t = T as { x T j } j = 1 M ∼ i . i . d . N ( 0 , I ) \{x_T^j\}_{j=1}^M \mathrel{\overset{\mathrm{i.i.d.}}{\sim}} \mathcal{N}(0,I) { x T j } j = 1 M ∼ i.i.d. N ( 0 , I ) with w q , T j = 1 w_{q,T}^j=1 w q , T j = 1 for all j j j . At each subsequent step, a Gaussian proposal kernel m t − 1 ( ⋅ ∣ x t ) = N ( μ t p r o p , σ t 2 I ) m_{t-1}(\cdot\mid x_t)=\mathcal{N}(\mu_t^{\mathrm{prop}},\sigma_t^2I) m t − 1 ( ⋅ ∣ x t ) = N ( μ t prop , σ t 2 I ) whose mean μ t p r o p \mu_t^{\mathrm{prop}} μ t prop is specified per setting in § 3.2 and § 3.3 , draws x t − 1 x_{t-1} x t − 1 ; the weight update from γ t \gamma_t γ t to γ t − 1 \gamma_{t-1} γ t − 1 then admits the closed-form recursion
w q , t − 1 = w q , t r t ( 1 − f t − 1 ( x t − 1 ) ) λ t − 1 ( 1 − f t ( x t ) ) λ t , where w_{q,t-1}=w_{q,t}\,r_t\frac{(1-f_{t-1}(x_{t-1}))^{\lambda_{t-1}}}{(1-f_t(x_t))^{\lambda_t}}, \qquad\text{where} w q , t − 1 = w q , t r t ( 1 − f t ( x t ) ) λ t ( 1 − f t − 1 ( x t − 1 ) ) λ t − 1 , where
r t : = exp ( − ∥ x t − 1 − μ θ ( x t , t ) ∥ 2 / 2 σ t 2 ) exp ( − ∥ x t − 1 − μ t p r o p ∥ 2 / 2 σ t 2 ) = p θ ( x t − 1 ∣ x t ) m t − 1 ( x t − 1 ∣ x t ) , (6) r_t:=\frac{\exp(-\lVert x_{t-1}-\mu_\theta(x_t,t)\rVert^2/2\sigma_t^2)}{\exp(-\lVert x_{t-1}-\mu_t^{\mathrm{prop}}\rVert^2/2\sigma_t^2)}=\frac{p_\theta(x_{t-1}\mid x_t)}{m_{t-1}(x_{t-1}\mid x_t)}, \tag*{(6)} r t := exp ( − ∥ x t − 1 − μ t prop ∥ 2 /2 σ t 2 ) exp ( − ∥ x t − 1 − μ θ ( x t , t ) ∥ 2 /2 σ t 2 ) = m t − 1 ( x t − 1 ∣ x t ) p θ ( x t − 1 ∣ x t ) , (6)
i.e., r t r_t r t is the density ratio between the pretrained reverse kernel and the proposal; the trailing classifier ratio in (6) accounts for the change of tilting from γ t \gamma_t γ t to γ t − 1 \gamma_{t-1} γ t − 1 (derivation in Appendix § 16 .§ 3 ).
PU posterior estimator. Estimating p θ , t ( c ∣ x t ) p_{\theta,t}(c\mid x_t) p θ , t ( c ∣ x t ) is a binary classification problem with positive class c c c and negative class ¬ c \neg c ¬ c , but no samples from p θ , t ( ⋅ ∣ ¬ c ) p_{\theta,t}(\cdot\mid\neg c) p θ , t ( ⋅ ∣ ¬ c ) are directly available in either of our settings. What both settings provide is (i) positive samples from p θ , t ( ⋅ ∣ c ) p_{\theta,t}(\cdot\mid c) p θ , t ( ⋅ ∣ c ) and (ii) the pretrained unconditional marginal p θ , t p_{\theta,t} p θ , t , which mixes the two class-conditional distributions at the prior rate π = p ( c ) \pi=p(c) π = p ( c ) :
p θ , t ( x t ) = π p θ , t ( x t ∣ c ) + ( 1 − π ) p θ , t ( x t ∣ ¬ c ) . p_{\theta,t}(x_t)=\pi p_{\theta,t}(x_t\mid c)+(1-\pi)p_{\theta,t}(x_t\mid\neg c). p θ , t ( x t ) = π p θ , t ( x t ∣ c ) + ( 1 − π ) p θ , t ( x t ∣ ¬ c ) .
This identity recasts the binary classification risk using only samples from p ( ⋅ ∣ c ) p(\cdot\mid c) p ( ⋅ ∣ c ) and unconditional samples alone, giving the unbiased PU (uPU) risk [16 , 41 ] :
L P U ( f ) = π E p ( x ∣ c ) [ ℓ ( f ( x ) , + 1 ) ] + E p ( x ) [ ℓ ( f ( x ) , − 1 ) ] − π E p ( x ∣ c ) [ ℓ ( f ( x ) , − 1 ) ] , (7) \mathcal{L}_{\mathrm{PU}}(f)=\pi\mathbb{E}_{p(x\mid c)}[\ell(f(x),+1)]+\mathbb{E}_{p(x)}[\ell(f(x),-1)]-\pi\mathbb{E}_{p(x\mid c)}[\ell(f(x),-1)], \tag*{(7)} L PU ( f ) = π E p ( x ∣ c ) [ ℓ ( f ( x ) , + 1 )] + E p ( x ) [ ℓ ( f ( x ) , − 1 )] − π E p ( x ∣ c ) [ ℓ ( f ( x ) , − 1 )] , (7)
where E \mathbb{E} E denotes the expectation. This risk equals the standard binary classification risk (derivation in Appendix § 16 .§ 2 ). Minimizing it with a proper loss yields f t ≈ p θ , t ( c ∣ x t ) f_t\approx p_{\theta,t}(c\mid x_t) f t ≈ p θ , t ( c ∣ x t ) , provided π \pi π is known or estimable from domain knowledge. The SMC particles, however, do not follow p θ , t p_{\theta,t} p θ , t and thus cannot directly serve as unlabeled samples in (7).
Particle density correction. We correct this mismatch by importance reweighting [49 ] . The density γ ^ t \hat{\gamma}_t γ ^ t induced by the M M M particles under the proposal kernel and resampling rule has no closed form. Our key observation concerns the importance weight retargeting it to p θ , t p_{\theta,t} p θ , t , conceptually defined as
w ∅ , t ( x t ) : = p θ , t ( x t ) γ ^ t ( x t ) (8) w_{\varnothing,t}(x_t):=\frac{p_{\theta,t}(x_t)}{\hat{\gamma}_t(x_t)} \tag*{(8)} w ∅ , t ( x t ) := γ ^ t ( x t ) p θ , t ( x t ) (8)
(∅ \varnothing ∅ marks the unconditional target).
Setting λ t ≡ 0 \lambda_t\equiv0 λ t ≡ 0 in (6) collapses γ t \gamma_t γ t to p θ , t p_{\theta,t} p θ , t and the classifier ratio to one, giving its closed form
w ∅ , t − 1 = w ∅ , t r t , w ∅ , T = 1 ; (9) w_{\varnothing,t-1}=w_{\varnothing,t}\,r_t,\qquad w_{\varnothing,T}=1; \tag*{(9)} w ∅ , t − 1 = w ∅ , t r t , w ∅ , T = 1 ; (9)
i.e., w ∅ , t w_{\varnothing,t} w ∅ , t is itself the SMC weight that would target p θ , t p_{\theta,t} p θ , t along the same particle trajectory as w q , t w_{q,t} w q , t . The two recursions share r t r_t r t and differ only in the tilting factor ( 1 − f t ) λ t (1-f_t)^{\lambda_t} ( 1 − f t ) λ t , so w ∅ , t w_{\varnothing,t} w ∅ , t is tracked alongside w q , t w_{q,t} w q , t at no additional cost. Empirically approximating E p ( x ) \mathbb{E}_{p(x)} E p ( x ) in (7) with { ( x t j , w ∅ , t j ) } j = 1 M \{(x_t^j,w_{\varnothing,t}^j)\}_{j=1}^M {( x t j , w ∅ , t j ) } j = 1 M restores unbiasedness of the uPU risk used to fit f t f_t f t . This bridges the SMC sampler and the PU estimator: (6) drives particles toward γ t \gamma_t γ t for sampling, while (9) pulls them back to p θ , t p_{\theta,t} p θ , t inside the uPU loss for f t f_t f t .
Algorithm 1 PU Steering: one reverse-diffusion step (t → t − 1 t \to t-1 t → t − 1 ).
Require: particles { ( x t j , w ∅ , t j , w q , t j ) } j = 1 M \{(x_{t}^{j}, w_{\emptyset,t}^{j}, w_{q,t}^{j})\}_{j=1}^{M} {( x t j , w ∅ , t j , w q , t j ) } j = 1 M , classifier f t f_t f t , schedule entry λ t − 1 \lambda_{t-1} λ t − 1 , class prior π \pi π .
# Propose particles via any negative-guidance kernel
1: x t − 1 j ∼ m t − 1 ( ⋅ ∣ x t j ) x_{t-1}^{j} \sim m_{t-1}(\cdot\mid x_{t}^{j}) x t − 1 j ∼ m t − 1 ( ⋅ ∣ x t j ) , j = 1 , … , M j=1,\ldots,M j = 1 , … , M ▷ e.g., (10)
# Advance w ∅ w_{\emptyset} w ∅ via the closed-form recursion
2: update w ∅ , t − 1 j w_{\emptyset,t-1}^{j} w ∅ , t − 1 j toward p θ , t − 1 p_{\theta,t-1} p θ , t − 1 ▷ (9)
# Refit the PU classifier on new particles
3: Sample positives P t − 1 \mathcal{P}_{t-1} P t − 1 from p θ , t − 1 ( ⋅ ∣ c ) p_{\theta,t-1}(\cdot\mid c) p θ , t − 1 ( ⋅ ∣ c ) ▷ setting-specific: § 3.2 /§ 3.3
4: f t − 1 ← arg min f L u P U ( f ) f_{t-1} \leftarrow\arg\min_f \mathcal{L}_{\mathrm{uPU}}(f) f t − 1 ← arg min f L uPU ( f ) on P t − 1 \mathcal{P}_{t-1} P t − 1 and { ( x t − 1 j , w ∅ , t − 1 j ) } j = 1 M \{(x_{t-1}^{j},w_{\emptyset,t-1}^{j})\}_{j=1}^{M} {( x t − 1 j , w ∅ , t − 1 j ) } j = 1 M ▷ (7)
# Reweight w q w_q w q via the shared closed-form recursion
5: update w q , t − 1 j w_{q,t-1}^{j} w q , t − 1 j toward γ t − 1 \gamma_{t-1} γ t − 1 ▷ (6)
# Resample only when particles degenerate
6: if ESS ( { w q , t − 1 j } ) < ESS min \operatorname{ESS}(\{w_{q,t-1}^{j}\}) < \operatorname{ESS}_{\min} ESS ({ w q , t − 1 j }) < ESS m i n then resample ∝ w q , t − 1 j \propto w_{q,t-1}^{j} ∝ w q , t − 1 j and reweight w ∅ , t − 1 j w_{\emptyset,t-1}^{j} w ∅ , t − 1 j accordingly
Meta-algorithm. Algorithm 1 summarizes one timestep of PU Steering, which propagates particles through a negative-guidance proposal, refits the PU classifier on the reweighted particles, and updates the target weights before resampling. The full procedure initializes { x T j } j = 1 M ∼ i . i . d . N ( 0 , I ) \{x_{T}^{j}\}_{j=1}^{M} \mathrel{\overset{\mathrm{i.i.d.}}{\sim}} \mathcal{N}(0,I) { x T j } j = 1 M ∼ i.i.d. N ( 0 , I ) , w q , T j = w ∅ , T j = 1 w_{q,T}^{j}=w_{\emptyset,T}^{j}=1 w q , T j = w ∅ , T j = 1 , and any f T f_T f T , and then applies Algorithm 1 for t = T , T − 1 , … , 1 t=T,T-1,\ldots,1 t = T , T − 1 , … , 1 . The two settings in § 3.2 and § 3.3 differ only in the proposal kernel m t − 1 m_{t-1} m t − 1 and in how positives P t − 1 \mathcal{P}_{t-1} P t − 1 are obtained; all other steps are shared.
Negative guidance ultimately requires a particle set in which the undesired condition c c c is suppressed, not a weighted empirical distribution dominated by a few high-weight particles. Resampling enforces this: ancestors a ( j ) ∝ w q , t − 1 j a(j) \propto w_{q,t-1}^{j} a ( j ) ∝ w q , t − 1 j are drawn, each particle is replaced by x t − 1 a ( j ) x_{t-1}^{a(j)} x t − 1 a ( j ) , w q , t − 1 j w_{q,t-1}^{j} w q , t − 1 j is reset to 1, and w ∅ , t − 1 j w_{\emptyset,t-1}^{j} w ∅ , t − 1 j is rescaled to w ∅ , t − 1 a ( j ) / w q , t − 1 a ( j ) w_{\emptyset,t-1}^{a(j)} / w_{q,t-1}^{a(j)} w ∅ , t − 1 a ( j ) / w q , t − 1 a ( j ) to preserve the ratio interpretation (8) . Following [11 ] , we trigger resampling only when the effective sample size ESS ( { w q , t − 1 j } ) : = ( ∑ j w q , t − 1 j ) 2 / ∑ j ( w q , t − 1 j ) 2 \operatorname{ESS}(\{w_{q,t-1}^{j}\}) := (\sum_j w_{q,t-1}^{j})^2 / \sum_j (w_{q,t-1}^{j})^2 ESS ({ w q , t − 1 j }) := ( ∑ j w q , t − 1 j ) 2 / ∑ j ( w q , t − 1 j ) 2 falls below ESS min \operatorname{ESS}_{\min} ESS m i n , since unnecessary resampling adds Monte Carlo noise and computational cost without benefit.
Reference-Based Setting
We instantiate Algorithm 1 when the undesired condition c c c is specified by a finite reference set { x 0 i } i = 1 N \{x_{0}^{i}\}_{i=1}^{N} { x 0 i } i = 1 N of clean samples. The setting-specific slots are the positive set P t − 1 \mathcal{P}_{t-1} P t − 1 in Step 3 and the proposal mean μ t p r o p \mu_{t}^{\mathrm{prop}} μ t prop in Step 1. Detailed pseudocode is given as Algorithm 2 in Appendix § 17 .
PU classifier. Only the terminal f 0 f_0 f 0 controls the marginal of γ 0 \gamma_0 γ 0 (§ 3.1 ), so f t f_t f t for t > 0 t>0 t > 0 need not be highly accurate. Classification of c c c is also intrinsically easier on clean samples than on noised ones, since the forward kernel of (2) destroys class-discriminative structure as t t t grows. Both observations motivate the parameterization
f t ( x t ) : = g 0 ( x ^ 0 ( x t ) ) , g 0 ( x 0 ) ≈ p θ , 0 ( c ∣ x 0 ) . f_t(x_t) := g_0(\hat{x}_0(x_t)), \qquad g_0(x_0) \approx p_{\theta,0}(c \mid x_0). f t ( x t ) := g 0 ( x ^ 0 ( x t )) , g 0 ( x 0 ) ≈ p θ , 0 ( c ∣ x 0 ) .
At t = 0 t=0 t = 0 , x ^ 0 ( x 0 ) = x 0 \hat{x}_0(x_0)=x_0 x ^ 0 ( x 0 ) = x 0 gives f 0 = g 0 f_0=g_0 f 0 = g 0 and γ 0 ( x 0 ) ∝ p θ , 0 ( x 0 ) ( 1 − g 0 ( x 0 ) ) λ \gamma_0(x_0) \propto p_{\theta,0}(x_0)(1-g_0(x_0))^\lambda γ 0 ( x 0 ) ∝ p θ , 0 ( x 0 ) ( 1 − g 0 ( x 0 ) ) λ , recovering p t a r g e t p_{\mathrm{target}} p target .
Because g 0 g_0 g 0 acts on inputs in the denoised space, the uPU loss must be estimated with both positives and unlabeled samples projected through x ^ 0 \hat{x}_0 x ^ 0 . We accordingly set
P t − 1 = { x ^ 0 ( x ~ t − 1 i ) } i = 1 N , U t − 1 = { ( x ^ 0 ( x t − 1 j ) , w ∅ , t − 1 j ) } j = 1 M . \mathcal{P}_{t-1}=\{\hat{x}_0(\tilde{x}_{t-1}^{i})\}_{i=1}^{N}, \qquad\mathcal{U}_{t-1}=\{(\hat{x}_0(x_{t-1}^{j}),w_{\emptyset,t-1}^{j})\}_{j=1}^{M}. P t − 1 = { x ^ 0 ( x ~ t − 1 i ) } i = 1 N , U t − 1 = {( x ^ 0 ( x t − 1 j ) , w ∅ , t − 1 j ) } j = 1 M .
where x ~ t − 1 i ∼ q t − 1 ( ⋅ ∣ x 0 i ) \tilde{x}_{t-1}^{i}\sim q_{t-1}(\cdot\mid x_{0}^{i}) x ~ t − 1 i ∼ q t − 1 ( ⋅ ∣ x 0 i ) is a forward-noised reference, so that positives and unlabeled samples are aligned on the same x ^ 0 \hat{x}_0 x ^ 0 -pushforward at each level t t t and reduce to the original references at t = 0 t=0 t = 0 . Since g 0 g_0 g 0 is the only trainable object, the per-step refit reduces to a few warm-started gradient steps on its parameters, with f t − 1 = g 0 ∘ x ^ 0 f_{t-1}=g_0\circ\hat{x}_0 f t − 1 = g 0 ∘ x ^ 0 updated implicitly.
SMC proposal. (i) CG-style proposal driven by f t f_t f t .
μ t p r o p : = μ θ ( x t , t ) + σ t 2 λ t − 1 ∇ x t log ( 1 − f t ( x t ) ) . (10) \mu_{t}^{\mathrm{prop}} := \mu_{\theta}(x_t,t)+\sigma_t^2\lambda_{t-1}\nabla_{x_t}\log(1-f_t(x_t)). \tag*{(10)} μ t prop := μ θ ( x t , t ) + σ t 2 λ t − 1 ∇ x t log ( 1 − f t ( x t )) . (10)
Under f t = g 0 ∘ x ^ 0 f_t = g_0 \circ\hat{x}_0 f t = g 0 ∘ x ^ 0 the gradient routes through Tweedie’s formula, making (10) a CG variant that lifts a clean-domain predictor through x ^ 0 \hat{x}_0 x ^ 0 [12 , 4 , 55 ] . The difference is that no accurate predictor is available at the start of sampling in our setting, so g 0 g_0 g 0 is fit online via PU learning.
(ii) Existing reference-based guidance as proposal. Methods such as the Safe Denoiser [29 ] provide efficient guidance but target no explicit density. Using their guidance as μ t p r o p \mu_t^{\mathrm{prop}} μ t prop leaves the per-step update intact while the SMC layer ensures asymptotic exactness for p t a r g e t p_{\mathrm{target}} p target .
Score-Based Setting
We instantiate Algorithm 1 when c c c is specified by a conditional noise predictor ϵ ^ θ ( ⋅ , ⋅ ∣ c ) \hat{\epsilon}_\theta(\cdot,\cdot\mid c) ϵ ^ θ ( ⋅ , ⋅ ∣ c ) but no reference set is given. The parameterization f t = g 0 ∘ x ^ 0 f_t = g_0 \circ\hat{x}_0 f t = g 0 ∘ x ^ 0 and the two proposal options of § 3.2 carry over unchanged. The non-trivial step is constructing P t − 1 \mathcal{P}_{t-1} P t − 1 in Step 3 of Algorithm 1 without samples from p 0 ( ⋅ ∣ c ) p_0(\cdot\mid c) p 0 ( ⋅ ∣ c ) . Our key observation is that the particle-density correction of § 3.1 extends directly to the conditional marginal once its score is available, supplying positives from the same particle trajectory. Detailed pseudocode is given as Algorithm 3 in Appendix § 17 .
Positives via importance reweighting. Applying the construction of w ∅ , t w_{\varnothing,t} w ∅ , t in § 3.1 to the conditional target gives an analogous weight that retargets the particles to p θ , t ( ⋅ ∣ c ) p_{\theta,t}(\cdot\mid c) p θ , t ( ⋅ ∣ c ) ,
w c , t ( x t ) ≔ p θ , t ( x t ∣ c ) γ ^ t ( x t ) . w_{c,t}(x_t) \coloneqq\frac{p_{\theta,t}(x_t \mid c)}{\hat{\gamma}_t(x_t)}. w c , t ( x t ) : = γ ^ t ( x t ) p θ , t ( x t ∣ c ) .
The same particles serve as positives and unlabeled data under different weights:
P t − 1 = { ( x ^ 0 ( x t − 1 j ) , w c , t − 1 j ) } j = 1 M , U t − 1 = { ( x ^ 0 ( x t − 1 j ) , w ∅ , t − 1 j ) } j = 1 M . \mathcal{P}_{t-1} = \left\{\left(\hat{x}_0(x_{t-1}^{j}),w_{c,t-1}^{j}\right)\right\}_{j=1}^{M}, \qquad\mathcal{U}_{t-1} = \left\{\left(\hat{x}_0(x_{t-1}^{j}),w_{\varnothing,t-1}^{j}\right)\right\}_{j=1}^{M}. P t − 1 = { ( x ^ 0 ( x t − 1 j ) , w c , t − 1 j ) } j = 1 M , U t − 1 = { ( x ^ 0 ( x t − 1 j ) , w ∅ , t − 1 j ) } j = 1 M .
Sharing the particle set across the two terms of L u P U \mathcal{L}_{\mathrm{uPU}} L uPU preserves unbiasedness in the particle limit (Section 4). Step 2 of Algorithm 1 then carries a recursion for w c , t w_{c,t} w c , t alongside the existing w ∅ , t w_{\varnothing,t} w ∅ , t update; both share the same closed-form recursion as in § 3.1 , with μ θ ( x t , t ) \mu_\theta(x_t,t) μ θ ( x t , t ) replaced by μ θ ( x t , t ∣ c ) \mu_\theta(x_t,t \mid c) μ θ ( x t , t ∣ c ) .
SMC proposal. Both options of § 3.2 extend directly: (i) the CG-style mean (10) driven by the f t f_t f t , or (ii) an existing score-based negative-guidance method, such as DNG [34 ] , plugged in as μ t p r o p \mu_t^{\mathrm{prop}} μ t prop , with our SMC layer correcting its density-level bias against p t a r g e t p_{\mathrm{target}} p target . When the proposal already evaluates the conditional score, the w c , t w_{c,t} w c , t recursion reuses that evaluation at no extra cost.
Theoretical Analysis
We summarize the convergence result for the reference-based instantiation of Algorithm 1 (§ 3.2 ) and extend the result to the score-based setting (§ 3.3 ). Formal statements and proofs are in Appendix § 18 .
For implementation efficiency, Algorithm 1 uses a single particle system to both train f t f_t f t and form the final SMC estimator. For analytical clarity, we instead train f t f_t f t on an independent auxiliary system { x t k } k = 1 M ′ \{x_t^k\}_{k=1}^{M'} { x t k } k = 1 M ′ driven by the same kernels, which removes the dependence between the classifier and the main SMC particles { ( x t j , w q , t j ) } j = 1 M \{(x_t^j,w_{q,t}^j)\}_{j=1}^{M} {( x t j , w q , t j ) } j = 1 M , whose weighted empirical measure we denote by ν ^ t M ∣ M ′ , N \hat{\nu}_t^{M|M',N} ν ^ t M ∣ M ′ , N . We establish asymptotic exactness in the resulting infinite-particle limit lim M ′ , N → ∞ lim M → ∞ \lim_{M',N\to\infty}\lim_{M\to\infty} lim M ′ , N → ∞ lim M → ∞ , in which the inner M → ∞ M \to\infty M → ∞ controls the main-system SMC error at frozen classifier and the outer M ′ , N → ∞ M',N \to\infty M ′ , N → ∞ drives the classifier estimation error to zero.
Assumptions. Let G t \mathcal{G}_t G t denote the function class over which f t f_t f t is fit. We require four conditions on G t \mathcal{G}_t G t and on the posterior p θ , t ( c ∣ x ) p_{\theta,t}(c \mid x) p θ , t ( c ∣ x ) . (i) Uniform convergence on empirical positive samples: sup g ∈ G t ∣ 1 N ∑ i = 1 N g ( X i + ) − E p θ , t ( ⋅ ∣ c ) [ g ] ∣ → 0 \sup_{g\in\mathcal{G}_t}\left|\frac{1}{N}\sum_{i=1}^{N}g(X_i^+) - \mathbb{E}_{p_{\theta,t}(\cdot\mid c)}[g]\right| \to0 sup g ∈ G t N 1 ∑ i = 1 N g ( X i + ) − E p θ , t ( ⋅ ∣ c ) [ g ] → 0 almost surely as N → ∞ N \to\infty N → ∞ , with X i + ∼ i . i . d . p θ , t ( ⋅ ∣ c ) X_i^+ \overset{\mathrm{i.i.d.}}{\sim} p_{\theta,t}(\cdot\mid c) X i + ∼ i.i.d. p θ , t ( ⋅ ∣ c ) . (ii) Realizability of the Bayes logit: log { p θ , t ( c ∣ x ) / ( 1 − p θ , t ( c ∣ x ) ) } ∈ G t \log\{p_{\theta,t}(c \mid x)/(1-p_{\theta,t}(c \mid x))\} \in\mathcal{G}_t log { p θ , t ( c ∣ x ) / ( 1 − p θ , t ( c ∣ x ))} ∈ G t . (iii) Two-sided non-degeneracy: δ ≤ p θ , t ( c ∣ x ) ≤ 1 − δ \delta\le p_{\theta,t}(c \mid x) \le1-\delta δ ≤ p θ , t ( c ∣ x ) ≤ 1 − δ for some δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . (iv) Total boundedness of G t \mathcal{G}_t G t in the supremum norm.
Reference-based setting. The N N N i.i.d. references { x c i } i = 1 N \{x_c^i\}_{i=1}^{N} { x c i } i = 1 N supply the positive term of the uPU risk (7), and the M ′ M' M ′ auxiliary particles supply the unlabeled term. We argue in three steps. Step 1, fix timestep t t t and assume that the unlabeled empirical average converges uniformly to E p θ , t \mathbb{E}_{p_{\theta,t}} E p θ , t over G t \mathcal{G}_t G t . Then uPU risk minimization [41 ] , combined with (i) and (ii), yields L 1 L^1 L 1 -convergence f t → p θ , t ( c ∣ ⋅ ) f_t \to p_{\theta,t}(c\mid\cdot) f t → p θ , t ( c ∣ ⋅ ) as M ′ , N → ∞ M',N\to\infty M ′ , N → ∞ . We will invoke this at t = 0 t=0 t = 0 . Step 2 , this convergence does hold: under (iii) and (iv), and with a mild proposal regularization (Appendix C.2.1) that keeps the importance weights bounded, the weighted empirical measure of the auxiliary particles { ( x t k , w ∅ , t k ) } k = 1 M ′ \{(x_t^k,w_{\emptyset,t}^k)\}_{k=1}^{M'} {( x t k , w ∅ , t k ) } k = 1 M ′ converges uniformly over G t \mathcal{G}_t G t to p θ , t p_{\theta,t} p θ , t by the SMC law of large numbers (LLN) in [11 ] . Step 3 , the tempering factors ( 1 − f t ) λ t (1-f_t)^{\lambda_t} ( 1 − f t ) λ t enter the recursion (6) as ratios between consecutive times, so the cumulative product telescopes and only the terminal f 0 f_0 f 0 enters γ 0 \gamma_0 γ 0 , similar to [31 ] . Combining these three steps yields Theorem 1.
Theorem 1 (Asymptotic exactness, informal version of Theorem 11 in Appendix C.3). Consider Algorithm 1 with the auxiliary M ′ M' M ′ system introduced above. For every bounded measurable φ : X 0 → R \varphi: \mathcal{X}_0 \to\mathbb{R} φ : X 0 → R ,
lim M ′ , N → ∞ lim M → ∞ ν ^ 0 M ∣ M ′ , N ( φ ) = p t a r g e t ( φ ) almost surely , \lim_{M',N\to\infty}\lim_{M\to\infty}\widehat{\nu}_0^{M\mid M',N}(\varphi)=p_{\mathrm{target}}(\varphi)\quad\text{almost surely}, M ′ , N → ∞ lim M → ∞ lim ν 0 M ∣ M ′ , N ( φ ) = p target ( φ ) almost surely , under (i)–(iv) for the reference-based setting.
Extension to score-based setting. Without external references, the positive term of the uPU risk (7) is supplied by the same M ′ M' M ′ auxiliary particles, re-weighted by w c , t w_{c,t} w c , t and w ∅ , t w_{\emptyset,t} w ∅ , t . The argument mirrors the reference-based one, with only Step 2 changed. By an analogous SMC LLN [11 ] , the weighted empirical measure of { ( x t k , w c , t k ) } k = 1 M ′ \{(x_t^k,w_{c,t}^k)\}_{k=1}^{M'} {( x t k , w c , t k ) } k = 1 M ′ converges uniformly over G t \mathcal{G}_t G t to p θ , t ( ⋅ ∣ c ) p_{\theta,t}(\cdot\mid c) p θ , t ( ⋅ ∣ c ) as M ′ → ∞ M'\to\infty M ′ → ∞ . Combined with the unlabeled-term convergence from Step 2 of the reference-based setting, this gives uniform convergence of both terms of the uPU risk and hence f t → p θ , t ( c ∣ ⋅ ) f_t\to p_{\theta,t}(c\mid\cdot) f t → p θ , t ( c ∣ ⋅ ) as M ′ → ∞ M'\to\infty M ′ → ∞ at each timestep t t t . Step 1 and Step 3 then carry over unchanged, yielding ν ^ 0 M ∣ M ′ ( φ ) → p t a r g e t ( φ ) \widehat{\nu}_0^{M\mid M'}(\varphi)\to p_{\mathrm{target}}(\varphi) ν 0 M ∣ M ′ ( φ ) → p target ( φ ) under (ii)–(iv), for every bounded measurable φ \varphi φ (Theorem 16 in Appendix C.4).
Experiments
This section summarizes our experimental results in three settings of increasing scale. Section 5.1 uses the score-based setting (Section 3.3) on a 3-dimensional Gaussian mixture model (GMM), where closed-form densities enable rigorous metric evaluation and direct visualization of the full distribution. Section 5.2 uses the reference-based setting (Section 3.2) on CIFAR-10 image generation with a pretrained score network, under different specifications of the avoidance condition c c c (a class or set of classes to avoid). Section 5.3 applies the score-based setting to text-to-image generation with Stable Diffusion. All three compare against the baselines from Section 2, with full experimental details deferred to Appendix D. To align the evaluation protocol with these baselines, we treat the final SMC output after intermediate resampling as particles with unit weight rather than as weighted particles.1
GMM with Score-Based Setting
Setup. The unconditional density is a 3-dimensional GMM of 12 modes, with the avoided condition c c c assigned to 3 modes and ¬ c \neg c ¬ c to the other 9. The layout of the GMM is randomly drawn. We define the ground-truth target by setting λ = 1 \lambda=1 λ = 1 in (1) , giving p t a r g e t = p ( ⋅ ∣ ¬ c ) p_{\mathrm{target}}=p(\cdot\mid\neg c) p target = p ( ⋅ ∣ ¬ c ) . All methods use a common T = 100 T=100 T = 100 DDPM discretization with M = 1024 M=1024 M = 1024 samples. The Oracle alone has access to the true score for the target ∇ log p t ( x t ∣ ¬ c ) \nabla\log p_t(x_t \mid\neg c) ∇ log p t ( x t ∣ ¬ c ) , serving as the achievable upper bound. We compare against NegCFG and DNG from § 2 , and our method uses a kernel-based PU classifier [41 ] . We report posterior leak E [ p ( c ∣ x 0 ) ] \mathbb{E}[p(c \mid x_0)] E [ p ( c ∣ x 0 )] (average posterior of c c c at generated samples, lower is stronger avoidance) in closed form, and the 2-Wasserstein distance (W 2 W_2 W 2 , calculated by [19 ] ) to 3000 i.i.d. draws from p ( ⋅ ∣ ¬ c ) p(\cdot\mid\neg c) p ( ⋅ ∣ ¬ c ) . Results are averaged over 50 trials with the GMM layout and DDPM sampling seed both randomized.
Results. Figure 1 shows the generated samples from each method on one trial. NegCFG collapses onto a few ¬ c \neg c ¬ c -modes, and DNG retains samples on the avoided c c c -modes, both consistent with the limitations of local repulsion away from c c c discussed in § 2 . In contrast, our method preserves all nine ¬ c \neg c ¬ c -modes and matches the Oracle, leveraging global information across particles, consistent with Theorem 1 . Table 1 reports the same trend quantitatively over 50 trials. Ours matches the Oracle in posterior leak (both 0.012) and stays within one Oracle standard deviation in W 2 W_2 W 2 (1.8± \pm ± 0.6 vs. 1.5± \pm ± 0.3), while NegCFG and DNG exhibit a trade-off between leak and W 2 W_2 W 2 . Full hyperparameter sweeps are in Appendix § 19 .§ 1 .
Figure 1. Generated samples on one trial. Each point is a sample in its first two coordinates, colored by the true posterior p ( c ∣ x ) ∈ [ 0 , 1 ] p(c \mid x) \in[0,1] p ( c ∣ x ) ∈ [ 0 , 1 ] (red: p ( c ∣ x ) = 1 p(c \mid x)=1 p ( c ∣ x ) = 1 , blue: 0). Oracle and Ours avoid the condition c c c and cover all remaining modes. NegCFG suppresses leak by collapsing onto a few remaining modes, and DNG keeps coverage but retains residual samples on the avoided modes.
Table 1. Comparison with baselines across repulsion strengths η \eta η , mean± \pm ± std over 50 trials. Uncond corresponds to NegCFG/DNG at η = 0 \eta=0 η = 0 , which reduces to unconditional DDPM from p ( x ) p(x) p ( x ) . Posterior leak E [ p ( c ∣ x 0 ) ] \mathbb{E}[p(c\mid x_0)] E [ p ( c ∣ x 0 )] and W 2 W_2 W 2 measure 2-Wasserstein distance to ground-truth. Baselines show a trade-off between leak and W 2 W_2 W 2 , while ours matches the Oracle in leak without inflating W 2 W_2 W 2 .
CIFAR-10 with Reference-Based Setting
Setup. We use a pretrained UNet for the unconditional CIFAR-10 diffusion model from [40 ] , and run DDPM sampling with a batch size of M = 128 M=128 M = 128 over T = 250 T=250 T = 250 timesteps. The avoided condition c c c is one or more CIFAR-10 classes. We evaluate plane (single class) and the four vehicle classes (plane, car, ship, truck). For each class in c c c , we draw N = 200 N=200 N = 200 references from the training set. The PU discriminator f t f_t f t is a linear probe on pooled UNet bottleneck features. Because N N N and M M M are both small here, we replace the usual PU loss of Section 3 with binary cross-entropy (BCE), treating the references as positives and the SMC particles as soft negatives. After resampling, with so few SMC particles in pixel space, those satisfying c c c are quickly depleted, so the particle set increasingly behaves as a true negative set as t t t decreases, making BCE an effective proxy in this regime.1
Evaluation metrics. We aggregate 80 seeds × \times × 128 samples per configuration. Fréchet Inception Distance (FID, [24 ] ) is computed against the CIFAR-10 training set from non-avoided classes, using the implementation of [44 ] . Each generated image is then classified by an independently trained ResNet-18 [23 ] with ∼ 95 % \sim95\% ∼ 95% test accuracy into the class histogram p ^ \hat{p} p ^ , from which we report the target-class rate on avoided classes (lower is stronger avoidance) and the KL divergence of p ^ \hat{p} p ^ from a uniform over non-avoided classes (lower is more uniform). As an auxiliary check, we also report average pairwise Learned Perceptual Image Patch Similarity (LPIPS; [58 ] ) via AlexNet [35 ] on 256 random samples (higher is more diverse).
Results. We first run the Safe Denoiser [29 ] sweeping its repulsion strength η \eta η . We then run our method (§ 3.2 ), which uses the Safe Denoiser as its proposal μ p r o p \mu^{\mathrm{prop}} μ prop , at three fixed values η ∈ { 0.2 , 0.3 , 0.5 } \eta\in\{0.2, 0.3, 0.5\} η ∈ { 0.2 , 0.3 , 0.5 } while sweeping the terminal tempering strength λ \lambda λ , so that both methods are compared on a shared η \eta η axis. Figure 2 plots target-class rate against each quality metric for plane and four-class vehicles avoidance. At each fixed η \eta η , our λ \lambda λ -sweep Pareto-dominates the Safe Denoiser at the same η \eta η on FID and KL across the full operating range, and is no worse on LPIPS over the bulk of it. A weak negative guidance leaves residual mass on the avoided classes that the classifier and resampling then correct, raising the avoidance rate without the quality degradation incurred by stronger negative guidance. The added machinery beyond the Safe Denoiser is one linear probe on UNet features and ESS-based adaptive resampling on the classifier-driven weights. Per-class results for cat, frog, and ship and regularization ablations are in Appendix § 19 .§ 2 .
Figure 2. Avoidance rate vs. generation quality on CIFAR-10. Top: plane. Bottom: four-class vehicles. Columns plot target-class rate against FID, KL, and average pairwise LPIPS (left to right); lower is better except for LPIPS. The Safe Denoiser sweeps η \eta η . Ours uses the Safe Denoiser as its proposal kernel, fixes η ∈ { 0.2 , 0.3 , 0.5 } \eta\in\{0.2, 0.3, 0.5\} η ∈ { 0.2 , 0.3 , 0.5 } , and sweeps λ \lambda λ , tracing the Pareto frontier in all panels.
Stable Diffusion with Score-Based Setting
Setup. We use Stable Diffusion v1.4 [42 ] , a pretrained text-to-image latent diffusion model, with classifier-free guidance at scale 7.5 as the sampler of the base density ρ 0 \rho_0 ρ 0 , running a batch size of M = 128 M=128 M = 128 over T = 50 T=50 T = 50 timesteps. The prompt "a painting of a cafe terrace at night under a starry sky" often yields Van Gogh's style, which we specify as the avoided condition c c c to suppress. Appending "in the style of Van Gogh" to the prompt supplies the conditional score, which generates images such as Figure 3 (a), and we use it to run the score-based setting of § 3.3 . The PU classifier f t f_t f t is a kernel logistic model on x ^ 0 ( x t ) \hat{x}_0(x_t) x ^ 0 ( x t ) . Its positives and unlabeled data are x ^ 0 \hat{x}_0 x ^ 0 of the same particles under the style-appended and original prompts, respectively, so they share the prompted content and differ mainly in the style. This contrast keeps the fit stable, so we use the uPU loss (7) as written, unlike the BCE in § 5.2 .
Figure 3. Results of Van Gogh style avoidance on Stable Diffusion v1.4. Left: generated examples of (a) the avoided style and (b) ours at M = 128 M=128 M = 128 , λ = 16 \lambda=16 λ = 16 , each showing 16 randomly selected images. These are the top two rows of the random 8 × 8 8 \times8 8 × 8 grids in Figure 6 of Appendix § 19 .§ 3 , which also shows the other methods. Right: avoided-style rate against FID; lower left is better. The baselines sweep their strengths, and ours uses SLD as its proposal kernel, reaching the oracle-floor rate with the lowest FID while keeping the prompted scene. Full results are in Appendix § 19 .§ 3 .
Evaluation metrics. We aggregate 2048 images per configuration, generated with distinct seeds. An independently trained detector, a logistic head on a style embedding [47 ] , assigns each image a probability of the avoided style, and we report its mean as the avoided-style rate (lower is stronger avoidance). As no samples of the target are available, we approximate them by filtering: from 8192 images of the prompt without avoidance, the 2048 least like the style under the detector form the reference set, against which FID and KID [6 ] are computed (lower is better). Applying the same filter to an independent pool generated with disjoint seeds gives the oracle floor , a reference point for an ideal avoidance rather than a lower bound.
Results. We first run SLD [43 ] , a negative-guidance method specialized to Stable Diffusion, and DNG, each sweeping its strength. We then run our method (§ 3.3 ), which uses SLD as its proposal μ t p r o p \mu_t^{\mathrm{prop}} μ t prop , while sweeping λ \lambda λ . Figure 3 (right) plots the avoided-style rate against FID. DNG traces an avoidance–quality trade-off: at its best strengths it is comparable to SLD, and stronger guidance only degrades FID. NegCFG lowers the rate only at FIDs above 80. Our method at M = 128 M=128 M = 128 , λ = 16 \lambda=16 λ = 16 reaches a rate of 0.235, at the oracle floor of 0.238, with the lowest FID of 28.10, improving both avoidance and quality beyond SLD and DNG. Halving the particle count to M = 64 M=64 M = 64 gives a rate of 0.276 and an FID of 33.46, so additional particles improve both. Qualitatively, Figure 3 (left) shows that our samples keep the prompted scene while suppressing the avoided style and spreading over a variety of painting styles. The Stable Diffusion results are thus consistent with the CIFAR-10 results in § 5.2 . The full setup and results are in Appendix § 19 .§ 3 .
Limitations and Future Work
Scope of the experiments. Our experiments cover several settings up to image-generation scale (Section 5). Extending the framework to the broader range of applications that motivate negative guidance (§ 1 ) is left open. Our setting also differs from SMC-based diffusion alignment [52 , 45 , 31 ] , which sharpens particles toward a desired condition. PU Steering instead targets everything other than the avoided condition c c c , which is harder to evaluate because no single reference distribution is available beyond a labeled validation set. A parallel line of recent work develops SMC and other samplers that route interacting particles to a target along the diffusion path [53 , 50 ] , training-free and with convergence guarantees on multi-modal targets. These samplers are demonstrated on low-to moderate-dimensional settings (d < 100 d < 100 d < 100 ), and scaling them to image-scale dimensions is left open. PU Steering reaches CIFAR-10 and Stable Diffusion by combining a pretrained UNet with an existing negative-guidance kernel [29 , 43 ] as the SMC proposal, and the same recipe applies to any pretrained diffusion model with such a kernel. This connects principled probabilistic samplers to alignment of modern generative models. We discuss future directions for improving and specializing our framework below, which would also let us examine the effect of scaling the particle count.
Variance of the importance weights. A known challenge in SMC is weight degeneracy, in which the variance of the importance weights grows and the ESS decreases [11 ] . This can lead to frequent resampling, and may eventually result in a few common ancestors dominating the particle set. For a fixed target path, [31 ] derives a proposal kernel that minimizes the one-step weight variance. In our case, the target path itself depends on the online classifier f t f_t f t , and inaccuracies in f t f_t f t affect the weight variance. Extending such an analysis is left for future work. Task-specific regularization and other practical stabilization techniques are natural directions in this line.
Stabilizing the online PU classifier. Our method trains the classifier f t f_t f t in an online manner. Recent PU learning literature offers stabilization techniques for limited positive samples, small-batch variability, and high-capacity models such as neural networks that are prone to overfitting [33 , 22 ] . Online and importance-weighted PU learning further address streaming data and weighted unlabeled samples [57 , 36 ] . Incorporating these techniques may further stabilize our method.
Conclusion
In this paper, we addressed negative guidance of diffusion models, the task of steering generation away from an undesired condition. We recast the problem as sampling from an explicit avoidance density and realized it via tempered SMC driven by an online PU classifier, where particles exploit global information across samples rather than local repulsion. Our asymptotic exactness analysis implies that additional computation reduces distributional bias and improves generation quality. On the practical side, we showed that augmenting existing guidance methods with a lightweight classifier and resampling improves the avoidance–quality trade-off.
Acknowledgments and Disclosure of Funding
MS was supported by JST ASPIRE Grant Number JPMJAP25B1.
NeurIPS Paper Checklist
Claims
Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
Answer: [Yes]
Justification: Our claims match the theoretical and experimental results.
Guidelines:
The answer [N/A] means that the abstract and introduction do not include the claims made in the paper.
The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers.
The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings.
It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: Limitations are discussed in Section 6
Guidelines:
The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper.
The authors are encouraged to create a separate “Limitations” section in their paper.
The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be.
The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated.
The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon.
The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size.
If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness.
While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
Theory assumptions and proofs
Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
Answer: [Yes] Justification: We provide full assumptions and complete proofs in the Appendix C.
Guidelines:
The answer [N/A] means that the paper does not include theoretical results.
All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced.
All assumptions should be clearly stated or referenced in the statement of any theorems.
The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition.
Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material.
Theorems and Lemmas that the proof relies upon should be properly referenced.
Experimental result reproducibility
Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
Answer: [Yes]
Justification: All settings of the experiments are documented in Section 5 and Appendix D.
Guidelines:
The answer [N/A] means that the paper does not include experiments.
If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not.
If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable.
Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general. releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed.
While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
Open access to data and code
Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? Answer: [Yes]
Justification: Code and per-experiment documentation are provided in the supplementary material. A cleaned-up version is available at https://github.com/htkg/pu-steering.
Guidelines:
The answer [N/A] means that paper does not include experiments requiring code.
Please see the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark).
The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc.
The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why.
At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).
Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
Experimental setting/details
Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?
Answer: [Yes]
Justification: The details of the implementation are presented in Section 5 and Appendix D.
Guidelines:
The answer [N/A] means that the paper does not include experiments.
The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them.
The full details can be provided either with the code, in appendix, or as supplemental material.
Experiment statistical significance
Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
Answer: [Yes]
Justification: For experiments on CPUs in Section 5.1, results are reported as mean ± standard deviation (1-sigma) over a sufficient number of trials. For experiments on GPUs in Section 5.2, only the mean over a large sample size is reported, and error bars are not included mainly due to the lack of computational resources.
Guidelines:
The answer [N/A] means that the paper does not include experiments.
The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper.
The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).
The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.)
The assumptions made should be given (e.g., Normally distributed errors).
It should be clear whether the error bar is the standard deviation or the standard error of the mean.
It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified.
For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates).
If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
Experiments compute resources
Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
Answer: [Yes]
Justification: We explain the compute resources we used for experiments in Appendix D.
Guidelines:
The answer [N/A] means that the paper does not include experiments.
The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage.
The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute.
The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper).
Code of ethics
Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?
Answer: [Yes]
Justification: The research conforms with the NeurIPS Code of Ethics.
Guidelines:
The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics.
If the authors answer [No], they should explain the special circumstances that require a deviation from the Code of Ethics.
The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
Broader impacts
Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
Answer: [Yes]
Justification: Broader impacts are discussed in Appendix E.
Guidelines:
The answer [N/A] means that there is no societal impact of the work performed.
If the authors answer [N/A] or [No], they should explain why their work has no societal impact or why the paper does not address societal impact.
Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.
The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster.
The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology.
If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
Safeguards
Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?
Answer: [N/A]
Justification: We release no new pretrained model or dataset.
Guidelines:
The answer [N/A] means that the paper poses no such risks.
Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters.
Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images.
We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
Licenses for existing assets
Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
Answer: [Yes]
Justification: We cite the original references of the assets used in the paper, and document the assets actually used in Appendix D and the files of the supplementary material.
Guidelines:
The answer [N/A] means that the paper does not use existing assets.
The authors should cite the original paper that produced the code package or dataset.
The authors should state which version of the asset is used and, if possible, include a URL.
The name of the license (e.g., CC-BY 4.0) should be included for each asset.
For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided.
If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.
For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.
New assets
Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
Answer: [N/A]
Justification: We do not release new pretrained models or datasets.
Guidelines:
The answer [N/A] means that the paper does not release new assets.
Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc.
The paper should discuss whether and how consent was obtained from people whose asset is used.
At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
Crowdsourcing and research with human subjects
Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
Answer: [N/A]
Justification: The paper does not involve crowdsourcing or research with human subjects.
Guidelines:
The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper.
According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
Institutional review board (IRB) approvals or equivalent for research with human subjects
Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
Answer: [N/A]
Justification: The paper does not involve crowdsourcing or research with human subjects.
Guidelines:
The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper.
We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution.
For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
Declaration of LLM usage
Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.
Answer: [N/A]
Justification: LLMs are not a component of the core methodology. We use LLMs only for writing polish and coding assistance.
Guidelines:
The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components.
Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.
Extended Preliminaries
This appendix provides standard background and derivations on three prerequisite topics—diffusion models [48 , 26 ] , Positive–Unlabeled (PU) learning [16 , 41 ] , and Diffusion Alignment as Sampling (DAS; [31 ] )—that the main text (§ 2 and § 3 ) treats briefly.
Background on Diffusion Models
Diffusion models [26 , 48 ] are a class of generative models that learn to generate data by reversing a gradual noising process applied to training samples.
(i) Forward process. Let { α t } t = 1 T \{\alpha_t\}_{t=1}^{T} { α t } t = 1 T be a noise schedule with α t = 1 − β t ∈ ( 0 , 1 ) \alpha_t=1-\beta_t\in(0,1) α t = 1 − β t ∈ ( 0 , 1 ) and cumulative product α ˉ t = ∏ s = 1 t α s \bar{\alpha}_t=\prod_{s=1}^{t}\alpha_s α ˉ t = ∏ s = 1 t α s . The forward Markov chain is
q ( x t ∣ x t − 1 ) = N ( x t ; α t x t − 1 , β t I ) , t = 1 , … , T . q(x_t\mid x_{t-1})=\mathcal{N}(x_t;\sqrt{\alpha_t}x_{t-1},\beta_tI),\qquad t=1,\ldots,T. q ( x t ∣ x t − 1 ) = N ( x t ; α t x t − 1 , β t I ) , t = 1 , … , T .
which by Gaussian convolution admits the closed-form conditional marginal
q t ( x t ∣ x 0 ) = N ( x t ; α ˉ t x 0 , ( 1 − α ˉ t ) I ) . q_t(x_t\mid x_0)=\mathcal{N}(x_t;\sqrt{\bar{\alpha}_t}x_0,(1-\bar{\alpha}_t)I). q t ( x t ∣ x 0 ) = N ( x t ; α ˉ t x 0 , ( 1 − α ˉ t ) I ) .
The schedule is chosen so that α ˉ T ≈ 0 \bar{\alpha}_T\approx0 α ˉ T ≈ 0 , ensuring p T ( x T ) ≈ N ( x T ; 0 , I ) p_T(x_T)\approx\mathcal{N}(x_T;0,I) p T ( x T ) ≈ N ( x T ; 0 , I ) .
(ii) Denoising score matching and the noise-predictor identity. The score of the time-t t t marginal is ∇ x t log p t ( x t ) \nabla_{x_t}\log p_t(x_t) ∇ x t log p t ( x t ) . Diffusion models are trained with the denoising score matching objective [48 , 26 ]
min θ E x 0 ∼ p , ϵ ∼ N ( 0 , I ) , t ∼ Unif { 1 , … , T } [ ∥ ϵ ^ θ ( x t , t ) − ϵ ∥ 2 ] , x t = α ˉ t x 0 + 1 − α ˉ t ϵ . \min_{\theta}\ \mathbb{E}_{x_0\sim p,\ \epsilon\sim\mathcal{N}(0,I),\ t\sim\operatorname{Unif}\{1,\ldots,T\}}\left[\left\|\hat{\epsilon}_{\theta}(x_t,t)-\epsilon\right\|^2\right],\qquad x_t=\sqrt{\bar{\alpha}_t}x_0+\sqrt{1-\bar{\alpha}_t}\epsilon. θ min E x 0 ∼ p , ϵ ∼ N ( 0 , I ) , t ∼ Unif { 1 , … , T } [ ∥ ϵ ^ θ ( x t , t ) − ϵ ∥ 2 ] , x t = α ˉ t x 0 + 1 − α ˉ t ϵ .
The optimum ϵ ^ θ ∗ \hat{\epsilon}_{\theta}^{*} ϵ ^ θ ∗ predicts the noise ϵ \epsilon ϵ that was added to x 0 x_0 x 0 to produce x t x_t x t , and differentiating the log of the Gaussian density q t ( x t ∣ x 0 ) q_t(x_t\mid x_0) q t ( x t ∣ x 0 ) gives ∇ x t log q t ( x t ∣ x 0 ) = − ϵ / 1 − α ˉ t \nabla_{x_t}\log q_t(x_t\mid x_0)=-\epsilon/\sqrt{1-\bar{\alpha}_t} ∇ x t log q t ( x t ∣ x 0 ) = − ϵ / 1 − α ˉ t . Taking the conditional expectation over x 0 ∣ x t x_0\mid x_t x 0 ∣ x t and using ∇ x t log p t ( x t ) = E x 0 ∣ x t [ ∇ x t log q t ( x t ∣ x 0 ) ] \nabla_{x_t}\log p_t(x_t)=\mathbb{E}_{x_0\mid x_t}[\nabla_{x_t}\log q_t(x_t\mid x_0)] ∇ x t log p t ( x t ) = E x 0 ∣ x t [ ∇ x t log q t ( x t ∣ x 0 )] yields the identity
ϵ ^ θ ∗ ( x t , t ) = − 1 − α ˉ t ∇ x t log p t ( x t ) . \hat{\epsilon}_{\theta}^{*}(x_t,t)=-\sqrt{1-\bar{\alpha}_t}\nabla_{x_t}\log p_t(x_t). ϵ ^ θ ∗ ( x t , t ) = − 1 − α ˉ t ∇ x t log p t ( x t ) .
(iii) Tweedie’s formula. For Y = α ˉ t X + 1 − α ˉ t Z Y=\sqrt{\bar{\alpha}_t}X+\sqrt{1-\bar{\alpha}_t}Z Y = α ˉ t X + 1 − α ˉ t Z with Z ∼ N ( 0 , I ) Z\sim\mathcal{N}(0,I) Z ∼ N ( 0 , I ) , Tweedie’s formula [17 ] gives the posterior mean
E [ X ∣ Y ] = Y + ( 1 − α ˉ t ) ∇ Y log p Y ( Y ) α ˉ t . \mathbb{E}[X\mid Y]=\frac{Y+(1-\bar{\alpha}_t)\nabla_Y\log p_Y(Y)}{\sqrt{\bar{\alpha}_t}}. E [ X ∣ Y ] = α ˉ t Y + ( 1 − α ˉ t ) ∇ Y log p Y ( Y ) .
Substituting Y = x t Y=x_t Y = x t , X = x 0 X=x_0 X = x 0 and the score identity from (ii) yields
x ^ 0 ( x t ) = x t − 1 − α ˉ t ϵ ^ θ ( x t , t ) α ˉ t ≈ E [ x 0 ∣ x t ] . \hat{x}_0(x_t)=\frac{x_t-\sqrt{1-\bar{\alpha}_t}\hat{\epsilon}_{\theta}(x_t,t)}{\sqrt{\bar{\alpha}_t}}\approx\mathbb{E}[x_0\mid x_t]. x ^ 0 ( x t ) = α ˉ t x t − 1 − α ˉ t ϵ ^ θ ( x t , t ) ≈ E [ x 0 ∣ x t ] .
Many downstream tasks require evaluating a function g 0 g_0 g 0 that is defined on clean samples x 0 x_0 x 0 , but one only has access to noisy samples x t x_t x t during the reverse process. Using x ^ 0 ( x t ) \hat{x}_0(x_t) x ^ 0 ( x t ) as a proxy for x 0 x_0 x 0 , one can lift g 0 g_0 g 0 to noisy-sample space by defining f t ( x t ) : = g 0 ( x ^ 0 ( x t ) ) f_t(x_t):=g_0(\hat{x}_0(x_t)) f t ( x t ) := g 0 ( x ^ 0 ( x t )) . This lifting technique is used in, e.g., Diffusion Posterior Sampling [12 ] and the Twisted Diffusion Sampler [52 ] .
(iv) Reverse process and DDPM parameterization. By Bayes’ rule the ground-truth reverse transition conditioned on the clean sample is Gaussian,
q ( x t − 1 ∣ x t , x 0 ) = N ( x t − 1 ; μ ~ t ( x t , x 0 ) , σ ~ t 2 I ) , σ ~ t 2 = 1 − α ˉ t − 1 1 − α ˉ t β t . q(x_{t-1}\mid x_t,x_0)=\mathcal{N}(x_{t-1};\tilde{\mu}_t(x_t,x_0),\tilde{\sigma}_t^2I),\qquad\tilde{\sigma}_t^2=\frac{1-\bar{\alpha}_{t-1}}{1-\bar{\alpha}_t}\beta_t. q ( x t − 1 ∣ x t , x 0 ) = N ( x t − 1 ; μ ~ t ( x t , x 0 ) , σ ~ t 2 I ) , σ ~ t 2 = 1 − α ˉ t 1 − α ˉ t − 1 β t .
The DDPM parameterization [26 ] approximates this by plugging in the Tweedie estimate for x 0 x_0 x 0 , yielding the learned reverse kernel
p θ ( x t − 1 ∣ x t ) = N ( x t − 1 ; μ θ ( x t , t ) , σ t 2 I ) , p_{\theta}(x_{t-1}\mid x_t)=\mathcal{N}(x_{t-1};\mu_{\theta}(x_t,t),\sigma_t^2I), p θ ( x t − 1 ∣ x t ) = N ( x t − 1 ; μ θ ( x t , t ) , σ t 2 I ) ,
where
μ θ ( x t , t ) = 1 α t ( x t − β t 1 − α ˉ t ϵ ^ θ ( x t , t ) ) , σ t 2 = σ ~ t 2 . \mu_{\theta}(x_t,t)=\frac{1}{\sqrt{\alpha_t}}\left(x_t-\frac{\beta_t}{\sqrt{1-\bar{\alpha}_t}}\hat{\epsilon}_{\theta}(x_t,t)\right),\qquad\sigma_t^2=\tilde{\sigma}_t^2. μ θ ( x t , t ) = α t 1 ( x t − 1 − α ˉ t β t ϵ ^ θ ( x t , t ) ) , σ t 2 = σ ~ t 2 .
Unconditional generation (“ancestral sampling” [48 ] ) then initializes x T ∼ N ( 0 , I ) x_T\sim\mathcal{N}(0,I) x T ∼ N ( 0 , I ) and iteratively draws x t − 1 ∼ p θ ( ⋅ ∣ x t ) x_{t-1}\sim p_{\theta}(\cdot\mid x_t) x t − 1 ∼ p θ ( ⋅ ∣ x t ) for t = T , T − 1 , … , 1 t=T,T-1,\ldots,1 t = T , T − 1 , … , 1 .
PU Learning
PU binary classification considers a setting where positive samples are drawn from p ( x ∣ c ) p(x \mid c) p ( x ∣ c ) and unlabeled samples from the marginal p ( x ) p(x) p ( x ) , which mixes c c c and ¬ c \neg c ¬ c in proportion π = p ( c ) \pi= p(c) π = p ( c ) , but no labeled ¬ c \neg c ¬ c samples are available. The goal is to train a binary classifier with label y = + 1 y = +1 y = + 1 for class c c c and y = − 1 y = -1 y = − 1 for ¬ c \neg c ¬ c .
We now derive the unbiased PU (uPU) risk . Given the data decomposition p ( x ) = π p ( x ∣ c ) + ( 1 − π ) p ( x ∣ ¬ c ) p(x) = \pi p(x \mid c) + (1 - \pi) p(x \mid\neg c) p ( x ) = π p ( x ∣ c ) + ( 1 − π ) p ( x ∣ ¬ c ) with class prior π ∈ ( 0 , 1 ) \pi\in(0, 1) π ∈ ( 0 , 1 ) and a per-sample loss ℓ ( ⋅ , y ) \ell(\cdot, y) ℓ ( ⋅ , y ) , the standard fully supervised (Positive–Negative, PN) risk is
L P N ( f ) = π E p ( x ∣ c ) [ ℓ ( f ( x ) , + 1 ) ] + ( 1 − π ) E p ( x ∣ ¬ c ) [ ℓ ( f ( x ) , − 1 ) ] . L_{\mathrm{PN}}(f) = \pi\mathbb{E}_{p(x \mid c)}[\ell(f(x), +1)] + (1 - \pi) \mathbb{E}_{p(x \mid\neg c)}[\ell(f(x), -1)]. L PN ( f ) = π E p ( x ∣ c ) [ ℓ ( f ( x ) , + 1 )] + ( 1 − π ) E p ( x ∣ ¬ c ) [ ℓ ( f ( x ) , − 1 )] .
Rearranging the data decomposition p ( x ) = π p ( x ∣ c ) + ( 1 − π ) p ( x ∣ ¬ c ) p(x) = \pi p(x \mid c) + (1 - \pi) p(x \mid\neg c) p ( x ) = π p ( x ∣ c ) + ( 1 − π ) p ( x ∣ ¬ c ) expresses the unobservable negative-class term as ( 1 − π ) p ( x ∣ ¬ c ) = p ( x ) − π p ( x ∣ c ) (1 - \pi) p(x \mid\neg c) = p(x) - \pi p(x \mid c) ( 1 − π ) p ( x ∣ ¬ c ) = p ( x ) − π p ( x ∣ c ) , replacing it with the marginal p ( x ) p(x) p ( x ) and the positive class p ( x ∣ c ) p(x \mid c) p ( x ∣ c ) . [16 , 41 ] apply this substitution at the level of expectations to obtain the exact identity
( 1 − π ) E p ( x ∣ ¬ c ) [ ℓ ( f ( x ) , − 1 ) ] = E p ( x ) [ ℓ ( f ( x ) , − 1 ) ] − π E p ( x ∣ c ) [ ℓ ( f ( x ) , − 1 ) ] . (1 - \pi) \mathbb{E}_{p(x \mid\neg c)}[\ell(f(x), -1)] = \mathbb{E}_{p(x)}[\ell(f(x), -1)] - \pi\mathbb{E}_{p(x \mid c)}[\ell(f(x), -1)]. ( 1 − π ) E p ( x ∣ ¬ c ) [ ℓ ( f ( x ) , − 1 )] = E p ( x ) [ ℓ ( f ( x ) , − 1 )] − π E p ( x ∣ c ) [ ℓ ( f ( x ) , − 1 )] .
Substituting yields the unbiased PU (uPU) risk (7),
L u P U ( f ) = π E p ( x ∣ c ) [ ℓ ( f ( x ) , + 1 ) ] + E p ( x ) [ ℓ ( f ( x ) , − 1 ) ] − π E p ( x ∣ c ) [ ℓ ( f ( x ) , − 1 ) ] , (11) L_{\mathrm{uPU}}(f) = \pi\mathbb{E}_{p(x \mid c)}[\ell(f(x), +1)] + \mathbb{E}_{p(x)}[\ell(f(x), -1)] - \pi\mathbb{E}_{p(x \mid c)}[\ell(f(x), -1)], \tag*{(11)} L uPU ( f ) = π E p ( x ∣ c ) [ ℓ ( f ( x ) , + 1 )] + E p ( x ) [ ℓ ( f ( x ) , − 1 )] − π E p ( x ∣ c ) [ ℓ ( f ( x ) , − 1 )] , (11)
which can be estimated from P P P - and U U U -samples alone. When ℓ \ell ℓ is a proper loss (e.g. logistic) and the hypothesis class is sufficiently expressive, L u P U L_{\mathrm{uPU}} L uPU shares its population minimizer with L P N L_{\mathrm{PN}} L PN ; the minimizer f ∗ f^* f ∗ is calibrated to p ( c ∣ x ) p(c \mid x) p ( c ∣ x ) and therefore serves as a drop-in replacement for a supervised classifier.
Diffusion Alignment as Sampling (DAS)
A reward R : X 0 → R R : \mathcal{X}_0 \to\mathbb{R} R : X 0 → R assigns a scalar score to each clean sample x 0 x_0 x 0 according to how well it satisfies a desired property. DAS [31 ] draws samples from a reward-tilted target [31 ] , Eq. (3) p D A S ( x 0 ) ∝ p θ , 0 ( x 0 ) exp ( λ R ( x 0 ) ) p_{\mathrm{DAS}}(x_0) \propto p_{\theta,0}(x_0) \exp(\lambda R(x_0)) p DAS ( x 0 ) ∝ p θ , 0 ( x 0 ) exp ( λ R ( x 0 )) for guidance strength λ > 0 \lambda> 0 λ > 0 . Because exact reward-conditioned marginals along the reverse process are intractable, DAS defines tractable intermediate targets [31 ] , Eq. (11)
γ t ( x t ) ∝ p θ , t ( x t ) exp ( λ t R ( x ^ 0 ( x t ) ) ) , 0 = λ T ≤ ⋯ ≤ λ 0 = λ , \gamma_t(x_t) \propto p_{\theta,t}(x_t) \exp(\lambda_t R(\hat{x}_0(x_t))), \qquad0 = \lambda_T \le\cdots\le\lambda_0 = \lambda, γ t ( x t ) ∝ p θ , t ( x t ) exp ( λ t R ( x ^ 0 ( x t ))) , 0 = λ T ≤ ⋯ ≤ λ 0 = λ ,
which lift the data-space reward to noisy-sample space via the Tweedie estimate x ^ 0 ( x t ) \hat{x}_0(x_t) x ^ 0 ( x t ) . Sampling from this path uses SMC with a weighted particle system { ( x t i , w t i ) } i = 1 M \{(x_t^i, w_t^i)\}_{i=1}^M {( x t i , w t i ) } i = 1 M , initialized with w T i = 1 w_T^i = 1 w T i = 1 (since λ T = 0 \lambda_T = 0 λ T = 0 makes γ T ∝ p θ , T \gamma_T \propto p_{\theta,T} γ T ∝ p θ , T , so particles drawn from N ( 0 , I ) = p θ , T \mathcal{N}(0, I) = p_{\theta,T} N ( 0 , I ) = p θ , T already follow γ T \gamma_T γ T exactly).
Remark on notation. [31 ] parameterize the guidance strength as 1 / α 1/\alpha 1/ α with a schedule λ t ∈ [ 0 , 1 ] \lambda_t \in[0, 1] λ t ∈ [ 0 , 1 ] ; we use the equivalent form λ t ∈ [ 0 , λ ] \lambda_t \in[0, \lambda] λ t ∈ [ 0 , λ ] with λ : = 1 / α \lambda:= 1/\alpha λ := 1/ α , matching the main text. (Here α \alpha α is the DAS hyperparameter, distinct from the diffusion noise schedule α t \alpha_t α t of Appendix A.1.)
Proposal kernel. The locally optimal proposal m t − 1 ∗ m^*_{t-1} m t − 1 ∗ is the kernel that minimizes the conditional variance Var ( w t − 1 ∣ x t ) \operatorname{Var}(w_{t-1} \mid x_t) Var ( w t − 1 ∣ x t ) of the importance weight [31 Proposition 1] . Because sampling from m t − 1 ∗ m^*_{t-1} m t − 1 ∗ exactly is non-trivial, DAS approximates it [31 ] , Eq. (13) with a Gaussian,
m t − 1 ( x t − 1 ∣ x t ) : = N ( x t − 1 ; μ θ ( x t , t ) + σ t 2 λ t − 1 ∇ x t R ( x ^ 0 ( x t ) ) , σ t 2 I ) , m_{t-1}(x_{t-1} \mid x_t) := \mathcal{N}\left(x_{t-1}; \mu_\theta(x_t,t) + \sigma_t^2 \lambda_{t-1} \nabla_{x_t} R(\hat{x}_0(x_t)), \sigma_t^2 I\right), m t − 1 ( x t − 1 ∣ x t ) := N ( x t − 1 ; μ θ ( x t , t ) + σ t 2 λ t − 1 ∇ x t R ( x ^ 0 ( x t )) , σ t 2 I ) ,
which shifts the DDPM mean by the gradient of the lifted reward.
Weight update derivation. The general SMC importance weight is
w t − 1 ( x t − 1 ) ∝ w t ( x t ) γ t − 1 ( x t − 1 ) L t ( x t ∣ x t − 1 ) γ t ( x t ) m t − 1 ( x t − 1 ∣ x t ) , w_{t-1}(x_{t-1}) \propto w_t(x_t) \frac{\gamma_{t-1}(x_{t-1}) L_t(x_t \mid x_{t-1})}{\gamma_t(x_t) m_{t-1}(x_{t-1} \mid x_t)}, w t − 1 ( x t − 1 ) ∝ w t ( x t ) γ t ( x t ) m t − 1 ( x t − 1 ∣ x t ) γ t − 1 ( x t − 1 ) L t ( x t ∣ x t − 1 ) ,
where L t ( x t ∣ x t − 1 ) L_t(x_t \mid x_{t-1}) L t ( x t ∣ x t − 1 ) is a backward kernel that reverses the forward step. DAS chooses [31 ] , Eq. (9)
L t ( x t ∣ x t − 1 ) = p θ ( x t − 1 ∣ x t ) p θ , t ( x t ) p θ , t − 1 ( x t − 1 ) . L_t(x_t \mid x_{t-1}) = \frac{p_\theta(x_{t-1} \mid x_t) p_{\theta,t}(x_t)}{p_{\theta,t-1}(x_{t-1})}. L t ( x t ∣ x t − 1 ) = p θ , t − 1 ( x t − 1 ) p θ ( x t − 1 ∣ x t ) p θ , t ( x t ) .
Substituting γ t ( x t ) = p θ , t ( x t ) exp ( λ t R ( x ^ 0 ( x t ) ) ) \gamma_t(x_t)=p_{\theta,t}(x_t)\exp(\lambda_tR(\hat{x}_0(x_t))) γ t ( x t ) = p θ , t ( x t ) exp ( λ t R ( x ^ 0 ( x t ))) (dropping the common normalizing constants, which cancel in ratios) and the backward kernel:
γ t − 1 ( x t − 1 ) L t ( x t ∣ x t − 1 ) γ t ( x t ) = p θ , t − 1 ( x t − 1 ) exp ( λ t − 1 R ( x ^ 0 ( x t − 1 ) ) ) ⋅ p θ ( x t − 1 ∣ x t ) p θ , t ( x t ) p θ , t − 1 ( x t − 1 ) p θ , t ( x t ) exp ( λ t R ( x ^ 0 ( x t ) ) ) = exp ( λ t − 1 R ( x ^ 0 ( x t − 1 ) ) ) p θ ( x t − 1 ∣ x t ) exp ( λ t R ( x ^ 0 ( x t ) ) ) . \frac{\gamma_{t-1}(x_{t-1})L_t(x_t\mid x_{t-1})}{\gamma_t(x_t)}
=
\frac{p_{\theta,t-1}(x_{t-1})\exp(\lambda_{t-1}R(\hat{x}_0(x_{t-1})))\cdot\frac{p_\theta(x_{t-1}\mid x_t)p_{\theta,t}(x_t)}{p_{\theta,t-1}(x_{t-1})}}{p_{\theta,t}(x_t)\exp(\lambda_tR(\hat{x}_0(x_t)))}
=
\frac{\exp(\lambda_{t-1}R(\hat{x}_0(x_{t-1})))p_\theta(x_{t-1}\mid x_t)}{\exp(\lambda_tR(\hat{x}_0(x_t)))}. γ t ( x t ) γ t − 1 ( x t − 1 ) L t ( x t ∣ x t − 1 ) = p θ , t ( x t ) exp ( λ t R ( x ^ 0 ( x t ))) p θ , t − 1 ( x t − 1 ) exp ( λ t − 1 R ( x ^ 0 ( x t − 1 ))) ⋅ p θ , t − 1 ( x t − 1 ) p θ ( x t − 1 ∣ x t ) p θ , t ( x t ) = exp ( λ t R ( x ^ 0 ( x t ))) exp ( λ t − 1 R ( x ^ 0 ( x t − 1 ))) p θ ( x t − 1 ∣ x t ) .
Since p θ ( ⋅ ∣ x t ) p_\theta(\cdot\mid x_t) p θ ( ⋅ ∣ x t ) and m t − 1 ( ⋅ ∣ x t ) m_{t-1}(\cdot\mid x_t) m t − 1 ( ⋅ ∣ x t ) share covariance σ t 2 I \sigma_t^2I σ t 2 I , their ratio reduces to
r t : = p θ ( x t − 1 ∣ x t ) m t − 1 ( x t − 1 ∣ x t ) = exp ( 1 2 σ t 2 ( ∥ x t − 1 − μ t p r o p ∥ 2 − ∥ x t − 1 − μ θ ∥ 2 ) ) . r_t:=\frac{p_\theta(x_{t-1}\mid x_t)}{m_{t-1}(x_{t-1}\mid x_t)}
=\exp\left(\frac{1}{2\sigma_t^2}\left(\lVert x_{t-1}-\mu_t^{\mathrm{prop}}\rVert^2-\lVert x_{t-1}-\mu_\theta\rVert^2\right)\right). r t := m t − 1 ( x t − 1 ∣ x t ) p θ ( x t − 1 ∣ x t ) = exp ( 2 σ t 2 1 ( ∥ x t − 1 − μ t prop ∥ 2 − ∥ x t − 1 − μ θ ∥ 2 ) ) .
giving the weight recursion [31 Eq. (14)]
w t − 1 ( x t − 1 ) = w t ( x t ) exp ( λ t − 1 R ( x ^ 0 ( x t − 1 ) ) ) exp ( λ t R ( x ^ 0 ( x t ) ) ) r t . w_{t-1}(x_{t-1})=w_t(x_t)\frac{\exp(\lambda_{t-1}R(\hat{x}_0(x_{t-1})))}{\exp(\lambda_tR(\hat{x}_0(x_t)))}r_t. w t − 1 ( x t − 1 ) = w t ( x t ) exp ( λ t R ( x ^ 0 ( x t ))) exp ( λ t − 1 R ( x ^ 0 ( x t − 1 ))) r t .
Asymptotic exactness. Under standard regularity assumptions [31 Appendix C.2.2] , the weighted particle system is asymptotically exact [31 Proposition 8, Appendix C.2] : for any φ ∈ C b ( X 0 ) \varphi\in C_b(\mathcal{X}_0) φ ∈ C b ( X 0 ) ,
∑ i = 1 M w 0 i φ ( x 0 i ) ∑ k = 1 M w 0 k → a . s . p D A S ( φ ) as M → ∞ . \frac{\sum_{i=1}^{M}w_0^i\varphi(x_0^i)}{\sum_{k=1}^{M}w_0^k}\xrightarrow{\mathrm{a.s.}}p_{\mathrm{DAS}}(\varphi)\qquad\text{as }M\to\infty. ∑ k = 1 M w 0 k ∑ i = 1 M w 0 i φ ( x 0 i ) a.s. p DAS ( φ ) as M → ∞.
Extension to our density path. Our method instead uses the density path (5) in § 3.1 , γ t ( x t ) ∝ p θ , t ( x t ) ( 1 − f t ( x t ) ) λ t \gamma_t(x_t)\propto p_{\theta,t}(x_t)(1-f_t(x_t))^{\lambda_t} γ t ( x t ) ∝ p θ , t ( x t ) ( 1 − f t ( x t ) ) λ t , with the optional parameterization f t ( x t ) : = g 0 ( x ^ 0 ( x t ) ) f_t(x_t):=g_0(\hat{x}_0(x_t)) f t ( x t ) := g 0 ( x ^ 0 ( x t )) of § 3.2 , where g 0 g_0 g 0 is a PU classifier estimating p θ , 0 ( c ∣ x 0 ) p_{\theta,0}(c\mid x_0) p θ , 0 ( c ∣ x 0 ) . This corresponds to instantiating the DAS framework with R ( x 0 ) ← log ( 1 − g 0 ( x 0 ) ) R(x_0)\leftarrow\log(1-g_0(x_0)) R ( x 0 ) ← log ( 1 − g 0 ( x 0 )) , since
exp ( λ t R ( x ^ 0 ( x t ) ) ) = exp ( λ t log ( 1 − g 0 ( x ^ 0 ( x t ) ) ) ) = ( 1 − f t ( x t ) ) λ t . \exp(\lambda_tR(\hat{x}_0(x_t)))=\exp(\lambda_t\log(1-g_0(\hat{x}_0(x_t))))=(1-f_t(x_t))^{\lambda_t}. exp ( λ t R ( x ^ 0 ( x t ))) = exp ( λ t log ( 1 − g 0 ( x ^ 0 ( x t )))) = ( 1 − f t ( x t ) ) λ t .
Substituting into the weight recursion above yields
w t − 1 ( x t − 1 ) = w t ( x t ) r t ( 1 − f t − 1 ( x t − 1 ) ) λ t − 1 ( 1 − f t ( x t ) ) λ t , w_{t-1}(x_{t-1})=w_t(x_t)r_t\frac{(1-f_{t-1}(x_{t-1}))^{\lambda_{t-1}}}{(1-f_t(x_t))^{\lambda_t}}, w t − 1 ( x t − 1 ) = w t ( x t ) r t ( 1 − f t ( x t ) ) λ t ( 1 − f t − 1 ( x t − 1 ) ) λ t − 1 ,
which is the recursion (6).
On the Exactness of Dynamic Negative Guidance
DNG [34 ] is exact under three conditions: exact scores, the limit T → ∞ T\to\infty T → ∞ , and repulsion strength η = 1 \eta=1 η = 1 . This subsection examines the last two.
The posterior recursion is exact only as T → ∞ T\to\infty T → ∞ . The guided score (3) needs the marginal posterior p t ( c ∣ x t ) p_t(c\mid x_t) p t ( c ∣ x t ) , whereas the recursion (4) is built from the trajectory x T , … , x t x_T,\ldots,x_t x T , … , x t generated so far. For two reverse chains started at the same x T ∼ N ( 0 , I ) x_T\sim\mathcal{N}(0,I) x T ∼ N ( 0 , I ) , one unconditional and one conditioned on c c c , Bayes’ rule gives
p ( c ∣ x T , … , x t ) = p ( c ) ∏ s = t + 1 T p ( x s − 1 ∣ x s , c ) p ( x s − 1 ∣ x s ) = p t ( c ∣ x t ) p ( x T , … , x t + 1 ∣ x t , c ) p ( x T , … , x t + 1 ∣ x t ) ⏟ ( ∗ ) . (12) p(c\mid x_T,\ldots,x_t)=p(c)\prod_{s=t+1}^{T}\frac{p(x_{s-1}\mid x_s,c)}{p(x_{s-1}\mid x_s)}
=p_t(c\mid x_t)\underbrace{\frac{p(x_T,\ldots,x_{t+1}\mid x_t,c)}{p(x_T,\ldots,x_{t+1}\mid x_t)}}_{(*)}. \tag*{(12)} p ( c ∣ x T , … , x t ) = p ( c ) s = t + 1 ∏ T p ( x s − 1 ∣ x s ) p ( x s − 1 ∣ x s , c ) = p t ( c ∣ x t ) ( ∗ ) p ( x T , … , x t + 1 ∣ x t ) p ( x T , … , x t + 1 ∣ x t , c ) . (12)
The logarithm of the middle expression is exactly (4) , so the recursion tracks the trajectory posterior, which equals the marginal one only when ( ∗ ) = 1 (*)=1 ( ∗ ) = 1 . Koulischer et al. [34 ] prove ( ∗ ) = 1 (*)=1 ( ∗ ) = 1 in their Appendix C as a consequence of the Markov assumption, the forward chain carrying no condition. The argument presumes exact time reversal, which holds only as T → ∞ T\to\infty T → ∞ , the reverse kernel being Gaussian only for small steps. Table 4 measures the residual bias on the Gaussian mixture, where the scores are exact.
Table 4 : Timestep-count ablation for DNG on the Gaussian mixture, mean±std over 15 trials, at ( λ 0 , τ ) = ( 1 , 1 ) (\lambda_0,\tau)=(1,1) ( λ 0 , τ ) = ( 1 , 1 ) and M = 1024 M=1024 M = 1024 . The Oracle is recomputed at each T T T , and Gap is the difference between the two leak columns.
Table 4.
The tempered density is not guaranteed as a data-level target. At η = 1 \eta= 1 η = 1 the guided score is that of p t ( ⋅ ∣ ¬ c ) p_t(\cdot\mid\neg c) p t ( ⋅ ∣ ¬ c ) , the forward marginal of the data density p 0 ( ⋅ ∣ ¬ c ) p_0(\cdot\mid\neg c) p 0 ( ⋅ ∣ ¬ c ) , so the sampler reverses a genuine forward diffusion. At η > 1 \eta> 1 η > 1 the guidance instead follows ∇ x t log [ p t ( x t ) ( 1 − p t ( c ∣ x t ) ) η ] \nabla_{x_t}\log\left[p_t(x_t)\left(1-p_t(c\mid x_t)\right)^\eta\right] ∇ x t log [ p t ( x t ) ( 1 − p t ( c ∣ x t ) ) η ] , aiming at the tempered densities in score form, and Footnote 2 of Koulischer et al. [34 ] states that this implies sampling from them. The implication does not hold in general: raising the second factor to a power does not commute with the integral defining the forward marginal, so the tempered densities need not be the forward marginals of any single data density. Theorem 3.2 of Bradley and Nakkiran [7 ] turns the same gap into a counterexample for CFG, where the sampler provably does not produce the powered density at a given guidance strength.
The analysis of Section 4 is stated under the complementary conditions: it is relative to the pretrained model’s own reverse process, so it assumes no exact score, it is carried out on the discrete chain at finite T T T , and it holds for every avoidance strength λ ≥ 0 \lambda\ge0 λ ≥ 0 , with the remaining error controlled by the particle counts.
Algorithms
Algorithm 2 gives detailed pseudocode for the reference-based setting (§ 3.2 ); Algorithm 3 for the score-based setting (§ 3.3 ). The following notation supplements § 2 .
Conditional Tweedie denoiser. x ^ 0 ( x t ∣ c ) : = ( x t − 1 − α ˉ t ϵ ^ θ ( x t , t ∣ c ) ) / α ˉ t \hat{x}_0(x_t \mid c) := \left(x_t - \sqrt{1-\bar{\alpha}_t}\,\hat{\epsilon}_\theta(x_t,t\mid c)\right)/\sqrt{\bar{\alpha}_t} x ^ 0 ( x t ∣ c ) := ( x t − 1 − α ˉ t ϵ ^ θ ( x t , t ∣ c ) ) / α ˉ t is the conditional analog of x ^ 0 ( x t ) \hat{x}_0(x_t) x ^ 0 ( x t ) . Algorithm 3 uses it for the positive set because conditioning on c c c yields a sharper denoised view at intermediate t t t , easing discrimination. Both x ^ 0 ( x t ) \hat{x}_0(x_t) x ^ 0 ( x t ) and x ^ 0 ( x t ∣ c ) \hat{x}_0(x_t \mid c) x ^ 0 ( x t ∣ c ) reduce to the identity at t = 0 t=0 t = 0 .
uPU oracle. O u P U ( π , P , U , f ) O_{\mathrm{uPU}}(\pi,P,\mathcal{U},f) O uPU ( π , P , U , f ) denotes a few gradient steps minimizing the uPU risk (7) with positives P P P , weighted unlabeled set U \mathcal{U} U , class prior π \pi π , warm-started from classifier f f f . At t = T t=T t = T the oracle is called without f f f (cold start).
Time-varying class prior. Both algorithms accept a schedule { π t } t = 0 T \{\pi_t\}_{t=0}^{T} { π t } t = 0 T . Setting π t ≡ π \pi_t \equiv\pi π t ≡ π recovers the main-text formulation. A varying π t \pi_t π t is straightforward in practice since the theory requires only f 0 f_0 f 0 to be accurate at t = 0 t=0 t = 0 (Section 4).
Algorithm 2 Negative Alignment via SMC with Tweedie–uPU: Reference-Based Setting
Require: Pretrained DDPM reverse mean μ θ \mu_\theta μ θ and Tweedie denoiser x ^ 0 \hat{x}_0 x ^ 0 (see § 2 ), noise schedule { β t } t = 1 T \{\beta_t\}_{t=1}^{T} { β t } t = 1 T , particle count M M M , resampling threshold E S S min \mathrm{ESS}_{\min} ESS m i n , class priors { π t } t = 0 T \{\pi_t\}_{t=0}^{T} { π t } t = 0 T , uPU oracle O u P U \mathcal{O}_{\mathrm{uPU}} O uPU , reference sampler producing { x c , t ( i ) } i = 1 N \{x^{(i)}_{c,t}\}_{i=1}^{N} { x c , t ( i ) } i = 1 N at all t t t , proposal mean μ p r o p ( x t , t , λ , f ) \mu^{\mathrm{prop}}(x_t,t,\lambda,f) μ prop ( x t , t , λ , f ) (default: (10)), tempering: precomputed { λ t } t = 0 T \{\lambda_t\}_{t=0}^{T} { λ t } t = 0 T (0 = λ T ≤ ⋯ ≤ λ 0 0=\lambda_T\le\cdots\le\lambda_0 0 = λ T ≤ ⋯ ≤ λ 0 ) or ESS target E S S t a r \mathrm{ESS}_{\mathrm{tar}} ESS tar for adaptive tempering.
Initialize { x T ( j ) } j = 1 M ∼ N ( 0 , I ) \{x_T^{(j)}\}_{j=1}^{M}\sim\mathcal{N}(0,I) { x T ( j ) } j = 1 M ∼ N ( 0 , I ) , w q , T ( j ) ← 1 w_{q,T}^{(j)}\leftarrow1 w q , T ( j ) ← 1 , w ∅ , T ( j ) ← 1 w_{\varnothing,T}^{(j)}\leftarrow1 w ∅ , T ( j ) ← 1 , λ T ← 0 \lambda_T\leftarrow0 λ T ← 0
P T = { x ^ 0 ( x c , T ( i ) ) } i = 1 N \mathcal{P}_T=\{\hat{x}_0(x_{c,T}^{(i)})\}_{i=1}^{N} P T = { x ^ 0 ( x c , T ( i ) ) } i = 1 N , U T = { ( x ^ 0 ( x T ( j ) ) , w ∅ , T ( j ) ) } j = 1 M \mathcal{U}_T=\{(\hat{x}_0(x_T^{(j)}),w_{\varnothing,T}^{(j)})\}_{j=1}^{M} U T = {( x ^ 0 ( x T ( j ) ) , w ∅ , T ( j ) ) } j = 1 M ▷ Initialize classifier
f T ← O u P U ( π T , P T , U T ) f_T\leftarrow\mathcal{O}_{\mathrm{uPU}}(\pi_T,\mathcal{P}_T,\mathcal{U}_T) f T ← O uPU ( π T , P T , U T )
for t = T , T − 1 , … , 1 t=T,T-1,\ldots,1 t = T , T − 1 , … , 1 do
if adaptive tempering then
Find δ t ≥ 0 \delta_t\ge0 δ t ≥ 0 s.t. E S S ( { w q , t ( j ) ( 1 − f t ( x ^ 0 ( x t ( j ) ) ) ) δ t } ) ≈ E S S t a r \mathrm{ESS}(\{w_{q,t}^{(j)}(1-f_t(\hat{x}_0(x_t^{(j)})))^{\delta_t}\})\approx\mathrm{ESS}_{\mathrm{tar}} ESS ({ w q , t ( j ) ( 1 − f t ( x ^ 0 ( x t ( j ) )) ) δ t }) ≈ ESS tar ; λ t − 1 ← min ( λ t + δ t , λ 0 ) \lambda_{t-1}\leftarrow\min(\lambda_t+\delta_t,\lambda_0) λ t − 1 ← min ( λ t + δ t , λ 0 )
else
λ t − 1 ← \lambda_{t-1}\leftarrow λ t − 1 ← precomputed value
end if
for j = 1 , … , M j=1,\ldots,M j = 1 , … , M do ▷ Proposal
μ t ( j ) = μ p r o p ( x t ( j ) , t , λ t − 1 , f t ) \mu_t^{(j)}=\mu^{\mathrm{prop}}(x_t^{(j)},t,\lambda_{t-1},f_t) μ t ( j ) = μ prop ( x t ( j ) , t , λ t − 1 , f t ) // default: μ θ ( x t ( j ) , t ) + σ t 2 λ t − 1 ∇ x t log ( 1 − f t ( x ^ 0 ( x t ( j ) ) ) ) \mu_\theta(x_t^{(j)},t)+\sigma_t^2\lambda_{t-1}\nabla_{x_t}\log(1-f_t(\hat{x}_0(x_t^{(j)}))) μ θ ( x t ( j ) , t ) + σ t 2 λ t − 1 ∇ x t log ( 1 − f t ( x ^ 0 ( x t ( j ) )))
x t − 1 ( j ) ∼ N ( μ t ( j ) , σ t 2 I ) x_{t-1}^{(j)}\sim\mathcal{N}(\mu_t^{(j)},\sigma_t^2I) x t − 1 ( j ) ∼ N ( μ t ( j ) , σ t 2 I )
r t ( j ) ← exp ( 1 2 σ t 2 ( ∥ x t − 1 ( j ) − μ t ( j ) ∥ 2 − ∥ x t − 1 ( j ) − μ θ ( x t ( j ) , t ) ∥ 2 ) ) r_t^{(j)}\leftarrow\exp\left(\frac{1}{2\sigma_t^2}\left(\|x_{t-1}^{(j)}-\mu_t^{(j)}\|^2-\|x_{t-1}^{(j)}-\mu_\theta(x_t^{(j)},t)\|^2\right)\right) r t ( j ) ← exp ( 2 σ t 2 1 ( ∥ x t − 1 ( j ) − μ t ( j ) ∥ 2 − ∥ x t − 1 ( j ) − μ θ ( x t ( j ) , t ) ∥ 2 ) )
w ∅ , t − 1 ( j ) ← w ∅ , t ( j ) r t ( j ) w_{\varnothing,t-1}^{(j)}\leftarrow w_{\varnothing,t}^{(j)}r_t^{(j)} w ∅ , t − 1 ( j ) ← w ∅ , t ( j ) r t ( j ) ▷ Update w ∅ w_{\varnothing} w ∅
end for
P t − 1 = { x ^ 0 ( x c , t − 1 ( i ) ) } i = 1 N \mathcal{P}_{t-1}=\{\hat{x}_0(x_{c,t-1}^{(i)})\}_{i=1}^{N} P t − 1 = { x ^ 0 ( x c , t − 1 ( i ) ) } i = 1 N , U t − 1 = { ( x ^ 0 ( x t − 1 ( j ) ) , w ∅ , t − 1 ( j ) ) } j = 1 M \mathcal{U}_{t-1}=\{(\hat{x}_0(x_{t-1}^{(j)}),w_{\varnothing,t-1}^{(j)})\}_{j=1}^{M} U t − 1 = {( x ^ 0 ( x t − 1 ( j ) ) , w ∅ , t − 1 ( j ) ) } j = 1 M ▷ Refit classifier
f t − 1 ← O u P U ( π t − 1 , P t − 1 , U t − 1 , f t ) f_{t-1}\leftarrow\mathcal{O}_{\mathrm{uPU}}(\pi_{t-1},\mathcal{P}_{t-1},\mathcal{U}_{t-1},f_t) f t − 1 ← O uPU ( π t − 1 , P t − 1 , U t − 1 , f t )
for j = 1 , … , M j=1,\ldots,M j = 1 , … , M do ▷ Update w q w_q w q (6)
w q , t − 1 ( j ) ← w q , t ( j ) r t ( j ) ( 1 − f t − 1 ( x ^ 0 ( x t ( j ) ) ) ) λ t − 1 ( 1 − f t ( x ^ 0 ( x t ( j ) ) ) ) λ t w_{q,t-1}^{(j)}\leftarrow w_{q,t}^{(j)}r_t^{(j)}\dfrac{(1-f_{t-1}(\hat{x}_0(x_t^{(j)})))^{\lambda_{t-1}}}{(1-f_t(\hat{x}_0(x_t^{(j)})))^{\lambda_t}} w q , t − 1 ( j ) ← w q , t ( j ) r t ( j ) ( 1 − f t ( x ^ 0 ( x t ( j ) )) ) λ t ( 1 − f t − 1 ( x ^ 0 ( x t ( j ) )) ) λ t − 1
end for
if E S S ( { w q , t − 1 ( j ) } ) < E S S min \mathrm{ESS}(\{w_{q,t-1}^{(j)}\})<\mathrm{ESS}_{\min} ESS ({ w q , t − 1 ( j ) }) < ESS m i n then ▷ Resampling
Sample ancestors a ( 1 : M ) a(1:M) a ( 1 : M ) using { w q , t − 1 ( j ) } \{w_{q,t-1}^{(j)}\} { w q , t − 1 ( j ) }
for j = 1 , … , M j=1,\ldots,M j = 1 , … , M do
x t − 1 ( j ) ← x t − 1 ( a ( j ) ) x_{t-1}^{(j)}\leftarrow x_{t-1}^{(a(j))} x t − 1 ( j ) ← x t − 1 ( a ( j )) , w ∅ , t − 1 ( j ) ← w ∅ , t − 1 ( a ( j ) ) w q , t − 1 ( a ( j ) ) w_{\varnothing,t-1}^{(j)}\leftarrow\dfrac{w_{\varnothing,t-1}^{(a(j))}}{w_{q,t-1}^{(a(j))}} w ∅ , t − 1 ( j ) ← w q , t − 1 ( a ( j )) w ∅ , t − 1 ( a ( j )) , w q , t − 1 ( j ) ← 1 w_{q,t-1}^{(j)}\leftarrow1 w q , t − 1 ( j ) ← 1
end for
end if
end for
return { x 0 ( j ) , w q , 0 ( j ) } j = 1 M \{x_0^{(j)},w_{q,0}^{(j)}\}_{j=1}^{M} { x 0 ( j ) , w q , 0 ( j ) } j = 1 M
Algorithm 3 Negative Alignment via SMC with Tweedie–uPU: Score-Based Setting
Require: Pretrained DDPM reverse means μ θ ( x t , t ) \mu_\theta(x_t,t) μ θ ( x t , t ) and μ θ ( x t , t ∣ c ) \mu_\theta(x_t,t\mid c) μ θ ( x t , t ∣ c ) , Tweedie denoisers x ^ 0 ( x t ) \hat{x}_0(x_t) x ^ 0 ( x t ) and x ^ 0 ( x t ∣ c ) \hat{x}_0(x_t\mid c) x ^ 0 ( x t ∣ c ) (see § 2 and above), noise schedule { β t } t = 1 T \{\beta_t\}_{t=1}^{T} { β t } t = 1 T , particle count M M M , resampling threshold E S S min \mathrm{ESS}_{\min} ESS m i n , class priors { π t } t = 0 T \{\pi_t\}_{t=0}^{T} { π t } t = 0 T , uPU oracle O u P U \mathcal{O}_{\mathrm{uPU}} O uPU , proposal mean μ p r o p ( x t , t , λ , f ) \mu^{\mathrm{prop}}(x_t,t,\lambda,f) μ prop ( x t , t , λ , f ) (default: (10)), tempering: precomputed { λ t } t = 0 T \{\lambda_t\}_{t=0}^{T} { λ t } t = 0 T (0 = λ T ≤ ⋯ ≤ λ 0 0=\lambda_T\le\cdots\le\lambda_0 0 = λ T ≤ ⋯ ≤ λ 0 ) or ESS target E S S t a r \mathrm{ESS}_{\mathrm{tar}} ESS tar for adaptive tempering; initialize λ T ← 0 \lambda_T\leftarrow0 λ T ← 0 .
Initialize { x T ( j ) } j = 1 M ∼ N ( 0 , I ) \{x_T^{(j)}\}_{j=1}^{M}\sim\mathcal{N}(0,I) { x T ( j ) } j = 1 M ∼ N ( 0 , I ) , w ∅ , T ( j ) ← 1 w_{\varnothing,T}^{(j)}\leftarrow1 w ∅ , T ( j ) ← 1 , w q , T ( j ) ← 1 w_{q,T}^{(j)}\leftarrow1 w q , T ( j ) ← 1 , w c , T ( j ) ← 1 ∀ j w_{c,T}^{(j)}\leftarrow1\ \forall j w c , T ( j ) ← 1 ∀ j
P T = { ( x ^ 0 ( x T ( j ) ∣ c ) , w c , T ( j ) ) } j = 1 M \mathcal{P}_T=\{(\hat{x}_0(x_T^{(j)}\mid c),w_{c,T}^{(j)})\}_{j=1}^{M} P T = {( x ^ 0 ( x T ( j ) ∣ c ) , w c , T ( j ) ) } j = 1 M , U T = { ( x ^ 0 ( x T ( j ) ) , w ∅ , T ( j ) ) } j = 1 M \mathcal{U}_T=\{(\hat{x}_0(x_T^{(j)}),w_{\varnothing,T}^{(j)})\}_{j=1}^{M} U T = {( x ^ 0 ( x T ( j ) ) , w ∅ , T ( j ) ) } j = 1 M
f T ← O u P U ( π T , P T , U T ) f_T\leftarrow\mathcal{O}_{\mathrm{uPU}}(\pi_T,\mathcal{P}_T,\mathcal{U}_T) f T ← O uPU ( π T , P T , U T ) ▷ Initialize classifier
for t = T , T − 1 , … , 1 t=T,T-1,\ldots,1 t = T , T − 1 , … , 1 do
if adaptive tempering then
Find δ t ≥ 0 \delta_t\ge0 δ t ≥ 0 s.t. E S S ( { w q , t ( j ) ( 1 − f t ( x ^ 0 ( x t ( j ) ) ) ) δ t } ) ≈ E S S t a r \mathrm{ESS}(\{w_{q,t}^{(j)}(1-f_t(\hat{x}_0(x_t^{(j)})))^{\delta_t}\})\approx\mathrm{ESS}_{\mathrm{tar}} ESS ({ w q , t ( j ) ( 1 − f t ( x ^ 0 ( x t ( j ) )) ) δ t }) ≈ ESS tar ; λ t − 1 ← min ( λ t + δ t , λ 0 ) \lambda_{t-1}\leftarrow\min(\lambda_t+\delta_t,\lambda_0) λ t − 1 ← min ( λ t + δ t , λ 0 )
else
λ t − 1 ← \lambda_{t-1}\leftarrow λ t − 1 ← precomputed value
end if
for j = 1 , … , M j=1,\ldots,M j = 1 , … , M do ▷ Proposal
μ t ( j ) = μ p r o p ( x t ( j ) , t , λ t − 1 , f t ) \mu_t^{(j)}=\mu^{\mathrm{prop}}(x_t^{(j)},t,\lambda_{t-1},f_t) μ t ( j ) = μ prop ( x t ( j ) , t , λ t − 1 , f t ) // default: μ θ ( x t ( j ) , t ) + σ t 2 λ t − 1 ∇ x t log ( 1 − f t ( x ^ 0 ( x t ( j ) ) ) ) \mu_\theta(x_t^{(j)},t)+\sigma_t^2\lambda_{t-1}\nabla_{x_t}\log(1-f_t(\hat{x}_0(x_t^{(j)}))) μ θ ( x t ( j ) , t ) + σ t 2 λ t − 1 ∇ x t log ( 1 − f t ( x ^ 0 ( x t ( j ) )))
x t − 1 ( j ) ∼ N ( μ t ( j ) , σ t 2 I ) x_{t-1}^{(j)}\sim\mathcal{N}(\mu_t^{(j)},\sigma_t^2I) x t − 1 ( j ) ∼ N ( μ t ( j ) , σ t 2 I )
r t ( j ) ← exp ( 1 2 σ t 2 ( ∥ x t − 1 ( j ) − μ t ( j ) ∥ 2 − ∥ x t − 1 ( j ) − μ θ ( x t ( j ) , t ) ∥ 2 ) ) r_t^{(j)}\leftarrow\exp\left(\frac{1}{2\sigma_t^2}\left(\lVert x_{t-1}^{(j)}-\mu_t^{(j)}\rVert^2-\lVert x_{t-1}^{(j)}-\mu_\theta(x_t^{(j)},t)\rVert^2\right)\right) r t ( j ) ← exp ( 2 σ t 2 1 ( ∥ x t − 1 ( j ) − μ t ( j ) ∥ 2 − ∥ x t − 1 ( j ) − μ θ ( x t ( j ) , t ) ∥ 2 ) )
w ∅ , t − 1 ( j ) ← w ∅ , t ( j ) r t ( j ) w_{\varnothing,t-1}^{(j)}\leftarrow w_{\varnothing,t}^{(j)}r_t^{(j)} w ∅ , t − 1 ( j ) ← w ∅ , t ( j ) r t ( j ) ▷ Update w ∅ w_{\varnothing} w ∅
w c , t − 1 ( j ) ← w c , t ( j ) exp ( 1 2 σ t 2 ( ∥ x t − 1 ( j ) − μ t ( j ) ∥ 2 − ∥ x t − 1 ( j ) − μ θ ( x t ( j ) , t ∣ c ) ∥ 2 ) ) w_{c,t-1}^{(j)}\leftarrow w_{c,t}^{(j)}\exp\left(\frac{1}{2\sigma_t^2}\left(\lVert x_{t-1}^{(j)}-\mu_t^{(j)}\rVert^2-\lVert x_{t-1}^{(j)}-\mu_\theta(x_t^{(j)},t\mid c)\rVert^2\right)\right) w c , t − 1 ( j ) ← w c , t ( j ) exp ( 2 σ t 2 1 ( ∥ x t − 1 ( j ) − μ t ( j ) ∥ 2 − ∥ x t − 1 ( j ) − μ θ ( x t ( j ) , t ∣ c ) ∥ 2 ) ) ▷ Update w c w_c w c
end for
P t − 1 = { ( x ^ 0 ( x t − 1 ( j ) ∣ c ) , w c , t − 1 ( j ) ) } j = 1 M \mathcal{P}_{t-1}=\{(\hat{x}_0(x_{t-1}^{(j)}\mid c),w_{c,t-1}^{(j)})\}_{j=1}^{M} P t − 1 = {( x ^ 0 ( x t − 1 ( j ) ∣ c ) , w c , t − 1 ( j ) ) } j = 1 M , U t − 1 = { ( x ^ 0 ( x t − 1 ( j ) ) , w ∅ , t − 1 ( j ) ) } j = 1 M \mathcal{U}_{t-1}=\{(\hat{x}_0(x_{t-1}^{(j)}),w_{\varnothing,t-1}^{(j)})\}_{j=1}^{M} U t − 1 = {( x ^ 0 ( x t − 1 ( j ) ) , w ∅ , t − 1 ( j ) ) } j = 1 M
f t − 1 ← O u P U ( π t − 1 , P t − 1 , U t − 1 , f t ) f_{t-1}\leftarrow\mathcal{O}_{\mathrm{uPU}}(\pi_{t-1},\mathcal{P}_{t-1},\mathcal{U}_{t-1},f_t) f t − 1 ← O uPU ( π t − 1 , P t − 1 , U t − 1 , f t ) ▷ Refit classifier
for j = 1 , … , M j=1,\ldots,M j = 1 , … , M do ▷ Update w q w_q w q (6)
w q , t − 1 ( j ) ← w q , t ( j ) r t ( j ) ( 1 − f t − 1 ( x ^ 0 ( x t − 1 ( j ) ) ) ) λ t − 1 ( 1 − f t ( x ^ 0 ( x t ( j ) ) ) ) λ t w_{q,t-1}^{(j)}\leftarrow w_{q,t}^{(j)}r_t^{(j)}\frac{(1-f_{t-1}(\hat{x}_0(x_{t-1}^{(j)})))^{\lambda_{t-1}}}{(1-f_t(\hat{x}_0(x_t^{(j)})))^{\lambda_t}} w q , t − 1 ( j ) ← w q , t ( j ) r t ( j ) ( 1 − f t ( x ^ 0 ( x t ( j ) )) ) λ t ( 1 − f t − 1 ( x ^ 0 ( x t − 1 ( j ) )) ) λ t − 1
end for
if E S S ( { w q , t − 1 ( j ) } ) < E S S min \mathrm{ESS}(\{w_{q,t-1}^{(j)}\})<\mathrm{ESS}_{\min} ESS ({ w q , t − 1 ( j ) }) < ESS m i n then ▷ Resampling
Sample ancestors a ( 1 : M ) a(1:M) a ( 1 : M ) using { w q , t − 1 ( j ) } \{w_{q,t-1}^{(j)}\} { w q , t − 1 ( j ) }
for j = 1 , … , M j=1,\ldots,M j = 1 , … , M do
x t − 1 ( j ) ← x t − 1 ( a ( j ) ) x_{t-1}^{(j)}\leftarrow x_{t-1}^{(a(j))} x t − 1 ( j ) ← x t − 1 ( a ( j )) , w ∅ , t − 1 ( j ) ← w ∅ , t − 1 ( a ( j ) ) w q , t − 1 ( a ( j ) ) w_{\varnothing,t-1}^{(j)}\leftarrow\frac{w_{\varnothing,t-1}^{(a(j))}}{w_{q,t-1}^{(a(j))}} w ∅ , t − 1 ( j ) ← w q , t − 1 ( a ( j )) w ∅ , t − 1 ( a ( j )) , w c , t − 1 ( j ) ← w c , t − 1 ( a ( j ) ) w q , t − 1 ( a ( j ) ) w_{c,t-1}^{(j)}\leftarrow\frac{w_{c,t-1}^{(a(j))}}{w_{q,t-1}^{(a(j))}} w c , t − 1 ( j ) ← w q , t − 1 ( a ( j )) w c , t − 1 ( a ( j )) , w q , t − 1 ( j ) ← 1 w_{q,t-1}^{(j)}\leftarrow1 w q , t − 1 ( j ) ← 1
end for
end if
end for
return { x 0 ( j ) , w q , 0 ( j ) } j = 1 M \{x_0^{(j)},w_{q,0}^{(j)}\}_{j=1}^{M} { x 0 ( j ) , w q , 0 ( j ) } j = 1 M
Proof and Technical Detail
This appendix provides formal statements and proofs supporting Section 4. The object of analysis is the meta-algorithm Algorithm 1, in its reference-based instantiation (§ 3.2 ) and score-based instantiation (§ 3.3 ). We identify the avoidance target (1) p t a r g e t p_{\mathrm{target}} p target with the terminal Feynman–Kac measure
ν 0 ( x ) ∝ ( 1 − η 0 ( x ) ) λ 0 p θ , 0 ( x ) , η 0 ( x ) : = p θ , 0 ( c ∣ x ) , \nu_0(x) \propto(1-\eta_0(x))^{\lambda_0}p_{\theta,0}(x), \qquad\eta_0(x) := p_{\theta,0}(c \mid x), ν 0 ( x ) ∝ ( 1 − η 0 ( x ) ) λ 0 p θ , 0 ( x ) , η 0 ( x ) := p θ , 0 ( c ∣ x ) ,
and show that the weighted empirical measure ν ^ 0 M ∣ M ′ , N \widehat{\nu}_0^{M\mid M',N} ν 0 M ∣ M ′ , N produced by Algorithm 1 converges to ν 0 \nu_0 ν 0 almost surely in the iterated limit lim M ′ , N → ∞ lim M → ∞ \lim_{M',N\to\infty}\lim_{M\to\infty} lim M ′ , N → ∞ lim M → ∞ .
For analytical clarity we adopt a proof-oriented variant in which classifier estimation is decoupled from the final SMC step. The classifier f t f_t f t is fit on an auxiliary particle system of size M ′ M' M ′ that shares the kernels of, but is independent of, the main system of size M M M . Positive samples for the PU risk are the N N N external references in the reference-based setting, and are supplied by the auxiliary system itself in the score-based setting. The proposal kernel is left arbitrary in the algorithm and regularized within the proof so that the importance weights remain uniformly bounded.
The argument has three steps. (i) Appendix C.1 establishes consistency of the weighted PU classifier at each fixed diffusion time, taking the positive and unlabeled samples as exogenous inputs satisfying suitable uniform laws of large numbers. (ii) The SMC construction underlying Algorithm 1 is shown to satisfy these uniform laws for both p θ , t p_{\theta,t} p θ , t and p θ , t ( ⋅ ∣ c ) p_{\theta,t}(\cdot\mid c) p θ , t ( ⋅ ∣ c ) . (iii) A plug-in argument, combined with the telescoping of the tilting factors ( 1 − f t ) λ t (1-f_t)^{\lambda_t} ( 1 − f t ) λ t in the recursion (6) , yields convergence of the main particle system to ν 0 \nu_0 ν 0 . The reference-based instantiation serves as the master argument. The score-based instantiation follows by the same scheme, with the external positive samples replaced by the auxiliary particles reweighted by w c , t w_{c,t} w c , t , which retargets them to p θ , t ( ⋅ ∣ c ) p_{\theta,t}(\cdot\mid c) p θ , t ( ⋅ ∣ c ) as in § 3.3 .
Consistency of Weighted PU Logistic Regression at a Fixed Diffusion Time
Fix a diffusion time t t t and write
η t ( x ) : = p θ , t ( c ∣ x ) , x ∈ X t , \eta_t(x) := p_{\theta,t}(c \mid x), \qquad x \in\mathcal{X}_t, η t ( x ) := p θ , t ( c ∣ x ) , x ∈ X t ,
for the conditional class posterior at time t t t . Let P t P_t P t denote the marginal law of x t x_t x t , let
π t : = P t ( c ) ∈ ( 0 , 1 ) , \pi_t := P_t(c) \in(0,1), π t := P t ( c ) ∈ ( 0 , 1 ) ,
and let P t + P_t^+ P t + denote the conditional law of x t x_t x t given c c c .
We observe:
positive samples X 1 + , … , X N + ∼ i . i . d . P t + X_1^+,\ldots,X_N^+ \mathrel{\stackrel{\mathrm{i.i.d.}}{\sim}} P_t^+ X 1 + , … , X N + ∼ i.i.d. P t + ;
unlabeled samples U 1 , … , U M U_1,\ldots,U_M U 1 , … , U M together with nonnegative importance weights w t ( U j ) w_t(U_j) w t ( U j ) .
Define the normalized weights
w ‾ t , j : = w t ( U j ) ∑ k = 1 M w t ( U k ) . \overline{w}_{t,j} := \frac{w_t(U_j)}{\sum_{k=1}^{M}w_t(U_k)}. w t , j := ∑ k = 1 M w t ( U k ) w t ( U j ) .
Let G t \mathcal{G}_t G t be a class of measurable functions g : X t → R g:\mathcal{X}_t\to\mathbb{R} g : X t → R , and define
ℓ 1 ( z ) : = log ( 1 + e − z ) , ℓ 0 ( z ) : = log ( 1 + e z ) , σ ( z ) : = 1 1 + e − z . \ell_1(z) := \log(1+e^{-z}), \qquad\ell_0(z) := \log(1+e^z), \qquad\sigma(z) := \frac{1}{1+e^{-z}}. ℓ 1 ( z ) := log ( 1 + e − z ) , ℓ 0 ( z ) := log ( 1 + e z ) , σ ( z ) := 1 + e − z 1 .
For g ∈ G t g\in\mathcal{G}_t g ∈ G t , define the weighted empirical PU risk
L ^ t , M , N ( g ) : = π t 1 N ∑ i = 1 N ℓ 1 ( g ( X i + ) ) + ∑ j = 1 M w ‾ t , j ℓ 0 ( g ( U j ) ) − π t 1 N ∑ i = 1 N ℓ 0 ( g ( X i + ) ) = − π t 1 N ∑ i = 1 N g ( X i + ) + ∑ j = 1 M w ‾ t , j ℓ 0 ( g ( U j ) ) . (13) \begin{aligned}
\widehat{L}_{t,M,N}(g) := \pi_t\frac{1}{N}\sum_{i=1}^{N}\ell_1(g(X_i^+))+\sum_{j=1}^{M}\overline{w}_{t,j}\ell_0(g(U_j))-\pi_t\frac{1}{N}\sum_{i=1}^{N}\ell_0(g(X_i^+)) \\
&= -\pi_t\frac{1}{N}\sum_{i=1}^{N}g(X_i^+)+\sum_{j=1}^{M}\overline{w}_{t,j}\ell_0(g(U_j)). \tag*{(13)}
\end{aligned} L t , M , N ( g ) := π t N 1 i = 1 ∑ N ℓ 1 ( g ( X i + )) + j = 1 ∑ M w t , j ℓ 0 ( g ( U j )) − π t N 1 i = 1 ∑ N ℓ 0 ( g ( X i + )) = − π t N 1 i = 1 ∑ N g ( X i + ) + j = 1 ∑ M w t , j ℓ 0 ( g ( U j )) . (13)
This is the logistic objective of the standard PU learning [41 ] , with the unlabeled empirical average replaced by an importance-weighted one. Correspondingly, define the population PU risk
L t P U ( g ) : = π t E P t + [ ℓ 1 ( g ( X ) ) ] + E P t [ ℓ 0 ( g ( X ) ) ] − π t E P t + [ ℓ 0 ( g ( X ) ) ] = − π t E P t + [ g ( X ) ] + E P t [ ℓ 0 ( g ( X ) ) ] . (14) L_t^{\mathrm{PU}}(g) := \pi_t \mathbb{E}_{P_t^+}[\ell_1(g(X))] + \mathbb{E}_{P_t}[\ell_0(g(X))] - \pi_t \mathbb{E}_{P_t^+}[\ell_0(g(X))]
= -\pi_t \mathbb{E}_{P_t^+}[g(X)] + \mathbb{E}_{P_t}[\ell_0(g(X))]. \tag*{(14)} L t PU ( g ) := π t E P t + [ ℓ 1 ( g ( X ))] + E P t [ ℓ 0 ( g ( X ))] − π t E P t + [ ℓ 0 ( g ( X ))] = − π t E P t + [ g ( X )] + E P t [ ℓ 0 ( g ( X ))] . (14)
We impose the following assumptions.
(A1) Positive-sample uniform law of large numbers. There exists a function class H t \mathcal{H}_t H t containing { g : g ∈ G t } ∪ { ℓ 1 ∘ g : g ∈ G t } ∪ { ℓ 0 ∘ g : g ∈ G t } \{g : g \in\mathcal{G}_t\} \cup\{\ell_1 \circ g : g \in\mathcal{G}_t\} \cup\{\ell_0 \circ g : g \in\mathcal{G}_t\} { g : g ∈ G t } ∪ { ℓ 1 ∘ g : g ∈ G t } ∪ { ℓ 0 ∘ g : g ∈ G t } such that, as N → ∞ N \to\infty N → ∞ ,
sup h ∈ H t ∣ 1 N ∑ i = 1 N h ( X i + ) − E P t + [ h ( X ) ] ∣ → 0 a.s. \sup_{h \in\mathcal{H}_t} \left| \frac{1}{N} \sum_{i=1}^{N} h(X_i^+) - \mathbb{E}_{P_t^+}[h(X)] \right| \to0 \qquad\text{a.s.} h ∈ H t sup N 1 i = 1 ∑ N h ( X i + ) − E P t + [ h ( X )] → 0 a.s.
(A2) Weighted unlabeled uniform convergence. For the same class H t \mathcal{H}_t H t , as M → ∞ M \to\infty M → ∞ ,
sup h ∈ H t ∣ ∑ j = 1 M w ~ t , j h ( U j ) − E P t [ h ( X ) ] ∣ → 0 a.s. \sup_{h \in\mathcal{H}_t} \left| \sum_{j=1}^{M} \widetilde{w}_{t,j}h(U_j) - \mathbb{E}_{P_t}[h(X)] \right| \to0 \qquad\text{a.s.} h ∈ H t sup j = 1 ∑ M w t , j h ( U j ) − E P t [ h ( X )] → 0 a.s.
(A3) Realizability of the Bayes logit. The posterior satisfies η t ( x ) ∈ ( 0 , 1 ) \eta_t(x) \in(0,1) η t ( x ) ∈ ( 0 , 1 ) for P t P_t P t -a.e. x x x , and the Bayes logit g t ∗ ( x ) : = log η t ( x ) 1 − η t ( x ) g_t^*(x) := \log\frac{\eta_t(x)}{1-\eta_t(x)} g t ∗ ( x ) := log 1 − η t ( x ) η t ( x ) belongs to G t \mathcal{G}_t G t .
Finally, assume that for every ( M , N ) (M,N) ( M , N ) under consideration, a measurable empirical minimizer exists:
g ^ t , M , N ∈ arg min g ∈ G t L ^ t , M , N ( g ) . \widehat{g}_{t,M,N} \in\arg\min_{g \in\mathcal{G}_t} \widehat{L}_{t,M,N}(g). g t , M , N ∈ arg g ∈ G t min L t , M , N ( g ) .
Define the induced probabilistic discriminator by f ^ t , M , N ( x ) : = σ ( g ^ t , M , N ( x ) ) \widehat{f}_{t,M,N}(x) := \sigma(\widehat{g}_{t,M,N}(x)) f t , M , N ( x ) := σ ( g t , M , N ( x )) .
Theorem 2 (Consistency of weighted PU logistic discrimination at a fixed diffusion time). Suppose (A1)–(A3) hold. Then, along any sequence ( M , N ) (M,N) ( M , N ) such that M → ∞ M \to\infty M → ∞ and N → ∞ N \to\infty N → ∞ ,
∥ f ^ t , M , N − η t ∥ L 1 ( P t ) → 0 a.s. \lVert\widehat{f}_{t,M,N} - \eta_t \rVert_{L^1(P_t)} \to0 \qquad\text{a.s.} ∥ f t , M , N − η t ∥ L 1 ( P t ) → 0 a.s.
Proof. Let
Δ M , N : = sup g ∈ G t ∣ L ^ t , M , N ( g ) − L t P U ( g ) ∣ ≤ π t sup g ∈ G t ∣ 1 N ∑ i = 1 N g ( X i + ) − E P t + [ g ( X ) ] ∣ + sup g ∈ G t ∣ ∑ j = 1 M w ~ t , j ℓ 0 ( g ( U j ) ) − E P t [ ℓ 0 ( g ( X ) ) ] ∣ . \begin{aligned}
\Delta_{M,N} := \sup_{g \in\mathcal{G}_t} \left| \widehat{L}_{t,M,N}(g) - L_t^{\mathrm{PU}}(g) \right| \\
&\leq\pi_t \sup_{g \in\mathcal{G}_t} \left| \frac{1}{N} \sum_{i=1}^{N} g(X_i^+) - \mathbb{E}_{P_t^+}[g(X)] \right| + \sup_{g \in\mathcal{G}_t} \left| \sum_{j=1}^{M} \widetilde{w}_{t,j}\ell_0(g(U_j)) - \mathbb{E}_{P_t}[\ell_0(g(X))] \right|.
\end{aligned} Δ M , N := g ∈ G t sup L t , M , N ( g ) − L t PU ( g ) ≤ π t g ∈ G t sup N 1 i = 1 ∑ N g ( X i + ) − E P t + [ g ( X )] + g ∈ G t sup j = 1 ∑ M w t , j ℓ 0 ( g ( U j )) − E P t [ ℓ 0 ( g ( X ))] .
By Assumptions (A1) and (A2), Δ M , N → 0 \Delta_{M,N} \to0 Δ M , N → 0 a.s.
We first rewrite the population PU risk. Let P t − P_t^- P t − denote the conditional law of x t x_t x t given ¬ c \neg c ¬ c . Since P t = π t P t + + ( 1 − π t ) P t − P_t = \pi_t P_t^+ + (1-\pi_t)P_t^- P t = π t P t + + ( 1 − π t ) P t − and π t d P t + = η t d P t \pi_t\,dP_t^+ = \eta_t\,dP_t π t d P t + = η t d P t , we have
L t P U ( g ) = E P t [ η t ℓ 1 ( g ) + ( 1 − η t ) ℓ 0 ( g ) ] . L_t^{\mathrm{PU}}(g) = \mathbb{E}_{P_t}\left[\eta_t\ell_1(g) + (1-\eta_t)\ell_0(g)\right]. L t PU ( g ) = E P t [ η t ℓ 1 ( g ) + ( 1 − η t ) ℓ 0 ( g ) ] .
Writing q g = σ ( g ) q_g = \sigma(g) q g = σ ( g ) and using ℓ 1 ( g ) = − log q g \ell_1(g) = -\log q_g ℓ 1 ( g ) = − log q g , ℓ 0 ( g ) = − log ( 1 − q g ) \ell_0(g) = -\log(1-q_g) ℓ 0 ( g ) = − log ( 1 − q g ) , this becomes
L t P U ( g ) = E P t [ − η t log q g − ( 1 − η t ) log ( 1 − q g ) ] . L_t^{\mathrm{PU}}(g) = \mathbb{E}_{P_t}\left[-\eta_t \log q_g - (1-\eta_t)\log(1-q_g)\right]. L t PU ( g ) = E P t [ − η t log q g − ( 1 − η t ) log ( 1 − q g ) ] .
Hence
L t P U ( g ) − L t P U ( g t ∗ ) = E P t [ KL ( Bern ( η t ) ∥ Bern ( q g ) ) ] , L_t^{\mathrm{PU}}(g) - L_t^{\mathrm{PU}}(g_t^*) = \mathbb{E}_{P_t}\left[\operatorname{KL}(\operatorname{Bern}(\eta_t) \mathbin\Vert\operatorname{Bern}(q_g))\right], L t PU ( g ) − L t PU ( g t ∗ ) = E P t [ KL ( Bern ( η t ) ∥ Bern ( q g )) ] ,
and by Pinsker’s inequality and Jensen’s inequality,
L t P U ( g ) − L t P U ( g t ∗ ) ≥ 2 E P t [ ∣ η t − q g ∣ 2 ] ≥ 2 ∥ q g − η t ∥ L 1 ( P t ) 2 . L_t^{\mathrm{PU}}(g) - L_t^{\mathrm{PU}}(g_t^*) \geq2\mathbb{E}_{P_t}[|\eta_t-q_g|^2] \geq2\lVert q_g-\eta_t\rVert_{L^1(P_t)}^2. L t PU ( g ) − L t PU ( g t ∗ ) ≥ 2 E P t [ ∣ η t − q g ∣ 2 ] ≥ 2 ∥ q g − η t ∥ L 1 ( P t ) 2 .
Next, since g ^ t , M , N \widehat{g}_{t,M,N} g t , M , N minimizes L ^ t , M , N \widehat{L}_{t,M,N} L t , M , N over G t \mathcal{G}_t G t ,
L ^ t , M , N ( g ^ t , M , N ) ≤ L ^ t , M , N ( g t ∗ ) . \widehat{L}_{t,M,N}(\widehat{g}_{t,M,N}) \leq\widehat{L}_{t,M,N}(g_t^*). L t , M , N ( g t , M , N ) ≤ L t , M , N ( g t ∗ ) .
Hence
L t P U ( g ^ t , M , N ) − L t P U ( g t ∗ ) = ( L t P U ( g ^ t , M , N ) − L ^ t , M , N ( g ^ t , M , N ) ) + ( L ^ t , M , N ( g ^ t , M , N ) − L ^ t , M , N ( g t ∗ ) ) + ( L ^ t , M , N ( g t ∗ ) − L t P U ( g t ∗ ) ) ≤ ∣ L t P U ( g ^ t , M , N ) − L ^ t , M , N ( g ^ t , M , N ) ∣ + ∣ L ^ t , M , N ( g t ∗ ) − L t P U ( g t ∗ ) ∣ ≤ 2 sup g ∈ G t ∣ L ^ t , M , N ( g ) − L t P U ( g ) ∣ = 2 Δ M , N . \begin{aligned}
L_t^{\mathrm{PU}}(\hat g_{t,M,N})-L_t^{\mathrm{PU}}(g_t^*)={}&\left(L_t^{\mathrm{PU}}(\hat g_{t,M,N})-\hat L_{t,M,N}(\hat g_{t,M,N})\right)\\
&+\left(\hat L_{t,M,N}(\hat g_{t,M,N})-\hat L_{t,M,N}(g_t^*)\right)\\
&+\left(\hat L_{t,M,N}(g_t^*)-L_t^{\mathrm{PU}}(g_t^*)\right)\\
\le{}&\left|L_t^{\mathrm{PU}}(\hat g_{t,M,N})-\hat L_{t,M,N}(\hat g_{t,M,N})\right|+\left|\hat L_{t,M,N}(g_t^*)-L_t^{\mathrm{PU}}(g_t^*)\right|\\
\le{}&2\sup_{g\in\mathcal{G}_t}\left|\hat L_{t,M,N}(g)-L_t^{\mathrm{PU}}(g)\right|=2\Delta_{M,N}.
\end{aligned} L t PU ( g ^ t , M , N ) − L t PU ( g t ∗ ) = ≤ ≤ ( L t PU ( g ^ t , M , N ) − L ^ t , M , N ( g ^ t , M , N ) ) + ( L ^ t , M , N ( g ^ t , M , N ) − L ^ t , M , N ( g t ∗ ) ) + ( L ^ t , M , N ( g t ∗ ) − L t PU ( g t ∗ ) ) L t PU ( g ^ t , M , N ) − L ^ t , M , N ( g ^ t , M , N ) + L ^ t , M , N ( g t ∗ ) − L t PU ( g t ∗ ) 2 g ∈ G t sup L ^ t , M , N ( g ) − L t PU ( g ) = 2 Δ M , N .
Since Δ M , N → 0 \Delta_{M,N}\to0 Δ M , N → 0 a.s., it follows that
L t P U ( g ^ t , M , N ) − L t P U ( g t ∗ ) → 0 a.s. L_t^{\mathrm{PU}}(\hat g_{t,M,N})-L_t^{\mathrm{PU}}(g_t^*)\to0
\qquad\text{a.s.} L t PU ( g ^ t , M , N ) − L t PU ( g t ∗ ) → 0 a.s.
On the other hand, from the lower bound established above, applied with g = g ^ t , M , N g=\hat g_{t,M,N} g = g ^ t , M , N , we have
L t P U ( g ^ t , M , N ) − L t P U ( g t ∗ ) ≥ 2 ∥ q g ^ t , M , N − η t ∥ L 1 ( P t ) 2 = 2 ∥ f ^ t , M , N − η t ∥ L 1 ( P t ) 2 . L_t^{\mathrm{PU}}(\hat g_{t,M,N})-L_t^{\mathrm{PU}}(g_t^*)\ge2\left\|q_{\hat g_{t,M,N}}-\eta_t\right\|_{L^1(P_t)}^2=2\left\|\hat f_{t,M,N}-\eta_t\right\|_{L^1(P_t)}^2. L t PU ( g ^ t , M , N ) − L t PU ( g t ∗ ) ≥ 2 q g ^ t , M , N − η t L 1 ( P t ) 2 = 2 f ^ t , M , N − η t L 1 ( P t ) 2 .
Therefore,
0 ≤ 2 ∥ f ^ t , M , N − η t ∥ L 1 ( P t ) 2 ≤ L t P U ( g ^ t , M , N ) − L t P U ( g t ∗ ) → 0 a.s. 0\le2\left\|\hat f_{t,M,N}-\eta_t\right\|_{L^1(P_t)}^2\le L_t^{\mathrm{PU}}(\hat g_{t,M,N})-L_t^{\mathrm{PU}}(g_t^*)\to0
\qquad\text{a.s.} 0 ≤ 2 f ^ t , M , N − η t L 1 ( P t ) 2 ≤ L t PU ( g ^ t , M , N ) − L t PU ( g t ∗ ) → 0 a.s.
and hence
∥ f ^ t , M , N − η t ∥ L 1 ( P t ) → 0 a.s. \left\|\hat f_{t,M,N}-\eta_t\right\|_{L^1(P_t)}\to0
\qquad\text{a.s.} f ^ t , M , N − η t L 1 ( P t ) → 0 a.s.
Verification of Dual-Weight SMC Construction
This subsection establishes the theoretical validity of the dual-weight SMC construction. We show that, under a regularized common proposal, the resulting particle system simultaneously provides: (i) a consistent approximation of the unconditional marginal p θ , t p_{\theta,t} p θ , t , and (ii) a particle approximation of the tilted targets ν t \nu_t ν t associated with the negative-alignment tempering.
The key ingredients are: a common proposal yielding uniformly bounded incremental weights, a telescoping structure of the associated Feynman–Kac models, and a ratio transform linking the tilted and unconditional marginals.
These results together imply that the particle system supplies the weighted empirical measure required in Assumption (A2).
We introduce the following assumption, used throughout the remainder of the appendix.
(A4) Non-degeneracy of the conditional class posterior. There exists δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) such that for all t ∈ { 0 , … , T } t\in\{0,\ldots,T\} t ∈ { 0 , … , T } ,
δ ≤ η t ( x ) ≤ 1 − δ \delta\le\eta_t(x)\le1-\delta δ ≤ η t ( x ) ≤ 1 − δ for p θ , t p_{\theta,t} p θ , t -a.e. x x x .
Regularized Common Proposal
Reverse kernels and tilted targets. Fix a diffusion horizon T ∈ N T\in\mathbb{N} T ∈ N . For each t ∈ { 0 , 1 , … , T } t\in\{0,1,\ldots,T\} t ∈ { 0 , 1 , … , T } , let p θ , t p_{\theta,t} p θ , t denote the unconditional marginal law at time t t t , and define the unconditional reverse diffusion kernel by
K t − 1 ( x t , d x t − 1 ) : = p θ ( d x t − 1 ∣ x t ) , t = 1 , … , T . K_{t-1}(x_t,\mathrm{d}x_{t-1}):=p_\theta(\mathrm{d}x_{t-1}\mid x_t),\qquad t=1,\ldots,T. K t − 1 ( x t , d x t − 1 ) := p θ ( d x t − 1 ∣ x t ) , t = 1 , … , T .
Let { λ t } t = 0 T \{\lambda_t\}_{t=0}^{T} { λ t } t = 0 T be a deterministic tempering schedule satisfying 0 = λ T ≤ λ T − 1 ≤ ⋯ ≤ λ 0 < ∞ 0=\lambda_T\le\lambda_{T-1}\le\cdots\le\lambda_0<\infty 0 = λ T ≤ λ T − 1 ≤ ⋯ ≤ λ 0 < ∞ .
Fix a measurable version η t ♯ \eta_t^\sharp η t ♯ of η t \eta_t η t , and define the clipped posterior
η ˉ t ( x ) : = min { 1 − δ , max { η t ♯ ( x ) , δ } } ∈ [ δ , 1 − δ ] for all x . \bar\eta_t(x):=\min\{1-\delta,\max\{\eta_t^\sharp(x),\delta\}\}\in[\delta,1-\delta]\qquad\text{for all }x. η ˉ t ( x ) := min { 1 − δ , max { η t ♯ ( x ) , δ }} ∈ [ δ , 1 − δ ] for all x .
Define
ω t ( x ) : = ( 1 − η ˉ t ( x ) ) λ t , ν t ( d x ) : = ω t ( x ) p θ , t ( d x ) ∫ ω t ( x ) p θ , t ( d x ) . \omega_t(x):=(1-\bar\eta_t(x))^{\lambda_t},\qquad
\nu_t(\mathrm{d}x):=\frac{\omega_t(x)p_{\theta,t}(\mathrm{d}x)}{\int\omega_t(x)p_{\theta,t}(\mathrm{d}x)}. ω t ( x ) := ( 1 − η ˉ t ( x ) ) λ t , ν t ( d x ) := ∫ ω t ( x ) p θ , t ( d x ) ω t ( x ) p θ , t ( d x ) .
By Assumption (A4), we have η ˉ t ( x ) = η t ( x ) \bar\eta_t(x)=\eta_t(x) η ˉ t ( x ) = η t ( x ) for p θ , t p_{\theta,t} p θ , t -a.e. x x x , so the definition of ν t \nu_t ν t is unchanged. Since λ T = 0 \lambda_T=0 λ T = 0 , we have ω T ≡ 1 \omega_T\equiv1 ω T ≡ 1 and ν T = p θ , T \nu_T=p_{\theta,T} ν T = p θ , T . Under Assumption (A4),
δ λ 0 ≤ ω t ( x ) ≤ 1 for all x . \delta^{\lambda_0}\le\omega_t(x)\le1\qquad\text{for all }x. δ λ 0 ≤ ω t ( x ) ≤ 1 for all x .
Regularized proposal. Let M ~ t − 1 ( x t , d x t − 1 ) \widetilde{M}_{t-1}(x_t,dx_{t-1}) M t − 1 ( x t , d x t − 1 ) be any measurable Markov kernel (the nominal guided proposal). Fix ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) and define the regularized common proposal
M t − 1 r e g ( x t , d x t − 1 ) : = ( 1 − ρ ) M ~ t − 1 ( x t , d x t − 1 ) + ρ K t − 1 ( x t , d x t − 1 ) . (15) M^{\mathrm{reg}}_{t-1}(x_t,dx_{t-1}) := (1-\rho)\widetilde{M}_{t-1}(x_t,dx_{t-1})+\rho K_{t-1}(x_t,dx_{t-1}). \tag*{(15)} M t − 1 reg ( x t , d x t − 1 ) := ( 1 − ρ ) M t − 1 ( x t , d x t − 1 ) + ρ K t − 1 ( x t , d x t − 1 ) . (15)
Lemma 3 (Regularized common proposal). For any nominal proposal M ~ t − 1 \widetilde{M}_{t-1} M t − 1 and any ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) , the mixture kernel M t − 1 r e g M^{\mathrm{reg}}_{t-1} M t − 1 reg satisfies
K t − 1 ( x t , ⋅ ) ≪ M t − 1 r e g ( x t , ⋅ ) , d K t − 1 ( x t , ⋅ ) d M t − 1 r e g ( x t , ⋅ ) ( x t − 1 ) ≤ ρ − 1 K_{t-1}(x_t,\cdot)\ll M^{\mathrm{reg}}_{t-1}(x_t,\cdot),\qquad
\frac{dK_{t-1}(x_t,\cdot)}{dM^{\mathrm{reg}}_{t-1}(x_t,\cdot)}(x_{t-1})\leq\rho^{-1} K t − 1 ( x t , ⋅ ) ≪ M t − 1 reg ( x t , ⋅ ) , d M t − 1 reg ( x t , ⋅ ) d K t − 1 ( x t , ⋅ ) ( x t − 1 ) ≤ ρ − 1 for M t − 1 r e g ( x t , ⋅ ) M^{\mathrm{reg}}_{t-1}(x_t,\cdot) M t − 1 reg ( x t , ⋅ ) -a.e. x t − 1 x_{t-1} x t − 1 and every x t x_t x t .
Proof. By construction, M t − 1 r e g ( x t , A ) ≥ ρ K t − 1 ( x t , A ) M^{\mathrm{reg}}_{t-1}(x_t,A)\geq\rho K_{t-1}(x_t,A) M t − 1 reg ( x t , A ) ≥ ρ K t − 1 ( x t , A ) for every measurable set A A A . Absolute continuity is immediate, and the Radon–Nikodym bound follows. □
Feynman–Kac Models and Path Measures
Define the unconditional and tilted incremental weights on the common proposal. For t = 1 , … , T t=1,\ldots,T t = 1 , … , T , let
G t − 1 ∅ ( x t , x t − 1 ) : = d K t − 1 ( x t , ⋅ ) d M t − 1 r e g ( x t , ⋅ ) ( x t − 1 ) , (16) G^{\varnothing}_{t-1}(x_t,x_{t-1}):=\frac{dK_{t-1}(x_t,\cdot)}{dM^{\mathrm{reg}}_{t-1}(x_t,\cdot)}(x_{t-1}), \tag*{(16)} G t − 1 ∅ ( x t , x t − 1 ) := d M t − 1 reg ( x t , ⋅ ) d K t − 1 ( x t , ⋅ ) ( x t − 1 ) , (16)
and
G t − 1 q ( x t , x t − 1 ) : = G t − 1 ∅ ( x t , x t − 1 ) ω t − 1 ( x t − 1 ) ω t ( x t ) . (17) G^{q}_{t-1}(x_t,x_{t-1}):=G^{\varnothing}_{t-1}(x_t,x_{t-1})\frac{\omega_{t-1}(x_{t-1})}{\omega_t(x_t)}. \tag*{(17)} G t − 1 q ( x t , x t − 1 ) := G t − 1 ∅ ( x t , x t − 1 ) ω t ( x t ) ω t − 1 ( x t − 1 ) . (17)
Lemma 4 (Uniform boundedness of both potentials). Under Assumption (A4),
0 ≤ G t − 1 ∅ ( x t , x t − 1 ) ≤ ρ − 1 , 0 ≤ G t − 1 q ( x t , x t − 1 ) ≤ ρ − 1 δ − λ 0 , 0\leq G^{\varnothing}_{t-1}(x_t,x_{t-1})\leq\rho^{-1},\qquad
0\leq G^{q}_{t-1}(x_t,x_{t-1})\leq\rho^{-1}\delta^{-\lambda_0}, 0 ≤ G t − 1 ∅ ( x t , x t − 1 ) ≤ ρ − 1 , 0 ≤ G t − 1 q ( x t , x t − 1 ) ≤ ρ − 1 δ − λ 0 , for all t = 1 , … , T t=1,\ldots,T t = 1 , … , T , for all x t x_t x t , and for M t − 1 r e g ( x t , ⋅ ) M^{\mathrm{reg}}_{t-1}(x_t,\cdot) M t − 1 reg ( x t , ⋅ ) -a.e. x t − 1 x_{t-1} x t − 1 .
Proof. The bound on G ∅ G^{\varnothing} G ∅ is Lemma 3. By eq:14 , ω t − 1 ( x t − 1 ) ≤ 1 \omega_{t-1}(x_{t-1})\leq1 ω t − 1 ( x t − 1 ) ≤ 1 and ω t ( x t ) − 1 ≤ δ − λ 0 \omega_t(x_t)^{-1}\leq\delta^{-\lambda_0} ω t ( x t ) − 1 ≤ δ − λ 0 , giving G t − 1 q ≤ ρ − 1 δ − λ 0 G^{q}_{t-1}\leq\rho^{-1}\delta^{-\lambda_0} G t − 1 q ≤ ρ − 1 δ − λ 0 . □
Path measures. Define the common proposal path measure
M ( d x 0 : T ) : = p θ , T ( d x T ) ∏ s = 1 T M s − 1 r e g ( x s , d x s − 1 ) , \mathsf{M}(dx_{0:T}):=p_{\theta,T}(dx_T)\prod_{s=1}^{T}M^{\mathrm{reg}}_{s-1}(x_s,dx_{s-1}), M ( d x 0 : T ) := p θ , T ( d x T ) s = 1 ∏ T M s − 1 reg ( x s , d x s − 1 ) ,
and the unnormalized path weights
W t a ( x t : T ) : = ∏ s = t + 1 T G s − 1 a ( x s , x s − 1 ) , a ∈ { ∅ , q } , W^a_t(x_{t:T}):=\prod_{s=t+1}^{T}G^a_{s-1}(x_s,x_{s-1}),\qquad a\in\{\varnothing,q\}, W t a ( x t : T ) := s = t + 1 ∏ T G s − 1 a ( x s , x s − 1 ) , a ∈ { ∅ , q } ,
for t = 0 , … , T t=0,\ldots,T t = 0 , … , T (empty products equal 1). Define the associated unnormalized path measures
Γ t a ( d x t : T ) : = W t a ( x t : T ) p θ , T ( d x T ) ∏ s = t + 1 T M s − 1 r e g ( x s , d x s − 1 ) . \Gamma^a_t(dx_{t:T}):=W^a_t(x_{t:T})p_{\theta,T}(dx_T)\prod_{s=t+1}^{T}M^{\mathrm{reg}}_{s-1}(x_s,dx_{s-1}). Γ t a ( d x t : T ) := W t a ( x t : T ) p θ , T ( d x T ) s = t + 1 ∏ T M s − 1 reg ( x s , d x s − 1 ) .
Proposition 5 (Identification of the path models). For every t ∈ { 0 , … , T } t\in\{0,\ldots,T\} t ∈ { 0 , … , T } :
(i) the x t x_t x t -marginal of Γ t ∅ \Gamma^{\varnothing}_t Γ t ∅ is p θ , t p_{\theta,t} p θ , t ;
(ii) the x t x_t x t -marginal of Γ t q \Gamma^q_t Γ t q is ω t ( x ) p θ , t ( d x ) \omega_t(x)p_{\theta,t}(dx) ω t ( x ) p θ , t ( d x ) , so the normalized marginal is ν t \nu_t ν t .
Proof. Part (i). Cancellation of proposal densities gives
Γ t ∅ ( d x t : T ) = p θ , T ( d x T ) ∏ s = t + 1 T K s − 1 ( x s , d x s − 1 ) , \Gamma^{\varnothing}_t(dx_{t:T})=p_{\theta,T}(dx_T)\prod_{s=t+1}^{T}K_{s-1}(x_s,dx_{s-1}), Γ t ∅ ( d x t : T ) = p θ , T ( d x T ) s = t + 1 ∏ T K s − 1 ( x s , d x s − 1 ) ,
the unconditional reverse diffusion path law. Its x t x_t x t -marginal is p θ , t p_{\theta,t} p θ , t . Part (ii). Using the definition (17), the product of tilted-to-unconditional ratios telescopes:
∏ s = t + 1 T ω s − 1 ( x s − 1 ) ω s ( x s ) = ω t ( x t ) ω T ( x T ) = ω t ( x t ) , \prod_{s=t+1}^{T}\frac{\omega_{s-1}(x_{s-1})}{\omega_s(x_s)}=\frac{\omega_t(x_t)}{\omega_T(x_T)}=\omega_t(x_t), s = t + 1 ∏ T ω s ( x s ) ω s − 1 ( x s − 1 ) = ω T ( x T ) ω t ( x t ) = ω t ( x t ) ,
since ω T ≡ 1 \omega_T \equiv1 ω T ≡ 1 . Therefore W t q ( x t : T ) = W t q ( x t : T ) ω t ( x t ) W_t^q(x_{t:T})=W_t^q(x_{t:T})\omega_t(x_t) W t q ( x t : T ) = W t q ( x t : T ) ω t ( x t ) , and taking the x t x_t x t -marginal yields ω t ( x t ) p θ , t ( d x t ) \omega_t(x_t)\,p_{\theta,t}(\mathrm{d}x_t) ω t ( x t ) p θ , t ( d x t ) .
Ratio recovery. Define R t ( x ) : = ω t ( x ) − 1 R_t(x):=\omega_t(x)^{-1} R t ( x ) := ω t ( x ) − 1 . By Eq. (14), 1 ≤ R t ( x ) ≤ δ − λ 0 1\le R_t(x)\le\delta^{-\lambda_0} 1 ≤ R t ( x ) ≤ δ − λ 0 .
Lemma 6 (Ratio identity). For every bounded measurable φ \varphi φ ,
p θ , t ( φ ) = ν t ( R t φ ) ν t ( R t ) . (18) p_{\theta,t}(\varphi)=\frac{\nu_t(R_t\varphi)}{\nu_t(R_t)}. \tag*{(18)} p θ , t ( φ ) = ν t ( R t ) ν t ( R t φ ) . (18) Proof. By definition of ν t \nu_t ν t , ν t ( R t φ ) = ∫ R t ( x ) φ ( x ) ω t ( x ) p θ , t ( d x ) ∫ ω t ( x ) p θ , t ( d x ) = ∫ φ ( x ) p θ , t ( d x ) ∫ ω t ( x ) p θ , t ( d x ) \nu_t(R_t\varphi)=\frac{\int R_t(x)\varphi(x)\,\omega_t(x)\,p_{\theta,t}(\mathrm{d}x)}{\int\omega_t(x)\,p_{\theta,t}(\mathrm{d}x)}=\frac{\int\varphi(x)\,p_{\theta,t}(\mathrm{d}x)}{\int\omega_t(x)\,p_{\theta,t}(\mathrm{d}x)} ν t ( R t φ ) = ∫ ω t ( x ) p θ , t ( d x ) ∫ R t ( x ) φ ( x ) ω t ( x ) p θ , t ( d x ) = ∫ ω t ( x ) p θ , t ( d x ) ∫ φ ( x ) p θ , t ( d x ) since R t ω t ≡ 1 R_t\omega_t\equiv1 R t ω t ≡ 1 . Similarly, ν t ( R t ) = 1 / ∫ ω t d p θ , t \nu_t(R_t)=1/\int\omega_t\,\mathrm{d}p_{\theta,t} ν t ( R t ) = 1/ ∫ ω t d p θ , t . Taking the ratio gives the identity (18).
Particle Approximation and Uniform Convergence
We introduce one further regularity assumption:
(A5) Total boundedness of the class in (A1)–(A2). For the same class H t \mathcal{H}_t H t as in Assumptions (A1)–(A2), H t \mathcal{H}_t H t is uniformly bounded and totally bounded under the supremum norm ∥ ⋅ ∥ ∞ \lVert\cdot\rVert_\infty ∥ ⋅ ∥ ∞ .
Remark. Assumption (A4) implies that the true posterior satisfies η t ( x ) ∈ [ δ , 1 − δ ] \eta_t(x)\in[\delta,1-\delta] η t ( x ) ∈ [ δ , 1 − δ ] , so the Bayes logit g t ∗ ( x ) = log η t ( x ) 1 − η t ( x ) g_t^*(x)=\log\frac{\eta_t(x)}{1-\eta_t(x)} g t ∗ ( x ) = log 1 − η t ( x ) η t ( x ) is uniformly bounded. Hence, without excluding the target minimizer, one may work with a uniformly bounded hypothesis class G t \mathcal{G}_t G t containing g t ∗ g_t^* g t ∗ . For such a class, the logistic loss transforms ℓ 1 ∘ g \ell_1\circ g ℓ 1 ∘ g and ℓ 0 ∘ g \ell_0\circ g ℓ 0 ∘ g are also uniformly bounded, and it is therefore natural to impose total boundedness on the enlarged class H t \mathcal{H}_t H t used in Assumptions (A1)–(A2).
SMC convergence for the tilted model. Consider an SMC sampler with multinomial resampling targeting the Feynman–Kac model with proposal { M t − 1 r e g } \{M_{t-1}^{\mathrm{reg}}\} { M t − 1 reg } and potentials { G t − 1 q } \{G_{t-1}^q\} { G t − 1 q } . Let ν t M : = ∑ j = 1 M w ˉ q , t j δ X t j \nu_t^M:=\sum_{j=1}^M\bar w_{q,t}^j\delta_{X_t^j} ν t M := ∑ j = 1 M w ˉ q , t j δ X t j denote the normalized particle approximation of ν t \nu_t ν t . Since the potentials are uniformly bounded (Lemma 4), the standard strong law of large numbers (LLN) for particle filters with multinomial resampling [11 Prop. 11.4] gives, for each fixed t t t and each bounded measurable φ \varphi φ ,
ν t M ( φ ) → a . s . ν t ( φ ) . \nu_t^M(\varphi)\xrightarrow{\mathrm{a.s.}}\nu_t(\varphi). ν t M ( φ ) a.s. ν t ( φ ) .
To verify Assumption (A2), we require convergence that is uniform over a class of test functions. We therefore strengthen the above pointwise convergence to a uniform one over H t \mathcal{H}_t H t .
Lemma 7 (Uniform SMC convergence over a totally bounded class). Under Assumption (A5),
sup h ∈ H t ∣ ν t M ( h ) − ν t ( h ) ∣ → a . s . 0. \sup_{h\in\mathcal{H}_t}\left|\nu_t^M(h)-\nu_t(h)\right|\xrightarrow{\mathrm{a.s.}}0. h ∈ H t sup ν t M ( h ) − ν t ( h ) a.s. 0. Proof. Let ε > 0 \varepsilon>0 ε > 0 and take a finite ε \varepsilon ε -net { h 1 , … , h K } ⊂ H t \{h_1,\ldots,h_K\}\subset\mathcal{H}_t { h 1 , … , h K } ⊂ H t in ∥ ⋅ ∥ ∞ \lVert\cdot\rVert_\infty ∥ ⋅ ∥ ∞ . For each h ∈ H t h\in\mathcal{H}_t h ∈ H t , choose h i h_i h i with ∥ h − h i ∥ ∞ ≤ ε \lVert h-h_i\rVert_\infty\le\varepsilon ∥ h − h i ∥ ∞ ≤ ε . Then
sup h ∈ H t ∣ ν t M ( h ) − ν t ( h ) ∣ ≤ max 1 ≤ i ≤ K ∣ ν t M ( h i ) − ν t ( h i ) ∣ + 2 ε . \sup_{h\in\mathcal{H}_t}\left|\nu_t^M(h)-\nu_t(h)\right|\le\max_{1\le i\le K}\left|\nu_t^M(h_i)-\nu_t(h_i)\right|+2\varepsilon. h ∈ H t sup ν t M ( h ) − ν t ( h ) ≤ 1 ≤ i ≤ K max ν t M ( h i ) − ν t ( h i ) + 2 ε . Each term converges to zero almost surely by the SMC LLN. Since the maximum is over finitely many i i i , it also converges to zero almost surely. Letting M → ∞ M\to\infty M → ∞ and then ε ↓ 0 \varepsilon\downarrow0 ε ↓ 0 yields the claim.
Recovering p θ , t p_{\theta,t} p θ , t via ratio transform. Define the particle-based estimator
P ^ t M ( φ ) : = ν t M ( R t φ ) ν t M ( R t ) . \widehat{P}^{M}_{t}(\varphi) := \frac{\nu^{M}_{t}(R_{t}\varphi)}{\nu^{M}_{t}(R_{t})}. P t M ( φ ) := ν t M ( R t ) ν t M ( R t φ ) .
Theorem 8 (SMC verification of weighted uniform convergence). Assume (A4) and (A5). Then for each fixed t t t ,
sup h ∈ H t ∣ P ^ t M ( h ) − p θ , t ( h ) ∣ → a . s . 0. \sup_{h\in\mathcal{H}_{t}}\left|\widehat{P}^{M}_{t}(h)-p_{\theta,t}(h)\right|\xrightarrow{\mathrm{a.s.}}0. h ∈ H t sup P t M ( h ) − p θ , t ( h ) a.s. 0. In particular, defining
w ~ t , j M : = w ‾ q , t j R t ( X t j ) ∑ k = 1 M w ‾ q , t k R t ( X t k ) , \widetilde{w}^{M}_{t,j}:=\frac{\overline{w}^{j}_{q,t}R_{t}(X^{j}_{t})}{\sum_{k=1}^{M}\overline{w}^{k}_{q,t}R_{t}(X^{k}_{t})}, w t , j M := ∑ k = 1 M w q , t k R t ( X t k ) w q , t j R t ( X t j ) , we have
P ^ t M ( h ) = ∑ j = 1 M w ~ t , j M h ( X t j ) , \widehat{P}^{M}_{t}(h)=\sum_{j=1}^{M}\widetilde{w}^{M}_{t,j}h(X^{j}_{t}), P t M ( h ) = j = 1 ∑ M w t , j M h ( X t j ) , and hence Assumption (A2) holds for the weighted sample { ( X t j , w ~ t , j M ) } j = 1 M \{(X^{j}_{t},\widetilde{w}^{M}_{t,j})\}_{j=1}^{M} {( X t j , w t , j M ) } j = 1 M and the class H t \mathcal{H}_{t} H t .
Proof. Fix t t t . By the SMC LLN, for every bounded measurable φ \varphi φ ,
ν t M ( φ ) → a . s . ν t ( φ ) . \nu^{M}_{t}(\varphi)\xrightarrow{\mathrm{a.s.}}\nu_{t}(\varphi). ν t M ( φ ) a.s. ν t ( φ ) .
In particular,
ν t M ( R t ) → a . s . ν t ( R t ) . \nu^{M}_{t}(R_{t})\xrightarrow{\mathrm{a.s.}}\nu_{t}(R_{t}). ν t M ( R t ) a.s. ν t ( R t ) .
Since R t ≥ 1 R_{t}\geq1 R t ≥ 1 by Assumption (A4) and Eq. (14), we have ν t ( R t ) ≥ 1 \nu_{t}(R_{t})\geq1 ν t ( R t ) ≥ 1 . Hence, on an event of probability one, there exists M 0 M_{0} M 0 such that for all M ≥ M 0 M\geq M_{0} M ≥ M 0 ,
ν t M ( R t ) ≥ 1 2 . \nu^{M}_{t}(R_{t})\geq\frac{1}{2}. ν t M ( R t ) ≥ 2 1 .
Next, since R t R_{t} R t is bounded and H t \mathcal{H}_{t} H t is totally bounded, the class R t H t : = { R t h : h ∈ H t } R_{t}\mathcal{H}_{t}:=\{R_{t}h:h\in\mathcal{H}_{t}\} R t H t := { R t h : h ∈ H t } is uniformly bounded and totally bounded. An ε \varepsilon ε -net argument identical to that in Lemma 7 yields
sup h ∈ H t ∣ ν t M ( R t h ) − ν t ( R t h ) ∣ → a . s . 0. \sup_{h\in\mathcal{H}_{t}}\left|\nu^{M}_{t}(R_{t}h)-\nu_{t}(R_{t}h)\right|\xrightarrow{\mathrm{a.s.}}0. h ∈ H t sup ν t M ( R t h ) − ν t ( R t h ) a.s. 0.
Using the ratio identity
p θ , t ( h ) = ν t ( R t h ) ν t ( R t ) , p_{\theta,t}(h)=\frac{\nu_{t}(R_{t}h)}{\nu_{t}(R_{t})}, p θ , t ( h ) = ν t ( R t ) ν t ( R t h ) ,
we write
P ^ t M ( h ) − p θ , t ( h ) = ν t M ( R t h ) − ν t ( R t h ) ν t M ( R t ) + ν t ( R t h ) ( 1 ν t M ( R t ) − 1 ν t ( R t ) ) . \widehat{P}^{M}_{t}(h)-p_{\theta,t}(h)=\frac{\nu^{M}_{t}(R_{t}h)-\nu_{t}(R_{t}h)}{\nu^{M}_{t}(R_{t})}+\nu_{t}(R_{t}h)\left(\frac{1}{\nu^{M}_{t}(R_{t})}-\frac{1}{\nu_{t}(R_{t})}\right). P t M ( h ) − p θ , t ( h ) = ν t M ( R t ) ν t M ( R t h ) − ν t ( R t h ) + ν t ( R t h ) ( ν t M ( R t ) 1 − ν t ( R t ) 1 ) .
Therefore, for all sufficiently large M M M ,
sup h ∈ H t ∣ P ^ t M ( h ) − p θ , t ( h ) ∣ ≤ 2 sup h ∈ H t ∣ ν t M ( R t h ) − ν t ( R t h ) ∣ + sup h ∈ H t ∣ ν t ( R t h ) ∣ ∣ 1 ν t M ( R t ) − 1 ν t ( R t ) ∣ . \sup_{h\in\mathcal{H}_{t}}\left|\widehat{P}^{M}_{t}(h)-p_{\theta,t}(h)\right|
\leq2\sup_{h\in\mathcal{H}_{t}}\left|\nu^{M}_{t}(R_{t}h)-\nu_{t}(R_{t}h)\right|
+\sup_{h\in\mathcal{H}_{t}}|\nu_{t}(R_{t}h)|\left|\frac{1}{\nu^{M}_{t}(R_{t})}-\frac{1}{\nu_{t}(R_{t})}\right|. h ∈ H t sup P t M ( h ) − p θ , t ( h ) ≤ 2 h ∈ H t sup ν t M ( R t h ) − ν t ( R t h ) + h ∈ H t sup ∣ ν t ( R t h ) ∣ ν t M ( R t ) 1 − ν t ( R t ) 1 .
Since
sup h ∈ H t ∣ ν t ( R t h ) ∣ ≤ ∥ R t ∥ ∞ sup h ∈ H t ∥ h ∥ ∞ < ∞ , \sup_{h\in\mathcal{H}_{t}}|\nu_{t}(R_{t}h)|\leq\|R_{t}\|_{\infty}\sup_{h\in\mathcal{H}_{t}}\|h\|_{\infty}<\infty, h ∈ H t sup ∣ ν t ( R t h ) ∣ ≤ ∥ R t ∥ ∞ h ∈ H t sup ∥ h ∥ ∞ < ∞ ,
the first term converges to zero almost surely, and the second term also converges to zero almost surely because ν t M ( R t ) → ν t ( R t ) > 0 \nu^{M}_{t}(R_{t})\to\nu_{t}(R_{t})>0 ν t M ( R t ) → ν t ( R t ) > 0 . This proves the result. □ \square □
Combining Theorems 2 and 8, we obtain the following.
Corollary 9 (Fixed-time classifier consistency). Under Assumptions (A1) and (A3)–(A5), and assuming that a measurable empirical minimizer exists for each ( M , N ) (M,N) ( M , N ) , for each fixed t t t and along any sequence with M , N → ∞ M,N\to\infty M , N → ∞ ,
∥ f ^ t , M , N − η t ∥ L 1 ( P t ) ⟶ 0 a . s . \left\|\widehat{f}_{t,M,N}-\eta_{t}\right\|_{L^{1}(P_{t})}\longrightarrow0
\qquad\mathrm{a.s.} f t , M , N − η t L 1 ( P t ) ⟶ 0 a.s.
Proof. By Theorem 8 , the weighted empirical measure constructed from { ( X t j , w ~ t , j M ) } j = 1 M \{(X_t^j,\widetilde{w}_{t,j}^{M})\}_{j=1}^{M} {( X t j , w t , j M ) } j = 1 M satisfies Assumption (A2). The result then follows from Theorem 2 under Assumptions (A1) and (A3).
Lemma 10. (Asymptotic exactness under oracle classifiers). Assume (A4), and suppose the classifiers are oracle: f t = η t f_t=\eta_t f t = η t for all t t t . Then the SMC algorithm with potentials { G t − 1 q } \{G_{t-1}^{q}\} { G t − 1 q } and multinomial resampling satisfies, for every bounded measurable φ \varphi φ ,
ν 0 M ( φ ) → a . s . ν 0 ( φ ) , M → ∞ . \nu_0^M(\varphi)\xrightarrow{\mathrm{a.s.}}\nu_0(\varphi),\qquad M\to\infty. ν 0 M ( φ ) a.s. ν 0 ( φ ) , M → ∞.
Proof. Under oracle classifiers, the potentials { G t − 1 q } \{G_{t-1}^{q}\} { G t − 1 q } are deterministic and, by Lemma 4 , uniformly bounded. Therefore the standard strong law for SMC with multinomial resampling [11 Prop. 11.4] applies and yields the claim.
Asymptotic Exactness of the Reference-Based Instantiation with Learned Classifiers
We now combine the consistency result of Appendix § 18 .§ 1 with the SMC approximation of Appendix § 18 .§ 2 to establish asymptotic exactness of the reference-based instantiation of Algorithm 1 when the classifiers are learned during sampling. The proof-oriented variant introduced at the start of this appendix renders the learned classifiers exogenous, so the two results apply without modification.
For each t = 0 , … , T t=0,\ldots,T t = 0 , … , T , let f ^ t M ′ , N \widehat{f}_t^{M',N} f t M ′ , N denote the classifier trained at time t t t from the auxiliary system, using M ′ M' M ′ unlabeled particles and N N N samples from p θ , t ( ⋅ ∣ c ) p_{\theta,t}(\cdot\mid c) p θ , t ( ⋅ ∣ c ) . Define its clipped version by
f ‾ t M ′ , N ( x ) : = min { 1 − δ , max ( f ^ t M ′ , N ( x ) , δ ) } , \overline{f}_t^{M',N}(x):=\min\{1-\delta,\max(\widehat{f}_t^{M',N}(x),\delta)\}, f t M ′ , N ( x ) := min { 1 − δ , max ( f t M ′ , N ( x ) , δ )} ,
where δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) is the constant in Assumption (A4), and set
ω ^ t M ′ , N ( x ) : = ( 1 − f ‾ t M ′ , N ( x ) ) λ t . \widehat{\omega}_t^{M',N}(x):=(1-\overline{f}_t^{M',N}(x))^{\lambda_t}. ω t M ′ , N ( x ) := ( 1 − f t M ′ , N ( x ) ) λ t .
The clipping yields δ ≤ f ‾ t M ′ , N ( x ) ≤ 1 − δ \delta\le\overline{f}_t^{M',N}(x)\le1-\delta δ ≤ f t M ′ , N ( x ) ≤ 1 − δ for all x x x , and hence δ λ 0 ≤ ω ^ t M ′ , N ( x ) ≤ 1 \delta^{\lambda_0}\le\widehat{\omega}_t^{M',N}(x)\le1 δ λ 0 ≤ ω t M ′ , N ( x ) ≤ 1 .
The auxiliary system enters the analysis only through Assumption (A2), namely as a weighted approximation of p θ , t p_{\theta,t} p θ , t . Two constructions suffice. The first is an auxiliary particle system run with the regularized Feynman–Kac construction of Appendix § 18 .§ 2 , independent of the main one. The second is direct simulation of the unconditional diffusion with unit weights. Both yield a consistent approximation of p θ , t p_{\theta,t} p θ , t and satisfy Assumption (A2).
We emphasize that the specific form of the proposal kernel is not essential for the asymptotic argument. What matters is that the associated importance weights define the correct Feynman–Kac change of measure and remain uniformly bounded. Accordingly, we allow an arbitrary measurable proposal kernel M ^ t − 1 M ′ ( x t , ⋅ ) \widehat{M}_{t-1}^{M'}(x_t,\cdot) M t − 1 M ′ ( x t , ⋅ ) and regularize it by
M ^ t − 1 M ′ , N , r e g ( x t , d x t − 1 ) : = ( 1 − ρ ) M ^ t − 1 M ′ ( x t , d x t − 1 ) + ρ K t − 1 ( x t , d x t − 1 ) , \widehat{M}_{t-1}^{M',N,\mathrm{reg}}(x_t,dx_{t-1}):=(1-\rho)\widehat{M}_{t-1}^{M'}(x_t,dx_{t-1})+\rho K_{t-1}(x_t,dx_{t-1}), M t − 1 M ′ , N , reg ( x t , d x t − 1 ) := ( 1 − ρ ) M t − 1 M ′ ( x t , d x t − 1 ) + ρ K t − 1 ( x t , d x t − 1 ) ,
where K t − 1 K_{t-1} K t − 1 is the reference reverse kernel from Appendix § 18 .§ 2 and ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) is fixed. As in that section, this mixture guarantees
K t − 1 ( x t , ⋅ ) ≪ M ^ t − 1 M ′ , N , r e g ( x t , ⋅ ) , d K t − 1 ( x t , ⋅ ) d M ^ t − 1 M ′ , N , r e g ( x t , ⋅ ) ( x t − 1 ) ≤ ρ − 1 , K_{t-1}(x_t,\cdot)\ll\widehat{M}_{t-1}^{M',N,\mathrm{reg}}(x_t,\cdot),\qquad
\frac{dK_{t-1}(x_t,\cdot)}{d\widehat{M}_{t-1}^{M',N,\mathrm{reg}}(x_t,\cdot)}(x_{t-1})\le\rho^{-1}, K t − 1 ( x t , ⋅ ) ≪ M t − 1 M ′ , N , reg ( x t , ⋅ ) , d M t − 1 M ′ , N , reg ( x t , ⋅ ) d K t − 1 ( x t , ⋅ ) ( x t − 1 ) ≤ ρ − 1 ,
so the Radon–Nikodym component of the incremental weight is uniformly bounded. Thus, the role of the proposal in this subsection is purely instrumental: any regularized proposal for which the corresponding potentials are bounded is admissible.
Given the learned classifiers, define the plug-in incremental weights by
G ^ t − 1 q , M ′ , N ( x t , x t − 1 ) : = d K t − 1 ( x t , ⋅ ) d M ^ t − 1 M ′ , N , r e g ( x t , ⋅ ) ( x t − 1 ) ω ^ t − 1 M ′ , N ( x t − 1 ) ω ^ t M ′ , N ( x t ) . (19) \widehat{G}_{t-1}^{q,M',N}(x_t,x_{t-1}):=
\frac{dK_{t-1}(x_t,\cdot)}{d\widehat{M}_{t-1}^{M',N,\mathrm{reg}}(x_t,\cdot)}(x_{t-1})
\frac{\widehat{\omega}_{t-1}^{M',N}(x_{t-1})}{\widehat{\omega}_{t}^{M',N}(x_t)}. \tag*{(19)} G t − 1 q , M ′ , N ( x t , x t − 1 ) := d M t − 1 M ′ , N , reg ( x t , ⋅ ) d K t − 1 ( x t , ⋅ ) ( x t − 1 ) ω t M ′ , N ( x t ) ω t − 1 M ′ , N ( x t − 1 ) . (19)
G ^ t − 1 0 , M ′ , N ( x t , x t − 1 ) : = d K t − 1 ( x t , ⋅ ) d M ^ t − 1 M ′ , N , r e g ( x t , ⋅ ) ( x t − 1 ) . \widehat{G}_{t-1}^{0,M',N}(x_t,x_{t-1}):=
\frac{dK_{t-1}(x_t,\cdot)}{d\widehat{M}_{t-1}^{M',N,\mathrm{reg}}(x_t,\cdot)}(x_{t-1}). G t − 1 0 , M ′ , N ( x t , x t − 1 ) := d M t − 1 M ′ , N , reg ( x t , ⋅ ) d K t − 1 ( x t , ⋅ ) ( x t − 1 ) .
The second family tracks the unconditional model, while the first tracks the tilted model obtained by replacing the oracle factor ( 1 − η t ) λ t (1-\eta_t)^{\lambda_t} ( 1 − η t ) λ t with its learned plug-in counterpart. The analysis therefore depends only on the behavior of the weights in Eq. (19) , not on any particular choice of proposal mechanism.
Finally, define the target density at terminal time by
ν 0 ( d x ) : = ( 1 − η 0 ( x ) ) λ 0 p θ , 0 ( d x ) ∫ ( 1 − η 0 ( x ) ) λ 0 p θ , 0 ( d x ) . \nu_0(dx) := \frac{(1-\eta_0(x))^{\lambda_0}p_{\theta,0}(dx)}{\int(1-\eta_0(x))^{\lambda_0}p_{\theta,0}(dx)}. ν 0 ( d x ) := ∫ ( 1 − η 0 ( x ) ) λ 0 p θ , 0 ( d x ) ( 1 − η 0 ( x ) ) λ 0 p θ , 0 ( d x ) .
Since the fixed-time consistency result applies at each t t t , in particular at t = 0 t=0 t = 0 , the asymptotic behavior of the algorithm is determined by whether the SMC procedure correctly tracks the corresponding Feynman–Kac model. Under the above construction, this is ensured by the boundedness of the incremental weights together with the standard SMC convergence results.
Theorem 11. (Asymptotic exactness of the reference-based instantiation in the analysis variant.) Assume (A1) and (A3)–(A5). Consider the proof-oriented variant described above, in which
for each t = 0 , … , T t=0,\ldots,T t = 0 , … , T , the classifier f ^ t M ′ , N \widehat{f}_t^{M',N} f t M ′ , N is trained from an auxiliary sample independent of the particle system used in the final SMC approximation; and
the final particle system uses the regularized proposal M ^ t − 1 M ′ , N , r e g \widehat{M}_{t-1}^{M',N,\mathrm{reg}} M t − 1 M ′ , N , reg and plug-in potentials { G ^ t − 1 q , M ′ , N } t = 1 T \{\widehat{G}_{t-1}^{q,M',N}\}_{t=1}^{T} { G t − 1 q , M ′ , N } t = 1 T defined in Eq. (19) .
Then, for every bounded measurable φ : X 0 → R \varphi:\mathcal{X}_0\to\mathbb{R} φ : X 0 → R ,
lim M ′ , N → ∞ lim M → ∞ ν ^ 0 M ∣ M ′ , N ( φ ) = ν 0 ( φ ) a.s. \lim_{M',N\to\infty}\lim_{M\to\infty}\widehat{\nu}_0^{M\mid M',N}(\varphi)=\nu_0(\varphi) \qquad\text{a.s.} M ′ , N → ∞ lim M → ∞ lim ν 0 M ∣ M ′ , N ( φ ) = ν 0 ( φ ) a.s. This is the formal version of Theorem 1 for the reference-based instantiation of § 3.2 .
Proof. We separate the total error into: (I) the SMC approximation error for a fixed target, and (II) the error induced by replacing the true target with a plug-in estimate. For fixed ( M ′ , N ) (M',N) ( M ′ , N ) , let
ν ~ 0 M ′ , N ( d x ) : = ω ^ 0 M ′ , N ( x ) p θ , 0 ( d x ) ∫ ω ^ 0 M ′ , N ( x ) p θ , 0 ( d x ) \widetilde{\nu}_0^{M',N}(dx):=\frac{\widehat{\omega}_0^{M',N}(x)p_{\theta,0}(dx)}{\int\widehat{\omega}_0^{M',N}(x)p_{\theta,0}(dx)} ν 0 M ′ , N ( d x ) := ∫ ω 0 M ′ , N ( x ) p θ , 0 ( d x ) ω 0 M ′ , N ( x ) p θ , 0 ( d x )
denote the terminal target induced by the learned classifiers, and let ν ^ 0 M ∣ M ′ , N \widehat{\nu}_0^{M\mid M',N} ν 0 M ∣ M ′ , N denote the weighted empirical output of the main particle system with M M M particles constructed using { f ^ t M ′ , N } t = 0 T \{\widehat{f}_t^{M',N}\}_{t=0}^{T} { f t M ′ , N } t = 0 T . We decompose the error as
ν ^ 0 M ∣ M ′ , N ( φ ) − ν 0 ( φ ) = ( ν ^ 0 M ∣ M ′ , N ( φ ) − ν ~ 0 M ′ , N ( φ ) ) ⏟ (I): SMC error + ( ν ~ 0 M ′ , N ( φ ) − ν 0 ( φ ) ) ⏟ (II): plug-in target error . (20) \widehat{\nu}_0^{M\mid M',N}(\varphi)-\nu_0(\varphi)
=
\underbrace{\left(\widehat{\nu}_0^{M\mid M',N}(\varphi)-\widetilde{\nu}_0^{M',N}(\varphi)\right)}_{\text{(I): SMC error}}
+
\underbrace{\left(\widetilde{\nu}_0^{M',N}(\varphi)-\nu_0(\varphi)\right)}_{\text{(II): plug-in target error}}. \tag*{(20)} ν 0 M ∣ M ′ , N ( φ ) − ν 0 ( φ ) = (I): SMC error ( ν 0 M ∣ M ′ , N ( φ ) − ν 0 M ′ , N ( φ ) ) + (II): plug-in target error ( ν 0 M ′ , N ( φ ) − ν 0 ( φ ) ) . (20)
Step 1: SMC error for the main particle system. Fix ( M ′ , N ) (M',N) ( M ′ , N ) . Since the classifiers are trained from an auxiliary sample independent of the main particle system, the learned quantities
{ ω ^ t M ′ , N , M ^ t − 1 M ′ , N , r e g , G ^ t − 1 q , M ′ , N , G ^ t − 1 ∅ , M ′ , N } \left\{\widehat{\omega}_t^{M',N},\ \widehat{M}_{t-1}^{M',N,\mathrm{reg}},\ \widehat{G}_{t-1}^{q,M',N},\ \widehat{G}_{t-1}^{\varnothing,M',N}\right\} { ω t M ′ , N , M t − 1 M ′ , N , reg , G t − 1 q , M ′ , N , G t − 1 ∅ , M ′ , N }
are external to the main SMC approximation. Therefore, conditional on the auxiliary sample, the main particle system is an ordinary Feynman–Kac model with deterministic proposal kernels and deterministic potentials.
By Lemma 3 , 0 ≤ G ^ t − 1 ∅ , M ′ , N ≤ ρ − 1 0\leq\widehat{G}_{t-1}^{\varnothing,M',N}\leq\rho^{-1} 0 ≤ G t − 1 ∅ , M ′ , N ≤ ρ − 1 . Moreover, by construction of the clipped classifier used to define ω ^ t M ′ , N \widehat{\omega}_t^{M',N} ω t M ′ , N , we have δ λ 0 ≤ ω ^ t M ′ , N ( x ) ≤ 1 \delta^{\lambda_0}\leq\widehat{\omega}_t^{M',N}(x)\leq1 δ λ 0 ≤ ω t M ′ , N ( x ) ≤ 1 for all t , x t,x t , x . Therefore
0 ≤ G ^ t − 1 q , M ′ , N ( x t , x t − 1 ) ≤ ρ − 1 δ − λ 0 . 0\leq\widehat{G}_{t-1}^{q,M',N}(x_t,x_{t-1})\leq\rho^{-1}\delta^{-\lambda_0}. 0 ≤ G t − 1 q , M ′ , N ( x t , x t − 1 ) ≤ ρ − 1 δ − λ 0 .
Thus the standard strong law for SMC with multinomial resampling [11 Prop. 11.4] applies to the main particle system for this fixed environment, and yields
ν ^ 0 M ∣ M ′ , N ( φ ) − ν ~ 0 M ′ , N ( φ ) → 0 a.s. as M → ∞ , \widehat{\nu}_0^{M\mid M',N}(\varphi)-\widetilde{\nu}_0^{M',N}(\varphi)\to0
\qquad\text{a.s. as }M\to\infty, ν 0 M ∣ M ′ , N ( φ ) − ν 0 M ′ , N ( φ ) → 0 a.s. as M → ∞ ,
conditionally on the auxiliary sample. Since this holds for almost every auxiliary realization, it also holds jointly almost surely.
Step 2: Identification of the induced target. Applying the same telescoping argument as in Proposition 5 (ii) to the learned tempering factors,
∏ s = 1 T ω ^ s − 1 M ′ , N ( x s − 1 ) ω ^ s M ′ , N ( x s ) = ω ^ 0 M ′ , N ( x 0 ) ω ^ T M ′ , N ( x T ) = ω ^ 0 M ′ , N ( x 0 ) , \prod_{s=1}^{T}\frac{\widehat{\omega}_{s-1}^{M',N}(x_{s-1})}{\widehat{\omega}_{s}^{M',N}(x_s)}=\frac{\widehat{\omega}_{0}^{M',N}(x_0)}{\widehat{\omega}_{T}^{M',N}(x_T)}=\widehat{\omega}_{0}^{M',N}(x_0), s = 1 ∏ T ω s M ′ , N ( x s ) ω s − 1 M ′ , N ( x s − 1 ) = ω T M ′ , N ( x T ) ω 0 M ′ , N ( x 0 ) = ω 0 M ′ , N ( x 0 ) ,
since λ T = 0 \lambda_T=0 λ T = 0 implies ω ^ T M ′ , N ≡ 1 \widehat{\omega}_{T}^{M',N}\equiv1 ω T M ′ , N ≡ 1 . Therefore the terminal marginal induced by the learned Feynman–Kac model is exactly ν ~ 0 M ′ , N \widetilde{\nu}_{0}^{M',N} ν 0 M ′ , N . In particular, the induced terminal target depends only on ω ^ 0 M ′ , N \widehat{\omega}_{0}^{M',N} ω 0 M ′ , N although the intermediate classifiers may still affect the finite-particle behavior through the proposal and the incremental-weight decomposition.
Step 3: Plug-in convergence of the induced target. By construction of the auxiliary sample, Assumption (A2) holds at t = 0 t=0 t = 0 . Therefore Corollary 9 applies at t = 0 t=0 t = 0 , and yields
∥ f ^ 0 M ′ , N − η 0 ∥ L 1 ( p θ , 0 ) → 0 a.s. as M ′ , N → ∞ . \left\|\widehat{f}_{0}^{M',N}-\eta_0\right\|_{L^1(p_{\theta,0})}\to0 \qquad\text{a.s. as } M',N\to\infty. f 0 M ′ , N − η 0 L 1 ( p θ , 0 ) → 0 a.s. as M ′ , N → ∞.
Let
clip ( u ) : = min { 1 − δ , max ( u , δ ) } , u ∈ R . \operatorname{clip}(u):=\min\{1-\delta,\max(u,\delta)\},\qquad u\in\mathbb{R}. clip ( u ) := min { 1 − δ , max ( u , δ )} , u ∈ R .
Then clip ( ⋅ ) \operatorname{clip}(\cdot) clip ( ⋅ ) is 1-Lipschitz, and by Assumption (A4) we have clip ( η 0 ) = η 0 \operatorname{clip}(\eta_0)=\eta_0 clip ( η 0 ) = η 0 a.s.
Since f ~ 0 M ′ , N = clip ( f ^ 0 M ′ , N ) \widetilde{f}_{0}^{M',N}=\operatorname{clip}(\widehat{f}_{0}^{M',N}) f 0 M ′ , N = clip ( f 0 M ′ , N ) , it follows that
∥ f ~ 0 M ′ , N − η 0 ∥ L 1 ( p θ , 0 ) ≤ ∥ f ^ 0 M ′ , N − η 0 ∥ L 1 ( p θ , 0 ) → 0 a.s. \left\|\widetilde{f}_{0}^{M',N}-\eta_0\right\|_{L^1(p_{\theta,0})}\leq\left\|\widehat{f}_{0}^{M',N}-\eta_0\right\|_{L^1(p_{\theta,0})}\to0 \qquad\text{a.s.} f 0 M ′ , N − η 0 L 1 ( p θ , 0 ) ≤ f 0 M ′ , N − η 0 L 1 ( p θ , 0 ) → 0 a.s.
Now the map u ↦ ( 1 − u ) λ 0 u\mapsto(1-u)^{\lambda_0} u ↦ ( 1 − u ) λ 0 is Lipschitz on the compact interval [ δ , 1 − δ ] [\delta,1-\delta] [ δ , 1 − δ ] , so
∥ ω ^ 0 M ′ , N − ω 0 ∥ L 1 ( p θ , 0 ) → 0 a.s. as M ′ , N → ∞ . \left\|\widehat{\omega}_{0}^{M',N}-\omega_0\right\|_{L^1(p_{\theta,0})}\to0 \qquad\text{a.s. as } M',N\to\infty. ω 0 M ′ , N − ω 0 L 1 ( p θ , 0 ) → 0 a.s. as M ′ , N → ∞.
Since ω ^ 0 M ′ , N ( x ) ≥ δ λ 0 \widehat{\omega}_{0}^{M',N}(x)\geq\delta^{\lambda_0} ω 0 M ′ , N ( x ) ≥ δ λ 0 and ω 0 ( x ) ≥ δ λ 0 \omega_0(x)\geq\delta^{\lambda_0} ω 0 ( x ) ≥ δ λ 0 for all x x x , the corresponding normalizing constants are bounded away from zero. Therefore, for every bounded measurable φ \varphi φ ,
ν ~ 0 M ′ , N ( φ ) → ν 0 ( φ ) a.s. as M ′ , N → ∞ . \widetilde{\nu}_{0}^{M',N}(\varphi)\to\nu_0(\varphi)\qquad\text{a.s. as } M',N\to\infty. ν 0 M ′ , N ( φ ) → ν 0 ( φ ) a.s. as M ′ , N → ∞.
This shows that term (II) in Eq. (20) vanishes.
Step 4: Conclusion. For each fixed ( M ′ , N ) (M',N) ( M ′ , N ) , Step 1 gives ν ^ 0 M ∣ M ′ , N ( φ ) − ν ~ 0 M ′ , N ( φ ) → 0 \widehat{\nu}_{0}^{M\mid M',N}(\varphi)-\widetilde{\nu}_{0}^{M',N}(\varphi)\to0 ν 0 M ∣ M ′ , N ( φ ) − ν 0 M ′ , N ( φ ) → 0 a.s. as M → ∞ M\to\infty M → ∞ . Step 3 yields ν ~ 0 M ′ , N ( φ ) → ν 0 ( φ ) \widetilde{\nu}_{0}^{M',N}(\varphi)\to\nu_0(\varphi) ν 0 M ′ , N ( φ ) → ν 0 ( φ ) a.s. as M ′ , N → ∞ M',N\to\infty M ′ , N → ∞ . Hence,
lim M ′ , N → ∞ lim M → ∞ ν ^ 0 M ∣ M ′ , N ( φ ) = ν 0 ( φ ) a.s., \lim_{M',N\to\infty}\lim_{M\to\infty}\widehat{\nu}_{0}^{M\mid M',N}(\varphi)=\nu_0(\varphi)\qquad\text{a.s.,} M ′ , N → ∞ lim M → ∞ lim ν 0 M ∣ M ′ , N ( φ ) = ν 0 ( φ ) a.s.,
which proves the claim. □ \square □
Relation to DAS and conceptual interpretation. Theorem 11 is closely related to the asymptotic exactness result for DAS [31 ] , but applies in a setting where the reward is replaced by a learned, data-dependent discriminator.
(i) Learned, time-dependent potentials. In DAS, the reward R R R is fixed and known; here, the potentials depend on learned classifiers f ^ t M ′ , N \widehat{f}_{t}^{M',N} f t M ′ , N that are both data-dependent and time-dependent. Despite this additional randomness, asymptotic exactness is preserved.
(ii) Dual-weight tracking and ratio recovery. The algorithm tracks two sets of weights ( w q (w_q ( w q and w ∅ ) w_\varnothing) w ∅ ) on the same proposal. The w ∅ w_\varnothing w ∅ weights recover the unconditional marginal p θ , t p_{\theta,t} p θ , t via a ratio transform that cancels the tilting factor algebraically, regardless of classifier accuracy.
(iii) Cancellation of intermediate errors. The telescoping structure ensures that the terminal marginal depends only on ω ^ 0 \widehat{\omega}_0 ω 0 , not on intermediate classifiers. Combined with the ratio recovery in (ii), in the particle limit, classifier errors at intermediate times t > 0 t>0 t > 0 do not affect the unlabeled sample quality nor the terminal output density.
Extension to the Score-Based Instantiation: Dual Weighted Particle Systems
We now treat the score-based instantiation, in which the positive density P t + = p θ , t ( ⋅ ∣ c ) P_t^+ = p_{\theta,t}(\cdot\mid c) P t + = p θ , t ( ⋅ ∣ c ) is approximated by a second weighted particle system on the same proposal trajectories (cf. outline at the start of this appendix). Throughout this subsection, we retain all notation from Appendix § 18 .§ 2 and Appendix C.3.
Conditional reverse kernel. For t = 1 , … , T t = 1,\ldots,T t = 1 , … , T , define K t − 1 c ( x t , d x t − 1 ) : = p θ ( d x t − 1 ∣ x t , c ) K_{t-1}^c(x_t, \mathrm{d}x_{t-1}) := p_\theta(\mathrm{d}x_{t-1} \mid x_t,c) K t − 1 c ( x t , d x t − 1 ) := p θ ( d x t − 1 ∣ x t , c ) . Since both conditional and unconditional diffusion marginals share the same Gaussian limit, we take p θ , T ( ⋅ ∣ c ) = p θ , T p_{\theta,T}(\cdot\mid c) = p_{\theta,T} p θ , T ( ⋅ ∣ c ) = p θ , T .
Three-way common proposal. Let M ~ t − 1 \widetilde{M}_{t-1} M t − 1 be any nominal guided proposal. For ρ ∅ , ρ c ∈ ( 0 , 1 ) \rho_{\emptyset}, \rho_c \in(0,1) ρ ∅ , ρ c ∈ ( 0 , 1 ) with ρ ∅ + ρ c < 1 \rho_{\emptyset} + \rho_c < 1 ρ ∅ + ρ c < 1 , define
M t − 1 a l g 2 ( x t , d x t − 1 ) : = ( 1 − ρ ∅ − ρ c ) M ~ t − 1 ( x t , d x t − 1 ) + ρ ∅ K t − 1 ( x t , d x t − 1 ) + ρ c K t − 1 c ( x t , d x t − 1 ) . (21) M_{t-1}^{\mathrm{alg2}}(x_t,\mathrm{d}x_{t-1}) := (1-\rho_{\emptyset}-\rho_c)\widetilde{M}_{t-1}(x_t,\mathrm{d}x_{t-1})+\rho_{\emptyset}K_{t-1}(x_t,\mathrm{d}x_{t-1})+\rho_cK_{t-1}^c(x_t,\mathrm{d}x_{t-1}). \tag*{(21)} M t − 1 alg2 ( x t , d x t − 1 ) := ( 1 − ρ ∅ − ρ c ) M t − 1 ( x t , d x t − 1 ) + ρ ∅ K t − 1 ( x t , d x t − 1 ) + ρ c K t − 1 c ( x t , d x t − 1 ) . (21)
Lemma 12. (Three-way common proposal). The kernels { M t − 1 a l g 2 } \{M_{t-1}^{\mathrm{alg2}}\} { M t − 1 alg2 } satisfy
d K t − 1 ( x t , ⋅ ) d M t − 1 a l g 2 ( x t , ⋅ ) ≤ ρ ∅ − 1 , d K t − 1 c ( x t , ⋅ ) d M t − 1 a l g 2 ( x t , ⋅ ) ≤ ρ c − 1 . \frac{\mathrm{d}K_{t-1}(x_t,\cdot)}{\mathrm{d}M_{t-1}^{\mathrm{alg2}}(x_t,\cdot)} \le\rho_{\emptyset}^{-1}, \qquad\frac{\mathrm{d}K_{t-1}^c(x_t,\cdot)}{\mathrm{d}M_{t-1}^{\mathrm{alg2}}(x_t,\cdot)} \le\rho_c^{-1}. d M t − 1 alg2 ( x t , ⋅ ) d K t − 1 ( x t , ⋅ ) ≤ ρ ∅ − 1 , d M t − 1 alg2 ( x t , ⋅ ) d K t − 1 c ( x t , ⋅ ) ≤ ρ c − 1 .
Proof. By construction, M t − 1 a l g 2 ≥ ρ ∅ K t − 1 M_{t-1}^{\mathrm{alg2}} \ge\rho_{\emptyset}K_{t-1} M t − 1 alg2 ≥ ρ ∅ K t − 1 and M t − 1 a l g 2 ≥ ρ c K t − 1 c M_{t-1}^{\mathrm{alg2}} \ge\rho_cK_{t-1}^c M t − 1 alg2 ≥ ρ c K t − 1 c . The Radon–Nikodym bounds follow.
Three Feynman–Kac models. Define
G t − 1 ∅ ( x t , x t − 1 ) : = d K t − 1 ( x t , ⋅ ) d M t − 1 a l g 2 ( x t , ⋅ ) ( x t − 1 ) , (22) G_{t-1}^{\emptyset}(x_t,x_{t-1}) := \frac{\mathrm{d}K_{t-1}(x_t,\cdot)}{\mathrm{d}M_{t-1}^{\mathrm{alg2}}(x_t,\cdot)}(x_{t-1}), \tag*{(22)} G t − 1 ∅ ( x t , x t − 1 ) := d M t − 1 alg2 ( x t , ⋅ ) d K t − 1 ( x t , ⋅ ) ( x t − 1 ) , (22)
G t − 1 c ( x t , x t − 1 ) : = d K t − 1 c ( x t , ⋅ ) d M t − 1 a l g 2 ( x t , ⋅ ) ( x t − 1 ) , (23) G_{t-1}^{c}(x_t,x_{t-1}) := \frac{\mathrm{d}K_{t-1}^{c}(x_t,\cdot)}{\mathrm{d}M_{t-1}^{\mathrm{alg2}}(x_t,\cdot)}(x_{t-1}), \tag*{(23)} G t − 1 c ( x t , x t − 1 ) := d M t − 1 alg2 ( x t , ⋅ ) d K t − 1 c ( x t , ⋅ ) ( x t − 1 ) , (23)
G t − 1 q ( x t , x t − 1 ) : = G t − 1 ∅ ( x t , x t − 1 ) ω t − 1 ( x t − 1 ) ω t ( x t ) . (24) G_{t-1}^{q}(x_t,x_{t-1}) := G_{t-1}^{\emptyset}(x_t,x_{t-1})\frac{\omega_{t-1}(x_{t-1})}{\omega_t(x_t)}. \tag*{(24)} G t − 1 q ( x t , x t − 1 ) := G t − 1 ∅ ( x t , x t − 1 ) ω t ( x t ) ω t − 1 ( x t − 1 ) . (24)
Lemma 13. (Uniform boundedness of three potentials). Under (A4) (with the full two-sided bound),
0 ≤ G t − 1 ∅ ≤ ρ ∅ − 1 , 0 ≤ G t − 1 c ≤ ρ c − 1 , 0 ≤ G t − 1 q ≤ ρ ∅ − 1 δ − λ 0 . 0 \le G_{t-1}^{\emptyset} \le\rho_{\emptyset}^{-1}, \qquad0 \le G_{t-1}^{c} \le\rho_c^{-1}, \qquad0 \le G_{t-1}^{q} \le\rho_{\emptyset}^{-1}\delta^{-\lambda_0}. 0 ≤ G t − 1 ∅ ≤ ρ ∅ − 1 , 0 ≤ G t − 1 c ≤ ρ c − 1 , 0 ≤ G t − 1 q ≤ ρ ∅ − 1 δ − λ 0 .
Proof. The first two bounds follow from Lemma 12 ; the third follows as in Lemma 4 .
Positive-side particle approximation. All three Feynman–Kac models are built on the same proposal trajectories X 1 t , … , X M t X_1^t,\ldots,X_M^t X 1 t , … , X M t , but the corresponding target marginals differ. To justify a uniform approximation of the positive conditional law P t + = p θ , t ( ⋅ ∣ c ) P_t^+ = p_{\theta,t}(\cdot\mid c) P t + = p θ , t ( ⋅ ∣ c ) , we proceed exactly as in Theorem 8 : rather than invoking a direct SMC law of large numbers for the w c w_c w c -weighted empirical measure, we recover P t + P_t^+ P t + from the tilted target ν t \nu_t ν t by a ratio transform.
Recall that
ν t ( d x ) = ω t ( x ) p θ , t ( d x ) ∫ ω t ( x ) p θ , t ( d x ) , P t + ( d x ) = p θ , t ( d x ∣ c ) , \nu_t(\mathrm{d}x)=\frac{\omega_t(x)p_{\theta,t}(\mathrm{d}x)}{\int\omega_t(x)p_{\theta,t}(\mathrm{d}x)}, \qquad P_t^+(\mathrm{d}x)=p_{\theta,t}(\mathrm{d}x\mid c), ν t ( d x ) = ∫ ω t ( x ) p θ , t ( d x ) ω t ( x ) p θ , t ( d x ) , P t + ( d x ) = p θ , t ( d x ∣ c ) ,
and define
S t ( x ) : = η t ( x ) ω t ( x ) . S_t(x):=\frac{\eta_t(x)}{\omega_t(x)}. S t ( x ) := ω t ( x ) η t ( x ) .
Since η t ( x ) ∈ [ δ , 1 − δ ] \eta_t(x)\in[\delta,1-\delta] η t ( x ) ∈ [ δ , 1 − δ ] under Assumption (A4) and ω t ( x ) = ( 1 − η t ( x ) ) λ t \omega_t(x)=(1-\eta_t(x))^{\lambda_t} ω t ( x ) = ( 1 − η t ( x ) ) λ t p θ , t p_{\theta,t} p θ , t -a.e., we have
0 ≤ S t ( x ) ≤ δ − λ 0 p θ , t -a.e. 0 \le S_t(x) \le\delta^{-\lambda_0} \qquad p_{\theta,t}\text{-a.e.} 0 ≤ S t ( x ) ≤ δ − λ 0 p θ , t -a.e.
Hence S t S_t S t is bounded, and therefore the class S t H t : = { S t h : h ∈ H t } S_t\mathcal{H}_t := \{S_t h : h \in\mathcal{H}_t\} S t H t := { S t h : h ∈ H t } is uniformly bounded and totally bounded whenever H t \mathcal{H}_t H t is. Define the particle-based estimator
P ^ t + , M ( h ) : = ν t M ( S t h ) ν t M ( S t ) , h ∈ H t , where ν t M : = ∑ j = 1 M w ‾ q , t j δ X t j \widehat{P}_t^{+,M}(h) := \frac{\nu_t^M(S_t h)}{\nu_t^M(S_t)}, \qquad h \in\mathcal{H}_t, \qquad\text{where } \nu_t^M := \sum_{j=1}^{M} \overline{w}_{q,t}^{j} \delta_{X_t^j} P t + , M ( h ) := ν t M ( S t ) ν t M ( S t h ) , h ∈ H t , where ν t M := j = 1 ∑ M w q , t j δ X t j
is the tilted particle approximation from Appendix C.2. Equivalently, if we define
w ‾ c , t j : = w ‾ q , t j S t ( X t j ) ∑ k = 1 M w ‾ q , t k S t ( X t k ) , j = 1 , … , M , \overline{w}_{c,t}^{j} := \frac{\overline{w}_{q,t}^{j} S_t(X_t^j)}{\sum_{k=1}^{M} \overline{w}_{q,t}^{k} S_t(X_t^k)}, \qquad j=1,\ldots,M, w c , t j := ∑ k = 1 M w q , t k S t ( X t k ) w q , t j S t ( X t j ) , j = 1 , … , M ,
then
P ^ t + , M ( h ) = ∑ j = 1 M w ‾ c , t j h ( X t j ) . \widehat{P}_t^{+,M}(h) = \sum_{j=1}^{M} \overline{w}_{c,t}^{j} h(X_t^j). P t + , M ( h ) = j = 1 ∑ M w c , t j h ( X t j ) .
Theorem 14 (SMC verification of positive-side weighted uniform convergence). Assume (A4) and (A5). Then for each fixed t t t ,
sup h ∈ H t ∣ P ^ t + , M ( h ) − P t + ( h ) ∣ → M → ∞ a . s . 0. \sup_{h\in\mathcal{H}_t} \left|\widehat{P}_t^{+,M}(h)-P_t^+(h)\right| \xrightarrow[M\to\infty]{\mathrm{a.s.}} 0. h ∈ H t sup P t + , M ( h ) − P t + ( h ) a.s. M → ∞ 0. Equivalently,
sup h ∈ H t ∣ ∑ j = 1 M w ‾ c , t j h ( X t j ) − P t + ( h ) ∣ → M → ∞ a . s . 0. \sup_{h\in\mathcal{H}_t} \left|\sum_{j=1}^{M}\overline{w}_{c,t}^{j}h(X_t^j)-P_t^+(h)\right| \xrightarrow[M\to\infty]{\mathrm{a.s.}} 0. h ∈ H t sup j = 1 ∑ M w c , t j h ( X t j ) − P t + ( h ) a.s. M → ∞ 0.
Proof. Fix t t t . Since the tilted potentials { G t − 1 q } \{G_{t-1}^q\} { G t − 1 q } are uniformly bounded by Lemma 13, the same SMC law of large numbers used in Appendix C.2 applies to ν t M \nu_t^M ν t M . Therefore, for every bounded measurable φ \varphi φ ,
ν t M ( φ ) → M → ∞ a . s . ν t ( φ ) . \nu_t^M(\varphi) \xrightarrow[M\to\infty]{\mathrm{a.s.}} \nu_t(\varphi). ν t M ( φ ) a.s. M → ∞ ν t ( φ ) .
We first record the positive-side ratio identity. For every bounded measurable h h h ,
ν t ( S t h ) = ∫ S t ( x ) h ( x ) ω t ( x ) p θ , t ( d x ) ∫ ω t ( x ) p θ , t ( d x ) = ∫ η t ( x ) h ( x ) p θ , t ( d x ) ∫ ω t ( x ) p θ , t ( d x ) . \nu_t(S_t h)=\frac{\int S_t(x)h(x)\omega_t(x)p_{\theta,t}(dx)}{\int\omega_t(x)p_{\theta,t}(dx)}
=\frac{\int\eta_t(x)h(x)p_{\theta,t}(dx)}{\int\omega_t(x)p_{\theta,t}(dx)}. ν t ( S t h ) = ∫ ω t ( x ) p θ , t ( d x ) ∫ S t ( x ) h ( x ) ω t ( x ) p θ , t ( d x ) = ∫ ω t ( x ) p θ , t ( d x ) ∫ η t ( x ) h ( x ) p θ , t ( d x ) .
Since η t ( x ) = p θ , t ( c ∣ x ) \eta_t(x)=p_{\theta,t}(c\mid x) η t ( x ) = p θ , t ( c ∣ x ) and ∫ η t ( x ) p θ , t ( d x ) = P t ( c ) \int\eta_t(x)p_{\theta,t}(dx)=P_t(c) ∫ η t ( x ) p θ , t ( d x ) = P t ( c ) , we obtain
ν t ( S t h ) = P t ( c ) P t + ( h ) ∫ ω t ( x ) p θ , t ( d x ) , ν t ( S t ) = P t ( c ) ∫ ω t ( x ) p θ , t ( d x ) . \nu_t(S_t h)=\frac{P_t(c)P_t^+(h)}{\int\omega_t(x)p_{\theta,t}(dx)}, \qquad
\nu_t(S_t)=\frac{P_t(c)}{\int\omega_t(x)p_{\theta,t}(dx)}. ν t ( S t h ) = ∫ ω t ( x ) p θ , t ( d x ) P t ( c ) P t + ( h ) , ν t ( S t ) = ∫ ω t ( x ) p θ , t ( d x ) P t ( c ) .
Hence
P t + ( h ) = ν t ( S t h ) ν t ( S t ) . P_t^+(h)=\frac{\nu_t(S_t h)}{\nu_t(S_t)}. P t + ( h ) = ν t ( S t ) ν t ( S t h ) .
Next, since S t S_t S t is bounded and H t \mathcal{H}_t H t is totally bounded, the class S t H t : = { S t h : h ∈ H t } S_t\mathcal{H}_t := \{S_t h : h \in\mathcal{H}_t\} S t H t := { S t h : h ∈ H t } is also uniformly bounded and totally bounded in the supremum norm. Therefore, exactly as in Lemma 7,
sup h ∈ H t ∣ ν t M ( S t h ) − ν t ( S t h ) ∣ → M → ∞ a . s . 0. \sup_{h\in\mathcal{H}_t}\left|\nu_t^M(S_t h)-\nu_t(S_t h)\right| \xrightarrow[M\to\infty]{\mathrm{a.s.}} 0. h ∈ H t sup ν t M ( S t h ) − ν t ( S t h ) a.s. M → ∞ 0.
In particular, ν t M ( S t ) → M → ∞ a . s . ν t ( S t ) \nu_t^M(S_t)\xrightarrow[M\to\infty]{\mathrm{a.s.}}\nu_t(S_t) ν t M ( S t ) a.s. M → ∞ ν t ( S t ) . Moreover, ν t ( S t ) > 0 \nu_t(S_t)>0 ν t ( S t ) > 0 because
ν t ( S t ) = P t ( c ) ∫ ω t ( x ) p θ , t ( d x ) , \nu_t(S_t)=\frac{P_t(c)}{\int\omega_t(x)p_{\theta,t}(dx)}, ν t ( S t ) = ∫ ω t ( x ) p θ , t ( d x ) P t ( c ) ,
and P t ( c ) ∈ ( 0 , 1 ) P_t(c)\in(0,1) P t ( c ) ∈ ( 0 , 1 ) by the standing assumptions of Appendix C.1. Hence, on an event of probability one, there exists M 0 M_0 M 0 such that ν t M ( S t ) ≥ ν t ( S t ) / 2 > 0 \nu_t^M(S_t)\geq\nu_t(S_t)/2>0 ν t M ( S t ) ≥ ν t ( S t ) /2 > 0 for all M ≥ M 0 M\geq M_0 M ≥ M 0 .
Using the ratio identity above, for all sufficiently large M ≥ M 0 M\geq M_0 M ≥ M 0 we have
P ^ t + , M ( h ) − P t + ( h ) = ν t M ( S t h ) − ν t ( S t h ) ν t M ( S t ) + ν t ( S t h ) ( 1 ν t M ( S t ) − 1 ν t ( S t ) ) . \widehat{P}_t^{+,M}(h)-P_t^+(h)
=\frac{\nu_t^M(S_t h)-\nu_t(S_t h)}{\nu_t^M(S_t)}
+\nu_t(S_t h)\left(\frac{1}{\nu_t^M(S_t)}-\frac{1}{\nu_t(S_t)}\right). P t + , M ( h ) − P t + ( h ) = ν t M ( S t ) ν t M ( S t h ) − ν t ( S t h ) + ν t ( S t h ) ( ν t M ( S t ) 1 − ν t ( S t ) 1 ) .
Therefore,
sup h ∈ H t ∣ P ^ t + , M ( h ) − P t + ( h ) ∣ ≤ 2 ν t ( S t ) sup h ∈ H t ∣ ν t M ( S t h ) − ν t ( S t h ) ∣ + sup h ∈ H t ∣ ν t ( S t h ) ∣ ∣ 1 ν t M ( S t ) − 1 ν t ( S t ) ∣ . \sup_{h\in\mathcal{H}_t}\left|\widehat{P}_t^{+,M}(h)-P_t^+(h)\right|
\leq\frac{2}{\nu_t(S_t)}\sup_{h\in\mathcal{H}_t}\left|\nu_t^M(S_t h)-\nu_t(S_t h)\right|
+\sup_{h\in\mathcal{H}_t}|\nu_t(S_t h)|\left|\frac{1}{\nu_t^M(S_t)}-\frac{1}{\nu_t(S_t)}\right|. h ∈ H t sup P t + , M ( h ) − P t + ( h ) ≤ ν t ( S t ) 2 h ∈ H t sup ν t M ( S t h ) − ν t ( S t h ) + h ∈ H t sup ∣ ν t ( S t h ) ∣ ν t M ( S t ) 1 − ν t ( S t ) 1 .
Since
sup h ∈ H t ∣ ν t ( S t h ) ∣ ≤ ∥ S t ∥ ∞ sup h ∈ H t ∥ h ∥ ∞ < ∞ , \sup_{h\in\mathcal{H}_t}|\nu_t(S_t h)|\le\|S_t\|_\infty\sup_{h\in\mathcal{H}_t}\|h\|_\infty<\infty, h ∈ H t sup ∣ ν t ( S t h ) ∣ ≤ ∥ S t ∥ ∞ h ∈ H t sup ∥ h ∥ ∞ < ∞ ,
the first term converges to zero almost surely by the uniform convergence over S t H t S_t\mathcal{H}_t S t H t , and the second term also converges to zero almost surely because ν t M ( S t ) → ν t ( S t ) > 0 \nu_t^M(S_t)\to\nu_t(S_t)>0 ν t M ( S t ) → ν t ( S t ) > 0 . This proves
sup h ∈ H t ∣ P ^ t + , M ( h ) − P t + ( h ) ∣ → 0 a.s. \sup_{h\in\mathcal{H}_t}\left|\widehat{P}_t^{+,M}(h)-P_t^+(h)\right|\to0\qquad\text{a.s.} h ∈ H t sup P t + , M ( h ) − P t + ( h ) → 0 a.s.
Finally, by the definition of w ‾ c , t j \overline{w}_{c,t}^j w c , t j , P ^ t + , M ( h ) = ∑ j = 1 M w ‾ c , t j h ( X t j ) \widehat{P}_t^{+,M}(h)=\sum_{j=1}^M\overline{w}_{c,t}^j h(X_t^j) P t + , M ( h ) = ∑ j = 1 M w c , t j h ( X t j ) , so the equivalent weighted-empirical formulation follows.
Dual weighted PU consistency. Using the positive-side estimator from Theorem 14 and the unlabeled estimator from Theorem 8 , define the dual weighted empirical PU risk by
L ^ t , M d u a l ( g ) : = − π t ∑ j = 1 M w ‾ c , t j g ( X t j ) + ∑ j = 1 M w ~ t j ℓ 0 ( g ( X t j ) ) , g ∈ G t , (25) \widehat{L}_{t,M}^{\mathrm{dual}}(g):=-\pi_t\sum_{j=1}^M\overline{w}_{c,t}^j g(X_t^j)+\sum_{j=1}^M\widetilde{w}_t^j\ell_0(g(X_t^j)),\qquad g\in\mathcal{G}_t, \tag*{(25)} L t , M dual ( g ) := − π t j = 1 ∑ M w c , t j g ( X t j ) + j = 1 ∑ M w t j ℓ 0 ( g ( X t j )) , g ∈ G t , (25)
where { w ‾ c , t j } j = 1 M \{\overline{w}_{c,t}^j\}_{j=1}^M { w c , t j } j = 1 M are the normalized weights defining the positive conditional estimator P ^ t + , M ( h ) = ∑ j = 1 M w ‾ c , t j h ( X t j ) \widehat{P}_t^{+,M}(h)=\sum_{j=1}^M\overline{w}_{c,t}^j h(X_t^j) P t + , M ( h ) = ∑ j = 1 M w c , t j h ( X t j ) , and { w ~ t j } j = 1 M \{\widetilde{w}_t^j\}_{j=1}^M { w t j } j = 1 M are the normalized weights defining the ratio-recovered unlabeled estimator P ^ t M ( h ) = ∑ j = 1 M w ~ t j h ( X t j ) \widehat{P}_t^M(h)=\sum_{j=1}^M\widetilde{w}_t^j h(X_t^j) P t M ( h ) = ∑ j = 1 M w t j h ( X t j ) . Its population counterpart is
L t P U ( g ) : = − π t P t + ( g ) + P t ( ℓ 0 ∘ g ) , L_t^{\mathrm{PU}}(g):=-\pi_t P_t^+(g)+P_t(\ell_0\circ g), L t PU ( g ) := − π t P t + ( g ) + P t ( ℓ 0 ∘ g ) ,
which is exactly the same population PU risk as in Appendix § 18 .§ 1 .
Assume, as in Appendix § 18 .§ 1 , that for every M M M under consideration there exists a measurable empirical minimizer g ^ t , M d u a l ∈ arg min g ∈ G t L ^ t , M d u a l ( g ) \widehat{g}_{t,M}^{\mathrm{dual}}\in\arg\min_{g\in\mathcal{G}_t}\widehat{L}_{t,M}^{\mathrm{dual}}(g) g t , M dual ∈ arg min g ∈ G t L t , M dual ( g ) , and define f ^ t , M d u a l ( x ) : = σ ( g ^ t , M d u a l ( x ) ) \widehat{f}_{t,M}^{\mathrm{dual}}(x):=\sigma(\widehat{g}_{t,M}^{\mathrm{dual}}(x)) f t , M dual ( x ) := σ ( g t , M dual ( x )) .
Theorem 15 (Fixed-time consistency under dual weighted particles). Under (A3)–(A5), for each fixed t t t ,
∥ f ^ t , M d u a l − η t ∥ L 1 ( P t ) → M → ∞ a . s . 0. \left\|\widehat{f}_{t,M}^{\mathrm{dual}}-\eta_t\right\|_{L^1(P_t)}\xrightarrow[M\to\infty]{\mathrm{a.s.}}0. f t , M dual − η t L 1 ( P t ) a.s. M → ∞ 0.
Proof. Fix t t t . By Theorem 14 , for the class H t \mathcal{H}_t H t , sup h ∈ H t ∣ P ^ t + , M ( h ) − P t + ( h ) ∣ → a . s . 0 \sup_{h\in\mathcal{H}_t}|\widehat{P}_t^{+,M}(h)-P_t^+(h)|\xrightarrow{\mathrm{a.s.}}0 sup h ∈ H t ∣ P t + , M ( h ) − P t + ( h ) ∣ a.s. 0 . By Theorem 8 , sup h ∈ H t ∣ P ^ t M ( h ) − P t ( h ) ∣ → a . s . 0 \sup_{h\in\mathcal{H}_t}|\widehat{P}_t^M(h)-P_t(h)|\xrightarrow{\mathrm{a.s.}}0 sup h ∈ H t ∣ P t M ( h ) − P t ( h ) ∣ a.s. 0 . Since H t \mathcal{H}_t H t contains G t \mathcal{G}_t G t and { ℓ 0 ∘ g : g ∈ G t } \{\ell_0\circ g:g\in\mathcal{G}_t\} { ℓ 0 ∘ g : g ∈ G t } by Assumption (A1) (inherited from Appendix § 18 .§ 1 ), it follows that
Δ M d u a l : = sup g ∈ G t ∣ L ^ t , M d u a l ( g ) − L t P U ( g ) ∣ ≤ π t sup g ∈ G t ∣ P ^ t + , M ( g ) − P t + ( g ) ∣ + sup g ∈ G t ∣ P ^ t M ( ℓ 0 ∘ g ) − P t ( ℓ 0 ∘ g ) ∣ → a . s . 0. \Delta_M^{\mathrm{dual}}:=\sup_{g\in\mathcal{G}_t}\left|\widehat{L}_{t,M}^{\mathrm{dual}}(g)-L_t^{\mathrm{PU}}(g)\right|
\le\pi_t\sup_{g\in\mathcal{G}_t}\left|\widehat{P}_t^{+,M}(g)-P_t^+(g)\right|+\sup_{g\in\mathcal{G}_t}\left|\widehat{P}_t^M(\ell_0\circ g)-P_t(\ell_0\circ g)\right|
\xrightarrow{\mathrm{a.s.}}0. Δ M dual := g ∈ G t sup L t , M dual ( g ) − L t PU ( g ) ≤ π t g ∈ G t sup P t + , M ( g ) − P t + ( g ) + g ∈ G t sup P t M ( ℓ 0 ∘ g ) − P t ( ℓ 0 ∘ g ) a.s. 0.
Thus the dual weighted empirical risk satisfies the same uniform convergence property as the empirical risk in Theorem 2 . Moreover, its population target is the same risk L t P U L_t^{\mathrm{PU}} L t PU . Therefore the proof of Theorem 2 applies verbatim with Δ M , N \Delta_{M,N} Δ M , N replaced by Δ M d u a l \Delta_M^{\mathrm{dual}} Δ M dual . Using Assumption (A3) and the existence of the measurable empirical minimizer g ^ t , M d u a l \widehat{g}_{t,M}^{\mathrm{dual}} g t , M dual , we obtain
∥ f ^ t , M d u a l − η t ∥ L 1 ( P t ) → a . s . 0. \left\|\widehat{f}_{t,M}^{\mathrm{dual}}-\eta_t\right\|_{L^1(P_t)}\xrightarrow{\mathrm{a.s.}}0. f t , M dual − η t L 1 ( P t ) a.s. 0.
Proof-oriented variant and its asymptotic exactness. The proof-oriented variant of Appendix § 18 .§ 3 carries over: at each t t t , the classifier is trained from an auxiliary system, here a dual-weight particle system of size M ′ M' M ′ independent of the main one.
For each t t t , let f ^ t M ′ \widehat{f}_t^{M'} f t M ′ denote the classifier trained from the auxiliary system, and define its clipped version by
f ‾ t M ′ ( x ) : = min { 1 − δ , max ( f ^ t M ′ ( x ) , δ ) } , \overline{f}_t^{M'}(x):=\min\{1-\delta,\max(\widehat{f}_t^{M'}(x),\delta)\}, f t M ′ ( x ) := min { 1 − δ , max ( f t M ′ ( x ) , δ )} ,
where δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) is the constant in Assumption (A4), and set
ω ^ t M ′ ( x ) : = ( 1 − f ^ t M ′ ( x ) ) λ t . \widehat{\omega}_t^{M'}(x) := (1-\widehat{f}_t^{M'}(x))^{\lambda_t}. ω t M ′ ( x ) := ( 1 − f t M ′ ( x ) ) λ t .
This yields δ λ 0 ≤ ω ^ t M ′ ( x ) ≤ 1 \delta^{\lambda_0} \le\widehat{\omega}_t^{M'}(x) \le1 δ λ 0 ≤ ω t M ′ ( x ) ≤ 1 for all t t t and x x x .
Let the main particle system use these clipped classifiers as exogenous objects, together with any measurable proposal kernels regularized as in Appendix C.4, and denote by ν ^ 0 M ∣ M ′ \widehat{\nu}_0^{M\mid M'} ν 0 M ∣ M ′ its weighted empirical output at time 0. Further define the plug-in terminal target
ν ~ 0 M ′ ( d x ) : = ω ^ 0 M ′ ( x ) p θ , 0 ( d x ) ∫ ω ^ 0 M ′ ( x ) p θ , 0 ( d x ) . \widetilde{\nu}_0^{M'}(dx) := \frac{\widehat{\omega}_0^{M'}(x)p_{\theta,0}(dx)}{\int\widehat{\omega}_0^{M'}(x)p_{\theta,0}(dx)}. ν 0 M ′ ( d x ) := ∫ ω 0 M ′ ( x ) p θ , 0 ( d x ) ω 0 M ′ ( x ) p θ , 0 ( d x ) .
Theorem 16. (Asymptotic exactness of the score-based instantiation in the analysis variant. ) Assume (A3)–(A5). Consider the proof-oriented variant described above, in which the classifiers are trained from an auxiliary dual-weight particle system independent of the main particle system used in the final SMC approximation. Assume moreover that, for each auxiliary size M ′ M' M ′ and each t t t , a measurable empirical minimizer defining f ^ t M ′ \widehat{f}_t^{M'} f t M ′ exists.
Then, for every bounded measurable φ : X 0 → R \varphi:\mathcal{X}_0 \to\mathbb{R} φ : X 0 → R ,
lim M ′ → ∞ lim M → ∞ ν ^ 0 M ∣ M ′ ( φ ) = ν 0 ( φ ) a.s. , \lim_{M'\to\infty}\lim_{M\to\infty}\widehat{\nu}_0^{M\mid M'}(\varphi)=\nu_0(\varphi)\qquad\text{a.s.}, M ′ → ∞ lim M → ∞ lim ν 0 M ∣ M ′ ( φ ) = ν 0 ( φ ) a.s. , where
ν 0 ( d x ) : = ( 1 − η 0 ( x ) ) λ 0 p θ , 0 ( d x ) ∫ ( 1 − η 0 ( x ) ) λ 0 p θ , 0 ( d x ) . \nu_0(dx):=\frac{(1-\eta_0(x))^{\lambda_0}p_{\theta,0}(dx)}{\int(1-\eta_0(x))^{\lambda_0}p_{\theta,0}(dx)}. ν 0 ( d x ) := ∫ ( 1 − η 0 ( x ) ) λ 0 p θ , 0 ( d x ) ( 1 − η 0 ( x ) ) λ 0 p θ , 0 ( d x ) . This establishes the extension of Theorem 1 to the score-based instantiation of Section 3.3, as stated informally at the end of Section 4.
Proof. Fix a bounded measurable test function φ \varphi φ . As in the proof of Theorem 11, decompose
ν ^ 0 M ∣ M ′ ( φ ) − ν 0 ( φ ) = ( ν ^ 0 M ∣ M ′ ( φ ) − ν ~ 0 M ′ ( φ ) ) ⏟ (I): SMC error + ( ν ~ 0 M ′ ( φ ) − ν 0 ( φ ) ) ⏟ (II): plug-in target error . (26) \widehat{\nu}_0^{M\mid M'}(\varphi)-\nu_0(\varphi)
=
\underbrace{\left(\widehat{\nu}_0^{M\mid M'}(\varphi)-\widetilde{\nu}_0^{M'}(\varphi)\right)}_{\text{(I): SMC error}}
+
\underbrace{\left(\widetilde{\nu}_0^{M'}(\varphi)-\nu_0(\varphi)\right)}_{\text{(II): plug-in target error}}. \tag*{(26)} ν 0 M ∣ M ′ ( φ ) − ν 0 ( φ ) = (I): SMC error ( ν 0 M ∣ M ′ ( φ ) − ν 0 M ′ ( φ ) ) + (II): plug-in target error ( ν 0 M ′ ( φ ) − ν 0 ( φ ) ) . (26)
Step 1: SMC error for fixed learned classifiers. Fix M ′ M' M ′ . Because the auxiliary particle system is independent of the main one, the collection
{ f ^ t M ′ , ω ^ t M ′ } t = 0 T \left\{\widehat{f}_t^{M'},\widehat{\omega}_t^{M'}\right\}_{t=0}^{T} { f t M ′ , ω t M ′ } t = 0 T
is deterministic from the viewpoint of the main particle system. Hence, conditional on the auxiliary system, the main particle system is an ordinary Feynman–Kac model with deterministic proposal kernels and deterministic potentials.
By the three-way regularized common-proposal construction of Appendix C.4, the Radon–Nikodym part of the incremental weights is uniformly bounded. Since
δ λ 0 ≤ ω ^ t M ′ ( x ) ≤ 1 for all t , x , \delta^{\lambda_0}\le\widehat{\omega}_t^{M'}(x)\le1\qquad\text{for all }t,x, δ λ 0 ≤ ω t M ′ ( x ) ≤ 1 for all t , x ,
the corresponding plug-in tilted potentials are also uniformly bounded. Therefore the standard strong law for SMC with multinomial resampling applies, exactly as in Appendix C.3, and yields
ν ^ 0 M ∣ M ′ ( φ ) − ν ~ 0 M ′ ( φ ) → M → ∞ a . s . 0 \widehat{\nu}_0^{M\mid M'}(\varphi)-\widetilde{\nu}_0^{M'}(\varphi)\xrightarrow[M\to\infty]{\mathrm{a.s.}}0 ν 0 M ∣ M ′ ( φ ) − ν 0 M ′ ( φ ) a.s. M → ∞ 0
conditionally on the auxiliary system, hence jointly almost surely.
Step 2: Identification of the induced terminal target. For fixed M ′ M' M ′ , the plug-in tilted potentials have the same telescoping structure as in the reference-based instantiation:
∏ s = 1 T ω ^ s − 1 M ′ ( x s − 1 ) ω ^ s M ′ ( x s ) = ω ^ 0 M ′ ( x 0 ) ω ^ T M ′ ( x T ) . \prod_{s=1}^{T}\frac{\widehat{\omega}_{s-1}^{M'}(x_{s-1})}{\widehat{\omega}_{s}^{M'}(x_s)}
=
\frac{\widehat{\omega}_0^{M'}(x_0)}{\widehat{\omega}_T^{M'}(x_T)}. s = 1 ∏ T ω s M ′ ( x s ) ω s − 1 M ′ ( x s − 1 ) = ω T M ′ ( x T ) ω 0 M ′ ( x 0 ) .
Since λ T = 0 \lambda_T=0 λ T = 0 , we have ω ^ T M ′ ≡ 1 \widehat{\omega}^{M'}_T \equiv1 ω T M ′ ≡ 1 . Hence the terminal marginal induced by the learned Feynman–Kac model is exactly
ν ~ 0 M ′ ( d x ) = ω ^ 0 M ′ ( x ) p θ , 0 ( d x ) ∫ ω ^ 0 M ′ ( x ) p θ , 0 ( d x ) . \widetilde{\nu}^{M'}_0(dx)=\frac{\widehat{\omega}^{M'}_0(x)p_{\theta,0}(dx)}{\int\widehat{\omega}^{M'}_0(x)p_{\theta,0}(dx)}. ν 0 M ′ ( d x ) = ∫ ω 0 M ′ ( x ) p θ , 0 ( d x ) ω 0 M ′ ( x ) p θ , 0 ( d x ) .
As in the reference-based instantiation, intermediate classifier errors may affect the proposal mechanism and finite-particle performance, but not the form of the induced terminal target.
Step 3: Plug-in convergence of the terminal target. By Theorem 15 applied at t = 0 t=0 t = 0 ,
∥ f ^ 0 M ′ − η 0 ∥ L 1 ( P 0 ) → M ′ → ∞ a . s . 0. \left\|\widehat{f}^{M'}_0-\eta_0\right\|_{L^1(P_0)}\xrightarrow[M'\to\infty]{\mathrm{a.s.}}0. f 0 M ′ − η 0 L 1 ( P 0 ) a.s. M ′ → ∞ 0.
Since the clipping map
clip ( u ) : = min { 1 − δ , max ( u , δ ) } \operatorname{clip}(u):=\min\{1-\delta,\max(u,\delta)\} clip ( u ) := min { 1 − δ , max ( u , δ )}
is 1-Lipschitz and, by Assumption (A4), η 0 ( x ) ∈ [ δ , 1 − δ ] \eta_0(x)\in[\delta,1-\delta] η 0 ( x ) ∈ [ δ , 1 − δ ] for P 0 P_0 P 0 -a.e. x x x , we have clip ( η 0 ) = η 0 \operatorname{clip}(\eta_0)=\eta_0 clip ( η 0 ) = η 0 P 0 P_0 P 0 -a.e., and therefore
∥ f ^ 0 M ′ − η 0 ∥ L 1 ( P 0 ) ≤ ∥ f ^ 0 M ′ − η 0 ∥ L 1 ( P 0 ) → M ′ → ∞ a . s . 0. \left\|\widehat{f}^{M'}_0-\eta_0\right\|_{L^1(P_0)}
\leq
\left\|\widehat{f}^{M'}_0-\eta_0\right\|_{L^1(P_0)}
\xrightarrow[M'\to\infty]{\mathrm{a.s.}}0. f 0 M ′ − η 0 L 1 ( P 0 ) ≤ f 0 M ′ − η 0 L 1 ( P 0 ) a.s. M ′ → ∞ 0.
Now the map
u ↦ ( 1 − u ) λ 0 u\mapsto(1-u)^{\lambda_0} u ↦ ( 1 − u ) λ 0
is Lipschitz on the compact interval [ δ , 1 − δ ] [\delta,1-\delta] [ δ , 1 − δ ] . Hence
∥ ω ^ 0 M ′ − ω 0 ∥ L 1 ( P 0 ) → M ′ → ∞ a . s . 0 , ω 0 ( x ) : = ( 1 − η 0 ( x ) ) λ 0 . \left\|\widehat{\omega}^{M'}_0-\omega_0\right\|_{L^1(P_0)}
\xrightarrow[M'\to\infty]{\mathrm{a.s.}}0,
\qquad
\omega_0(x):=(1-\eta_0(x))^{\lambda_0}. ω 0 M ′ − ω 0 L 1 ( P 0 ) a.s. M ′ → ∞ 0 , ω 0 ( x ) := ( 1 − η 0 ( x ) ) λ 0 .
Moreover,
ω ^ 0 M ′ ( x ) ≥ δ λ 0 , ω 0 ( x ) ≥ δ λ 0 , \widehat{\omega}^{M'}_0(x)\geq\delta^{\lambda_0},
\qquad
\omega_0(x)\geq\delta^{\lambda_0}, ω 0 M ′ ( x ) ≥ δ λ 0 , ω 0 ( x ) ≥ δ λ 0 ,
so the corresponding normalizing constants are uniformly bounded away from zero. Therefore, for every bounded measurable φ \varphi φ ,
ν ~ 0 M ′ ( φ ) → M ′ → ∞ a . s . ν 0 ( φ ) . \widetilde{\nu}^{M'}_0(\varphi)\xrightarrow[M'\to\infty]{\mathrm{a.s.}}\nu_0(\varphi). ν 0 M ′ ( φ ) a.s. M ′ → ∞ ν 0 ( φ ) .
Thus term (II) in Eq. (26) vanishes.
Step 4: Conclusion. For each fixed M ′ M' M ′ , Step 1 gives
lim M → ∞ ν ~ 0 M ∣ M ′ ( φ ) = ν ~ 0 M ′ ( φ ) a.s. \lim_{M\to\infty}\widetilde{\nu}^{M\mid M'}_0(\varphi)=\widetilde{\nu}^{M'}_0(\varphi)
\qquad\text{a.s.} M → ∞ lim ν 0 M ∣ M ′ ( φ ) = ν 0 M ′ ( φ ) a.s.
Step 3 gives
ν ~ 0 M ′ ( φ ) → M ′ → ∞ a . s . ν 0 ( φ ) . \widetilde{\nu}^{M'}_0(\varphi)\xrightarrow[M'\to\infty]{\mathrm{a.s.}}\nu_0(\varphi). ν 0 M ′ ( φ ) a.s. M ′ → ∞ ν 0 ( φ ) .
Combining these two limits proves
lim M ′ → ∞ lim M → ∞ ν ~ 0 M ∣ M ′ ( φ ) = ν 0 ( φ ) a.s. , \lim_{M'\to\infty}\lim_{M\to\infty}\widetilde{\nu}^{M\mid M'}_0(\varphi)=\nu_0(\varphi)
\qquad\text{a.s.}, M ′ → ∞ lim M → ∞ lim ν 0 M ∣ M ′ ( φ ) = ν 0 ( φ ) a.s. ,
as claimed.
Experimental Details and Additional Results
This appendix expands Section 5 with full setups and additional results. Section D.1 covers the score-based instantiation (§ 3.3 , Algorithm 3), and Section D.2 the reference-based instantiation (§ 3.2 , Algorithm 2). Section D.3 scales the score-based instantiation to Stable Diffusion. Code and per-experiment documentation are provided in the supplementary material.
Compute. GMM experiments run on CPU (Intel Xeon Max 9480). CIFAR-10 and Stable Diffusion experiments run on a single NVIDIA GH200 GPU. Python and library versions are pinned in the supplementary material.
GMM with Score-Based Setting
This appendix gives the full specification of the GMM benchmark in § 5.1 . The closed-form structure of the GMM yields exact expressions for conditional and unconditional scores ∇ x t log p t ( x t ∣ ⋅ ) \nabla_{x_t} \log p_t(x_t \mid\cdot) ∇ x t log p t ( x t ∣ ⋅ ) , which lets us evaluate samplers against ground-truth quantities without confounding from a learned score model.
Setup
Data density and class partition. The unconditional density p ( x ) p(x) p ( x ) is a 12-component GMM in R 3 \mathbb{R}^{3} R 3 , generated as follows. Mode means. For i = 0 , … , 11 i = 0, \ldots, 11 i = 0 , … , 11 , let θ ~ i = 2 π i / 12 + δ i \tilde{\theta}_i = 2\pi i/12 + \delta_i θ ~ i = 2 π i /12 + δ i with δ i ∼ U ( − 0.2 , 0.2 ) \delta_i \sim U(-0.2, 0.2) δ i ∼ U ( − 0.2 , 0.2 ) , r i = 10 ( 1 + ϵ i ) r_i = 10(1 + \epsilon_i) r i = 10 ( 1 + ϵ i ) with ϵ i ∼ U ( − 0.3 , 0.3 ) \epsilon_i \sim U(-0.3, 0.3) ϵ i ∼ U ( − 0.3 , 0.3 ) , and z i ∼ U ( − 1 , 1 ) z_i \sim U(-1, 1) z i ∼ U ( − 1 , 1 ) , all independent. Set μ ~ i = ( r i cos θ ~ i , r i sin θ ~ i , z i ) ⊤ \tilde{\mu}_i = (r_i \cos\tilde{\theta}_i, r_i \sin\tilde{\theta}_i, z_i)^{\top} μ ~ i = ( r i cos θ ~ i , r i sin θ ~ i , z i ) ⊤ and center the means by μ i = μ ~ i − 1 12 ∑ j μ ~ j \mu_i = \tilde{\mu}_i - \frac{1}{12} \sum_j \tilde{\mu}_j μ i = μ ~ i − 12 1 ∑ j μ ~ j . Mode covariances. For each mode i i i , define base unit vectors e r = ( cos θ ~ i , sin θ ~ i , 0 ) ⊤ \mathbf{e}_r = (\cos\tilde{\theta}_i, \sin\tilde{\theta}_i, 0)^{\top} e r = ( cos θ ~ i , sin θ ~ i , 0 ) ⊤ and e t = ( − sin θ ~ i , cos θ ~ i , 0 ) ⊤ \mathbf{e}_t = (-\sin\tilde{\theta}_i, \cos\tilde{\theta}_i, 0)^{\top} e t = ( − sin θ ~ i , cos θ ~ i , 0 ) ⊤ . Draw ρ ∼ U ( 0 , 0.3 ) \rho\sim U(0, 0.3) ρ ∼ U ( 0 , 0.3 ) , α ∼ U ( 0 , 2 π ) \alpha\sim U(0, 2\pi) α ∼ U ( 0 , 2 π ) , and set ϕ = α ρ \phi= \alpha\rho ϕ = α ρ . Rotate the base frame in the ( e r , e t ) (\mathbf{e}_r, \mathbf{e}_t) ( e r , e t ) plane: u 0 = cos ϕ e r + sin ϕ e t \mathbf{u}_0 = \cos\phi\mathbf{e}_r + \sin\phi\mathbf{e}_t u 0 = cos ϕ e r + sin ϕ e t and v 0 = − sin ϕ e r + cos ϕ e t \mathbf{v}_0 = -\sin\phi\mathbf{e}_r + \cos\phi\mathbf{e}_t v 0 = − sin ϕ e r + cos ϕ e t . Perturb the first axis with ξ ∼ N ( 0 , 0.01 I 3 ) \boldsymbol{\xi} \sim\mathcal{N}(0, 0.01 I_3) ξ ∼ N ( 0 , 0.01 I 3 ) and normalize: u = ( u 0 + ξ ) / ∥ u 0 + ξ ∥ \mathbf{u} = (\mathbf{u}_0 + \boldsymbol{\xi})/\lVert\mathbf{u}_0 + \boldsymbol{\xi} \rVert u = ( u 0 + ξ ) / ∥ u 0 + ξ ∥ . Re-orthogonalize via Gram–Schmidt: v = ( v 0 − ( v 0 ⊤ u ) u ) / ∥ v 0 − ( v 0 ⊤ u ) u ∥ \mathbf{v} = (\mathbf{v}_0 - (\mathbf{v}_0^{\top}\mathbf{u})\mathbf{u})/\lVert\mathbf{v}_0 - (\mathbf{v}_0^{\top}\mathbf{u})\mathbf{u} \rVert v = ( v 0 − ( v 0 ⊤ u ) u ) / ∥ v 0 − ( v 0 ⊤ u ) u ∥ and w = u × v \mathbf{w} = \mathbf{u} \times\mathbf{v} w = u × v . Draw eigenvalues λ r ∼ U ( 1.0 , 2.5 ) \lambda_r \sim U(1.0, 2.5) λ r ∼ U ( 1.0 , 2.5 ) , λ t ∼ U ( 0.3 , 0.8 ) \lambda_t \sim U(0.3, 0.8) λ t ∼ U ( 0.3 , 0.8 ) , λ z ∼ U ( 0.5 , 2.0 ) \lambda_z \sim U(0.5, 2.0) λ z ∼ U ( 0.5 , 2.0 ) independently, and set Σ i = R i diag ( λ r , λ t , λ z ) R i ⊤ \Sigma_i = R_i \operatorname{diag}(\lambda_r, \lambda_t, \lambda_z) R_i^{\top} Σ i = R i diag ( λ r , λ t , λ z ) R i ⊤ with R i = [ u v w ] R_i = [\mathbf{u}\ \mathbf{v}\ \mathbf{w}] R i = [ u v w ] . Weights and class partition. Draw ( w 0 , … , w 11 ) ∼ Dir ( 5 ⋅ 1 12 ) (w_0, \ldots, w_{11}) \sim\operatorname{Dir}(5 \cdot\mathbf{1}_{12}) ( w 0 , … , w 11 ) ∼ Dir ( 5 ⋅ 1 12 ) . Select an index set P ⊂ { 0 , … , 11 } \mathcal{P} \subset\{0, \ldots, 11\} P ⊂ { 0 , … , 11 } of size 3 uniformly without replacement, and let N \mathcal{N} N be its complement. Renormalize within each class: w i + = w i / ∑ j ∈ P w j w_i^{+} = w_i/\sum_{j\in\mathcal{P}} w_j w i + = w i / ∑ j ∈ P w j for i ∈ P i \in\mathcal{P} i ∈ P and w i − = w i / ∑ j ∈ N w j w_i^{-} = w_i/\sum_{j\in\mathcal{N}} w_j w i − = w i / ∑ j ∈ N w j for i ∈ N i \in\mathcal{N} i ∈ N . The joint density is p ( x ) = π ∑ i ∈ P w i + N ( x ; μ i , Σ i ) + ( 1 − π ) ∑ i ∈ N w i − N ( x ; μ i , Σ i ) p(x) = \pi\sum_{i\in\mathcal{P}} w_i^{+} \mathcal{N}(x; \mu_i, \Sigma_i) + (1-\pi) \sum_{i\in\mathcal{N}} w_i^{-} \mathcal{N}(x; \mu_i, \Sigma_i) p ( x ) = π ∑ i ∈ P w i + N ( x ; μ i , Σ i ) + ( 1 − π ) ∑ i ∈ N w i − N ( x ; μ i , Σ i ) with class prior π = 3 / 12 = 0.25 \pi= 3/12 = 0.25 π = 3/12 = 0.25 . All randomness above is controlled by a single integer layout seed.
Figure 4. Four GMM layouts drawn at random. Each panel projects 3000 unconditional samples onto the x y xy x y -plane. Red points are samples from the avoided component density p ( ⋅ ∣ c ) p(\cdot\mid c) p ( ⋅ ∣ c ) and blue points are samples from p ( ⋅ ∣ ¬ c ) p(\cdot\mid\neg c) p ( ⋅ ∣ ¬ c ) .
Diffusion process and ground-truth quantities. We use the cosine schedule of variance-preserving DDPM [40 ] , offset s = 0.008 s = 0.008 s = 0.008 , β max = 0.999 \beta_{\max} = 0.999 β m a x = 0.999 , and T = 100 T = 100 T = 100 timesteps. Each marginal p t ( ⋅ ∣ c ) p_t(\cdot\mid c) p t ( ⋅ ∣ c ) and p t ( ⋅ ∣ ¬ c ) p_t(\cdot\mid\neg c) p t ( ⋅ ∣ ¬ c ) is a closed-form GMM with means α ˉ t μ k \sqrt{\bar{\alpha}_t}\mu_k α ˉ t μ k and covariances α ˉ t Σ k + ( 1 − α ˉ t ) I \bar{\alpha}_t\Sigma_k + (1-\bar{\alpha}_t)I α ˉ t Σ k + ( 1 − α ˉ t ) I , so the conditional scores and the posterior p t ( c ∣ x t ) p_t(c \mid x_t) p t ( c ∣ x t ) are analytic. DNG and ours in Algorithm 3 receive the unconditional score ∇ x t log p t ( x t ) \nabla_{x_t} \log p_t(x_t) ∇ x t log p t ( x t ) and the conditional score ∇ x t log p t ( x t ∣ c ) \nabla_{x_t} \log p_t(x_t \mid c) ∇ x t log p t ( x t ∣ c ) .
Table 2. NegCFG η \eta η sweep, 50 trials, mean± \pm ± std. Mode coverage = P [ min k ∈ ¬ c ∥ x − μ k ∥ < 5 ] \mathbb{P}[\min_{k\in\neg c}\lVert x-\mu_k\rVert<5] P [ min k ∈ ¬ c ∥ x − μ k ∥ < 5 ] .
Table 3. DNG sweep, 50 trials. The main-text comparison uses ( λ 0 , τ ) = ( 1 , 1 ) (\lambda_0,\tau)=(1,1) ( λ 0 , τ ) = ( 1 , 1 ) .
Methods and sweep grids. We compare four samplers below.
Oracle. DDPM sampling with ∇ x t log p t ( x t ∣ ¬ c ) \nabla_{x_t}\log p_t(x_t\mid\neg c) ∇ x t log p t ( x t ∣ ¬ c ) .
NegCFG. Repulsion strength η ∈ { 0 , 0.1 , 0.2 , 0.5 , 0.7 , 1.0 , 1.5 , 2.0 , 3.0 } \eta\in\{0,0.1,0.2,0.5,0.7,1.0,1.5,2.0,3.0\} η ∈ { 0 , 0.1 , 0.2 , 0.5 , 0.7 , 1.0 , 1.5 , 2.0 , 3.0 } .
DNG [34 ] . The CFG strength is − p ^ t ( c ∣ x t ) / ( 1 − p ^ t ( c ∣ x t ) ) -\hat p_t(c\mid x_t)/(1-\hat p_t(c\mid x_t)) − p ^ t ( c ∣ x t ) / ( 1 − p ^ t ( c ∣ x t )) . We follow their implementation in [34 ] , which estimates p ^ t ( c ∣ x t ) \hat p_t(c\mid x_t) p ^ t ( c ∣ x t ) by log p ^ t − 1 ( c ∣ x t − 1 ) ← log p ^ t ( c ∣ x t ) − τ 2 σ t 2 ( ∥ x t − 1 − μ θ ( x t , t ∣ c ) ∥ 2 − ∥ x t − 1 − μ θ ( x t , t ) ∥ 2 ) + δ σ t 2 \log\hat p_{t-1}(c\mid x_{t-1})\leftarrow\log\hat p_t(c\mid x_t)-\frac{\tau}{2\sigma_t^2}(\lVert x_{t-1}-\mu_\theta(x_t,t\mid c)\rVert^2-\lVert x_{t-1}-\mu_\theta(x_t,t)\rVert^2)+\frac{\delta}{\sigma_t^2} log p ^ t − 1 ( c ∣ x t − 1 ) ← log p ^ t ( c ∣ x t ) − 2 σ t 2 τ (∥ x t − 1 − μ θ ( x t , t ∣ c ) ∥ 2 − ∥ x t − 1 − μ θ ( x t , t ) ∥ 2 ) + σ t 2 δ , introducing the hyperparameters τ \tau τ and δ \delta δ in place of the original update (4) . We set p ^ T ( c ∣ x T ) = π \hat p_T(c\mid x_T)=\pi p ^ T ( c ∣ x T ) = π and δ = 0 \delta=0 δ = 0 , and sweep λ 0 ∈ { 0.5 , 1 , 2 , 5 , 10 , 20 } \lambda_0\in\{0.5,1,2,5,10,20\} λ 0 ∈ { 0.5 , 1 , 2 , 5 , 10 , 20 } at τ ∈ { 0.2 , 1.0 } \tau\in\{0.2,1.0\} τ ∈ { 0.2 , 1.0 } ; the main-text comparison uses ( λ 0 , τ ) = ( 1 , 1 ) (\lambda_0,\tau)=(1,1) ( λ 0 , τ ) = ( 1 , 1 ) , written as “DNG (η = 1 \eta=1 η = 1 )” there.
Ours. Algorithm 3 with μ t p r o p = μ θ ( x t , t ) + σ t 2 λ t − 1 ∇ x t log ( 1 − f t ( x ^ 0 ( x t ) ) ) \mu_t^{\mathrm{prop}}=\mu_\theta(x_t,t)+\sigma_t^2\lambda_{t-1}\nabla_{x_t}\log(1-f_t(\hat x_0(x_t))) μ t prop = μ θ ( x t , t ) + σ t 2 λ t − 1 ∇ x t log ( 1 − f t ( x ^ 0 ( x t ))) of (10) .
Online PU classifier. f t = g 0 ∘ x ^ 0 f_t=g_0\circ\hat x_0 f t = g 0 ∘ x ^ 0 is a kernel logistic regression in x ^ 0 \hat x_0 x ^ 0 space, refit at every step. The dictionary at step t t t comprises n p = 128 n_p=128 n p = 128 centers subsampled from the conditional Tweedie estimates and n u = 64 n_u=64 n u = 64 from the unconditional ones, taken over the current proposal particles. The bandwidth uses the median heuristic scaled by 0.3. Weights are obtained by L-BFGS minimization of the uPU logistic risk (7) with an RKHS-norm penalty λ r e g 2 ∥ g ∥ H k 2 \frac{\lambda_{\mathrm{reg}}}{2}\lVert g\rVert_{\mathcal{H}_k}^2 2 λ reg ∥ g ∥ H k 2 , λ r e g = 10 − 4 \lambda_{\mathrm{reg}}=10^{-4} λ reg = 1 0 − 4 ; the uPU class prior is annealed as π t = 0.02 + 0.13 exp ( − 5 ( 1 − t / T ) ) \pi_t=0.02+0.13\exp(-5(1-t/T)) π t = 0.02 + 0.13 exp ( − 5 ( 1 − t / T )) .
SMC parameters. Tempering of λ t \lambda_t λ t is adaptive: δ t ∈ [ 0 , 1.5 / T ] \delta_t\in[0,1.5/T] δ t ∈ [ 0 , 1.5/ T ] is found by binary search so that the ESS of { w q j , t ( 1 − f t ( x ^ 0 ( x t j ) ) ) δ t } \{w_q^{j,t}(1-f_t(\hat x_0(x_t^j)))^{\delta_t}\} { w q j , t ( 1 − f t ( x ^ 0 ( x t j )) ) δ t } matches the target 0.9 M 0.9M 0.9 M , and λ t − 1 ← min ( λ t + δ t , 1 ) \lambda_{t-1}\leftarrow\min(\lambda_t+\delta_t,1) λ t − 1 ← min ( λ t + δ t , 1 ) . ESS-based resampling [11 ] fires below 0.9 M 0.9M 0.9 M and is disabled for the final 5 steps.
Results
Baseline sweeps. Tables 2 and 3 report the full sweeps for NegCFG and DNG. Both methods exhibit a clear trade-off between leak and W 2 W_2 W 2 . NegCFG drives leak monotonically toward zero as η \eta η grows, but W 2 W_2 W 2 inflates and mode coverage drops below 1 for η ≥ 0.7 \eta\geq0.7 η ≥ 0.7 , indicating mode collapse onto a few ¬ c \neg c ¬ c -modes. DNG shows the same trade-off at both τ ∈ { 0.2 , 1.0 } \tau\in\{0.2,1.0\} τ ∈ { 0.2 , 1.0 } , and the configuration closest to the Oracle leak ( λ 0 = 2 , τ = 1 ) (\lambda_0=2,\tau=1) ( λ 0 = 2 , τ = 1 ) still attains W 2 = 3.5 W_2=3.5 W 2 = 3.5 , more than twice the Oracle. These patterns are consistent with the local-repulsion limitations discussed in § 2 .
Timestep count for DNG. With exact scores and at η = 1 \eta=1 η = 1 , DNG is exact only as T → ∞ T \to\infty T → ∞ (Appendix § 16 .4). Table 4 measures how the sampler approaches that limit. Only the timestep count T T T varies; the method is held at the main-text configuration ( λ 0 , τ ) = ( 1 , 1 ) (\lambda_0,\tau)=(1,1) ( λ 0 , τ ) = ( 1 , 1 ) at M = 1024 M=1024 M = 1024 over 15 trials, and the Oracle is recomputed at each T T T as a matched floor. The leak falls monotonically from 0.053 to 0.020, and most of the gain is already reached by T = 500 T=500 T = 500 . The gap to the matched Oracle narrows from 0.041 to 0.009 without closing, so a twentyfold serial budget still leaves the leak at about 1.8 times the Oracle value.
Particle count. Table 5 varies the particle count M M M with true scores over 15 trials. The Oracle is recomputed at each M M M , since the empirical W 2 W_2 W 2 of M M M particles carries a finite-sample floor that grows as M M M shrinks. The leak is nearly M M M -independent at the matched Oracle floor (the mean at M = 256 M=256 M = 256 is inflated by a few trials), and W 2 W_2 W 2 decreases with M M M as the floor does. The ESS/M M M stays at 0.96–0.97 with two to three resampling events at every M M M , so the degeneracy signature of a poor SMC path, an ESS collapse or constant resampling, is not observed. Against the closed-form posterior, the AUC of f t f_t f t near the terminal steps is 0.997, 0.989, and 0.980 for M = 64 M=64 M = 64 , 256, and 1024, while the cosine similarity between ∇ log ( 1 − f t ) \nabla\log(1-f_t) ∇ log ( 1 − f t ) and ∇ log ( 1 − p ( c ∣ x ) ) \nabla\log(1-p(c \mid x)) ∇ log ( 1 − p ( c ∣ x )) stays around 0.17–0.18 at every M M M : the estimate identifies the region to avoid accurately at every M M M without being pointwise accurate.
Table 5 : Particle-count ablation on the Gaussian mixture with true scores, mean±std over 15 trials. The Oracle is recomputed at each M M M . The row at M = 1024 M=1024 M = 1024 differs from Table 1 , which averages over 50 trials.
Table 5.
Comparison with Ours. Among the guidance methods in Table 1, only ours matches the Oracle leak (0.012 vs. 0.012) without inflating W 2 W_2 W 2 (1.8±0.6 vs. 1.5±0.3). This is in line with the asymptotic-exactness result in Section 4. The residual gap in W 2 W_2 W 2 relative to the Oracle is attributable to a slight inter-mode imbalance induced by resampling, visible in Figure 1 as a non-uniform allocation of particles across the nine ~c-modes.
CIFAR-10 with Reference-Based Setting
This appendix gives the full specification of the CIFAR-10 experiment in § 5.2 . The complete code is available in our supplementary material.
Setup
Pretrained score model. We use the unconditional CIFAR-10 checkpoint from [40 ] , distributed under the MIT license at https://github.com/openai/improved-diffusion. Following the instructions in that repository, the weights were obtained from https://openaipublic.blob.core.windows.net/diffusion/march-2021/cifar10_uncond_50M_500K.pt. This URL was confirmed accessible on 2026-05-05. Sampling uses DDPM with the respaced schedule of T = 250 T=250 T = 250 steps, and images are normalized to [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] .
Avoidance conditions and references. The single-class conditions for the avoidance experiment are c ∈ { { plane } , { cat } , { frog } , { ship } } c \in\{\{\text{plane}\}, \{\text{cat}\}, \{\text{frog}\}, \{\text{ship}\}\} c ∈ {{ plane } , { cat } , { frog } , { ship }} , and the multi-class condition Vehicles is c = { plane , car , ship , truck } c = \{\text{plane}, \text{car}, \text{ship}, \text{truck}\} c = { plane , car , ship , truck } . This gives N = 200 N = 200 N = 200 references for single-class conditions and N = 800 N = 800 N = 800 for Vehicles. The reference-selection seed is offset from the diffusion-noise seed so that the two are statistically independent.
Reference-based guidance: Safe Denoiser. We use the Safe Denoiser of Kim et al. [29 ] (§ 2 ) both as a baseline and as the proposal kernel in our SMC sampler. Its bandwidth is set once per run by the median pairwise pixel distance among the references. Following the original implementation, guidance is applied for t > 0.08 T = 20 t > 0.08T = 20 t > 0.08 T = 20 and disabled for the final steps. We sweep the repulsion strength η ∈ { 0.0 , 0.2 , 0.3 , 0.5 , 0.7 , 1.0 } \eta\in\{0.0, 0.2, 0.3, 0.5, 0.7, 1.0\} η ∈ { 0.0 , 0.2 , 0.3 , 0.5 , 0.7 , 1.0 } .
Online PU classifier on UNet bottleneck features. The classifier f t f_t f t is a linear logistic head on the 256-dim mean-pooled output of the UNet bottleneck block (shape 4 × 4 × 256 4 \times4 \times256 4 × 4 × 256 ). Reference features are encoded once at t = 0 t = 0 t = 0 on the clean references. For the single-class conditions, particle features are read from the same forward pass that produces μ θ ( x t , t ) \mu_\theta(x_t,t) μ θ ( x t , t ) , giving f t ( x t ) = h ( Φ t ( x t ) ) f_t(x_t) = h(\Phi_t(x_t)) f t ( x t ) = h ( Φ t ( x t )) with a time-conditioned encoder Φ t \Phi_t Φ t . For Vehicles, an additional UNet pass at t = 0 t = 0 t = 0 on the clipped Tweedie estimate is applied, giving f t ( x t ) = h ( Φ 0 ( x ^ 0 ( x t ) ) ) f_t(x_t) = h(\Phi_0(\hat{x}_0(x_t))) f t ( x t ) = h ( Φ 0 ( x ^ 0 ( x t ))) . The head is fit by L-BFGS with warm-starting from the previous step, using the BCE surrogate of § 5.2 .
SMC parameters. We use a precomputed tempering schedule: λ t \lambda_t λ t ramps linearly from 0 to a terminal λ \lambda λ over the last 0.6 T = 150 0.6T = 150 0.6 T = 150 steps. ESS-based sorted systematic resampling fires below 0.9 M 0.9M 0.9 M , and is enabled only for t > 15 t > 15 t > 15 in single-class runs and t > 50 t > 50 t > 50 in Vehicles.
Implementation choices that depart from the abstract algorithm. We set the proposal-ratio factor r t r_t r t in (6) to 1 in the recursion of w q , t w_{q,t} w q , t . At d = 3072 d = 3072 d = 3072 , this ratio has high variance, and a 128-particle filter cannot maintain a healthy ESS when it is included. The unconditional weight w ∅ , t w_{\emptyset,t} w ∅ , t keeps the full ratio r t r_t r t at every step as in (9), and its update at resampling is the standard one of § 3.1 . This treatment, together with the BCE surrogate, deviates from the analysis in Section 4, so the procedure is a practical approximation not covered by Theorem 1 ; the experiments then test whether the existing negative-guidance method can be corrected by a lightweight auxiliary classifier and resampling. The classifier is trained and used only on the steps where λ t > 0 \lambda_t > 0 λ t > 0 ; earlier steps run the Safe Denoiser alone. The L-BFGS head uses up to 100 iterations on the first step and up to 20 iterations on later steps, so the online training cost is small.
Metrics. The generated samples carry no class labels by construction, so we evaluate them with an independently trained ResNet-18 classifier [23 ] . This classifier is not used during sampling and is fully decoupled from the diffusion pipeline. We start from the torchvision ResNet-18 with the IMAGENET1K_V1 pretrained weights2 and apply two modifications for low-resolution inputs: the first convolutional layer is replaced by a 3 × 3 3 \times3 3 × 3 , stride-1 convolution, and the max-pooling layer is replaced by an identity mapping. The final fully connected layer is replaced by a 10-class linear head. We fine-tune all parameters for 50 epochs on the CIFAR-10 training split using SGD (learning rate 0.01, momentum 0.9, weight decay 5 × 10 − 4 5 \times10^{-4} 5 × 1 0 − 4 ) with cosine annealing, a batch size of 256, and data augmentation (random horizontal flipping and random 32 × 32 32 \times32 32 × 32 crops with four pixels of padding). Train accuracy exceeds 99%, and the checkpoint with the highest test accuracy reaches ∼ \sim ∼ 95% Top-1 on the CIFAR-10 test split, which we consider sufficient for classifying our generated samples. The training code is included in the supplementary material.
Target-class rate. The fraction of generated samples classified into c c c by the ResNet-18. For multi-class c c c , the rate counts any class in c c c .
FID. Computed via pytorch-fid 0.3.0 [44 ] between the generated samples and the CIFAR-10 training images that lie in ¬ c \neg c ¬ c , so the floor is the Fréchet distance between samples from p ( ⋅ ∣ ¬ c ) p(\cdot\mid\neg c) p ( ⋅ ∣ ¬ c ) and the ¬ c \neg c ¬ c -only training set.
KL. KL ( u ¬ c ∥ p ^ 10 ) \operatorname{KL}(u_{\neg c} \parallel\hat{p}_{10}) KL ( u ¬ c ∥ p ^ 10 ) , where u ¬ c u_{\neg c} u ¬ c is the uniform distribution over non-avoided classes (mass 1 / ( 10 − ∣ c ∣ ) 1/(10 - |c|) 1/ ( 10 − ∣ c ∣ ) on each i ∉ c i \notin c i ∈ / c , 0 on c c c ), and p ^ 10 \hat{p}_{10} p ^ 10 is the empirical 10-class histogram of the ResNet-18 predictions clipped at 10 − 10 10^{-10} 1 0 − 10 .
The seed pool is shared across configurations so that paired comparisons (Ours vs. the Safe Denoiser at the same η \eta η ) are well-defined.
Results
Choice of the PU L2 regularizer. We study the sensitivity of our method to the L2 regularization strength λ r e g \lambda_{\mathrm{reg}} λ reg by comparing two values spanning three orders of magnitude (10 − 3 10^{-3} 1 0 − 3 and 1.0). Table 6 reports a per-class ablation at λ = 1.5 \lambda=1.5 λ = 1.5 , with our method run at η = 0.3 \eta=0.3 η = 0.3 . For reference, we also list the Safe Denoiser at η = 0.3 \eta=0.3 η = 0.3 and η = 0.5 \eta=0.5 η = 0.5 , the two operating points that bracket the knee of its rate–FID curve. The choice of λ r e g \lambda_{\mathrm{reg}} λ reg shifts the metrics by a small amount, with within-class variation of at most 0.9 percentage points on rate and 1.4 FID points. At either value, our method already reaches a lower target-class rate than the Safe Denoiser at η = 0.3 \eta=0.3 η = 0.3 , while paying only 2–9 FID points above it. The Safe Denoiser only matches our rate by raising η \eta η to 0.5, at which point its FID degrades by 24–52 points beyond η = 0.3 \eta=0.3 η = 0.3 . In other words, both choices of λ r e g \lambda_{\mathrm{reg}} λ reg yield Pareto improvements over the guidance-only baseline. Based on this, we fix λ r e g = 10 − 3 \lambda_{\mathrm{reg}}=10^{-3} λ reg = 1 0 − 3 for plane and cat, and λ r e g = 1.0 \lambda_{\mathrm{reg}}=1.0 λ reg = 1.0 for frog, ship, and Vehicles.
Table 6. PU regularization ablation at λ = 1.5 \lambda=1.5 λ = 1.5 , 80 seeds per cell. Our method is run at η = 0.3 \eta=0.3 η = 0.3 , while the Safe Denoiser baseline is shown at η ∈ { 0.3 , 0.5 } \eta\in\{0.3,0.5\} η ∈ { 0.3 , 0.5 } , the two values that bracket the knee of its rate–FID curve in Figure 2 and Figure 5.
Per-class sweeps. Figure 5 reports the rate-vs-quality trade-off for the cat, frog, and ship single-class conditions, using the defaults above. The qualitative picture is consistent with the plane and Vehicles results in Figure 2 in § 5.2 : our λ \lambda λ -sweep Pareto-dominates the Safe Denoiser at the same η \eta η on FID and KL in most configurations, and remains comparable on pairwise LPIPS. The shape of the Safe Denoiser curve clarifies why our method helps: in the small-η \eta η regime, increasing η \eta η improves the avoidance rate at modest cost to FID and KL, but beyond a knee around η = 0.5 \eta=0.5 η = 0.5 the quality metrics degrade sharply for any further rate reduction. Our method takes a Safe Denoiser proposal in this small-η \eta η regime and adds resampling driven by the PU classifier, which extracts further rate reduction along the part of the curve where the quality cost is still mild.
Figure 5. Avoidance rate vs. generation quality on CIFAR-10 for the cat (top), frog (middle), and ship (bottom) single-class conditions. Columns plot target-class rate against FID, KL, and average pairwise LPIPS (left to right); lower is better except for LPIPS.
ESS diagnostics. Table 7 reports the ESS of w q , t w_{q,t} w q , t , the number of distinct surviving ancestors, and the number of resampling events on the main configurations (η = 0.3 \eta=0.3 η = 0.3 , M = 128 M=128 M = 128 , T = 250 T=250 T = 250 ; mean± \pm ± std over 80 runs each). The time-averaged ESS stays at 110–127 of 128, and resampling stays sparse (0–7 events over the 250 steps) under the conservative threshold 0.9 M 0.9M 0.9 M , a stability that the r t = 1 r_t=1 r t = 1 substitution
provides. Stronger avoidance λ \lambda λ or the harder Vehicles condition deepens the ESS minimum, yet even the hardest setting keeps 56 of 128 distinct ancestors, so the particles do not collapse onto a few ancestors. The ESS minima occur in the final steps, where the tilt is largest and resampling is intentionally disabled to avoid duplicating nearly final particles.
Batch-level spread. Table 8 reports the target-class rate per 128-sample batch as mean±std over the 80 seeds at η = 0.3 \eta=0.3 η = 0.3 . The means equal the rates plotted in Figure 2 , and the standard error of each mean is std/80 \sqrt{80} 80 . The larger std under strong avoidance (Vehicles, λ = 2.0 \lambda=2.0 λ = 2.0 ) is consistent with the low ESS minimum in Table 7. The evaluator (test accuracy about 95%, training accuracy above 99%) follows the protocol of prior class-avoidance work [51 ] ; all methods are scored by the same evaluator, which is independent of every generation pipeline.
Table 8. Target-class rate [%] per 128-sample batch on CIFAR-10 at η = 0.3 \eta=0.3 η = 0.3 , mean±std over 80 seeds.
Stable Diffusion with Score-Based Setting
This subsection instantiates the score-based setting of § 3.3 on Stable Diffusion v1.4 [42 ] 3 , a latent diffusion model that generates 512 × 512 512 \times512 512 × 512 images from text prompts and whose state is a 64 × 64 64 \times64 64 × 64 latent grid with four channels, so d = 16,384 d = 16{,}384 d = 16 , 384 .
Task and prompts. The content prompt is "a painting of a cafe terrace at night under a starry sky", which never names the avoided style. Following the negative-prompting format [25 , 3 ] , the style prompt appends "in the style of Van Gogh" to the content prompt, and supplies the conditional predictor ϵ ^ θ ( ⋅ , ⋅ ∣ c ) \hat{\epsilon}_{\theta}(\cdot,\cdot\mid c) ϵ ^ θ ( ⋅ , ⋅ ∣ c ) required by § 3.3 . The evaluation pools and the detector calibration set use the longer suffix "in the style of Vincent van Gogh".
Scores and sampling. The base model p θ , t p_{\theta,t} p θ , t is the classifier-free-guidance combination of the content-prompt and unconditional predictions at scale 7.5 7.5 7.5 , which is also the sampler that generates the content anchor. Sampling uses T = 50 T=50 T = 50 steps in half precision. SLD and DNG modify this same prediction, so their density without avoidance is also the content anchor; NegCFG is instead anchored on the style prediction (below). SLD [43 ] at its XXMAX setting below serves as the SMC proposal μ t p r o p \mu_t^{\mathrm{prop}} μ t prop for PU Steering throughout, as the Safe Denoiser does in Section D.2.
Online PU classifier. Each particle is represented by average-pooling the four latent channels of its Tweedie estimate to a 16 × 16 16 \times16 16 × 16 grid, giving a 1024-dimensional feature. Positives are the style-conditional Tweedie estimates and unlabeled samples are the content Tweedie estimates of the same particles, a practical variant of the construction of § 3.3 with uniformly weighted positives and w q , t w_{q,t} w q , t -weighted unlabeled samples. Both reuse noise predictions that the SLD proposal already computes at every timestep, so the features cost no additional UNet evaluations. The classifier is a kernel logistic model with an RBF bandwidth set by the median heuristic scaled by 0.4 0.4 0.4 , fit to the uPU risk (7) with an RKHS-norm penalty of 10 − 2 10^{-2} 1 0 − 2 by L-BFGS at class prior π = 0.15 \pi=0.15 π = 0.15 , refit at every timestep over the last 70 % 70\% 70% of the trajectory. Its logit is standardized across particles before the sigmoid and the resulting probability is clamped to [ 10 − 3 , 1 − 10 − 3 ] [10^{-3}, 1 - 10^{-3}] [ 1 0 − 3 , 1 − 1 0 − 3 ] . The two estimates start from the same particle, so they share the prompted content and differ mainly in the avoided style, and this contrast keeps the uPU fit stable: unlike the CIFAR-10 experiment of § 5.2 , where the small N N N and M M M forced the BCE substitution, this instantiation uses the uPU objective as written.
SMC control. As in Section D.2, we set the proposal-ratio correction factor r t r_t r t in (6) to 1 1 1 . The tempering increment is chosen by bisection to hold the effective sample size at 0.5 M 0.5M 0.5 M , capped at 1.5 λ / T 1.5\lambda/T 1.5 λ / T per timestep and at the terminal λ \lambda λ . Systematic resampling fires when the effective sample size falls below 0.7 M 0.7M 0.7 M , only within the middle window between 30 % 30\% 30% and 70 % 70\% 70% of the reverse steps, at a cadence of five steps (four for the M = 128 M=128 M = 128 , λ = 20 \lambda=20 λ = 20 configuration), and never at the final timestep, so each run returns weighted particles that can be read either unweighted as plain images or weighted as the SMC estimate. Log-weights are clipped to [ − 2 , 2 ] [-2, 2] [ − 2 , 2 ] around their mean.
Baselines. SLD [43 ] runs at three settings on the same guidance scale. MAX is its strongest published preset HyP-MAX (no warm-up, safety scale 5000, threshold 1, momentum scale 0.5, momentum decay 0.7), which leaves the style rate at 0.334 against the floor value 0.238. We therefore add two settings beyond the published presets: XXMAX raises the safety scale to 20000 and the momentum scale to 0.7, and X3MAX further raises the momentum scale to 1 and the momentum decay to 0.8. For NegCFG, preliminary sweeps on the guidance combination did not lower the style rate, the content guidance at scale 7.5 dominating the style term, so it is run in the negative-prompting form ϵ ^ s t y l e + s ( ϵ ^ c o n t e n t − ϵ ^ s t y l e ) \hat{\epsilon}_{\mathrm{style}} + s\left(\hat{\epsilon}_{\mathrm{content}} - \hat{\epsilon}_{\mathrm{style}}\right) ϵ ^ style + s ( ϵ ^ content − ϵ ^ style ) with s = η + 1 s=\eta+1 s = η + 1 and η ∈ { 0.1 , 1.5 , 2 , 3 , 4 , 5 , 6.5 } \eta\in\{0.1, 1.5, 2, 3, 4, 5, 6.5\} η ∈ { 0.1 , 1.5 , 2 , 3 , 4 , 5 , 6.5 } . DNG [34 ] runs the gradient prediction with the recursion (4) in the form of a serialized implementation, at temperature τ = 0.1 \tau=0.1 τ = 0.1 , offset δ = 0.02 \delta=0.02 δ = 0.02 , squared distances summed over the 16,384 latent dimensions, an initial posterior estimate of 0.05, and the estimate clamped to [ 10 − 6 , 0.99 ] [10^{-6},0.99] [ 1 0 − 6 , 0.99 ] , swept over η ∈ { 100 , 150 , 180 , 200 , 220 , 240 , 260 , 280 , 300 } \eta\in\{100, 150, 180, 200, 220, 240, 260, 280, 300\} η ∈ { 100 , 150 , 180 , 200 , 220 , 240 , 260 , 280 , 300 } .
Detector, reference, and floor. The style detector is a logistic head on the CSD style embedding [47 ] 4 , a 768-dimensional descriptor of artistic style, fit by L-BFGS with an ℓ 2 \ell_2 ℓ 2 penalty of 10 − 2 10^{-2} 1 0 − 2 on a calibration set whose positives are Van Gogh renderings of the content and whose negatives are Rembrandt renderings and plain content, all from seed blocks disjoint from every evaluation pool. The reference set keeps the 2048 images least like the avoided style, the bottom quarter by detector score of an 8192-image content pool. The oracle floor regenerates an independent 8192-image pool with disjoint seeds and applies the same filter. FID uses the Inception-2048 features of pytorch-fid [44 ] , KID [6 ] is the unbiased cubic-polynomial-kernel estimate averaged over 100 random subsets of 1024, and Style-FD is the Fréchet distance in the CSD embedding space. The reported rate is the mean of the detector probability over the evaluated images, not a thresholded fraction. For the weighted rows, all three distances instead use closed-form importance-weighted moments over the full set, without subsampling. Because the oracle floor is itself a filtered content pool, its rate 0.238 is the residual style rate of that distribution; it is a reference point rather than a lower bound.
Qualitative comparison. Figure 6 shows randomly selected images from each sampler. Grid (a) is the avoided style, generated with the style prompt: most images follow the composition of Café Terrace at Night , with the yellow awning and the swirling starry sky. PU Steering in grid (b) keeps the prompted scene while spreading over a variety of painting styles, a minority of its images still resembling the avoided style. SLD in grid (c) stays close to the avoided style in a visibly larger fraction of images, and NegCFG in grid (d) loses the saturated palette and shows washed-out colors and distortions, removing the style at the cost of the scene.
Figure 6. Randomly selected 8 × 8 8 \times8 8 × 8 image grids, from Table 9: PU Steering at M = 128 M=128 M = 128 , λ = 16 \lambda=16 λ = 16 read as the equal-weight output after resampling, SLD at XXMAX, and NegCFG at η = 3 \eta=3 η = 3 , its lowest-FID strength.
Results. Table 9 reports every configuration and Figure 7 plots the resulting frontier. PU Steering at M = 128 M=128 M = 128 , λ = 16 \lambda=16 λ = 16 reduces the rate of the equal-weight output to 0.235, essentially the floor value, while attaining the lowest FID (28.10 against the floor’s 18.52) and KID (0.0054 against 0.0002) among the equal-weight outputs. NegCFG reaches rates down to 0.222, but its FID never falls below 82.75, worse than the content anchor at 60.98, and its Style-FD stays at or above 0.897: it removes the style by destroying the content. DNG traces a different curve, its FID falling to a minimum of 44.88 at η = 200 \eta=200 η = 200 and rising again to 93.17 at η = 300 \eta=300 η = 300 while the rate never falls below 0.277. SLD leaves the rate at 0.334 at its strongest published preset, and the amplified settings reach 0.296 with FID between 41.82 and 43.70. Raising the particle count from M = 64 M=64 M = 64 to M = 128 M=128 M = 128 at λ = 16 \lambda=16 λ = 16 lowers the rate from 0.276 to 0.235, the FID from 33.46 to 28.10 and the KID from 0.0105 to 0.0054, while Style-FD rises slightly from 0.086 to 0.095. The mean terminal ESS stays between 0.47M M M and 0.51M M M across configurations. The last block disables resampling and switches the tempering to a linear ramp to keep the run stable; the weighted estimate then stays accurate while the plain images degrade toward the proposal, which is why the main protocol reads the resampled particles unweighted.
Table 9: Stable Diffusion v1.4 avoiding Van Gogh style, 2048 images per configuration, lower is better throughout. Gray rows are anchors rather than competing methods. For PU Steering, “u.” evaluates the plain images and “w.” the SMC-weighted estimate, ESS/M M M is the mean per-run terminal effective sample size, and λ \lambda λ is the terminal tempering strength. Bold marks the best FID, KID, and Style-FD among the methods outside the no-resampling ablation. Representative baseline strengths are listed; Figure 7 plots every configuration of the sweeps.
Table 9.
Figure 7. Stable Diffusion, avoided-style rate against FID (left) and Style-FD (right); lower left is better in both panels. Every configuration of Table 9 is plotted, including the two no-resampling points, which are the rightmost M = 64 M=64 M = 64 markers.
Sample-size stability. The 2048 images per configuration are far fewer than the 30,000 on which FID is usually evaluated for text-to-image models [42 ] . The independent repetition of the M = 64 M=64 M = 64 , λ = 16 \lambda=16 λ = 16 configuration in Table 9 gives a rate of 0.280 against 0.276 and an FID of 33.41 against 33.46, with the remaining metrics similarly close, so the reported values are stable across seeds at this sample size.
Broader Impacts
This paper presents work whose goal is to advance the statistical foundations of negative guidance for diffusion models. The same mechanism can support safety-related applications of pretrained generative models. It can also in principle be repurposed to amplify rather than suppress an undesired condition. Such repurposing does not exceed what is already afforded by the underlying pretrained model and existing guidance methods, and our work does not increase the generative capability of the base model. We release no new pretrained model or dataset, and use only publicly released assets.