Introduction
Score-based diffusion models (Song et al., [80 ] ) are a powerful tool for generative modelling, and have become standard in the quantitative sciences as cheap surrogates for expensive simulators in numerical weather prediction (Couairon et al., [17 ] ; Price et al., [73 ] ), molecular simulation (Abramson et al., [2 ] ) and materials design (Zeni et al., 2025). Trained on data from a distribution p 0 p_0 p 0 , they generate new representative samples by running a denoising process p t p_t p t that anneals from a Gaussian reference p 1 p_1 p 1 down to the data p 0 p_0 p 0 , driven by a learned score ∇ x log p t \nabla_x \log p_t ∇ x log p t .
Often, scientists are interested in events E E E lying in regions where the data distribution assigns little mass p 0 [ E ] p_0[E] p 0 [ E ] . Such rare events carry outsized downstream impacts, and arise across a wide range of domains, from the environmental sciences (Lancelin et al., [50 ] ; Manshausen et al., [55 ] ; Peard et al., [69 ] ) and bioinformatics (Xie et al., 2026) to finance (Glasserman & Li, [35 ] ), engineering (Au & Wang, [5 ] ) and autonomous driving (O' Kelly et al., [66 ] ). Practitioners typically need two things: representative samples of the event, to characterise possible failure modes, and a calibrated estimate of its probability p 0 [ E ] p_0[E] p 0 [ E ] , to inform planning and resource allocation (Kaplan & Garrick, [44 ] ; Rubino et al., [75 ] ). The simplest approach is to draw N N N independent samples and form a Monte Carlo (MC) average to estimate p 0 [ E ] p_0[E] p 0 [ E ] , which is difficult precisely because the event is rare. The relative error is 1 / N p 0 [ E ] 1/\sqrt{Np_0[E]} 1/ N p 0 [ E ] , hence stabilising the variance requires N ∝ 1 / p 0 [ E ] N \propto1/p_0[E] N ∝ 1/ p 0 [ E ] samples, which is prohibitively expensive (Morio et al., [61 ] ; Rubino et al., [75 ] ). This has motivated a large body of research designed specifically to tackle the poor scaling of standard MC (Glasserman & Li, [35 ] ; Kahn & Harris, [43 ] ; Morio et al., [61 ] ).
Diffusion model steering offers a natural method for generating samples from E E E without the high costs of simple MC. A reward r 0 r_0 r 0 defines a tilted target π 0 ∝ p 0 e r 0 \pi_0 \propto p_0 e^{r_0} π 0 ∝ p 0 e r 0 , and inference-time guidance steers a pre-trained sampler towards it. At each denoising step, the gradient of a time-dependent reward r t r_t r t is added, so that the sampler targets π t ∝ p t e r t \pi_t \propto p_t e^{r_t} π t ∝ p t e r t ([16 , 81 ] (Uehara et al. 2025)). However, designing a good reward is difficult as the ideal r t r_t r t is often intractable, and any approximations used can guide the sampler towards a different distribution to π 0 \pi_0 π 0 . For rare-event sampling specifically, setting the tilting term e r 0 ≡ 1 E e^{r_0} \equiv1_E e r 0 ≡ 1 E recovers the rare-event tilted distribution p 0 ( ⋅ ∣ E ) ∝ p 0 1 E p_0(\cdot\mid E) \propto p_0 1_E p 0 ( ⋅ ∣ E ) ∝ p 0 1 E that we wish to sample from. However, this reward is a poor object for steering, as its gradient cannot be used to steer particles towards E E E .
Figure 1. We steer particles (●) from p r e f p_{\mathrm{ref}} p ref towards π 0 \pi_0 π 0 , which concentrates mass in the rare-event region of interest, using a guidance drift ∇ x r k \nabla_x r_k ∇ x r k . Particle size reflects the importance weights accumulated along the trajectory, which are used to resample (×) and form a rare event estimate, p 0 [ E ] p_0[E] p 0 [ E ] .
Recent works have attempted to address these problems. The error of using an imperfect reward r t r_t r t can be addressed using sequential Monte Carlo (SMC) by tracking importance weights along the denoising trajectory and resampling particles to focus on high probability regions ([40 , 78 , 79 ] (Wu et al. 2023)). In diffusion-based molecular simulation, Xie et al. (2026) adapt ideas from Abrams & Bussi [1 ] ; Shirts & Chodera [77 ] to estimate the occupancy of a rare metastable state using collective variables and a sequence of events E i E_i E i converging to E E E . Manshausen et al. [55 ] instead steer a diffusion model using the probability-flow ODE (PF-ODE) (Song et al. [80 ] ), and estimate p 0 [ E ] p_0[E] p 0 [ E ] using importance sampling. These methods have high compute costs, which become especially problematic in the rare event settings of interest here.
Contributions. First , we present DireSMC where we use a sequence of tilted marginals π t \pi_t π t to construct an unbiased sequential Monte Carlo estimator of p 0 [ E ] p_0[E] p 0 [ E ] that runs within the denoising process, obtaining both samples and probability estimates. We show that the variance is governed by the quality of our steering rather than the rarity. Second , we show how to design a reward for rare-event simulation, and in particular for threshold-exceedance events E = { x : ϕ ( x ) ≥ τ } E = \{x : \phi(x) \ge\tau\} E = { x : ϕ ( x ) ≥ τ } , giving a smooth surrogate whose look-ahead guidance is closed-form under a Tweedie posterior approximation ([16 , 81 ] ). Third , we empirically validate: (1) a Gaussian mixture where ground truth is available and we obtain probability estimates that do not degrade across 10 − 3 10^{-3} 1 0 − 3 –10 − 5 10^{-5} 1 0 − 5 orders of rarity. (2) a score-based climate emulator, where we draw samples and estimate probabilities of compound hot-and-dry extremes over the region of the 2021 Pacific Northwest heatwave, with net speed-ups of 9 × 9\times 9 × to 1413 × 1413\times 1413 × over Monte Carlo across rarities from 10 − 3 10^{-3} 1 0 − 3 to 10 − 5 10^{-5} 1 0 − 5 .
Background
Diffusion models. Let p d a t a p_{\mathrm{data}} p data be the true data generating distribution. A diffusion model ([80 ] ) progressively noises the data along a path p t p_t p t interpolating from p d a t a p_{\mathrm{data}} p data at t = 0 t = 0 t = 0 to a Gaussian reference p r e f p_{\mathrm{ref}} p ref at t = 1 t = 1 t = 1 . Sampling reverses this process: a X 1 ∼ p r e f X_1 \sim p_{\mathrm{ref}} X 1 ∼ p ref draw is evolved to t = 0 t = 0 t = 0 , under the reverse-time SDE,
d X t = [ μ t ( X t ) − σ t 2 ∇ x log p t ( X t ) ] d t + σ t d W ‾ t , t ∈ [ 0 , 1 ] , (1) \mathrm{d}X_t = \left[\mu_t(X_t) - \sigma_t^2 \nabla_x \log p_t(X_t)\right]\,\mathrm{d}t + \sigma_t\,\mathrm{d}\overline{W}_t,\qquad t \in[0,1], \tag*{(1)} d X t = [ μ t ( X t ) − σ t 2 ∇ x log p t ( X t ) ] d t + σ t d W t , t ∈ [ 0 , 1 ] , (1)
to generate from p d a t a p_{\mathrm{data}} p data . The drift μ t \mu_t μ t and the diffusion coefficient σ t \sigma_t σ t are fixed by the noise schedule, and the score ∇ x log p t \nabla_x \log p_t ∇ x log p t is approximated by a pre-trained network. In practice, Eq. (1) cannot be simulated directly. Instead, we fix a discretisation schedule 0 = t 0 < ⋯ < t K = 1 0 = t_0 < \cdots< t_K = 1 0 = t 0 < ⋯ < t K = 1 and a numerical integrator whose k k k -th step t k → t k − 1 t_k \to t_{k-1} t k → t k − 1 defines a Markov transition kernel P ‾ k − 1 ∣ k ( d x k − 1 ∣ x k ) \overline{P}_{k-1|k}(\mathrm{d}x_{k-1} \mid x_k) P k − 1∣ k ( d x k − 1 ∣ x k ) . Sampling corresponds to forming the K K K -step chain,
X K ∼ p r e f , X k − 1 ∣ X k ∼ P ‾ k − 1 ∣ k ( d x k − 1 ∣ X k ) , k = K , … , 1. (2) X_K \sim p_{\mathrm{ref}}, \qquad X_{k-1} \mid X_k \sim\overline{P}_{k-1|k}(\mathrm{d}x_{k-1} \mid X_k), \qquad k = K,\ldots,1. \tag*{(2)} X K ∼ p ref , X k − 1 ∣ X k ∼ P k − 1∣ k ( d x k − 1 ∣ X k ) , k = K , … , 1. (2)
Let p k p_k p k denote the marginal law of X k X_k X k under this chain. Hence p K = p r e f p_K=p_{\mathrm{ref}} p K = p ref and p k − 1 ( x k − 1 ) = ∫ p k ( x k ) P ~ k − 1 ∣ k ( x k − 1 ∣ x k ) d x k p_{k-1}(x_{k-1})=\int p_k(x_k)\,\widetilde{P}_{k-1\mid k}(x_{k-1}\mid x_k)\,\mathrm{d}x_k p k − 1 ( x k − 1 ) = ∫ p k ( x k ) P k − 1 ∣ k ( x k − 1 ∣ x k ) d x k . Henceforth, we refer to the end-point of the discretised chain as p 0 p_0 p 0 , with X 0 ∼ p 0 X_0\sim p_0 X 0 ∼ p 0 . As the discretisation is refined both p k → p t = t k p_k\to p_{t=t_k} p k → p t = t k and p 0 → p d a t a p_0\to p_{\mathrm{data}} p 0 → p data at a rate given by the weak-order convergence of the integrator ([6 , 13 , 59 ] ). Throughout, we assume that we can simulate from the transition kernels and have access to the score, but not to the densities p t p_t p t and p k p_k p k , which are generally intractable.
Rare Event Probabilities. Given a rare-event set E ⊂ R d E\subset\mathbb{R}^d E ⊂ R d and the endpoint law of the chain p 0 p_0 p 0 , we seek to estimate its probability p 0 [ E ] = ∫ 1 E ( x ) p 0 ( x ) d x p_0[E]=\int1_E(x)p_0(x)\,\mathrm{d}x p 0 [ E ] = ∫ 1 E ( x ) p 0 ( x ) d x . A natural estimator of p 0 [ E ] p_0[E] p 0 [ E ] is obtained by drawing N N N independent samples, X 0 n ∼ p 0 X_0^n\sim p_0 X 0 n ∼ p 0 and forming the Monte Carlo (MC) estimate,
p ^ 0 M C [ E ] : = 1 N ∑ n = 1 N 1 E ( X 0 n ) , E [ p ^ 0 M C [ E ] ] = p 0 [ E ] . (3) \widehat{p}_0^{\mathrm{MC}}[E]:=\frac{1}{N}\sum_{n=1}^{N}1_E(X_0^n),\qquad\mathbb{E}\left[\widehat{p}_0^{\mathrm{MC}}[E]\right]=p_0[E]. \tag*{(3)} p 0 MC [ E ] := N 1 n = 1 ∑ N 1 E ( X 0 n ) , E [ p 0 MC [ E ] ] = p 0 [ E ] . (3)
However, its relative variance is ( 1 − p 0 [ E ] ) / ( N p 0 [ E ] ) (1-p_0[E])/(Np_0[E]) ( 1 − p 0 [ E ]) / ( N p 0 [ E ]) , so when the event is rare, an impractical number N ∝ 1 / p 0 [ E ] N\propto1/p_0[E] N ∝ 1/ p 0 [ E ] of runs are needed for a fixed relative error ([75 ] ).
Rare-event sampling and probability estimation
Notation. For a measure μ \mu μ , μ [ f ] : = ∫ f ( x ) μ ( d x ) \mu[f]:=\int f(x)\,\mu(\mathrm{d}x) μ [ f ] := ∫ f ( x ) μ ( d x ) for a function f f f and μ [ A ] : = μ [ 1 A ] \mu[A]:=\mu[1_A] μ [ A ] := μ [ 1 A ] for a set A A A . Square brackets denote action on a function or set, and parentheses a density or kernel evaluation.
We seek to construct a low variance estimator of p 0 [ E ] p_0[E] p 0 [ E ] with the same expectation as Eq. (3) . We do so by reward tilting ([75 ] (Uehara et al. 2025)). A user-specified reward r 0 : R d → R r_0:\mathbb{R}^d\to\mathbb{R} r 0 : R d → R biases the base density to γ 0 ( x ) : = p 0 ( x ) e r 0 ( x ) \gamma_0(x):=p_0(x)e^{r_0(x)} γ 0 ( x ) := p 0 ( x ) e r 0 ( x ) with a normalised form given by π 0 : = γ 0 / γ 0 [ 1 ] \pi_0:=\gamma_0/\gamma_0[1] π 0 := γ 0 / γ 0 [ 1 ] . Since p 0 = γ 0 e − r 0 p_0=\gamma_0e^{-r_0} p 0 = γ 0 e − r 0 , both samples and estimates are functionals of the tilted law,
p 0 [ E ] = γ 0 [ e − r 0 1 E ] , p 0 ( x ∣ E ) = e − r 0 ( x ) 1 E ( x ) π 0 ( x ) π 0 [ e − r 0 1 E ] . (4) p_0[E]=\gamma_0[e^{-r_0}1_E],\qquad p_0(x\mid E)=\frac{e^{-r_0(x)}1_E(x)\pi_0(x)}{\pi_0[e^{-r_0}1_E]}. \tag*{(4)} p 0 [ E ] = γ 0 [ e − r 0 1 E ] , p 0 ( x ∣ E ) = π 0 [ e − r 0 1 E ] e − r 0 ( x ) 1 E ( x ) π 0 ( x ) . (4)
In the remainder of the section, we detail how to efficiently sample from p 0 ( ⋅ ∣ E ) p_0(\cdot\mid E) p 0 ( ⋅ ∣ E ) , construct an estimator p ^ 0 [ E ] \widehat{p}_0[E] p 0 [ E ] using Sequential Monte Carlo (SMC), and design a reward that reduces its variance. While we present the following for discretised transition kernels, DireSMC holds automatically for the continuous time construction of a diffusion model.
Steering The diffusion Models towards Rare Events
The marginals of the diffusion model, p k p_k p k , tilted by the reward r k r_k r k , define a sequence of densities,
γ k ( x ) : = p k ( x ) e r k ( x ) , π k ( x ) : = γ k ( x ) / γ k [ 1 ] , k = K , … , 0 , (5) \gamma_k(x):=p_k(x)e^{r_k(x)},\qquad\pi_k(x):=\gamma_k(x)/\gamma_k[1],\qquad k=K,\ldots,0, \tag*{(5)} γ k ( x ) := p k ( x ) e r k ( x ) , π k ( x ) := γ k ( x ) / γ k [ 1 ] , k = K , … , 0 , (5)
pinned at both ends. At k = 0 k=0 k = 0 (data), we set r 0 r_0 r 0 to be the reward of Eq. (4) , and at k = K k=K k = K (noise) we impose r K = 0 r_K=0 r K = 0 , such that γ K = p r e f \gamma_K=p_{\mathrm{ref}} γ K = p ref . We defer reward path r K − 1 , … , r 1 r_{K-1},\ldots,r_1 r K − 1 , … , r 1 selection to § 3.4 .
Sequential Monte Carlo Sampler. We sample from the sequence of marginals of Eq. (5) using a sequential Monte Carlo sampler ([19 , 24 ] (Dagan et al. 2023)). We refer readers to App. § 10 .§ 2 for its general formulation; below we give a version adapted to our setting. Firstly, initialise N N N particles, X K n ∼ p r e f X_K^n\sim p_{\mathrm{ref}} X K n ∼ p ref with weights w K n = 1 w_K^n=1 w K n = 1 . At each step k k k , (i) propagate each particle through a backward proposal kernel, Q ~ k − 1 ∣ k \widetilde{Q}_{k-1\mid k} Q k − 1 ∣ k , and (ii) update its weight by,
X k − 1 n ∼ Q ~ k − 1 ∣ k ( ⋅ ∣ X k n ) , w k − 1 n = w k n g k − 1 ∣ k ( X k − 1 n , X k n ) , (6) X_{k-1}^n\sim\widetilde{Q}_{k-1\mid k}(\cdot\mid X_k^n),\qquad w_{k-1}^n=w_k^n g_{k-1\mid k}(X_{k-1}^n,X_k^n), \tag*{(6)} X k − 1 n ∼ Q k − 1 ∣ k ( ⋅ ∣ X k n ) , w k − 1 n = w k n g k − 1 ∣ k ( X k − 1 n , X k n ) , (6)
where g k − 1 ∣ k g_{k-1\mid k} g k − 1 ∣ k is the incremental weight function built from an auxiliary forward kernel F ‾ k ∣ k − 1 \overline{F}_{k\mid k-1} F k ∣ k − 1 ,
g k − 1 ∣ k ( x k − 1 , x k ) = ( exp ( r k − 1 ( x k − 1 ) ) exp ( r k ( x k ) ) ) ⋅ ( p k − 1 ( x k − 1 ) p k ( x k ) F ‾ k ∣ k − 1 ( x k ∣ x k − 1 ) Q ~ k − 1 ∣ k ( x k − 1 ∣ x k ) ) . (7) g_{k-1\mid k}(x_{k-1},x_k)=\left(\frac{\exp\left(r_{k-1}(x_{k-1})\right)}{\exp\left(r_k(x_k)\right)}\right)\cdot\left(\frac{p_{k-1}(x_{k-1})}{p_k(x_k)}\frac{\overline{F}_{k\mid k-1}(x_k\mid x_{k-1})}{\widetilde{Q}_{k-1\mid k}(x_{k-1}\mid x_k)}\right). \tag*{(7)} g k − 1 ∣ k ( x k − 1 , x k ) = ( exp ( r k ( x k ) ) exp ( r k − 1 ( x k − 1 ) ) ) ⋅ ( p k ( x k ) p k − 1 ( x k − 1 ) Q k − 1 ∣ k ( x k − 1 ∣ x k ) F k ∣ k − 1 ( x k ∣ x k − 1 ) ) . (7)
The first factor is the ratio of reward-tilts at consecutive steps; the second is a likelihood ratio of the base process, involving the marginals p k p_k p k we cannot evaluate. The choice of both kernels is flexible, provided we can sample from Q ~ k − 1 ∣ k \widetilde{Q}_{k-1\mid k} Q k − 1 ∣ k and evaluate g k − 1 ∣ k g_{k-1\mid k} g k − 1 ∣ k pointwise ([19 ] ). Optionally, when the effective sample size, ESS ( w k − 1 ) : = ∥ w k − 1 ∥ 1 2 / ∥ w k − 1 ∥ 2 2 \operatorname{ESS}(w_{k-1}):=\lVert w_{k-1}\rVert_1^2/\lVert w_{k-1}\rVert_2^2 ESS ( w k − 1 ) := ∥ w k − 1 ∥ 1 2 / ∥ w k − 1 ∥ 2 2 drops below a threshold η N \eta N η N for η ∈ [ 0 , 1 ] \eta\in[0,1] η ∈ [ 0 , 1 ] , we can resample, replacing each particle by an ancestor drawn in proportion to its weight and resetting the weights to the average weights of the ancestors. This is done through setting X k − 1 n ← X k − 1 a n X_{k-1}^{n} \leftarrow X_{k-1}^{a^{n}} X k − 1 n ← X k − 1 a n and w k − 1 n ← 1 N ∑ n w k − 1 n w_{k-1}^{n} \leftarrow\frac{1}{N}\sum_{n}w_{k-1}^{n} w k − 1 n ← N 1 ∑ n w k − 1 n with the ancestor index a n a^{n} a n drawn, e.g. systematically, from Pr [ a n = m ∣ w k − 1 ] ∝ w k − 1 m \Pr[a^{n}=m\mid w_{k-1}] \propto w_{k-1}^{m} Pr [ a n = m ∣ w k − 1 ] ∝ w k − 1 m ([15 ] ). As resampling duplicates high-weight particles and depletes diversity, we follow it with a rejuvenation step, X k − 1 n ∼ M k − 1 ( ⋅ ∣ X k − 1 n ) X_{k-1}^{n} \sim M_{k-1}(\cdot\mid X_{k-1}^{n}) X k − 1 n ∼ M k − 1 ( ⋅ ∣ X k − 1 n ) , using a π k − 1 \pi_{k-1} π k − 1 -invariant MCMC kernel M k − 1 M_{k-1} M k − 1 . We use the Metropolis-adjusted diffusion model (MADM) kernel of ([49 ] ), which approximates a Metropolis-adjusted Langevin kernel using only the score and r k r_k r k ; both quantities that we already have access to (App. § 16 ).
Choice of Kernels
We construct our kernels to, (i) circumvent the intractable marginals and (ii) concentrate samples on E E E . For the first, we set F ˉ k ∣ k − 1 \bar{F}_{k\mid k-1} F ˉ k ∣ k − 1 as the time reversal of the base chain,
F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) : = p k ( x k ) P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) p k − 1 ( x k − 1 ) , (8) \bar{F}_{k\mid k-1}(x_k\mid x_{k-1}) := p_k(x_k)\frac{\bar{P}_{k-1\mid k}(x_{k-1}\mid x_k)}{p_{k-1}(x_{k-1})}, \tag*{(8)} F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) := p k ( x k ) p k − 1 ( x k − 1 ) P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) , (8)
where P ˉ k − 1 ∣ k \bar{P}_{k-1\mid k} P ˉ k − 1 ∣ k is the reverse diffusion kernel. This removes the intractable ratio and is a Markov kernel by the marginal recursion of p k − 1 p_{k-1} p k − 1 of § 2 . Our backward proposal, Q ˉ k − 1 ∣ k \bar{Q}_{k-1\mid k} Q ˉ k − 1 ∣ k is defined by adding the gradient of the reward, or the guidance , to the reverse drift of Eq. (1) ,
d X t = [ μ t ( X t ) − σ t 2 ( ∇ x log p t ( X t ) + ∇ x r t ( X t ) ) ] d t + σ t d W ← t , (9) dX_t = \left[\mu_t(X_t)-\sigma_t^2\left(\nabla_x\log p_t(X_t)+\nabla_xr_t(X_t)\right)\right]dt+\sigma_t\,d\overleftarrow{W}_t, \tag*{(9)} d X t = [ μ t ( X t ) − σ t 2 ( ∇ x log p t ( X t ) + ∇ x r t ( X t ) ) ] d t + σ t d W t , (9)
so that steering is exactly a tilt of the score, ∇ x log p k → ∇ x log p k + ∇ x r k \nabla_x\log p_k \to\nabla_x\log p_k+\nabla_xr_k ∇ x log p k → ∇ x log p k + ∇ x r k and Q ˉ k − 1 ∣ k \bar{Q}_{k-1\mid k} Q ˉ k − 1 ∣ k and P ˉ k − 1 ∣ k \bar{P}_{k-1\mid k} P ˉ k − 1 ∣ k share the same integration steps but differ in the score. In our construction the guidance strength is defined within r k r_k r k ((Uehara et al., 2025)). Substituting into Eq. (7) gives the update function,
g k − 1 ∣ k ( x k − 1 , x k ) = e r k − 1 ( x k − 1 ) e r k ( x k ) ⋅ P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) . (10) g_{k-1\mid k}(x_{k-1},x_k)=\frac{e^{r_{k-1}(x_{k-1})}}{e^{r_k(x_k)}}\cdot\frac{\bar{P}_{k-1\mid k}(x_{k-1}\mid x_k)}{\bar{Q}_{k-1\mid k}(x_{k-1}\mid x_k)}. \tag*{(10)} g k − 1 ∣ k ( x k − 1 , x k ) = e r k ( x k ) e r k − 1 ( x k − 1 ) ⋅ Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) . (10)
Computing the Incremental Weights
Eq. (10) requires the ratio P ˉ k − 1 ∣ k / Q ˉ k − 1 ∣ k \bar{P}_{k-1\mid k}/\bar{Q}_{k-1\mid k} P ˉ k − 1 ∣ k / Q ˉ k − 1 ∣ k pointwise. For one-step explicit integrators ([59 ] ) with Gaussian transitions and a mean affine in the score, guidance shifts the mean but leaves the covariance invariant. So, for integrator dependent scalars c k , v k > 0 c_k,v_k>0 c k , v k > 0 ,
P ˉ k − 1 ∣ k ( d x k − 1 ∣ x k ) = N ( m k ( x k ) , v k I ) , Q ˉ k − 1 ∣ k ( d x k − 1 ∣ x k ) = N ( m k ( x k ) + c k ∇ x r k ( x k ) , v k I ) . (11) \begin{aligned}
\bar{P}_{k-1\mid k}(dx_{k-1}\mid x_k)&=\mathcal{N}\left(m_k(x_k),v_kI\right),\\
\bar{Q}_{k-1\mid k}(dx_{k-1}\mid x_k)&=\mathcal{N}\left(m_k(x_k)+c_k\nabla_xr_k(x_k),v_kI\right). \tag*{(11)}
\end{aligned} P ˉ k − 1 ∣ k ( d x k − 1 ∣ x k ) Q ˉ k − 1 ∣ k ( d x k − 1 ∣ x k ) = N ( m k ( x k ) , v k I ) , = N ( m k ( x k ) + c k ∇ x r k ( x k ) , v k I ) . (11)
This holds for first-order stochastic integrators such as Euler-Maruyama or SEEDS-1 of ([37 ] ), but not for higher-order schemes that evaluate the score at a noisy intermediate point, e.g. the stochastic Heun integrator of ([45 ] ).
Lemma 1. Under Eq. (11) , let ζ k : = c k / v k \zeta_k:=c_k/\sqrt{v_k} ζ k := c k / v k , ϵ k ∼ N ( 0 , I ) \epsilon_k\sim\mathcal{N}(0,I) ϵ k ∼ N ( 0 , I ) for sampling x k − 1 x_{k-1} x k − 1 from Q ˉ k − 1 ∣ k \bar{Q}_{k-1\mid k} Q ˉ k − 1 ∣ k , then
log g k − 1 ∣ k ( x k − 1 , x k ) = r k − 1 ( x k − 1 ) − r k ( x k ) − ( ζ k 2 / 2 ) ∥ ∇ x r k ( x k ) ∥ 2 − ζ k ⟨ ∇ x r k ( x k ) , ϵ k ⟩ . (12) \log g_{k-1\mid k}(x_{k-1},x_k)=r_{k-1}(x_{k-1})-r_k(x_k)-(\zeta_k^2/2)\left\lVert\nabla_xr_k(x_k)\right\rVert^2-\zeta_k\langle\nabla_xr_k(x_k),\epsilon_k\rangle. \tag*{(12)} log g k − 1 ∣ k ( x k − 1 , x k ) = r k − 1 ( x k − 1 ) − r k ( x k ) − ( ζ k 2 /2 ) ∥ ∇ x r k ( x k ) ∥ 2 − ζ k ⟨ ∇ x r k ( x k ) , ϵ k ⟩ . (12)
The proof is given in App. § 8 ; we use the analytical form for a ratio of Gaussians with a shared covariance alongside a discrete Cameron-Martin correction for the guidance term ([64 ] ). The lemma states that the choice of numerical integrator only enters the weights via the scalar ζ k \zeta_k ζ k . Additionally, tracking the weights requires no additional network calls as both ∇ x r k \nabla_xr_k ∇ x r k and ϵ k \epsilon_k ϵ k are readily available when the particle is steered. Under this formulation, for the Euler-Maruyama integrator with a VP-SDE noise schedule: c k = v k = σ t k 2 Δ t k c_k=v_k=\sigma_{t_k}^2\Delta t_k c k = v k = σ t k 2 Δ t k gives ζ k = σ t k Δ t k \zeta_k=\sigma_{t_k}\sqrt{\Delta t_k} ζ k = σ t k Δ t k , and Eq. (12) recovers the weights of ([40 ] ). App. § 11 .§ 1 derives ζ k \zeta_k ζ k for different integrators.
Estimators. With the weights reset to the average at each resampling, the particle system at k = 0 k=0 k = 0 is a weighted approximation of γ 0 \gamma_0 γ 0 , and substituting the weights into Eq. (4) gives the two outputs we are after: the probability estimate p ^ 0 [ E ] = γ ^ 0 [ e − r 0 1 E ] \hat{p}_0[E]=\hat{\gamma}_0[e^{-r_0}\mathbf{1}_E] p ^ 0 [ E ] = γ ^ 0 [ e − r 0 1 E ] and weighted samples from the conditional,
p ^ 0 [ E ] = 1 N ∑ n = 1 N w 0 n e − r 0 ( X 0 n ) 1 E ( X 0 n ) , p ^ 0 [ d x ∣ E ] = ∑ n = 1 N w 0 n e − r 0 ( X 0 n ) 1 E ( X 0 n ) δ X 0 n [ d x ] ∑ n = 1 N w 0 n e − r 0 ( X 0 n ) 1 E ( X 0 n ) . (13) \hat{p}_0[E]=\frac{1}{N}\sum_{n=1}^{N}w_0^n e^{-r_0(X_0^n)}\mathbf{1}_E(X_0^n),\qquad
\hat{p}_0[dx\mid E]=\frac{\sum_{n=1}^{N}w_0^n e^{-r_0(X_0^n)}\mathbf{1}_E(X_0^n)\delta_{X_0^n}[dx]}{\sum_{n=1}^{N}w_0^n e^{-r_0(X_0^n)}\mathbf{1}_E(X_0^n)}. \tag*{(13)} p ^ 0 [ E ] = N 1 n = 1 ∑ N w 0 n e − r 0 ( X 0 n ) 1 E ( X 0 n ) , p ^ 0 [ d x ∣ E ] = ∑ n = 1 N w 0 n e − r 0 ( X 0 n ) 1 E ( X 0 n ) ∑ n = 1 N w 0 n e − r 0 ( X 0 n ) 1 E ( X 0 n ) δ X 0 n [ d x ] . (13)
Theorem 1. *Suppose P ˉ k − 1 ∣ k ≪ Q ˉ k − 1 ∣ k \bar{P}_{k-1\mid k}\ll\bar{Q}_{k-1\mid k} P ˉ k − 1 ∣ k ≪ Q ˉ k − 1 ∣ k for all k k k , and the rejuvenation kernels M k M_k M k are π k \pi_k π k -invariant. Then, for any K , N K,N K , N , rewards r 0 , … , r K r_0,\ldots,r_K r 0 , … , r K with r K = 0 r_K=0 r K = 0 and γ 0 [ 1 ] < ∞ \gamma_0[1]<\infty γ 0 [ 1 ] < ∞ , and any adaptive resampling schedule, E [ p ^ 0 [ E ] ] = p 0 [ E ] = E [ p ^ 0 [ E ] ] \mathbb{E}[\hat{p}_0[E]] = p_0[E] = \mathbb{E}[\hat{p}_0[E]] E [ p ^ 0 [ E ]] = p 0 [ E ] = E [ p ^ 0 [ E ]] , and p ^ 0 [ ⋅ ∣ E ] \hat{p}_0[\cdot\mid E] p ^ 0 [ ⋅ ∣ E ] converges almost surely to p 0 [ ⋅ ∣ E ] p_0[\cdot\mid E] p 0 [ ⋅ ∣ E ] as N → ∞ N\to\infty N → ∞ . Moreover, if the score is exact and p d a t a [ ∂ E ] = 0 p_{\mathrm{data}}[\partial E]=0 p data [ ∂ E ] = 0 , then E [ p ^ 0 [ E ] ] → p d a t a [ E ] \mathbb{E}[\hat{p}_0[E]]\to p_{\mathrm{data}}[E] E [ p ^ 0 [ E ]] → p data [ E ] as K → ∞ K\to\infty K → ∞ .
Algorithm 1 DireSMC: Steering diffusion models to rare events.
Require: pretrained diffusion model, transition kernels, P ˉ k − 1 ∣ k \bar{P}_{k-1|k} P ˉ k − 1∣ k and Q ˉ k − 1 ∣ k \bar{Q}_{k-1|k} Q ˉ k − 1∣ k , rare event E E E , reward path r k r_k r k , particles N N N , discretisation schedule 1 = t K > ⋯ > t 0 = 0 1=t_K>\cdots>t_0=0 1 = t K > ⋯ > t 0 = 0 , ESS threshold η ∈ [ 0 , 1 ] \eta\in[0,1] η ∈ [ 0 , 1 ] .
1: X K n ∼ p r e f X_K^n\sim p_{\mathrm{ref}} X K n ∼ p ref , w K n ← 1 w_K^n\leftarrow1 w K n ← 1 for n = 1 , … , N n=1,\ldots,N n = 1 , … , N , 2: for k = K , … , 1 k=K,\ldots,1 k = K , … , 1 do 3: X k − 1 n ∼ Q k − 1 ∣ k ( d x k − 1 ∣ X k n ) X_{k-1}^n\sim Q_{k-1|k}(\mathrm{d}x_{k-1}\mid X_k^n) X k − 1 n ∼ Q k − 1∣ k ( d x k − 1 ∣ X k n ) ▷ One integrator step with the guided score Eq. (11) 4: w k − 1 n ← w k n g k − 1 ∣ k ( X k − 1 n , X k n ) w_{k-1}^n\leftarrow w_k^n g_{k-1|k}(X_{k-1}^n,X_k^n) w k − 1 n ← w k n g k − 1∣ k ( X k − 1 n , X k n ) ▷ Update weights using Eq. (12) 5: if ESS ( w k − 1 ) < η N \operatorname{ESS}(w_{k-1})<\eta N ESS ( w k − 1 ) < η N then 6: w ˉ ← 1 N ∑ m w k − 1 m \bar{w}\leftarrow\frac{1}{N}\sum_m w_{k-1}^m w ˉ ← N 1 ∑ m w k − 1 m , 7: X k − 1 n ← X k − 1 a n , w k − 1 ← w ˉ X_{k-1}^n\leftarrow X_{k-1}^{a_n},\ w_{k-1}\leftarrow\bar{w} X k − 1 n ← X k − 1 a n , w k − 1 ← w ˉ ▷ Draw a n a^n a n using systematic resampling 8: X k − 1 n ∼ M k − 1 ( d x k − 1 ∣ X k − 1 n ) X_{k-1}^n\sim M_{k-1}(\mathrm{d}x_{k-1}\mid X_{k-1}^n) X k − 1 n ∼ M k − 1 ( d x k − 1 ∣ X k − 1 n ) ▷ Rejuvenate with a π k − 1 \pi_{k-1} π k − 1 invariant MCMC kernel 9: end if 10: end for 11: return p ^ 0 [ E ] \hat{p}_0[E] p ^ 0 [ E ] and p ^ 0 [ d x ∣ E ] \hat{p}_0[\mathrm{d}x\mid E] p ^ 0 [ d x ∣ E ] from Eq. (13)
The proof is given in App. § 8 and follows from the unbiasedness of the SMC normalisation constant estimator under adaptive resampling and π k − 1 \pi_{k-1} π k − 1 invariant moves [20 ] (Syed et al. 2026). The estimator is well suited to the rare-event setting as it remains unbiased for any reward, however poorly it may steer. The normalisation constant, p ^ 0 [ E ] \hat{p}_0[E] p ^ 0 [ E ] is accumulated along the denoising process rather than estimated separately [19 , 24 ] (Vargas et al. 2023) (App. § 10 .§ 3 ). The rewards only affects the variance, which is the subject of § 3.4 below.
Reward selection
Theorem 1 shows p ^ 0 [ E ] \hat{p}_0[E] p ^ 0 [ E ] is unbiased independent of reward choice, however, a poorly chosen steering inflates the variance of p ^ 0 [ E ] \hat{p}_0[E] p ^ 0 [ E ] to an impractical number of required samples [12 ] . We construct a reward path and associated transition kernels that reduce the variance of p ^ 0 [ E ] \hat{p}_0[E] p ^ 0 [ E ] . Let P 0 : K \mathbb{P}_{0:K} P 0 : K and Q 0 : K \mathbb{Q}_{0:K} Q 0 : K be the joint laws over the base and guided chains, ( X 0 , … , X K ) (X_0,\ldots,X_K) ( X 0 , … , X K ) . The ideal law to simulate from is the base chain reweighted by e r 0 ( X 0 ) / γ 0 [ 1 ] e^{r_0(X_0)}/\gamma_0[1] e r 0 ( X 0 ) / γ 0 [ 1 ] , since its endpoint is π 0 \pi_0 π 0 . This is Doob’s h h h -transform, P 0 : K ∗ \mathbb{P}_{0:K}^* P 0 : K ∗ of P 0 : K \mathbb{P}_{0:K} P 0 : K [18 , 21 ] . Writing P ˉ 0 ∣ k \bar{P}_{0|k} P ˉ 0∣ k as the denoising posterior of X 0 X_0 X 0 given X k X_k X k , the optimal reward and transitions are
r k ∗ ( x k ) : = log ∫ P ˉ 0 ∣ k ( d x 0 ∣ x k ) e r 0 ( x 0 ) , r_k^*(x_k):=\log\int\bar{P}_{0|k}(\mathrm{d}x_0\mid x_k)e^{r_0(x_0)}, r k ∗ ( x k ) := log ∫ P ˉ 0∣ k ( d x 0 ∣ x k ) e r 0 ( x 0 ) ,
P ˉ k − 1 ∣ k ∗ ( d x k − 1 ∣ x k ) : = P ˉ k − 1 ∣ k ( d x k − 1 ∣ x k ) e r k − 1 ∗ ( x k − 1 ) − r k ∗ ( x k ) (14) \bar{P}_{k-1|k}^*(\mathrm{d}x_{k-1}\mid x_k):=\bar{P}_{k-1|k}(\mathrm{d}x_{k-1}\mid x_k)e^{r_{k-1}^*(x_{k-1})-r_k^*(x_k)} \tag*{(14)} P ˉ k − 1∣ k ∗ ( d x k − 1 ∣ x k ) := P ˉ k − 1∣ k ( d x k − 1 ∣ x k ) e r k − 1 ∗ ( x k − 1 ) − r k ∗ ( x k ) (14)
and its marginal at step k k k is π k ∗ ∝ p k e r k ∗ \pi_k^*\propto p_k e^{r_k^*} π k ∗ ∝ p k e r k ∗ , with π 0 ∗ = π 0 \pi_0^*=\pi_0 π 0 ∗ = π 0 (App. § 8 ). While we refer to r k ∗ r_k^* r k ∗ as a reward for simplicity, it is also known as the value function in stochastic optimal control; see [7 ] . The discrepancy between P 0 : K ∗ \mathbb{P}_{0:K}^* P 0 : K ∗ and Q 0 : K \mathbb{Q}_{0:K} Q 0 : K determines the variance of our estimator.
Theorem 2. Suppose there is no resampling (η = 0 \eta=0 η = 0 ), P ˉ k − 1 ∣ k ≪ Q ˉ k − 1 ∣ k \bar{P}_{k-1|k}\ll\bar{Q}_{k-1|k} P ˉ k − 1∣ k ≪ Q ˉ k − 1∣ k for all k k k , and e r 0 ≥ c e^{r_0}\ge c e r 0 ≥ c on E E E for some c ∈ ( 0 , 1 ] c\in(0,1] c ∈ ( 0 , 1 ] . Then
Var [ p ^ 0 [ E ] ] p 0 [ E ] 2 ≤ 1 N [ ( γ 0 [ 1 ] c p 0 [ E ] ) 2 ( 1 + χ 2 ( P 0 : K ∗ ∥ Q 0 : K ) ) − 1 ] , (15) \frac{\operatorname{Var}[\hat{p}_0[E]]}{p_0[E]^2}\le\frac{1}{N}\left[\left(\frac{\gamma_0[1]}{c p_0[E]}\right)^2\left(1+\chi^2(\mathbb{P}_{0:K}^*\Vert\mathbb{Q}_{0:K})\right)-1\right], \tag*{(15)} p 0 [ E ] 2 Var [ p ^ 0 [ E ]] ≤ N 1 [ ( c p 0 [ E ] γ 0 [ 1 ] ) 2 ( 1 + χ 2 ( P 0 : K ∗ ∥ Q 0 : K ) ) − 1 ] , (15) with equality when e r 0 = c 1 E e^{r_0}=c1_E e r 0 = c 1 E , in which case P 0 : K ∗ \mathbb{P}_{0:K}^* P 0 : K ∗ is P 0 : K \mathbb{P}_{0:K} P 0 : K conditioned on X 0 ∈ E X_0\in E X 0 ∈ E . Moreover, the Doob transitions minimise Pearson’s χ 2 \chi^2 χ 2 divergence: for any Q ˉ k − 1 ∣ k \bar{Q}_{k-1|k} Q ˉ k − 1∣ k , χ 2 ( P 0 : K ∗ ∥ Q 0 : K ) ≥ χ 2 ( π k ∗ ∥ p r e f ) \chi^2(\mathbb{P}_{0:K}^*\Vert\mathbb{Q}_{0:K})\ge\chi^2(\pi_k^*\Vert p_{\mathrm{ref}}) χ 2 ( P 0 : K ∗ ∥ Q 0 : K ) ≥ χ 2 ( π k ∗ ∥ p ref ) with equality when Q ˉ k − 1 ∣ k = P ˉ k − 1 ∣ k ∗ \bar{Q}_{k-1|k}=\bar{P}_{k-1|k}^* Q ˉ k − 1∣ k = P ˉ k − 1∣ k ∗ for all k k k . The minimum is at most χ 2 ( π 0 ∥ p 0 ) \chi^2(\pi_0\Vert p_0) χ 2 ( π 0 ∥ p 0 ) , and it is zero if X K X_K X K is independent of X 0 X_0 X 0 under P 0 : K \mathbb{P}_{0:K} P 0 : K .
The proof is in App. § 8 and follows from the chain rule of measures and the data-processing inequality. The bound separates two design choices: (1) the endpoint reward affects γ 0 [ 1 ] / c p 0 [ E ] \gamma_0[1]/cp_0[E] γ 0 [ 1 ] / c p 0 [ E ] , which equals to 1 when e r 0 ≡ 1 E e^{r_0}\equiv1_E e r 0 ≡ 1 E ; (2) the second factor is minimised when the optimal Doob’s transitions of Eq. (14) are used throughout the generation process. To elaborate, suppose e r 0 = c 1 E e^{r_0}=c1_E e r 0 = c 1 E , then the two distinct effects materialise. First, turning the steering off, the bound is exact with a relative variance equalling the Monte Carlo estimator keeping the first term. Second, if the Doob’s transition kernels are instead used, then the relative variance is the initialisation error between the ideal starting distribution, π K ∗ \pi_K^* π K ∗ and the reference p r e f p_{\mathrm{ref}} p ref . The bound also gives us a practical target. With resampling turned off, we have E S S / N → 1 / ( 1 + χ 2 ( P ˉ 0 : K ∗ ∥ Q 0 : K ) ) \mathrm{ESS}/N \to1/(1+\chi^2(\bar{P}_{0:K}^* \Vert Q_{0:K})) ESS / N → 1/ ( 1 + χ 2 ( P ˉ 0 : K ∗ ∥ Q 0 : K )) as N → ∞ N \to\infty N → ∞ ([3 ] ) which allows us to evaluate the quality of the simulated trajectories. Under resampling and sufficient rejuvenation, a more elaborate error analysis is needed, see Theorem 1(a) of (Syed et al., 2026). Intuitively, errors from a poor transition kernel Q ‾ k − 1 ∣ k \overline{Q}_{k-1|k} Q k − 1∣ k can be pruned by resampling instead of compounding.
Rewards for threshold exceedance events. We now construct r 0 r_0 r 0 and r 1 , … , r K − 1 r_1,\ldots,r_{K-1} r 1 , … , r K − 1 for events of the form E = { x : ϕ ( x ) ≥ τ } E=\{x:\phi(x)\geq\tau\} E = { x : ϕ ( x ) ≥ τ } , for an observable ϕ : R d → R \phi:\mathbb{R}^d\to\mathbb{R} ϕ : R d → R and threshold τ \tau τ ; App. § 12 .§ 1 extends r 0 r_0 r 0 and r k r_k r k to interval and multi-constraint events. Theorem 2 identifies the ideal terminal reward r 0 e r = c 1 E r_0^{\mathrm{er}}=c1_E r 0 er = c 1 E . However, it lacks the regularity needed to be steered with. We require a finite continuously differentiable reward so the guidance ∇ x r t \nabla_x r_t ∇ x r t is well defined, and whose gradient is non-zero outside E E E , so particles outside the event set are actively pushed towards it. Further, we require that r 0 r_0 r 0 is bounded below E E E , so that the factor γ 0 [ 1 ] / c p 0 [ E ] \gamma_0[1]/c p_0[E] γ 0 [ 1 ] / c p 0 [ E ] in Theorem 2 is controlled. Any CDF Φ \Phi Φ with an everywhere-positive density gives such a regularity; writing δ > 0 \delta>0 δ > 0 for a smoothing width,
r 0 , δ ( x ) : = log Φ ( ( ϕ ( x ) − τ ) / δ ) , (16) r_{0,\delta}(x):=\log\Phi\left((\phi(x)-\tau)/\delta\right), \tag*{(16)} r 0 , δ ( x ) := log Φ ( ( ϕ ( x ) − τ ) / δ ) , (16)
with e r 0 , δ ≥ Φ ( 0 ) = 1 2 e^{r_{0,\delta}}\geq\Phi(0)=\frac{1}{2} e r 0 , δ ≥ Φ ( 0 ) = 2 1 on E E E . So c = 1 2 c=\frac{1}{2} c = 2 1 in Theorem 2, and the induced π 0 \pi_0 π 0 tends to p 0 [ ⋅ ∣ E ] p_0[\cdot\mid E] p 0 [ ⋅ ∣ E ] as δ ↓ 0 \delta\downarrow0 δ ↓ 0 . We adopt the Gaussian CDF because, for a linear observable ϕ ( x ) = a ⊤ x + b \phi(x)=a^\top x+b ϕ ( x ) = a ⊤ x + b , it is closed under convolution with a Gaussian (Rasmussen & Williams, [74 ] ). See Figure 5 for an illustration.
Figure 5. Soft reward and its guidance for a threshold event E 7 = { x : ϕ ( x ) ≥ 7 } E_7 = \{x : \phi(x) \ge7\} E 7 = { x : ϕ ( x ) ≥ 7 } shown for three smoothing levels δ \delta δ . Left. The soft indicator relaxes the hard indicator. Right. The guidance ∇ x r 0 , δ ( x ) \nabla_x r_{0,\delta}(x) ∇ x r 0 , δ ( x ) points toward the event set (shaded) and decays inside it, a smaller δ \delta δ gives a stronger guidance.
The reward sequence. Fixing r 0 , δ r_{0,\delta} r 0 , δ leaves the Doob’s rewards of Eq. (14) intractable through the posterior P ‾ 0 ∣ k \overline{P}_{0|k} P 0∣ k . Following ([16 , 81 ] ), we approximate it by a Gaussian centred at its mean x ^ 0 ∣ k ( x k ) = E [ X 0 ∣ X k = x k ] \hat{x}_{0|k}(x_k)=\mathbb{E}[X_0\mid X_k=x_k] x ^ 0∣ k ( x k ) = E [ X 0 ∣ X k = x k ] ,
P ‾ 0 ∣ k ( d x 0 ∣ x k ) ≈ N ( x ^ 0 ∣ k ( x k ) , Σ k ) , (17) \overline{P}_{0|k}(\mathrm{d}x_0\mid x_k)\approx\mathcal{N}\left(\hat{x}_{0|k}(x_k),\Sigma_k\right), \tag*{(17)} P 0∣ k ( d x 0 ∣ x k ) ≈ N ( x ^ 0∣ k ( x k ) , Σ k ) , (17)
with x ^ 0 ∣ k \hat{x}_{0|k} x ^ 0∣ k approximated by Tweedie’s formula from the score at t k t_k t k (Efron, [27 ] ) (Eq. (42) ) and Σ k \Sigma_k Σ k is approximated, e.g. via a diagonal Π \Pi Π GDM posterior-covariance proxy (Song et al., [81 ] ); we give the explicit forms of both in App. § 9 . For the Gaussian-CDF reward and a linear observable ϕ \phi ϕ , the resulting integral of Eq. (14) is closed-form, r k ∗ ( x k ) ≈ log Φ ( ( ϕ ( x ^ 0 ∣ k ( x k ) ) − τ ) / δ 2 + a ⊤ Σ k a ) r_k^*(x_k)\approx\log\Phi\left((\phi(\hat{x}_{0|k}(x_k))-\tau)/\sqrt{\delta^2+a^\top\Sigma_k a}\right) r k ∗ ( x k ) ≈ log Φ ( ( ϕ ( x ^ 0∣ k ( x k )) − τ ) / δ 2 + a ⊤ Σ k a ) , with the smoothing width inflated by the convolution (App. § 12 ). The approximation is accurate near the data end and poor at high noise, where x ^ 0 ∣ k \hat{x}_{0|k} x ^ 0∣ k carries little information about X 0 X_0 X 0 , and it does not vanish at k = K k=K k = K as the boundary condition requires. We therefore temper r k ∗ r_k^* r k ∗ by a guidance strength λ k ≥ 0 \lambda_k\geq0 λ k ≥ 0 , which switches the guidance on gradually as the look-ahead becomes reliable, and optionally approach the event in stages through a threshold τ k \tau_k τ k . This gives us our reward sequence,
r k ( x k ) = λ k log Φ ( ϕ ( x ^ 0 ∣ k ( x k ) ) − τ k δ 2 + a ⊤ Σ k a ) , (18) r_k(x_k)=\lambda_k\log\Phi\left(\frac{\phi(\hat{x}_{0|k}(x_k))-\tau_k}{\sqrt{\delta^2+a^\top\Sigma_k a}}\right), \tag*{(18)} r k ( x k ) = λ k log Φ ( δ 2 + a ⊤ Σ k a ϕ ( x ^ 0∣ k ( x k )) − τ k ) , (18)
pinned at both ends as Eq. (5) requires: λ 0 = 1 \lambda_0=1 λ 0 = 1 , τ 0 = τ \tau_0=\tau τ 0 = τ give r 0 = r 0 , δ r_0=r_{0,\delta} r 0 = r 0 , δ and λ K = 0 \lambda_K=0 λ K = 0 gives r K = 0 r_K=0 r K = 0 . The schedules λ k \lambda_k λ k and τ k \tau_k τ k are the two parameters of our method; App. § 10 relates them to classical rare-event samplers. By Theorem 1, none of these approximations affect p ^ 0 [ E ] \hat{p}_0[E] p ^ 0 [ E ] estimates; by Theorem 2, they determine the variance of our estimator.
Related work
Several works use a pre-trained diffusion sampler to target a tilted distribution without retraining ([7 , 16 , 21 , 81 ] (Uehara et al. 2025)), but these do not compute probabilities. The weight construction combining diffusion models and SMC samplers ([40 , 78 , 79 ] (Wu et al. 2023)) is common, but our contribution is to apply it to rare-event sampling and probability estimation. In diffusion-based molecular simulations, enhanced rare-event sampling ideas such as metadynamics and umbrella sampling have been adapted (Xie et al., 2026) to estimate the occupancy of a rare metastable state. Both methods track importance weights however, Xie et al. (2026) assemble p 0 [ E ] p_0[E] p 0 [ E ] by combining a sequence of events E i E_i E i with MBAR (Shirts & Chodera, [77 ] ), rather than estimating p 0 [ E ] p_0[E] p 0 [ E ] directly. Manshausen et al. [55 ] use a score-based climate emulator guidance to generate Tropical Cyclone (TC) events and use importance sampling. An ODE sampler samples the target rare event, followed by two passes of a guided and unguided Probability Flow ODE to estimate its importance weights ([80 ] ). We instead estimate p 0 [ E ] p_0[E] p 0 [ E ] by accumulating weights from a single denoising pass and benefit from resampling, which is unavailable to them; see App. § 17 for a comparison.
Experiments
We validate DireSMC in two settings: a correlated two-dimensional Gaussian mixture model (GMM) and a pretrained score-based climate emulator. For the GMM, the score and guidance are known analytically so our method may be evaluated in the absence of approximation errors in addition to a learned score, see App. § 13 . The second is a pretrained score-based climate emulator for estimating extreme compound weather events, demonstrating the scalability and applicability of our method. Estimates are evaluated against the sampled law, p ∗ p^* p ∗ : closed-form p 0 [ E ] p_0[E] p 0 [ E ] for the analytical score or a large MC for the learned score; the same references define the sample-quality metrics. The ratio p ^ 0 [ E ] / p ∗ \hat{p}_0[E]/p^* p ^ 0 [ E ] / p ∗ measures the bias and the estimator coefficient of variation, C V = Var ( p ^ 0 [ E ] ) / p ∗ \mathrm{CV}=\sqrt{\operatorname{Var}(\hat{p}_0[E])}/p^* CV = Var ( p ^ 0 [ E ]) / p ∗ measures the relative variance computed over independent runs.
Correlated Gaussian Mixture Model (GMM)
Let p p p be the seven-mode GMM shown in Figure 6 and defined in Table 4 . Let ϕ ( x ) = x 1 \phi(x)=x_1 ϕ ( x ) = x 1 and define E = { x 1 ≥ τ } E=\{x_1\ge\tau\} E = { x 1 ≥ τ } for τ ∈ { 7 , 8 , 9 , 10 } \tau\in\{7,8,9,10\} τ ∈ { 7 , 8 , 9 , 10 } . This varies the analytic mass p 0 [ E ] p_0[E] p 0 [ E ] from 6.9 × 10 − 3 6.9\times10^{-3} 6.9 × 1 0 − 3 to 1.4 × 10 − 5 1.4\times10^{-5} 1.4 × 1 0 − 5 , defining a sequence of increasingly rare events. Unless stated otherwise N = 1000 N=1000 N = 1000 , δ = 0.01 \delta=0.01 δ = 0.01 , λ ( t ) = 1 − ( t / 0.9 ) 2 \lambda(t)=1-(t/0.9)^2 λ ( t ) = 1 − ( t /0.9 ) 2 with λ ( t ) = 0 \lambda(t)=0 λ ( t ) = 0 for t > 0.9 t>0.9 t > 0.9 , τ ( t ) = τ \tau(t)=\tau τ ( t ) = τ and K = 1000 K=1000 K = 1000 , using the SEEDS-1 integrator guided by the reward of Eq. (18) ; where Σ t \Sigma_t Σ t is the Π \Pi Π GDM proxy (App. § 9 ). We run Algorithm 1 with adaptive resampling at E S S / N < 0.5 \mathrm{ESS}/N<0.5 ESS / N < 0.5 , followed by three MADM rejuvenation sweeps (Lam et al. [49 ] ) gated to a time t ≥ 0.30 t\ge0.30 t ≥ 0.30 . Experiments are replicated over 24 random seeds and validated against a 200 million MC reference pool (App. § 14 ).
Figure 6. Base distribution p 0 ( x ) p_0(x) p 0 ( x ) of the correlated 2D GMM (log-density, so all modes are visible) with the analytic x 1 x_1 x 1 and x 2 x_2 x 2 marginals. The two right-hand modes (i = 5 , 6 i = 5, 6 i = 5 , 6 ) form the tilted “X” of opposite-sign correlation that gives the rare set a bi-modal conditional.
Table 4. Parameters of the correlated 2D GMM. The right-hand modes (i = 5 , 6 , 7 i = 5, 6, 7 i = 5 , 6 , 7 ) carry the rare-event tail; modes 5 and 6 have correlation ρ ≈ + 0.85 \rho\approx+0.85 ρ ≈ + 0.85 and − 0.85 -0.85 − 0.85 respectively.
Our method recovers the reference exceedance probability for both analytical and learned scores (full per-threshold results and sample-quality metrics in Table 7 , App. § 14 .§ 3 ). For a fixed τ = 10 \tau=10 τ = 10 threshold, Figure 2 shows that the relative variance decreases as O ( 1 / N ) O(1/\sqrt{N}) O ( 1/ N ) ([12 ] ). Resampling and rejuvenation prevent accumulation of guidance mismatch ([19 , 20 ] ) and the CV stays flat across rarities for a fixed N N N .
Figure 2. Left: CV plotted against N N N for a p 0 [ x 1 > 10 ] p_0[x_1>10] p 0 [ x 1 > 10 ] problem at a fixed K K K . Rejuvenation tracks the lowest CV across all N N N . Middle: we compare our estimator against Manshausen et al. [55 ] across rarities at a compute-normalised N N N . We consistently track a lower CV. Right: measured bias scaling with rarity using exact Doob’s steering and analytical scores, highlighting the bias of Manshausen et al. [55 ] , DireSMC tracks the floor, see Tables 23 and App. § 17 .1.2.
Table 7. Guided generation on the GMM with learned and analytical scores. Each arm is scored against the law it samples from, p ⋆ p^\star p ⋆ ; either p d a t a [ E ] p_{\mathrm{data}}[E] p data [ E ] (analytical) or an MC estimate of p 0 [ E ] p_0[E] p 0 [ E ] (learned). Sample quality metrics are evaluated against a reference from the same law, presented as a ratio against a noise-floor. Estimates p ^ / p ⋆ \hat{p}/p^\star p ^ / p ⋆ are biased to the MADM kernel’s floor (Figure 13 ). We evaluate the two-sample Kolmogorov-Smirnov (KS) test statistic, the Earth Mover’s Distance (EMD) and the coefficient of variation C V 2 = Var ( p ^ E ) / p E 2 \mathrm{CV}^2 = \operatorname{Var}(\hat{p}_E)/p_E^2 CV 2 = Var ( p ^ E ) / p E 2 .
DireSMC compares favourably against the importance sampling estimator of Manshausen et al. [55 ] . Figure 2 (left) shows that DireSMC with resampling and MADM leads to lower CV for the same number of particles compared to their method, even though their method requires 3.5 × 3.5\times 3.5 × as many function evaluations as us. In this setting, rejuvenation incurs an additional 1.6 % 1.6\% 1.6% network calls over the base, which we also discount. On a compute normalised particle budget, all variants of our estimator achieve a lower variance across all rarities as seen in Figure 2 (cost detailed in App. § 17 and Table 24 ). Additionally, the estimator of Manshausen et al. [55 ] assumes that the law induced by an explicit integrator is reversible. However, this often does not hold in practice, leading to a discretisation bias which decreases with step count K K K . To isolate the effects of discretisation bias, we ran experiments with the optimal Doob’s transition kernels of Eq. (14) such that the true p ∗ p^* p ∗ is known and any artefacts due to approximate guidance or score estimates are removed. We also provide the PF-ODE estimator with the true Jacobian trace term, which would otherwise have to be estimated.
Table 24. Network evaluations per particle. For a K K K step denoising process, with R R R rejuvenation steps and M M M MCMC moves of Algorithm 1. P P P denotes the number of Hutchinson’s probes in Eq. (124) .
The results in Figure 2 (right) show their discretisation bias is significantly larger than DireSMC’s with the bias decreasing with increasing K K K (cf. Table 23 ). We acknowledge that our method also incurs a discretisation bias which we characterise below.
Table 23. Signed percentage bias for the rare-event probability estimated against the analytical ground truth (obtained exactly without discretisation) for the 2D GMM threshold exceedance problem at τ = 10 \tau= 10 τ = 10 . Our method tracks a lower bias at finite discretisation K K K compared to Manshausen et al. [55 ] . Positive % reflects an overestimate and are presented as a percentage against the true rare-event probability.
Ablations. We isolate both the estimator bias and variance introduced by SDE integrators (Euler-Maruyama, SEEDS-1 (Gonzalez et al. [37 ] ) and the DDIM ODE integrator (Song et al. [80 ] ) used in Manshausen et al. [55 ] . Evaluating with both analytical and learned scores, the discretisation bias decreases approximately as O ( 1 / K ) O(1/K) O ( 1/ K ) (see Figure 7 , 9 in App. G.2.2). For a fixed K K K we find the discretisation bias increases with rarity, highlighting the sensitivity of rare-event probability estimation to small errors. Both SDE integrators track a lower bias compared to DDIM which we postulate is due to the lower overall error in the generation process, see Theorem 3 of Xu et al. (2023). Moreover, we characterise two sources of errors due to the MADM MCMC kernel (Lam et al. [49 ] ). It uses the ∇ x log p t = t k \nabla_x \log p_{t=t_k} ∇ x log p t = t k to estimate Metropolis Hastings (MH) acceptance ratio, hence targets the continuous-time marginals rather than the law γ k \gamma_k γ k induced by the integrator. This introduces an error decaying as O ( 1 / K ) O(1/K) O ( 1/ K ) to leading order (Figure 13 ). Additionally, MADM assumes access to a conservative score to compute the ratio which degrades for a learned score network as t → 0 t \to0 t → 0 (Vuong et al. (2025), see App. G.3.3 for details. Heuristically, we gate rejuvenation to t ⋆ > 0 t^\star> 0 t ⋆ > 0 to account for this assumption (Table 9 ). Finally, we show that the method translates without modification to interval and multi-constraint events (Table 10 ).
Figure 7. Discretisation bias for the three integrators, Euler-Maruyama, SEEDS-1 and DDIM. We unconditionally draw 1e8 samples from the base model at different discretisation K K K and evaluate the bias at different rarities. The figure on the right shows the number of discretisation required to get a < 10 % < 10\% < 10% bias for different rarities, showing that the SDE requires less steps than the ODE integrator. Top row uses the uniform log-SNR Δ ℓ \Delta\ell Δ ℓ schedule and the bottom is uniform in time Δ t \Delta t Δ t .
Table 9: Resampling and rejuvenation ablation for the learned score network. Distributional metrics are presented as ratios to the reference pool’s split-half noise floor. Gate levels are quoted as the half-log SNR ℓ \ell ℓ below which the rejuvenation move triggers; the adopted gate ℓ ≲ − 0.21 \ell\lesssim-0.21 ℓ ≲ − 0.21 is t ≥ 0.30 t \ge0.30 t ≥ 0.30 . The no-resampling and resampling-only arms run at λ ≡ 1 \lambda\equiv1 λ ≡ 1 . Rejuvenation tracks the lowest CV.
Table 9.
Figure 13. Bias introduced by MADM for the two integrators, using analytical scores and Doob’s guidance with M = 3 M = 3 M = 3 for the first two panels. Left & Middle Injected bias affects rarer samples more, with all biases decreasing as K → ∞ K \to\infty K → ∞ . The two integrators have a different error profile. Right Bias plotted for the τ = 10 \tau= 10 τ = 10 threshold exceedance problem. We find that the error grows with M M M . Error bars are due to seed variability.
Table 10: Box events on the learned score. Every region is drawn on the model density in Figure 14 . p ⋆ p^\star p ⋆ is the K = 1000 K = 1000 K = 1000 chain’s own tail (Table 5 pool). We compare the estimate p ^ \hat{p} p ^ and the shape metrics of the final particles, presented as a ratio against a noise floor.
Table 10.
Generating heatwaves with pre-trained climate model emulators
Next, we validate on the problem of estimating how the probability of extreme events evolves under a changing climate. The high cost of running physics-based climate models (Eyring et al. [29 ] ) has motivated the practice of training cheap emulators on climate model output (Watson-Parris et al. (2022)). However, as we will show, even with these cost-savings, it can be difficult to generate targeted extreme events without explicit steering.
Model. We leverage the pre-trained climate emulator of Bouabid et al. [10 ] which is trained on data generated from the MPI-ESM1-2-LR model (Mauritsen et al. [56 ] ) and released as part of the Coupled Model Intercomparison Project Phase 6 (CMIP6) (Eyring et al. [29 ] ). The emulator generates global monthly-mean fields of near-surface temperature (tas), precipitation (pr), relative humidity (hurs) and wind speed (sfcWind), conditioned on the global mean surface temperature anomaly, Δ T \Delta T Δ T , against a pre-industrial reference and the month of the year, m m m , to capture annual variability2 ; we refer to Bouabid et al. [10 ] for an in-depth motivation of the emulator setup.
Setup. We consider extremes in the temperature and humidity variables averaged within the region R R R defined by the bounding box 42°–52°N latitude and 235°–245°E longitude, roughly corresponding to the region affected by the 2021 Pacific Northwest (PNW) heatwave (McKinnon & Simpson [58 ] ). We use N = 1024 N = 1024 N = 1024 particles with K = 200 K = 200 K = 200 discretisation steps using the exponential integrator; error/variance metrics are computed using estimates from 16 seeds. We generate ∼ 10 7 \sim10^7 ∼ 1 0 7 Monte Carlo samples to estimate ground-truth event probabilities. Further model details and hyperparameters are presented in App. H. We select the hyperparameters once from a pilot sweep on the marginal hot and dry τ 1 \tau_1 τ 1 experiments (detailed below) and use them for all of our other experiments; proper per-problem tuning would lead to a larger variance reduction.
Extreme temperatures. We first verify how accurately DireSMC can estimate the probability of extreme temperatures relative to crude Monte Carlo. Assuming Δ T = 1.5 \Delta T = 1.5 Δ T = 1.5 K, for three different temperature thresholds τ 1 , τ 2 , τ 3 \tau_1, \tau_2, \tau_3 τ 1 , τ 2 , τ 3 (exact values in App. H) we calculate the probability that the average surface temperature in the PNW exceeds a temperature threshold in the month of July. The results in Figure 3 , (full numbers in Table 15 ) show that our method provides significant improvements compared to standard MC estimates with at least an order of magnitude reduction in variance. For the most extreme event τ 3 \tau_3 τ 3 , only 2/16 runs provided a single sample above the threshold; hence MC provides almost no samples with which to characterise the event. Figure 3 demonstrates that the generated guided samples provide physically plausible temperature maps: the maps show more warming over land masses compared to the ocean and spatially coherent warming patterns that are not restricted solely to the target region. Additional results and ablations in App. H.
Figure 3. Surface-temperature anomaly (K) for July at Δ T = + 1.5 \Delta T = +1.5 Δ T = + 1.5 K over the Pacific Northwest (PNW) target region. Left: average tas field over 10 7 10^7 1 0 7 samples. Remaining panels: the highest-weight crossing particle produced by the guided sampler at different exceedance thresholds τ \tau τ and regional average temperature ϕ ( ⋅ ) \phi(\cdot) ϕ ( ⋅ ) of the sample. p ⋆ p^\star p ⋆ are MC estimates; p ^ \hat{p} p ^ is obtained from the guided estimator; full results in Table 15 . The variance ratio (Var. Ratio) at matched compute is defined as Var ( p ^ u n g u i d e d ) / Var ( p ^ g u i d e d ) \operatorname{Var}(\hat{p}_{\mathrm{unguided}})/\operatorname{Var}(\hat{p}_{\mathrm{guided}}) Var ( p ^ unguided ) / Var ( p ^ guided ) .
Table 15. Marginal extreme-event probabilities over the PNW target region in July at Δ T = + 1.5 \Delta T=+1.5 Δ T = + 1.5 K, for hot (ϕ t a s ≥ τ \phi_{\mathrm{tas}}\ge\tau ϕ tas ≥ τ ) and dry (ϕ h u r s ≤ τ \phi_{\mathrm{hurs}}\le\tau ϕ hurs ≤ τ ) events. For each variable, τ 1 , τ 2 , τ 3 \tau_1,\tau_2,\tau_3 τ 1 , τ 2 , τ 3 are chosen so that the event is successively rarer (exact values in App. § 15 ). Ground-truth p ⋆ p^\star p ⋆ are computed with ∼ 10 7 \sim10^7 ∼ 1 0 7 MC samples. Unguided Monte Carlo and our guided method use the same computational budget: each unguided estimate uses 4813 draws (4.7× \times × the 1024 guided particles, Table 21 ), over 16 disjoint replicates. Estimated probabilities, p ^ \hat{p} p ^ are reported as a ratio p ^ / p ⋆ \hat{p}/p^\star p ^ / p ⋆ with mean ± 1 \pm1 ± 1 standard deviation over 16 seeds. The variance ratio (VR) is Var ( p ^ u n g u i d e d ) / Var ( p ^ g u i d e d ) \operatorname{Var}(\hat{p}_{\mathrm{unguided}})/\operatorname{Var}(\hat{p}_{\mathrm{guided}}) Var ( p ^ unguided ) / Var ( p ^ guided ) . The number of unguided replicates with no event is 1 (hot) and 0 (dry) of 16 at τ 1 \tau_1 τ 1 , 9 and 12 at τ 2 \tau_2 τ 2 , and 14 for both at τ 3 \tau_3 τ 3 , where the other two replicates record a single event each, so the VR at τ 3 \tau_3 τ 3 is a rough estimate. †Includes one collapsed run (App. § 15 .2.1). The hot results are shown in Figure 3 .
Compound hot and dry extremes. Next we probe whether our method can capture extreme events impacting multiple variables by considering events that are both extremely hot and dry because of their outsized societal impacts [30 ] (Zscheischler et al. 2017). For these joint events it is important to not just consider the separate marginal probabilities of each variable but also to accurately capture the correlations between variables. To do so, we compute the dependence ratio of the event, defined as d = p 0 [ x > τ t a s , x < τ h u r s ] p 0 [ x > τ t a s ] p 0 [ x < τ h u r s ] d = \frac{p_0[x > \tau_{\mathrm{tas}}, x < \tau_{\mathrm{hurs}}]}{p_0[x > \tau_{\mathrm{tas}}]p_0[x < \tau_{\mathrm{hurs}}]} d = p 0 [ x > τ tas ] p 0 [ x < τ hurs ] p 0 [ x > τ tas , x < τ hurs ] . If the events are independent the dependence ratio would reduce to d = 1 d = 1 d = 1 , while d > 1 d > 1 d > 1 implies that the two events co-occur. We use the non-factorised form of the reward, Φ ( ⋅ ) = Φ 2 ( h u r s , t a s ) \Phi(\cdot) = \Phi_2(\mathrm{hurs}, \mathrm{tas}) Φ ( ⋅ ) = Φ 2 ( hurs , tas ) , a function of both variables; at the rarest level it reduces the CV fourfold relative to a product of marginal rewards (Table 18 ).
Table 18: Comparison of two reward estimates for compound hot & dry events. The difference between the two rewards is most prominent at the rarest level. Notably the 10 − 4 10^{-4} 1 0 − 4 reference itself carries an 8.9% standard error. Setup remains identical to Table 1 , MC reference: Table 17 .
Table 18.
Table 1 shows we recover the correct joint probability and the dependence ratio against the ground-truth estimate with a positive net speed-up compared to crude MC. Notably, the dependence structure strengthens as the event becomes rarer from d = 31.4 → 1.4 × 10 3 d = 31.4 \rightarrow1.4 \times10^3 d = 31.4 → 1.4 × 1 0 3 . This suggests that a hot-and-dry July over R R R is three orders of magnitude more likely than the product of its marginals would suggest.
A warming climate
As the model can generate samples conditioned on the global temperature anomaly Δ T \Delta T Δ T , it lets us ask how do extreme events change under climate change? We fix the temperature threshold at τ t a s ≥ 5.81 \tau_{\mathrm{tas}} \geq5.81 τ tas ≥ 5.81 K and sweep Δ T ∈ [ 0 , 4 ] \Delta T \in[0, 4] Δ T ∈ [ 0 , 4 ] K, rerunning the same recipe as above. This temperature approximately corresponds to p 0 [ E ] ≈ 10 − 4 p_0[E] \approx10^{-4} p 0 [ E ] ≈ 1 0 − 4 at 1.2 K (2021) of warming, representing the PNW heatwave [58 ] . The event moves from a threshold exceedance probability of ∼ 10 − 6 \sim10^{-6} ∼ 1 0 − 6 at Δ T = 0 \Delta T = 0 Δ T = 0 to a near-certainty at Δ T = 4 \Delta T = 4 Δ T = 4 K. Our estimator tracks it across all six orders of magnitude without any modification. Figure 4 reports this probability estimate. See App. H.3 for details, including Table 19 and Figure 19 for corresponding global temperature maps. This experiment shows that the method can be potentially used for climate attribution; see Van Oldenborgh et al. (2021) for an overview.
Figure 4. Estimated p ^ 0 [ E ] \hat{p}_0[E] p ^ 0 [ E ] versus global temperature anomaly Δ T \Delta T Δ T for our method versus unguided MC at equal compute. Points are the mean over 16 runs, bars are ± 1 \pm1 ± 1 std. Bars reaching the axis floor indicate levels where some MC runs record no event; for Δ T ≤ 1.0 \Delta T \leq1.0 Δ T ≤ 1.0 each MC run records at most one event. See Table 19 and Table 20 .
Table 19. Warming sweep at the frozen event τ = 5.81 \tau= 5.81 τ = 5.81 K over the region computed with 16 seeds per point. p ∗ p^{*} p ∗ is obtained from a large Monte Carlo references, which exist only at Δ T ≥ 1.5 \Delta T \ge1.5 Δ T ≥ 1.5 K (relative errors 1.1%, 3.2%, 0.7%, 0.13%) and the guided estimates match all four.
Figure 19. Highest weight samples under the no resampling regime. We guide the sampler to the same τ t a s ≥ 5.81 K \tau_{\mathrm{tas}} \ge5.81\mathrm{K} τ tas ≥ 5.81 K for a range of global average temperatures Δ T \Delta T Δ T . See Table 19 for the qualitative analysis.
Conclusion
We have shown that the diffusion sampler builds the same annealing bridge that traditional rare-event samplers build by hand. Using this insight, we present DireSMC and steer the generation process towards a user-defined rare event using a smooth relaxation of the event set, accumulating importance weights and estimating the probability along the way. Empirically, on synthetic examples and a score-based climate emulator, we achieve a net speedup of 9 to 1413× over crude Monte Carlo, improving with rarity. We believe that this is of value to the scientific community where there is a growing interest in investigating how well a generative model can capture rare events (Sun et al., 2025).
Limitations & Future Work. The variance of our estimator can be improved through better approximations of Doob’s h h h -transform e.g. ([21 , 72 ] (Uehara et al. 2025)) as well as better reward schedule design (Syed et al., 2026); these can be readily plugged in without modification to the algorithm. Our estimates target the discretised, approximate law we sample from, and so carry a reducible discretisation bias and any errors of an approximate score. The rejuvenation kernel used ([49 ] ) assumes a conservative score, which a trained network need not provide; distilling the network into an energy model (Thornton et al., 2025) could be a viable solution. Additionally the MADM kernel also does not target the law γ k \gamma_k γ k induced by the numerical integrator, with this mismatch decreasing with the weak-order convergence rate of the integrator. Algorithm 1 is agnostic to the choice of MCMC moves, and any alternatives to MADM can be used.
Acknowledgments
The authors would like to thank Abbas Mammadov, Kevin Lam, Alison Peard, Sam Howard, Charlotte Merchant and Lukas Seier for helpful discussions. AS is part of the Intelligent Earth CDT supported by funding from the UK Research and Innovation Council (UKRI) grant number EP/Y030907/1. TR acknowledges funding from the EU’s Horizon Europe program under grant agreement number 10113184, acknowledge funding from UK Research and Innovation (UKRI), and also received funding from ARIA and DSIT and Pillar VC under the Encode: AI for Science Fellowship. CW acknowledges support from the Defence Science and Technology (DST) Group Australia. CW and YWT are supported in part by the Engineering and Physical Sciences Research Council (EPSRC) through the AI Hub in Generative Models [grant number EP/Y028805/1]. PS acknowledges funding from the European Union’s Horizon Europe projects CleanCloud and Embed2Scale with Grant Agreements 101173639 and 101131841 and their UKRI underwrite. We acknowledge the use of resources provided by JASMIN, the UK’s collaborative data analysis environment (https://www.jasmin.ac.uk ) and the Isambard-AI National AI Research Resource (AIRR) ([57 ] ). Isambard-AI is operated by the University of Bristol and is funded by the UK Government’s Department for Science, Innovation and Technology (DSIT) via UK Research and Innovation; and the Science and Technology Facilities Council [ST/AIRR/I-A-I/1023]
Proofs
Notation and two identities
Throughout, ( X 0 , … , X K ) (X_0,\ldots,X_K) ( X 0 , … , X K ) is the base chain of Eq. (2) , P 0 : K \mathbb{P}_{0:K} P 0 : K its law, p k p_k p k its marginals, and Q 0 : K \mathbb{Q}_{0:K} Q 0 : K the law of the guided chain with kernels Q ˉ k − 1 ∣ k \bar{Q}_{k-1|k} Q ˉ k − 1∣ k ; both start from p r e f p_{\mathrm{ref}} p ref . All densities are with respect to Lebesgue measure. For a reward r 0 r_0 r 0 with γ 0 [ 1 ] < ∞ \gamma_0[1] < \infty γ 0 [ 1 ] < ∞ , write Z 0 : = γ 0 [ 1 ] Z_0 := \gamma_0[1] Z 0 := γ 0 [ 1 ] and
d P 0 : K ⋆ d P 0 : K ( x K : 0 ) : = e r 0 ( x 0 ) Z 0 , d P 0 : K E d P 0 : K ( x K : 0 ) : = 1 E ( x 0 ) p 0 [ E ] , (19) \frac{\mathrm{d}\mathbb{P}^{\star}_{0:K}}{\mathrm{d}\mathbb{P}_{0:K}}(x_{K:0}) := \frac{e^{r_0(x_0)}}{Z_0}, \qquad\frac{\mathrm{d}\mathbb{P}^{E}_{0:K}}{\mathrm{d}\mathbb{P}_{0:K}}(x_{K:0}) := \frac{\mathbf{1}_E(x_0)}{p_0[E]}, \tag*{(19)} d P 0 : K d P 0 : K ⋆ ( x K : 0 ) := Z 0 e r 0 ( x 0 ) , d P 0 : K d P 0 : K E ( x K : 0 ) := p 0 [ E ] 1 E ( x 0 ) , (19)
for the base chain tilted by e r 0 e^{r_0} e r 0 and conditioned on X 0 ∈ E X_0 \in E X 0 ∈ E respectively; the second is the first with e r 0 = 1 E e^{r_0} = \mathbf{1}_E e r 0 = 1 E . The Doob rewards are
r k ⋆ ( x k ) : = log ∫ P ˉ 0 ∣ k ( d x 0 ∣ x k ) e r 0 ( x 0 ) , k = 0 , … , K , (20) r_k^\star(x_k) := \log\int\bar{P}_{0|k}(\mathrm{d}x_0 \mid x_k)e^{r_0(x_0)}, \qquad k = 0,\ldots,K, \tag*{(20)} r k ⋆ ( x k ) := log ∫ P ˉ 0∣ k ( d x 0 ∣ x k ) e r 0 ( x 0 ) , k = 0 , … , K , (20)
so that r 0 ⋆ = r 0 r_0^\star= r_0 r 0 ⋆ = r 0 and Z 0 = ∫ p r e f ( x K ) e r K ⋆ ( x K ) d x K Z_0 = \int p_{\mathrm{ref}}(x_K)e^{r_K^\star(x_K)}\mathrm{d}x_K Z 0 = ∫ p ref ( x K ) e r K ⋆ ( x K ) d x K .
Two identities are used repeatedly. First, the tower identity : by the Markov property,
∫ P ˉ k − 1 ∣ k ( d x k − 1 ∣ x k ) e r k − 1 ⋆ ( x k − 1 ) = e r k ⋆ ( x k ) , k = 1 , … , K . (21) \int\bar{P}_{k-1|k}(\mathrm{d}x_{k-1}\mid x_k)e^{r_{k-1}^\star(x_{k-1})} = e^{r_k^\star(x_k)}, \qquad k = 1,\ldots,K. \tag*{(21)} ∫ P ˉ k − 1∣ k ( d x k − 1 ∣ x k ) e r k − 1 ⋆ ( x k − 1 ) = e r k ⋆ ( x k ) , k = 1 , … , K . (21)
Second, the telescoping identity : the reward ratios in the incremental weight of Eq. (10) collapse along a trajectory, since r K = 0 r_K = 0 r K = 0 :
∏ k = 1 K g k − 1 ∣ k ( x k − 1 , x k ) = e r 0 ( x 0 ) ∏ k = 1 K P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) = e r 0 ( x 0 ) d P 0 : K d Q 0 : K ( x K : 0 ) , (22) \begin{aligned}
\prod_{k=1}^{K}g_{k-1|k}(x_{k-1},x_k) = e^{r_0(x_0)}\prod_{k=1}^{K}\frac{\bar{P}_{k-1|k}(x_{k-1}\mid x_k)}{\bar{Q}_{k-1|k}(x_{k-1}\mid x_k)} \\
&= e^{r_0(x_0)}\frac{\mathrm{d}\mathbb{P}_{0:K}}{\mathrm{d}\mathbb{Q}_{0:K}}(x_{K:0}), \tag*{(22)}
\end{aligned} k = 1 ∏ K g k − 1∣ k ( x k − 1 , x k ) = e r 0 ( x 0 ) k = 1 ∏ K Q ˉ k − 1∣ k ( x k − 1 ∣ x k ) P ˉ k − 1∣ k ( x k − 1 ∣ x k ) = e r 0 ( x 0 ) d Q 0 : K d P 0 : K ( x K : 0 ) , (22)
the last equality because both chains start from p r e f p_{\mathrm{ref}} p ref .
Structure of the tilted chain
Lemma 2. P 0 : K ⋆ \mathbb{P}_{0:K}^\star P 0 : K ⋆ is a Markov chain. Its marginal at step k k k is π k ⋆ : = p k e r k ⋆ / Z 0 \pi_k^\star:= p_k e^{r_k^\star}/Z_0 π k ⋆ := p k e r k ⋆ / Z 0 , so its initial law is π K ⋆ = p r e f e r K ⋆ / Z 0 \pi_K^\star= p_{\mathrm{ref}}e^{r_K^\star}/Z_0 π K ⋆ = p ref e r K ⋆ / Z 0 , its transitions are the twisted kernels
P ˉ k − 1 ∣ k ⋆ ( d x k − 1 ∣ x k ) : = P ˉ k − 1 ∣ k ( d x k − 1 ∣ x k ) e r k − 1 ⋆ ( x k − 1 ) − r k ⋆ ( x k ) , (23) \bar{P}_{k-1|k}^\star(\mathrm{d}x_{k-1}\mid x_k) := \bar{P}_{k-1|k}(\mathrm{d}x_{k-1}\mid x_k)e^{r_{k-1}^\star(x_{k-1})-r_k^\star(x_k)}, \tag*{(23)} P ˉ k − 1∣ k ⋆ ( d x k − 1 ∣ x k ) := P ˉ k − 1∣ k ( d x k − 1 ∣ x k ) e r k − 1 ⋆ ( x k − 1 ) − r k ⋆ ( x k ) , (23) Consequently
d Q 0 : K d Q 0 : K ( x K : 0 ) = e r K ⋆ ( x K ) Z 0 ∏ k = 1 K P ˉ k − 1 ∣ k ⋆ ( x k − 1 ∣ x k ) Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) . (24) \frac{\mathrm{d}\mathbb{Q}_{0:K}}{\mathrm{d}\mathbb{Q}_{0:K}}(x_{K:0}) = \frac{e^{r_K^\star(x_K)}}{Z_0}\prod_{k=1}^{K}\frac{\bar{P}_{k-1|k}^\star(x_{k-1}\mid x_k)}{\bar{Q}_{k-1|k}(x_{k-1}\mid x_k)}. \tag*{(24)} d Q 0 : K d Q 0 : K ( x K : 0 ) = Z 0 e r K ⋆ ( x K ) k = 1 ∏ K Q ˉ k − 1∣ k ( x k − 1 ∣ x k ) P ˉ k − 1∣ k ⋆ ( x k − 1 ∣ x k ) . (24)
Proof. By Eq. (21) , each P ˉ k − 1 ∣ k ⋆ \bar{P}_{k-1|k}^\star P ˉ k − 1∣ k ⋆ integrates to one and is a Markov kernel. Multiplying the kernels and telescoping the exponents,
∏ k = 1 K P ˉ k − 1 ∣ k ⋆ ( x k − 1 ∣ x k ) = e r 0 ( x 0 ) e r K ⋆ ( x K ) ∏ k = 1 K P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) , (25) \prod_{k=1}^{K}\bar{P}_{k-1|k}^\star(x_{k-1}\mid x_k) = \frac{e^{r_0(x_0)}}{e^{r_K^\star(x_K)}}\prod_{k=1}^{K}\bar{P}_{k-1|k}(x_{k-1}\mid x_k), \tag*{(25)} k = 1 ∏ K P ˉ k − 1∣ k ⋆ ( x k − 1 ∣ x k ) = e r K ⋆ ( x K ) e r 0 ( x 0 ) k = 1 ∏ K P ˉ k − 1∣ k ( x k − 1 ∣ x k ) , (25)
using r 0 ⋆ = r 0 r_0^\star= r_0 r 0 ⋆ = r 0 . Hence
p r e f ( x K ) e r K ⋆ ( x K ) Z 0 ∏ k = 1 K P ˉ k − 1 ∣ k ⋆ ( x k − 1 ∣ x k ) = e r 0 ( x 0 ) Z 0 p r e f ( x K ) ∏ k = 1 K P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) = d P 0 : K ⋆ d x K : 0 ( x K : 0 ) , (26) \begin{aligned}
\frac{p_{\mathrm{ref}}(x_K)e^{r_K^\star(x_K)}}{Z_0}\prod_{k=1}^{K}\bar{P}_{k-1|k}^\star(x_{k-1}\mid x_k) = \frac{e^{r_0(x_0)}}{Z_0}p_{\mathrm{ref}}(x_K)\prod_{k=1}^{K}\bar{P}_{k-1|k}(x_{k-1}\mid x_k) \\
&= \frac{\mathrm{d}\mathbb{P}_{0:K}^\star}{\mathrm{d}x_{K:0}}(x_{K:0}), \tag*{(26)}
\end{aligned} Z 0 p ref ( x K ) e r K ⋆ ( x K ) k = 1 ∏ K P ˉ k − 1∣ k ⋆ ( x k − 1 ∣ x k ) = Z 0 e r 0 ( x 0 ) p ref ( x K ) k = 1 ∏ K P ˉ k − 1∣ k ( x k − 1 ∣ x k ) = d x K : 0 d P 0 : K ⋆ ( x K : 0 ) , (26)
which exhibits P 0 : K ⋆ \mathbb{P}_{0:K}^\star P 0 : K ⋆ as the chain started from π K ⋆ \pi_K^\star π K ⋆ with kernels P ˉ k − 1 ∣ k ⋆ \bar{P}_{k-1|k}^\star P ˉ k − 1∣ k ⋆ . The marginal at step k k k follows from the tower identity applied to the tilt: integrating out all coordinates but x k x_k x k gives p k ( x k ) ∫ P ˉ 0 ∣ k ( d x 0 ∣ x k ) e r 0 ( x 0 ) / Z 0 = p k ( x k ) e r k ⋆ ( x k ) / Z 0 p_k(x_k)\int\bar{P}_{0|k}(\mathrm{d}x_0\mid x_k)e^{r_0(x_0)}/Z_0 = p_k(x_k)e^{r_k^\star(x_k)}/Z_0 p k ( x k ) ∫ P ˉ 0∣ k ( d x 0 ∣ x k ) e r 0 ( x 0 ) / Z 0 = p k ( x k ) e r k ⋆ ( x k ) / Z 0 . Dividing the density of P 0 : K ⋆ \mathbb{P}_{0:K}^\star P 0 : K ⋆ by that of Q 0 : K \mathbb{Q}_{0:K} Q 0 : K , p r e f ( x K ) ∏ k Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) p_{\mathrm{ref}}(x_K)\prod_k\bar{Q}_{k-1|k}(x_{k-1}\mid x_k) p ref ( x K ) ∏ k Q ˉ k − 1∣ k ( x k − 1 ∣ x k ) , gives Eq. (24) .
Proof of Theorem 1
Proof. The auxiliary kernel F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) = p k ( x k ) P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) / p k − 1 ( x k − 1 ) \bar{F}_{k|k-1}(x_k \mid x_{k-1}) = p_k(x_k)\bar{P}_{k-1|k}(x_{k-1} \mid x_k)/p_{k-1}(x_{k-1}) F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) = p k ( x k ) P ˉ k − 1∣ k ( x k − 1 ∣ x k ) / p k − 1 ( x k − 1 ) integrates to one in x k x_k x k by the marginal recursion of § 2 , so it is a Markov kernel. With targets γ k = p k e r k \gamma_k = p_k e^{r_k} γ k = p k e r k and proposal B ˉ k − 1 ∣ k = Q ˉ k − 1 ∣ k \bar{B}_{k-1|k} = \bar{Q}_{k-1|k} B ˉ k − 1∣ k = Q ˉ k − 1∣ k , the generic SMC weight of Eq. (7) is
γ k − 1 ( x k − 1 ) F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) γ k ( x k ) Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) = p k − 1 ( x k − 1 ) e r k − 1 ( x k − 1 ) p k ( x k ) e r k ( x k ) ⋅ F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) = e r k − 1 ( x k − 1 ) e r k ( x k ) ⋅ p k − 1 ( x k − 1 ) p k ( x k ) ⋅ p k ( x k ) P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) p k − 1 ( x k − 1 ) Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) = e r k − 1 ( x k − 1 ) e r k ( x k ) ⋅ P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) . (27) \begin{aligned}
\frac{\gamma_{k-1}(x_{k-1})\bar{F}_{k|k-1}(x_k \mid x_{k-1})}{\gamma_k(x_k)\bar{Q}_{k-1|k}(x_{k-1} \mid x_k)}
&= \frac{p_{k-1}(x_{k-1})e^{r_{k-1}(x_{k-1})}}{p_k(x_k)e^{r_k(x_k)}} \cdot\frac{\bar{F}_{k|k-1}(x_k \mid x_{k-1})}{\bar{Q}_{k-1|k}(x_{k-1} \mid x_k)} \\
&= \frac{e^{r_{k-1}(x_{k-1})}}{e^{r_k(x_k)}} \cdot\frac{p_{k-1}(x_{k-1})}{p_k(x_k)} \cdot\frac{p_k(x_k)\bar{P}_{k-1|k}(x_{k-1} \mid x_k)}{p_{k-1}(x_{k-1})\bar{Q}_{k-1|k}(x_{k-1} \mid x_k)} \\
&= \frac{e^{r_{k-1}(x_{k-1})}}{e^{r_k(x_k)}} \cdot\frac{\bar{P}_{k-1|k}(x_{k-1} \mid x_k)}{\bar{Q}_{k-1|k}(x_{k-1} \mid x_k)}. \tag*{(27)}
\end{aligned} γ k ( x k ) Q ˉ k − 1∣ k ( x k − 1 ∣ x k ) γ k − 1 ( x k − 1 ) F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) = p k ( x k ) e r k ( x k ) p k − 1 ( x k − 1 ) e r k − 1 ( x k − 1 ) ⋅ Q ˉ k − 1∣ k ( x k − 1 ∣ x k ) F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) = e r k ( x k ) e r k − 1 ( x k − 1 ) ⋅ p k ( x k ) p k − 1 ( x k − 1 ) ⋅ p k − 1 ( x k − 1 ) Q ˉ k − 1∣ k ( x k − 1 ∣ x k ) p k ( x k ) P ˉ k − 1∣ k ( x k − 1 ∣ x k ) = e r k ( x k ) e r k − 1 ( x k − 1 ) ⋅ Q ˉ k − 1∣ k ( x k − 1 ∣ x k ) P ˉ k − 1∣ k ( x k − 1 ∣ x k ) . (27)
which is Eq. (10) ; it is finite Q ˉ k − 1 ∣ k \bar{Q}_{k-1|k} Q ˉ k − 1∣ k -a.s. because P ˉ k − 1 ∣ k ≪ Q ˉ k − 1 ∣ k \bar{P}_{k-1|k} \ll\bar{Q}_{k-1|k} P ˉ k − 1∣ k ≪ Q ˉ k − 1∣ k . The boundary conditions give γ K = p r e f = π K \gamma_K = p_{\mathrm{ref}} = \pi_K γ K = p ref = π K , which is normalised, and γ 0 = p 0 e r 0 \gamma_0 = p_0 e^{r_0} γ 0 = p 0 e r 0 with Z 0 < ∞ Z_0 < \infty Z 0 < ∞ . Algorithm 1 is therefore the SMC sampler of Section 3.1 with adaptive resampling and π k \pi_k π k -invariant rejuvenation, and its output is γ ^ 0 \hat{\gamma}_0 γ ^ 0 of Eq. (57) , evaluated at f = e − r 0 1 E f = e^{-r_0}1_E f = e − r 0 1 E . By the unbiasedness of γ ^ 0 [ f ] \hat{\gamma}_0[f] γ ^ 0 [ f ] under adaptive resampling and invariant moves (Del Moral et al., [20 ] ),
E [ p ^ 0 [ E ] ] = γ 0 [ e − r 0 1 E ] = ∫ p 0 ( x ) e r 0 ( x ) e − r 0 ( x ) 1 E ( x ) d x = p 0 [ E ] , (28) \mathbb{E}[\hat{p}_0[E]] = \gamma_0[e^{-r_0}1_E] = \int p_0(x)e^{r_0(x)}e^{-r_0(x)}1_E(x)\,dx = p_0[E], \tag*{(28)} E [ p ^ 0 [ E ]] = γ 0 [ e − r 0 1 E ] = ∫ p 0 ( x ) e r 0 ( x ) e − r 0 ( x ) 1 E ( x ) d x = p 0 [ E ] , (28)
which is also E [ p ^ 0 M C [ E ] ] \mathbb{E}[\hat{p}^{\mathrm{MC}}_0[E]] E [ p ^ 0 MC [ E ]] since X 0 n ∼ p 0 X_0^n \sim p_0 X 0 n ∼ p 0 in Eq. (3) . This holds for every K K K , N N N , reward sequence and resampling schedule. For the sample, p ^ 0 [ ⋅ ∣ E ] \hat{p}_0[\cdot\mid E] p ^ 0 [ ⋅ ∣ E ] is π ^ 0 \hat{\pi}_0 π ^ 0 reweighted by e − r 0 1 E e^{-r_0}1_E e − r 0 1 E and normalised, i.e. the self-normalised estimator of Eq. (57) for the target γ 0 e − r 0 1 E ∝ p 0 [ ⋅ ∣ E ] \gamma_0e^{-r_0}1_E \propto p_0[\cdot\mid E] γ 0 e − r 0 1 E ∝ p 0 [ ⋅ ∣ E ] , so it converges almost surely to p 0 [ ⋅ ∣ E ] p_0[\cdot\mid E] p 0 [ ⋅ ∣ E ] as N → ∞ N \to\infty N → ∞ by the same result. For the limit, p 0 ⇒ p d a t a p_0 \Rightarrow p_{\mathrm{data}} p 0 ⇒ p data as K → ∞ K \to\infty K → ∞ under the standing assumptions of § 2 , and p d a t a [ ∂ E ] = 0 p_{\mathrm{data}}[\partial E] = 0 p data [ ∂ E ] = 0 , so p 0 [ E ] → p d a t a [ E ] p_0[E] \to p_{\mathrm{data}}[E] p 0 [ E ] → p data [ E ] by the portmanteau theorem.
Proof of Theorem 2
Proof. Step 1: the estimator is an importance-sampling average. Without resampling, Z ^ = 1 \hat{Z} = 1 Z ^ = 1 and p ^ 0 [ E ] = 1 N ∑ n = 1 N W n \hat{p}_0[E] = \frac{1}{N}\sum_{n=1}^N W^n p ^ 0 [ E ] = N 1 ∑ n = 1 N W n with W n : = W ( X K : 0 n ) W^n := W(X^n_{K:0}) W n := W ( X K : 0 n ) i.i.d. under Q 0 : K Q_{0:K} Q 0 : K , where by the telescoping identity Eq. (22)
W ( x K : 0 ) : = ∏ k = 1 K g k − 1 ∣ k ( x k − 1 , x k ) 1 E ( x 0 ) e r 0 ( x 0 ) = 1 E ( x 0 ) d P 0 : K d Q 0 : K ( x K : 0 ) = p 0 [ E ] d P 0 : K E d Q 0 : K ( x K : 0 ) . (29) \begin{aligned}
W(x_{K:0}) &:= \prod_{k=1}^{K} g_{k-1|k}(x_{k-1},x_k)\frac{1_E(x_0)}{e^{r_0(x_0)}} \\
&= 1_E(x_0)\frac{dP_{0:K}}{dQ_{0:K}}(x_{K:0}) \\
&= p_0[E]\frac{dP^E_{0:K}}{dQ_{0:K}}(x_{K:0}). \tag*{(29)}
\end{aligned} W ( x K : 0 ) := k = 1 ∏ K g k − 1∣ k ( x k − 1 , x k ) e r 0 ( x 0 ) 1 E ( x 0 ) = 1 E ( x 0 ) d Q 0 : K d P 0 : K ( x K : 0 ) = p 0 [ E ] d Q 0 : K d P 0 : K E ( x K : 0 ) . (29)
Hence E Q 0 : K [ W ] = p 0 [ E ] \mathbb{E}_{Q_{0:K}}[W] = p_0[E] E Q 0 : K [ W ] = p 0 [ E ] and
Var [ p ^ 0 [ E ] ] p 0 [ E ] 2 = 1 N ( E Q 0 : K [ ( d P 0 : K E d Q 0 : K ) 2 ] − 1 ) = χ 2 ( P 0 : K E ∥ Q 0 : K ) N . (30) \frac{\operatorname{Var}[\hat{p}_0[E]]}{p_0[E]^2}
= \frac{1}{N}\left(\mathbb{E}_{Q_{0:K}}\left[\left(\frac{dP^E_{0:K}}{dQ_{0:K}}\right)^2\right]-1\right)
= \frac{\chi^2(P^E_{0:K}\mathbin{\|}Q_{0:K})}{N}. \tag*{(30)} p 0 [ E ] 2 Var [ p ^ 0 [ E ]] = N 1 ( E Q 0 : K [ ( d Q 0 : K d P 0 : K E ) 2 ] − 1 ) = N χ 2 ( P 0 : K E ∥ Q 0 : K ) . (30)
Step 2: change of measure through the tilted chain. Both P 0 : K E P^E_{0:K} P 0 : K E and P 0 : K ∗ P^*_{0:K} P 0 : K ∗ are tilts of P 0 : K P_{0:K} P 0 : K by functions of x 0 x_0 x 0 , so
d P 0 : K E d P 0 : K ∗ ( x K : 0 ) = Z 0 e − r 0 ( x 0 ) 1 E ( x 0 ) p 0 [ E ] ≤ Z 0 c p 0 [ E ] , (31) \frac{dP^E_{0:K}}{dP^*_{0:K}}(x_{K:0})
= \frac{Z_0e^{-r_0(x_0)}1_E(x_0)}{p_0[E]}
\le\frac{Z_0}{cp_0[E]}, \tag*{(31)} d P 0 : K ∗ d P 0 : K E ( x K : 0 ) = p 0 [ E ] Z 0 e − r 0 ( x 0 ) 1 E ( x 0 ) ≤ c p 0 [ E ] Z 0 , (31)
using e r 0 ≥ c e^{r_0} \ge c e r 0 ≥ c on E E E . Therefore
1 + χ 2 ( P 0 : K E ∥ Q 0 : K ) = E Q 0 : K [ ( d P 0 : K E d Q 0 : K ) 2 ] = E Q 0 : K [ ( d P 0 : K E d P 0 : K ∗ ) 2 ( d P 0 : K ∗ d Q 0 : K ) 2 ] ≤ ( Z 0 c p 0 [ E ] ) 2 ( 1 + χ 2 ( P 0 : K ∗ ∥ Q 0 : K ) ) . (32) \begin{aligned}
1+\chi^2(P^E_{0:K}\mathbin{\|}Q_{0:K})
&= \mathbb{E}_{Q_{0:K}}\left[\left(\frac{dP^E_{0:K}}{dQ_{0:K}}\right)^2\right] \\
&= \mathbb{E}_{Q_{0:K}}\left[\left(\frac{dP^E_{0:K}}{dP^*_{0:K}}\right)^2\left(\frac{dP^*_{0:K}}{dQ_{0:K}}\right)^2\right] \\
&\le\left(\frac{Z_0}{cp_0[E]}\right)^2\left(1+\chi^2(P^*_{0:K}\mathbin{\|}Q_{0:K})\right). \tag*{(32)}
\end{aligned} 1 + χ 2 ( P 0 : K E ∥ Q 0 : K ) = E Q 0 : K [ ( d Q 0 : K d P 0 : K E ) 2 ] = E Q 0 : K [ ( d P 0 : K ∗ d P 0 : K E ) 2 ( d Q 0 : K d P 0 : K ∗ ) 2 ] ≤ ( c p 0 [ E ] Z 0 ) 2 ( 1 + χ 2 ( P 0 : K ∗ ∥ Q 0 : K ) ) . (32)
and substituting into Eq. (30) gives Eq. (15) .
Step 3: the equality case. If e r 0 = c 1 E e^{r_0}=c1_E e r 0 = c 1 E , then Z 0 = c p 0 [ E ] Z_0=c p_0[E] Z 0 = c p 0 [ E ] and Eq. (31) is identically one, so P 0 : K ⋆ = P 0 : K E \mathbb{P}^{\star}_{0:K}=\mathbb{P}^{E}_{0:K} P 0 : K ⋆ = P 0 : K E and Eq. (15) holds with equality.
Step 4: the floor. Under Q 0 : K \mathbb{Q}_{0:K} Q 0 : K , X K ∼ p r e f X_K\sim p_{\mathrm{ref}} X K ∼ p ref ; under P 0 : K ⋆ \mathbb{P}^{\star}_{0:K} P 0 : K ⋆ , X K ∼ π K ⋆ X_K\sim\pi_K^\star X K ∼ π K ⋆ by Lemma 2. The data-processing inequality for the marginal at step K K K gives
χ 2 ( P 0 : K ⋆ ∥ Q 0 : K ) ≥ χ 2 ( π K ⋆ ∥ p r e f ) . (33) \chi^2(\mathbb{P}^{\star}_{0:K}\Vert\mathbb{Q}_{0:K})\geq\chi^2(\pi_K^\star\Vert p_{\mathrm{ref}}). \tag*{(33)} χ 2 ( P 0 : K ⋆ ∥ Q 0 : K ) ≥ χ 2 ( π K ⋆ ∥ p ref ) . (33)
For the upper bound, P 0 : K ⋆ \mathbb{P}^{\star}_{0:K} P 0 : K ⋆ and P 0 : K \mathbb{P}_{0:K} P 0 : K share their transitions and differ only in the law of X 0 X_0 X 0 , and X K ∼ p r e f X_K\sim p_{\mathrm{ref}} X K ∼ p ref under P 0 : K \mathbb{P}_{0:K} P 0 : K , so data processing for the marginal at K K K and then the fact that d P 0 : K ⋆ / d P 0 : K \mathrm{d}\mathbb{P}^{\star}_{0:K}/\mathrm{d}\mathbb{P}_{0:K} d P 0 : K ⋆ / d P 0 : K depends on x 0 x_0 x 0 alone give
χ 2 ( π K ⋆ ∥ p r e f ) ≤ χ 2 ( P 0 : K ⋆ ∥ P 0 : K ) = E P 0 : K [ ( e r 0 ( X 0 ) Z 0 ) 2 ] − 1 = χ 2 ( π 0 ∥ p 0 ) . (34) \chi^2(\pi_K^\star\Vert p_{\mathrm{ref}})\leq\chi^2(\mathbb{P}^{\star}_{0:K}\Vert\mathbb{P}_{0:K})=\mathbb{E}_{\mathbb{P}_{0:K}}\left[\left(\frac{e^{r_0(X_0)}}{Z_0}\right)^2\right]-1=\chi^2(\pi_0\Vert p_0). \tag*{(34)} χ 2 ( π K ⋆ ∥ p ref ) ≤ χ 2 ( P 0 : K ⋆ ∥ P 0 : K ) = E P 0 : K [ ( Z 0 e r 0 ( X 0 ) ) 2 ] − 1 = χ 2 ( π 0 ∥ p 0 ) . (34)
If Q ^ k − 1 ∣ k = P ^ k − 1 ∣ k ⋆ \widehat{Q}_{k-1|k}=\widehat{P}^{\star}_{k-1|k} Q k − 1∣ k = P k − 1∣ k ⋆ for all k k k , the product in Eq. (24) is one, d P 0 : K ⋆ / d Q 0 : K \mathrm{d}\mathbb{P}^{\star}_{0:K}/\mathrm{d}\mathbb{Q}_{0:K} d P 0 : K ⋆ / d Q 0 : K is a function of x K x_K x K alone, equal to π K ⋆ ( x K ) / p r e f ( x K ) \pi_K^\star(x_K)/p_{\mathrm{ref}}(x_K) π K ⋆ ( x K ) / p ref ( x K ) , and the first inequality is an equality, which is Eq. (33) with its equality case. If X K X_K X K is independent of X 0 X_0 X 0 under P 0 : K \mathbb{P}_{0:K} P 0 : K then r K ⋆ r_K^\star r K ⋆ is constant, so π K ⋆ = p r e f \pi_K^\star=p_{\mathrm{ref}} π K ⋆ = p ref and the minimum is zero.
Finally, for the CDF reward of Eq. (16) , ϕ ≥ τ \phi\geq\tau ϕ ≥ τ on E E E gives e r 0 , δ ≥ Φ ( 0 ) = 1 2 e^{r_{0,\delta}}\geq\Phi(0)=\frac{1}{2} e r 0 , δ ≥ Φ ( 0 ) = 2 1 there, so c = 1 2 c=\frac{1}{2} c = 2 1 , and Z 0 = p 0 [ e r 0 , δ ] → p 0 [ E ] Z_0=p_0[e^{r_{0,\delta}}]\to p_0[E] Z 0 = p 0 [ e r 0 , δ ] → p 0 [ E ] as δ ↓ 0 \delta\downarrow0 δ ↓ 0 by dominated convergence.
Remark 1. Initialising from π K ⋆ \pi_K^\star π K ⋆ instead of p r e f p_{\mathrm{ref}} p ref , with kernels P ^ k − 1 ∣ k ⋆ \widehat{P}^\star_{k-1|k} P k − 1∣ k ⋆ and weights w K n = 1 w_K^n=1 w K n = 1 , would make every incremental weight equal to one and the estimator deterministic, the classical zero-variance statement for Doob’s h h h -transform. It is circular: the normaliser of π K ⋆ \pi_K^\star π K ⋆ is Z 0 Z_0 Z 0 , which for the indicator reward is the quantity being estimated. The boundary condition r K = 0 r_K=0 r K = 0 is what allows Algorithm 1 to start from p r e f p_{\mathrm{ref}} p ref and Eq. (33) is the price this incurs.
The optimal reward recursion
We recall, for completeness, why the Doob rewards are the optimal intermediate targets [38 , 42 , 71 ] . Fix k k k and r k − 1 r_{k-1} r k − 1 , let X k − 1 ∣ X k ∼ Q ^ k − 1 ∣ k X_{k-1}\mid X_k\sim\widehat{Q}_{k-1|k} X k − 1 ∣ X k ∼ Q k − 1∣ k , and define
r k o p t ( x k ) : = log ∫ P ^ k − 1 ∣ k ( d x k − 1 ∣ x k ) e r k − 1 ( x k − 1 ) . (35) r_k^{\mathrm{opt}}(x_k):=\log\int\widehat{P}_{k-1|k}(\mathrm{d}x_{k-1}\mid x_k)e^{r_{k-1}(x_{k-1})}. \tag*{(35)} r k opt ( x k ) := log ∫ P k − 1∣ k ( d x k − 1 ∣ x k ) e r k − 1 ( x k − 1 ) . (35)
From Eq. (10) , for every proposal with P ^ k − 1 ∣ k ≪ Q ^ k − 1 ∣ k \widehat{P}_{k-1|k}\ll\widehat{Q}_{k-1|k} P k − 1∣ k ≪ Q k − 1∣ k ,
E [ g k − 1 ∣ k ∣ X k = x k ] = e − r k ( x k ) ∫ Q ^ k − 1 ∣ k ( d x k − 1 ∣ x k ) P ^ k − 1 ∣ k ( x k − 1 ∣ x k ) Q ^ k − 1 ∣ k ( x k − 1 ∣ x k ) e r k − 1 ( x k − 1 ) = exp ( r k o p t ( x k ) − r k ( x k ) ) . (36) \begin{aligned}
\mathbb{E}[g_{k-1|k}\mid X_k=x_k]
&=e^{-r_k(x_k)}\int\widehat{Q}_{k-1|k}(\mathrm{d}x_{k-1}\mid x_k)\frac{\widehat{P}_{k-1|k}(x_{k-1}\mid x_k)}{\widehat{Q}_{k-1|k}(x_{k-1}\mid x_k)}e^{r_{k-1}(x_{k-1})}\\
&=\exp\left(r_k^{\mathrm{opt}}(x_k)-r_k(x_k)\right). \tag*{(36)}
\end{aligned} E [ g k − 1∣ k ∣ X k = x k ] = e − r k ( x k ) ∫ Q k − 1∣ k ( d x k − 1 ∣ x k ) Q k − 1∣ k ( x k − 1 ∣ x k ) P k − 1∣ k ( x k − 1 ∣ x k ) e r k − 1 ( x k − 1 ) = exp ( r k opt ( x k ) − r k ( x k ) ) . (36)
By the law of total variance,
Var [ g k − 1 ∣ k ] = Var [ E [ g k − 1 ∣ k ∣ X k ] ] + E [ Var [ g k − 1 ∣ k ∣ X k ] ] . (37) \operatorname{Var}[g_{k-1|k}]=\operatorname{Var}\left[\mathbb{E}[g_{k-1|k}\mid X_k]\right]+\mathbb{E}\left[\operatorname{Var}[g_{k-1|k}\mid X_k]\right]. \tag*{(37)} Var [ g k − 1∣ k ] = Var [ E [ g k − 1∣ k ∣ X k ] ] + E [ Var [ g k − 1∣ k ∣ X k ] ] . (37)
The reward r k r_k r k enters g k − 1 ∣ k g_{k-1|k} g k − 1∣ k only through the factor e − r k ( x k ) e^{-r_k(x_k)} e − r k ( x k ) , a function of x k x_k x k alone, so the second term does not depend on r k r_k r k , while the first vanishes if and only if r k = r k o p t + c o n s t r_k=r_k^{\mathrm{opt}}+\mathrm{const} r k = r k opt + const . Thus r k o p t r_k^{\mathrm{opt}} r k opt minimises Var [ g k − 1 ∣ k ] \operatorname{Var}[g_{k-1|k}] Var [ g k − 1∣ k ] over r k r_k r k for every proposal. The second term vanishes if and only if x k − 1 ↦ e r k − 1 ( x k − 1 ) P ^ k − 1 ∣ k ( x k − 1 ∣ x k ) / Q ^ k − 1 ∣ k ( x k − 1 ∣ x k ) x_{k-1}\mapsto e^{r_{k-1}(x_{k-1})}\widehat{P}_{k-1|k}(x_{k-1}\mid x_k)/\widehat{Q}_{k-1|k}(x_{k-1}\mid x_k) x k − 1 ↦ e r k − 1 ( x k − 1 ) P k − 1∣ k ( x k − 1 ∣ x k ) / Q k − 1∣ k ( x k − 1 ∣ x k ) is Q ^ k − 1 ∣ k \widehat{Q}_{k-1|k} Q k − 1∣ k -a.s. constant, i.e. Q ^ k − 1 ∣ k ( d x k − 1 ∣ x k ) ∝ P ^ k − 1 ∣ k ( d x k − 1 ∣ x k ) e r k − 1 ( x k − 1 ) \widehat{Q}_{k-1|k}(\mathrm{d}x_{k-1}\mid x_k)\propto\widehat{P}_{k-1|k}(\mathrm{d}x_{k-1}\mid x_k)e^{r_{k-1}(x_{k-1})} Q k − 1∣ k ( d x k − 1 ∣ x k ) ∝ P k − 1∣ k ( d x k − 1 ∣ x k ) e r k − 1 ( x k − 1 ) , which with r k = r k o p t r_k=r_k^{\mathrm{opt}} r k = r k opt is the twisted kernel P ^ k − 1 ∣ k ⋆ \widehat{P}_{k-1|k}^\star P k − 1∣ k ⋆ and gives g k − 1 ∣ k ≡ 1 g_{k-1|k}\equiv1 g k − 1∣ k ≡ 1 . Finally, if r k − 1 = r k − 1 ⋆ r_{k-1}=r_{k-1}^\star r k − 1 = r k − 1 ⋆ then r k o p t = r k ⋆ r_k^{\mathrm{opt}}=r_k^\star r k opt = r k ⋆ by the tower identity Eq. (21) , so iterating from r 0 = r 0 ⋆ r_0=r_0^\star r 0 = r 0 ⋆ recovers the Doob rewards at every step.
Proof of Lemma 1
Proof. Write μ : = m k ( x k ) \mu:=m_k(x_k) μ := m k ( x k ) , Δ : = c k ∇ x r k ( x k ) \Delta:=c_k\nabla_xr_k(x_k) Δ := c k ∇ x r k ( x k ) and v : = v k v:=v_k v := v k . Under Eq. (11) both kernels are Gaussian in x k − 1 x_{k-1} x k − 1 with covariance v I vI v I , so
log P ^ k − 1 ∣ k ( x k − 1 ∣ x k ) Q ^ k − 1 ∣ k ( x k − 1 ∣ x k ) = − ∥ x k − 1 − μ ∥ 2 2 v + ∥ x k − 1 − μ − Δ ∥ 2 2 v = ∥ Δ ∥ 2 2 v − ⟨ Δ , x k − 1 − μ ⟩ v . (38) \log\frac{\widehat{P}_{k-1|k}(x_{k-1}\mid x_k)}{\widehat{Q}_{k-1|k}(x_{k-1}\mid x_k)}
=-\frac{\lVert x_{k-1}-\mu\rVert^2}{2v}+\frac{\lVert x_{k-1}-\mu-\Delta\rVert^2}{2v}
=\frac{\lVert\Delta\rVert^2}{2v}-\frac{\langle\Delta,x_{k-1}-\mu\rangle}{v}. \tag*{(38)} log Q k − 1∣ k ( x k − 1 ∣ x k ) P k − 1∣ k ( x k − 1 ∣ x k ) = − 2 v ∥ x k − 1 − μ ∥ 2 + 2 v ∥ x k − 1 − μ − Δ ∥ 2 = 2 v ∥ Δ ∥ 2 − v ⟨ Δ , x k − 1 − μ ⟩ . (38)
Substituting x k − 1 = μ + Δ + v ϵ k x_{k-1}=\mu+\Delta+\sqrt{v}\epsilon_k x k − 1 = μ + Δ + v ϵ k , the noise drawn when sampling Q ^ k − 1 ∣ k \widehat{Q}_{k-1|k} Q k − 1∣ k ,
log P ^ k − 1 ∣ k ( x k − 1 ∣ x k ) Q ^ k − 1 ∣ k ( x k − 1 ∣ x k ) = ∥ Δ ∥ 2 2 v − ∥ Δ ∥ 2 v − ⟨ Δ , ϵ k ⟩ v = − ζ k 2 2 ∥ ∇ x r k ( x k ) ∥ 2 − ζ k ⟨ ∇ x r k ( x k ) , ϵ k ⟩ , (39) \begin{aligned}
\log\frac{\widehat{P}_{k-1|k}(x_{k-1}\mid x_k)}{\widehat{Q}_{k-1|k}(x_{k-1}\mid x_k)}=\frac{\|\Delta\|^2}{2v}-\frac{\|\Delta\|^2}{v}-\frac{\langle\Delta,\epsilon_k\rangle}{\sqrt{v}} \\
&=-\frac{\zeta_k^2}{2}\|\nabla_x r_k(x_k)\|^2-\zeta_k\langle\nabla_x r_k(x_k),\epsilon_k\rangle, \tag*{(39)}
\end{aligned} log Q k − 1∣ k ( x k − 1 ∣ x k ) P k − 1∣ k ( x k − 1 ∣ x k ) = 2 v ∥Δ ∥ 2 − v ∥Δ ∥ 2 − v ⟨ Δ , ϵ k ⟩ = − 2 ζ k 2 ∥ ∇ x r k ( x k ) ∥ 2 − ζ k ⟨ ∇ x r k ( x k ) , ϵ k ⟩ , (39)
with ζ k = c k / v k \zeta_k=c_k/\sqrt{v_k} ζ k = c k / v k . Adding the reward tilt r k − 1 ( x k − 1 ) − r k ( x k ) r_{k-1}(x_{k-1})-r_k(x_k) r k − 1 ( x k − 1 ) − r k ( x k ) of Eq. (10) gives Eq. (12) . No approximation is made; the integrator enters only through ( c k , v k ) (c_k,v_k) ( c k , v k ) . For Euler-Maruyama on a step of length Δ t k \Delta t_k Δ t k , m k ( x k ) = x k − [ μ t k ( x k ) − σ t k 2 ∇ x log p t k ( x k ) ] Δ t k m_k(x_k)=x_k-[\mu_{t_k}(x_k)-\sigma_{t_k}^2\nabla_x\log p_{t_k}(x_k)]\Delta t_k m k ( x k ) = x k − [ μ t k ( x k ) − σ t k 2 ∇ x log p t k ( x k )] Δ t k , the guidance shifts the mean by c k ∇ x r k ( x k ) c_k\nabla_xr_k(x_k) c k ∇ x r k ( x k ) with c k = σ t k 2 Δ t k c_k=\sigma_{t_k}^2\Delta t_k c k = σ t k 2 Δ t k , and v k = σ t k 2 Δ t k v_k=\sigma_{t_k}^2\Delta t_k v k = σ t k 2 Δ t k , so ζ k = σ t k Δ t k \zeta_k=\sigma_{t_k}\sqrt{\Delta t_k} ζ k = σ t k Δ t k . The exponential-integrator constants are derived in App. § 11 .
Scope. Three cases fall outside Lemma 1. Multi stage schemes such as the stochastic Heun sampler of [45 ] or higher order stochastic solvers of [37 ] evaluate the network at an additional noise-dependent interval point, so the kernel mean is not affine in a single score evaluation. Deterministic solvers have v k = 0 v_k=0 v k = 0 , giving degenerate kernels and ζ k → ∞ \zeta_k\to\infty ζ k → ∞ . Anisotropic or per dimension noise makes v k v_k v k a matrix, and the scalar ζ k \zeta_k ζ k is now a matrix.
Diffusion model details
Training objective. The score network s θ ( x t , t ) s_\theta(x_t,t) s θ ( x t , t ) approximates the marginal score ∇ x t log p t \nabla_{x_t}\log p_t ∇ x t log p t and is trained by denoising score matching [80 ] ,
L ( θ ) = E t E x 0 ∼ p 0 E x t ∼ p ( x t ∣ x 0 ) [ λ t ∥ s θ ( x t , t ) − ∇ x t log p ( x t ∣ x 0 ) ∥ 2 ] , (40) \mathcal{L}(\theta)=\mathbb{E}_{t}\mathbb{E}_{x_0\sim p_0}\mathbb{E}_{x_t\sim p(x_t\mid x_0)}\left[\lambda_t\left\|s_\theta(x_t,t)-\nabla_{x_t}\log p(x_t\mid x_0)\right\|^2\right], \tag*{(40)} L ( θ ) = E t E x 0 ∼ p 0 E x t ∼ p ( x t ∣ x 0 ) [ λ t ∥ s θ ( x t , t ) − ∇ x t log p ( x t ∣ x 0 ) ∥ 2 ] , (40)
with weighting λ t > 0 \lambda_t>0 λ t > 0 and t ∼ U [ 0 , 1 ] t\sim U[0,1] t ∼ U [ 0 , 1 ] . For a Gaussian forward kernel p ( x t ∣ x 0 ) = N ( α t x 0 , σ ˉ t 2 I ) p(x_t\mid x_0)=\mathcal{N}(\alpha_t x_0,\bar{\sigma}_t^2 I) p ( x t ∣ x 0 ) = N ( α t x 0 , σ ˉ t 2 I ) the target is closed form, ∇ x t log p ( x t ∣ x 0 ) = − ϵ / σ ˉ t \nabla_{x_t}\log p(x_t\mid x_0)=-\epsilon/\bar{\sigma}_t ∇ x t log p ( x t ∣ x 0 ) = − ϵ / σ ˉ t , giving the equivalent noise-prediction objective. Score-, noise-, and velocity-prediction parametrisations are related by simple bijections [32 ] .
VP-SDE schedule. We adopt the Variance-Preserving (VP) SDE [80 ] , with f t ( x ) = − 1 2 β ( t ) x f_t(x)=-\frac{1}{2}\beta(t)x f t ( x ) = − 2 1 β ( t ) x and σ t = β ( t ) \sigma_t=\sqrt{\beta(t)} σ t = β ( t ) for a prescribed β ( t ) \beta(t) β ( t ) . The forward kernel then admits the closed form,
X t = α t X 0 + σ ˉ t ϵ , ϵ ∼ N ( 0 , I ) X_t=\alpha_tX_0+\bar{\sigma}_t\epsilon,\qquad\epsilon\sim\mathcal{N}(0,I) X t = α t X 0 + σ ˉ t ϵ , ϵ ∼ N ( 0 , I )
with,
α t = exp ( − 1 2 ∫ 0 t β ( s ) d s ) , σ ˉ t 2 = 1 − α t 2 . (41) \alpha_t=\exp\left(-\frac{1}{2}\int_0^t\beta(s)\,\mathrm{d}s\right),\qquad\bar{\sigma}_t^2=1-\alpha_t^2. \tag*{(41)} α t = exp ( − 2 1 ∫ 0 t β ( s ) d s ) , σ ˉ t 2 = 1 − α t 2 . (41)
In experiments we use the linear schedule β ( t ) = β min + t ( β max − β min ) \beta(t)=\beta_{\min}+t(\beta_{\max}-\beta_{\min}) β ( t ) = β m i n + t ( β m a x − β m i n ) , β min = 0.1 \beta_{\min}=0.1 β m i n = 0.1 , β max = 20 \beta_{\max}=20 β m a x = 20 or a cosine schedule.
Posterior mean (Tweedie). The posterior mean of the clean state given a noisy x t x_t x t is available in closed form from the score [27 ] ,
x ^ 0 ∣ t ( x t ) = x t + σ ˉ t 2 s θ ( x t , t ) α t . (42) \hat{x}_{0\mid t}(x_t)=\frac{x_t+\bar{\sigma}_t^2s_\theta(x_t,t)}{\alpha_t}. \tag*{(42)} x ^ 0 ∣ t ( x t ) = α t x t + σ ˉ t 2 s θ ( x t , t ) . (42)
We use x ^ 0 ∣ t \hat{x}_{0\mid t} x ^ 0 ∣ t as the mean of the Gaussian denoising-posterior approximation in § 3.4 .
Posterior-variance proxy (ΠGDM). For the covariance of the Gaussian denoising posterior we use the ΠGDM proxy, which is exact when the data distribution is a single Gaussian and is borrowed as a tractable surrogate otherwise [81 ] . Per dimension,
s t 2 = σ ˉ t 2 V d a t a α t 2 V d a t a + σ ˉ t 2 , (43) s_t^2=\frac{\bar{\sigma}_t^2V_{\mathrm{data}}}{\alpha_t^2V_{\mathrm{data}}+\bar{\sigma}_t^2}, \tag*{(43)} s t 2 = α t 2 V data + σ ˉ t 2 σ ˉ t 2 V data , (43)
with α t 2 \alpha_t^2 α t 2 and σ ˉ t 2 = 1 − α t 2 \bar{\sigma}_t^2=1-\alpha_t^2 σ ˉ t 2 = 1 − α t 2 the VP-SDE marginal noise and variance above (note σ ˉ t \bar{\sigma}_t σ ˉ t is the marginal noise std, distinct from the diffusion coefficient σ t = β ( t ) \sigma_t=\sqrt{\beta(t)} σ t = β ( t ) ), and V d a t a = Var ( x 0 ) V_{\mathrm{data}}=\operatorname{Var}(x_0) V data = Var ( x 0 ) is the marginal data variance (for the GMM benchmark, ∑ k w k ( Σ k , 11 + μ k , 1 2 ) − ( ∑ k w k μ k , 1 ) 2 \sum_k w_k(\Sigma_{k,11}+\mu_{k,1}^2)-(\sum_k w_k\mu_{k,1})^2 ∑ k w k ( Σ k , 11 + μ k , 1 2 ) − ( ∑ k w k μ k , 1 ) 2 along the read-out dimension). At early times (t → T t\to T t → T ) α t → 0 \alpha_t\to0 α t → 0 , σ ˉ t → 1 \bar{\sigma}_t\to1 σ ˉ t → 1 and s t 2 → V d a t a s_t^2\to V_{\mathrm{data}} s t 2 → V data (full prior uncertainty); at late times (t → 0 t\to0 t → 0 ) σ ˉ t 2 → 0 \bar{\sigma}_t^2\to0 σ ˉ t 2 → 0 and s t 2 → 0 s_t^2\to0 s t 2 → 0 (the posterior collapses to the Tweedie point estimate). Applied per dimension this yields the diagonal posterior covariance,
Σ t = diag ( s t , 1 2 , … , s t , d 2 ) , (44) \Sigma_t=\operatorname{diag}(s_{t,1}^2,\ldots,s_{t,d}^2), \tag*{(44)} Σ t = diag ( s t , 1 2 , … , s t , d 2 ) , (44)
with V d a t a V_{\mathrm{data}} V data evaluated along each coordinate (V i = 1 V_i=1 V i = 1 for standardised data, otherwise estimated empirically).
Sequential methods
For completeness we provide an overview of classical sequential methods that are used in rare-event simulation, such as annealed importance sampling, splitting and sequential Monte Carlo (SMC). These are methods used to bridge the gap from a tractable reference π K \pi_K π K to the tilted target π 0 \pi_0 π 0 of Eq. (5) through a sequence of overlapping intermediate distributions [19 , 43 , 63 ] . We briefly expand on this and highlight their similarities, but refer the readers to [60 ] for a full exposition under the Feynman-Kac formulation. Additionally, see [19 , 62 ] for details on the SMC machinery. Formally the sequence of distributions defines a path-measure over the space of all trajectories particles can take, but we omit this rigour for brevity.
Annealed Importance Sampling (AIS) and Sequential Monte Carlo (SMC) build this path by tempering the reward [19 , 63 ] . One such sequence of distributions tempers the reward [19 , 63 ] ,
π k ( x ) = 1 Z k p 0 ( x ) e β k r ( x ) , 1 = β 0 > β 1 > ⋯ > β K = 0. (45) \pi_k(x)=\frac{1}{Z_k}p_0(x)e^{\beta_k r(x)},\qquad1=\beta_0>\beta_1>\cdots>\beta_K=0. \tag*{(45)} π k ( x ) = Z k 1 p 0 ( x ) e β k r ( x ) , 1 = β 0 > β 1 > ⋯ > β K = 0. (45)
Rather than targeting the constrained target π 0 \pi_0 π 0 directly, tempering gradually sharpens the reward landscape until the chain converges to the target distribution. Additionally, SMC utilises resampling along the trajectory to prune low-weight particles and multiply those with higher weights [19 , 23 ] .
Multilevel splitting takes another approach, where the sequence is constructed using a sequence of nested rare event sets [36 , 43 ] . Taking the canonical example of threshold exceedance, for a strictly decreasing ladder τ 0 = τ > τ 1 > ⋯ > τ K \tau_0=\tau>\tau_1>\cdots>\tau_K τ 0 = τ > τ 1 > ⋯ > τ K , the event set is defined as E k = { x : ϕ ( x ) ≥ τ k } E_k=\{x:\phi(x)\ge\tau_k\} E k = { x : ϕ ( x ) ≥ τ k } . The sequence is defined to be,
E 0 = E ⊂ E 1 ⊂ ⋯ ⊂ E K , π k ( x ) = 1 Z k , τ p 0 ( x ) 1 { ϕ ( x ) ≥ τ k } , (46) E_0=E\subset E_1\subset\cdots\subset E_K,\qquad\pi_k(x)=\frac{1}{Z_{k,\tau}}p_0(x)\mathbf{1}\{\phi(x)\ge\tau_k\}, \tag*{(46)} E 0 = E ⊂ E 1 ⊂ ⋯ ⊂ E K , π k ( x ) = Z k , τ 1 p 0 ( x ) 1 { ϕ ( x ) ≥ τ k } , (46)
where E K E_K E K is a region readily accessible from the state space. The aim of splitting is to estimate the rare event probability at the final τ \tau τ , i.e. Z 0 , τ = ∫ p 0 ( x ) 1 { ϕ ( x ) ≥ τ } d x = p 0 [ E ] Z_{0,\tau}=\int p_0(x)\mathbf{1}\{\phi(x)\ge\tau\}\,\mathrm{d}x=p_0[E] Z 0 , τ = ∫ p 0 ( x ) 1 { ϕ ( x ) ≥ τ } d x = p 0 [ E ] . We show that all of these methods compute this in the same way. All methods work by transporting particles along the sequence, SMC and splitting additionally resample particles to focus computation on high-weight trajectories (i.e. trajectories that particles undertake that are more likely under the possible sequence of trajectories they could have taken) [19 , 36 , 43 ] . Intuitively, multilevel splitting is a form of SMC/AIS with a hard indicator function replacing a smoothed distribution and the schemes only differ in their construction of their sequences [60 ] .
Estimating the normalisation constant
Having constructed the sequence, the quantity of interest is the terminal normalisation constant Z 0 Z_0 Z 0 , which for the rare-event target is Z 0 , τ Z_{0,\tau} Z 0 , τ . We show explicitly, that splitting estimates the probability estimate in the same way as standard SMC/AIS. Please see [19 , 36 , 43 , 63 ] for further details.
For a sequence of distributions, π K → ⋯ → π 0 \pi_K\to\cdots\to\pi_0 π K → ⋯ → π 0 of § 3.1 , let π k = 1 Z k γ k \pi_k=\frac{1}{Z_k}\gamma_k π k = Z k 1 γ k be the normalised density with the normalisation constant Z k = ∫ γ k Z_k=\int\gamma_k Z k = ∫ γ k . Each step along the trajectory incurs an incremental importance weight that is, in general, a ratio of forward and backward transition kernels between the two distributions [19 ] . A particle is propagated from π k \pi_k π k to π k − 1 \pi_{k-1} π k − 1 by the proposal kernel B ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) \bar{B}_{k-1|k}(x_{k-1}\mid x_k) B ˉ k − 1∣ k ( x k − 1 ∣ x k ) , and the auxiliary kernel F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) \bar{F}_{k|k-1}(x_k\mid x_{k-1}) F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) running in the opposite direction defines the incremental weight of Eq. (7) [19 ] ,
g k − 1 ∣ k ( x k − 1 , x k ) = γ k − 1 ( x k − 1 ) F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) γ k ( x k ) B ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) , (47) g_{k-1|k}(x_{k-1},x_k)=\frac{\gamma_{k-1}(x_{k-1})\bar{F}_{k|k-1}(x_k\mid x_{k-1})}{\gamma_k(x_k)\bar{B}_{k-1|k}(x_{k-1}\mid x_k)}, \tag*{(47)} g k − 1∣ k ( x k − 1 , x k ) = γ k ( x k ) B ˉ k − 1∣ k ( x k − 1 ∣ x k ) γ k − 1 ( x k − 1 ) F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) , (47)
Choosing the proposal to be a π k − 1 \pi_{k-1} π k − 1 -invariant MCMC kernel, as in the rejuvenation move of § 3.1 , with the auxiliary kernel F ˉ k ∣ k − 1 \bar{F}_{k|k-1} F ˉ k ∣ k − 1 taken as its time reversal, the kernels cancel and the weight reduces to the target ratio g k − 1 ∣ k = γ k − 1 ( x k ) / γ k ( x k ) g_{k-1|k}=\gamma_{k-1}(x_k)/\gamma_k(x_k) g k − 1∣ k = γ k − 1 ( x k ) / γ k ( x k ) [19 , 63 ] , which we use throughout this subsection. The ratio of two normalisation constants Z k − 1 / Z k Z_{k-1}/Z_k Z k − 1 / Z k is estimated via the Monte Carlo average of the incremental weights, i.e.,
E π k [ g k − 1 ∣ k ] = ∫ γ k − 1 ( x ) γ k ( x ) γ k ( x ) Z k d x = Z k − 1 Z k , (48) \mathbb{E}_{\pi_k}[g_{k-1|k}]=\int\frac{\gamma_{k-1}(x)}{\gamma_k(x)}\frac{\gamma_k(x)}{Z_k}\,dx=\frac{Z_{k-1}}{Z_k}, \tag*{(48)} E π k [ g k − 1∣ k ] = ∫ γ k ( x ) γ k − 1 ( x ) Z k γ k ( x ) d x = Z k Z k − 1 , (48)
with the standard empirical estimator,
Z ^ k − 1 Z k = 1 N ∑ i = 1 N g k − 1 ∣ k ( i ) , x ( i ) ∼ π k . (49) \frac{\widehat{Z}_{k-1}}{Z_k}=\frac{1}{N}\sum_{i=1}^{N}g_{k-1|k}^{(i)},\qquad x^{(i)}\sim\pi_k. \tag*{(49)} Z k Z k − 1 = N 1 i = 1 ∑ N g k − 1∣ k ( i ) , x ( i ) ∼ π k . (49)
Hence the normaliser Z 0 Z_0 Z 0 follows from the telescoping product with the corresponding estimator given by,
Z ^ 0 = Z K ∏ k = 1 K ( 1 N ∑ i = 1 N g k − 1 ∣ k ( i ) ) , (50) \widehat{Z}_0=Z_K\prod_{k=1}^{K}\left(\frac{1}{N}\sum_{i=1}^{N}g_{k-1|k}^{(i)}\right), \tag*{(50)} Z 0 = Z K k = 1 ∏ K ( N 1 i = 1 ∑ N g k − 1∣ k ( i ) ) , (50)
where Z K Z_K Z K is known, e.g. for score based models Z K = 1 Z_K=1 Z K = 1 as γ K = p 1 \gamma_K=p_1 γ K = p 1 is the normalised Gaussian prior [41 , 80 ] .
Tempering (AIS/SMC) Annealed importance sampling and SMC interpolate by tempering the reward, γ k = p 0 e β k r \gamma_k=p_0e^{\beta_k r} γ k = p 0 e β k r , with 1 = β 0 > ⋯ > β K = 0 1=\beta_0>\cdots>\beta_K=0 1 = β 0 > ⋯ > β K = 0 , so the incremental weight is given by
g k − 1 ∣ k = e ( β k − 1 − β k ) r ( x k ) , Z k − 1 Z k = E π k [ e ( β k − 1 − β k ) r ] . (51) g_{k-1|k}=e^{(\beta_{k-1}-\beta_k)r(x_k)},\qquad\frac{Z_{k-1}}{Z_k}=\mathbb{E}_{\pi_k}\left[e^{(\beta_{k-1}-\beta_k)r}\right]. \tag*{(51)} g k − 1∣ k = e ( β k − 1 − β k ) r ( x k ) , Z k Z k − 1 = E π k [ e ( β k − 1 − β k ) r ] . (51)
Each normalisation ratio is the average of this factor under the current target. When consecutive temperatures are close, i.e. β k − 1 − β k \beta_{k-1}-\beta_k β k − 1 − β k small, the weights stay close to one for all particles and the ratio is estimated reliably. A single large step, by contrast can produce weights spanning many orders of magnitude - collapsing the effective sample size where the final estimate will be dominated by only a few particles that have the largest weights [63 ] .
Splitting Multilevel splitting interpolates instead with hard indicators, i.e. γ k = p 0 1 { x ∈ E k } \gamma_k=p_0\mathbf{1}\{x\in E_k\} γ k = p 0 1 { x ∈ E k } , for a shrinking sequence E K ⊃ ⋯ ⊃ E 0 E_K\supset\cdots\supset E_0 E K ⊃ ⋯ ⊃ E 0 . The incremental weight collapses to,
g k − 1 ∣ k = p 0 1 { x ∈ E k − 1 } p 0 1 { x ∈ E k } = 1 { x ∈ E k − 1 } , (52) g_{k-1|k}=\frac{p_0\mathbf{1}\{x\in E_{k-1}\}}{p_0\mathbf{1}\{x\in E_k\}}=\mathbf{1}\{x\in E_{k-1}\}, \tag*{(52)} g k − 1∣ k = p 0 1 { x ∈ E k } p 0 1 { x ∈ E k − 1 } = 1 { x ∈ E k − 1 } , (52)
for which the ratio of normalisation constant is given by,
Z k − 1 Z k = E π k [ 1 { x ∈ E k − 1 } ] = Pr [ X ∈ E k − 1 ∣ X ∈ E k ] = : α k , (53) \frac{Z_{k-1}}{Z_k}=\mathbb{E}_{\pi_k}[\mathbf{1}\{x\in E_{k-1}\}]=\Pr[X\in E_{k-1}\mid X\in E_k]=:\alpha_k, \tag*{(53)} Z k Z k − 1 = E π k [ 1 { x ∈ E k − 1 }] = Pr [ X ∈ E k − 1 ∣ X ∈ E k ] =: α k , (53)
so each ratio is the conditional probability of reaching the next level, estimated by the surviving fraction, α ^ k = N X ∈ E k − 1 / N X ∈ E k \widehat{\alpha}_k=N_{X\in E_{k-1}}/N_{X\in E_k} α k = N X ∈ E k − 1 / N X ∈ E k . Thus the telescoping product of Eq. (50) for the threshold exceedance given in Eq. (46) becomes,
Z 0 = Z K ∏ k = 1 K α k = Pr [ X > τ K ] ∏ k = 1 K Pr [ X > τ k − 1 ∣ X > τ k ] , (54) Z_0=Z_K\prod_{k=1}^{K}\alpha_k=\Pr[X>\tau_K]\prod_{k=1}^{K}\Pr[X>\tau_{k-1}\mid X>\tau_k], \tag*{(54)} Z 0 = Z K k = 1 ∏ K α k = Pr [ X > τ K ] k = 1 ∏ K Pr [ X > τ k − 1 ∣ X > τ k ] , (54)
This recovers the rare event probability estimate of the multilevel splitting algorithm [61 , 75 ] .
Both methods estimate the same object via a product of incremental ratios along the bridge where consecutive levels overlap, instead of the single rare-event ratio estimated in one step. This is precisely the failure that accumulating importance weights over the trajectory sidesteps. The diffusion process supplies the sequence of transition kernels and the incremental weights [24 ] (Vargas et al. 2023) carry their own normalisation avoiding a separate estimate of Z 0 Z_0 Z 0 , see Appendix § 10 .§ 3 .
Generic SMC algorithm
Given an unnormalised density γ 0 \gamma_0 γ 0 with a normalised form π 0 : = γ 0 / γ 0 [ 1 ] \pi_0 := \gamma_0/\gamma_0[1] π 0 := γ 0 / γ 0 [ 1 ] , we seek to estimate integrals γ 0 [ f ] \gamma_0[f] γ 0 [ f ] and to sample from π 0 \pi_0 π 0 . SMC samplers (Del Moral et al., [19 ] ) transport a population of N N N weighted particles from a normalised reference γ K \gamma_K γ K down to γ 0 \gamma_0 γ 0 along a sequence γ K , … , γ 0 \gamma_K,\ldots,\gamma_0 γ K , … , γ 0 , with π k : = γ k / γ k [ 1 ] \pi_k := \gamma_k/\gamma_k[1] π k := γ k / γ k [ 1 ] .
Algorithm. We begin by initialising N N N samples, X K n ∼ p r e f X_K^n \sim p_{\mathrm{ref}} X K n ∼ p ref with weights w K n = 1 w_K^n = 1 w K n = 1 . At each step k k k , move each particle with a backward proposal kernel B ˉ k − 1 ∣ k \bar{B}_{k-1|k} B ˉ k − 1∣ k and update its weight with the incremental weight g k − 1 ∣ k g_{k-1|k} g k − 1∣ k ,
X k − 1 n ∼ B ˉ k − 1 ∣ k ( d x k − 1 ∣ X k n ) , w k − 1 n = w k n g k − 1 ∣ k ( X k − 1 n , X k n ) , (55) X_{k-1}^n \sim\bar{B}_{k-1|k}(\mathrm{d}x_{k-1} \mid X_k^n), \qquad w_{k-1}^n = w_k^n g_{k-1|k}(X_{k-1}^n,X_k^n), \tag*{(55)} X k − 1 n ∼ B ˉ k − 1∣ k ( d x k − 1 ∣ X k n ) , w k − 1 n = w k n g k − 1∣ k ( X k − 1 n , X k n ) , (55)
g k − 1 ∣ k ( x k − 1 , x k ) = γ k − 1 ( x k − 1 ) F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) γ k ( x k ) B ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) , (56) g_{k-1|k}(x_{k-1},x_k) = \frac{\gamma_{k-1}(x_{k-1}) \bar{F}_{k|k-1}(x_k \mid x_{k-1})}{\gamma_k(x_k)\bar{B}_{k-1|k}(x_{k-1} \mid x_k)}, \tag*{(56)} g k − 1∣ k ( x k − 1 , x k ) = γ k ( x k ) B ˉ k − 1∣ k ( x k − 1 ∣ x k ) γ k − 1 ( x k − 1 ) F ˉ k ∣ k − 1 ( x k ∣ x k − 1 ) , (56)
where F ˉ k ∣ k − 1 \bar{F}_{k|k-1} F ˉ k ∣ k − 1 is a forward auxiliary kernel running from k − 1 k-1 k − 1 to k k k . Any kernels can be selected, provided we can sample from B ˉ k − 1 ∣ k \bar{B}_{k-1|k} B ˉ k − 1∣ k and evaluate g k − 1 ∣ k g_{k-1|k} g k − 1∣ k pointwise. When the effective sample size ESS ( w k − 1 ) : = ∥ w k − 1 ∥ 1 2 / ∥ w k − 1 ∥ 2 2 \operatorname{ESS}(w_{k-1}) := \lVert w_{k-1}\rVert_1^2/\lVert w_{k-1}\rVert_2^2 ESS ( w k − 1 ) := ∥ w k − 1 ∥ 1 2 / ∥ w k − 1 ∥ 2 2 drops below η N \eta N η N , we resample, replacing each particle by an ancestor drawn in proportion to its weight and resetting the weights to one (Chopin et al., [15 ] ), and rejuvenate using a π k − 1 \pi_{k-1} π k − 1 -invariant MCMC kernel.
Estimators. Let Z ^ \hat{Z} Z ^ be the product, over the resampling steps so far, of the average weight 1 N ∑ n w k n \frac{1}{N}\sum_n w_k^n N 1 ∑ n w k n just before the reset (Z ^ = 1 \hat{Z}=1 Z ^ = 1 if none). The particle system at step k k k defines the weighted approximations
γ ^ 0 [ f ] : = Z ^ 1 N ∑ n = 1 N w 0 n f ( X 0 n ) , π ^ 0 ( d x ) : = ∑ n = 1 N w 0 n δ X 0 n ( d x ) ∑ n = 1 N w 0 n . (57) \hat{\gamma}_0[f] := \hat{Z}\frac{1}{N}\sum_{n=1}^{N}w_0^n f(X_0^n), \qquad\hat{\pi}_0(\mathrm{d}x) := \frac{\sum_{n=1}^{N}w_0^n\delta_{X_0^n}(\mathrm{d}x)}{\sum_{n=1}^{N}w_0^n}. \tag*{(57)} γ ^ 0 [ f ] := Z ^ N 1 n = 1 ∑ N w 0 n f ( X 0 n ) , π ^ 0 ( d x ) := ∑ n = 1 N w 0 n ∑ n = 1 N w 0 n δ X 0 n ( d x ) . (57)
γ ^ 0 [ f ] \hat{\gamma}_0[f] γ ^ 0 [ f ] is unbiased, E [ γ ^ k [ f ] ] = γ k [ f ] \mathbb{E}[\hat{\gamma}_k[f]]=\gamma_k[f] E [ γ ^ k [ f ]] = γ k [ f ] for every f f f . The second is biased for finite N N N but converges almost surely to π k \pi_k π k as N → ∞ N\to\infty N → ∞ (Del Moral et al., [19 ] ).
Why annealing becomes necessary
We now motivate why annealing is required and where importance sampling alone is insufficient. Even with exact samples from the tilted target π 0 \pi_0 π 0 of Eq. (5) , taken with r 0 = r 0 , δ r_0=r_{0,\delta} r 0 = r 0 , δ or the mollified reward. The naive endpoint (self-normalised) estimator of p 0 [ E ] p_0[E] p 0 [ E ] is badly behaved for estimating the normalisation constant, motivating the use of annealing, either via splitting or accumulated importance weights.
Given a smooth reward r 0 , δ ( x ) r_{0,\delta}(x) r 0 , δ ( x ) , suppose we can draw exact samples x ∼ π 0 x\sim\pi_0 x ∼ π 0 from the tilted distribution, π 0 = γ 0 / Z 0 \pi_0=\gamma_0/Z_0 π 0 = γ 0 / Z 0 with γ 0 = p 0 e r 0 , δ \gamma_0=p_0e^{r_{0,\delta}} γ 0 = p 0 e r 0 , δ . The rare-event probability under the base distribution p 0 p_0 p 0 can then be written as,
p 0 [ E ] = E π 0 [ 1 { ϕ ( x ) ≥ τ } p 0 ( x ) π 0 ( x ) ] = E π 0 [ 1 { ϕ ( x ) ≥ τ } p 0 ( x ) p 0 ( x ) e r 0 , δ ( x ) / Z 0 ] = E π 0 [ 1 { ϕ ( x ) ≥ τ } Z 0 e − r 0 , δ ( x ) ] , (58) p_0[E] = \mathbb{E}_{\pi_0}\left[1\{\phi(x)\ge\tau\}\frac{p_0(x)}{\pi_0(x)}\right]
= \mathbb{E}_{\pi_0}\left[1\{\phi(x)\ge\tau\}\frac{p_0(x)}{p_0(x)e^{r_{0,\delta}(x)}/Z_0}\right]
= \mathbb{E}_{\pi_0}\left[1\{\phi(x)\ge\tau\}Z_0e^{-r_{0,\delta}(x)}\right], \tag*{(58)} p 0 [ E ] = E π 0 [ 1 { ϕ ( x ) ≥ τ } π 0 ( x ) p 0 ( x ) ] = E π 0 [ 1 { ϕ ( x ) ≥ τ } p 0 ( x ) e r 0 , δ ( x ) / Z 0 p 0 ( x ) ] = E π 0 [ 1 { ϕ ( x ) ≥ τ } Z 0 e − r 0 , δ ( x ) ] , (58)
where w ( x ) : = p 0 ( x ) / π 0 ( x ) = Z 0 e − r 0 , δ ( x ) w(x):=p_0(x)/\pi_0(x)=Z_0e^{-r_{0,\delta}(x)} w ( x ) := p 0 ( x ) / π 0 ( x ) = Z 0 e − r 0 , δ ( x ) is the importance weight, and the normaliser Z 0 Z_0 Z 0 is estimated from the same samples via,
1 Z 0 = 1 Z 0 ∫ p 0 d x = 1 Z 0 ∫ p 0 ( x ) e r 0 , δ ( x ) e − r 0 , δ ( x ) = ∫ π 0 e − r 0 , δ ( x ) = E π 0 [ e − r 0 , δ ( x ) ] . (59) \frac{1}{Z_0}=\frac{1}{Z_0}\int p_0\mathrm{d}x=\frac{1}{Z_0}\int p_0(x)e^{r_{0,\delta}(x)}e^{-r_{0,\delta}(x)}=\int\pi_0e^{-r_{0,\delta}(x)}=\mathbb{E}_{\pi_0}[e^{-r_{0,\delta}(x)}]. \tag*{(59)} Z 0 1 = Z 0 1 ∫ p 0 d x = Z 0 1 ∫ p 0 ( x ) e r 0 , δ ( x ) e − r 0 , δ ( x ) = ∫ π 0 e − r 0 , δ ( x ) = E π 0 [ e − r 0 , δ ( x ) ] . (59)
Substituting Eq. (59) into Eq. (58) yields the self-normalised importance-sampling (SNIS) estimator (Owen, [67 ] ),
p ^ 0 [ E ] = ∑ i = 1 N 1 { ϕ ( x i ) ≥ τ } e − r 0 , δ ( x i ) ∑ i = 1 N e − r 0 , δ ( x i ) , x i ∼ π 0 ( x ) (60) \hat{p}_0[E]=\frac{\sum_{i=1}^{N}1\{\phi(x_i)\ge\tau\}e^{-r_{0,\delta}(x_i)}}{\sum_{i=1}^{N}e^{-r_{0,\delta}(x_i)}}, \qquad x_i\sim\pi_0(x) \tag*{(60)} p ^ 0 [ E ] = ∑ i = 1 N e − r 0 , δ ( x i ) ∑ i = 1 N 1 { ϕ ( x i ) ≥ τ } e − r 0 , δ ( x i ) , x i ∼ π 0 ( x ) (60)
The numerator and denominator of (60) behave very differently. The numerator is only affected by the region that π 0 \pi_0 π 0 approximates well, since the indicator 1 { ϕ ( x ) ≥ τ } 1\{\phi(x)\ge\tau\} 1 { ϕ ( x ) ≥ τ } provides a “shielding” effect.
The denominator, by contrast is an expectation of the normalisation constant Z 0 Z_0 Z 0 which is affected by the entire domain of p 0 p_0 p 0 . As the tilt is designed to concentrate on the rare event set, we are effectively using the rare-event tilted distribution π 0 \pi_0 π 0 to estimate a function of p 0 p_0 p 0 . This naturally has a low ESS and yields a high-variance estimate of the normaliser Z 0 Z_0 Z 0 . Even given perfect samples from π 0 \pi_0 π 0 we essentially have another “rare-event” expectation in the denominator where no particles of π 0 \pi_0 π 0 fall into the bulk. The denominator integrand w ( x ) = p 0 ( x ) π 0 ( x ) = Z 0 e − r 0 , δ ( x ) w(x) = \frac{p_0(x)}{\pi_0(x)} = Z_0 e^{-r_{0,\delta}(x)} w ( x ) = π 0 ( x ) p 0 ( x ) = Z 0 e − r 0 , δ ( x ) is largest in the bulk, where p 0 p_0 p 0 holds most of its mass but the tilt π 0 \pi_0 π 0 has almost none, exactly the region π 0 \pi_0 π 0 is designed to avoid . The numerator E q [ 1 r a r e e − r 0 , δ ] \mathbb{E}_q[1_{\mathrm{rare}}e^{-r_{0,\delta}}] E q [ 1 rare e − r 0 , δ ] stays bounded as it lives where q q q samples effectively, whereas the denominator E q [ e − r 0 , δ ] \mathbb{E}_q[e^{-r_{0,\delta}}] E q [ e − r 0 , δ ] needs exactly the bulk samples that q q q avoids. Hence, the ESS for estimating the denominator becomes worse by design and this contributes a high variance estimate of Z 0 Z_0 Z 0 ! We could in practice break this down into a series of transition importance distributions, which leads us back to splitting/annealing of Section Section C (Del Moral et al., [19 ] ; Morio et al., [61 ] ; Neal, [63 ] ).
Empirical evidence on the 2D GMM
If we draw exact samples from π 0 \pi_0 π 0 , via Rejection Sampling or analytically, we illustrate that we still cannot estimate Z 0 Z_0 Z 0 . For the 2D GMM case with a log-CDF tilting, we have access to the analytical normalisation constant, the convolution of a Gaussian with a Gaussian CDF simply inflates the variance. The normaliser of the tilted distribution as given in Eq. (98) repeated here again is given by,
Z 0 , δ = ∫ Φ ( f ) N ( f ∣ μ , σ 2 ) d f = Φ ( μ 1 + σ 2 ) , (61) Z_{0,\delta} = \int\Phi(f)\mathcal{N}(f \mid\mu,\sigma^2)\,\mathrm{d}f = \Phi\left(\frac{\mu}{\sqrt{1+\sigma^2}}\right), \tag*{(61)} Z 0 , δ = ∫ Φ ( f ) N ( f ∣ μ , σ 2 ) d f = Φ ( 1 + σ 2 μ ) , (61)
with f ↦ x − τ δ f \mapsto\frac{x-\tau}{\delta} f ↦ δ x − τ , μ ↦ μ i − τ δ \mu\mapsto\frac{\mu_i-\tau}{\delta} μ ↦ δ μ i − τ and σ 2 ↦ v i δ 2 \sigma^2 \mapsto\frac{v_i}{\delta^2} σ 2 ↦ δ 2 v i (see Section F). This lets us disentangle whether the failure is in the numerator or the denominator, knowing the analytical denominator and the true probability, the true numerator is recoverable. We draw a large number of samples from p 0 p_0 p 0 and use rejection sampling to generate samples from π 0 \pi_0 π 0 . We find that a small number of particles drawn directly from π 0 \pi_0 π 0 suffices to estimate the rare-event probability provided the denominator is known . Conversely, if the denominator is unknown we cannot estimate the probability at all - the difficulty lies entirely in the denominator as seen in Table 2, which is exactly what motivates annealing (§ 3.1 & Section C).
For τ = 7.0 \tau= 7.0 τ = 7.0 and δ = 0.25 \delta= 0.25 δ = 0.25 the true Z 0 , δ = 7.331 × 10 − 3 Z_{0,\delta} = 7.331 \times10^{-3} Z 0 , δ = 7.331 × 1 0 − 3 from Eq. (61) .
Table 2. Self-normalised importance sampling (SNIS) estimates vs. sample size (N N N ).
Note that p ^ S N I S \hat{p}_{\mathrm{SNIS}} p ^ SNIS differs from Z ^ 0 , S N I S \hat{Z}_{0,\mathrm{SNIS}} Z ^ 0 , SNIS because some particles do not pass through the numerator’s indicator by design of the smoothing in § 3 . The goal of annealing/splitting (§ 3.1 ) is precisely to make the numerator easier to estimate.
Splitting estimator
In the case where the path weights are not readily accessible, either because they are not computed or if a large number of discretisation is infeasible, e.g. for a second order numerical integrator. We can fall back to a guided diffusion proposal to build a splitting/annealed probability estimator. In this case, the annealing bridge becomes the nested sequence of event sets defined in Eq. (46) . For the threshold exceedance example given in Sec C, the conditional ratio between adjacent levels is given by,
α k = p 0 [ X > τ h ∣ X > τ ℓ ] = p 0 [ X > τ h ∩ X > τ ℓ ] p 0 [ X > τ ℓ ] = p 0 [ X > τ h ] p 0 [ X > τ ℓ ] . (62) \alpha_k = p_0[X > \tau_h \mid X > \tau_\ell] = \frac{p_0[X > \tau_h \cap X > \tau_\ell]}{p_0[X > \tau_\ell]} = \frac{p_0[X > \tau_h]}{p_0[X > \tau_\ell]}. \tag*{(62)} α k = p 0 [ X > τ h ∣ X > τ ℓ ] = p 0 [ X > τ ℓ ] p 0 [ X > τ h ∩ X > τ ℓ ] = p 0 [ X > τ ℓ ] p 0 [ X > τ h ] . (62)
In the denoising-diffusion setting each conditional is sampled by transporting particles from the Gaussian prior to the corresponding target, this means that the probability, Pr [ X > τ h ] \Pr[X > \tau_h] Pr [ X > τ h ] is estimated by generating samples from the tilted distribution, p ( X ∣ X > τ h ) p(X \mid X > \tau_h) p ( X ∣ X > τ h ) , as highlighted in § 3 . Within this scheme α k \alpha_k α k admits two estimators, depending on whether a single tilt or one tilt per level is used.
Formulation I: single-tilt, two-indicator estimator. Use a single proposal q ℓ q_\ell q ℓ targeting the lower level τ ℓ \tau_\ell τ ℓ and estimate both exceedance probabilities from the same particles. With τ ℓ < τ h \tau_\ell< \tau_h τ ℓ < τ h ,
α k = E q ℓ [ 1 { ϕ ( X ) > τ h } e − r ℓ ( X ) ] E q ℓ [ 1 { ϕ ( X ) > τ ℓ } e − r ℓ ( X ) ] . (63) \alpha_k = \frac{\mathbb{E}_{q_\ell}\left[\mathbf{1}\{\phi(X)>\tau_h\}e^{-r_\ell(X)}\right]}{\mathbb{E}_{q_\ell}\left[\mathbf{1}\{\phi(X)>\tau_\ell\}e^{-r_\ell(X)}\right]} . \tag*{(63)} α k = E q ℓ [ 1 { ϕ ( X ) > τ ℓ } e − r ℓ ( X ) ] E q ℓ [ 1 { ϕ ( X ) > τ h } e − r ℓ ( X ) ] . (63)
where the shared normaliser Z ℓ Z_\ell Z ℓ cancels between numerator and denominator, so it need not be estimated. The denominator is estimated where q ℓ q_\ell q ℓ has mass (it targets τ ℓ \tau_\ell τ ℓ ), so it is well-conditioned; the variance is dominated by the numerator, which lives where q ℓ q_\ell q ℓ is sparse (X > τ h X > \tau_h X > τ h ).
Formulation II: two-tilt transitioning. Use one proposal per level, q ℓ ∝ p 0 e r ℓ q_\ell\propto p_0 e^{r_\ell} q ℓ ∝ p 0 e r ℓ and q h ∝ p 0 e r h q_h \propto p_0 e^{r_h} q h ∝ p 0 e r h , and estimate the numerator under q h q_h q h and the denominator under q ℓ q_\ell q ℓ ,
α k = Z h Z ℓ E q h [ 1 { ϕ ( X ) > τ h } e − r h ( X ) ] E q ℓ [ 1 { ϕ ( X ) > τ ℓ } e − r ℓ ( X ) ] . (64) \alpha_k = \frac{Z_h}{Z_\ell}\frac{\mathbb{E}_{q_h}\left[\mathbf{1}\{\phi(X)>\tau_h\}e^{-r_h(X)}\right]}{\mathbb{E}_{q_\ell}\left[\mathbf{1}\{\phi(X)>\tau_\ell\}e^{-r_\ell(X)}\right]} . \tag*{(64)} α k = Z ℓ Z h E q ℓ [ 1 { ϕ ( X ) > τ ℓ } e − r ℓ ( X ) ] E q h [ 1 { ϕ ( X ) > τ h } e − r h ( X ) ] . (64)
Each expectation is now evaluated under a tilt matched to its own threshold, so neither term suffers the ESS collapse of Formulation I; the price is that the normalisers no longer cancel and the ratio Z h / Z ℓ Z_h/Z_\ell Z h / Z ℓ must be estimated. Annealing on the output space, i.e. between p 0 e r ℓ → p 0 e r h p_0e^{r_\ell} \to p_0e^{r_h} p 0 e r ℓ → p 0 e r h , we can compute this ratio with the tempering estimator given in Eq. (51) ,
Z h Z ℓ = E q ℓ [ e r h ( X ) − r ℓ ( X ) ] ≈ 1 N ∑ i e r h ( x i ) − r ℓ ( x i ) , x i ∼ q ℓ , (65) \frac{Z_h}{Z_\ell}=\mathbb{E}_{q_\ell}\left[e^{r_h(X)-r_\ell(X)}\right]\approx\frac{1}{N}\sum_i e^{r_h(x_i)-r_\ell(x_i)},\qquad x_i\sim q_\ell, \tag*{(65)} Z ℓ Z h = E q ℓ [ e r h ( X ) − r ℓ ( X ) ] ≈ N 1 i ∑ e r h ( x i ) − r ℓ ( x i ) , x i ∼ q ℓ , (65)
which is reliable when adjacent tilts overlap. Both formulations require sufficient overlap of the thresholds, the only difference is Formulation I requires overlap between two hard indicators and through the smooth reward difference, r h − r ℓ r_h-r_\ell r h − r ℓ , in Formulation II.
Notable Caveats: Evolving directly from p ( X ∣ X > τ l ) → p ( X ∣ X > τ h ) p(X\mid X>\tau_l)\to p(X\mid X>\tau_h) p ( X ∣ X > τ l ) → p ( X ∣ X > τ h ) is non-trivial without additional training. Unlike traditional splitting, we do not evolve/reuse particles across different thresholds ([61 ] ), hence the above formulations are not a form of sequential methods. Instead they are a sequence of independent estimators sharing a compute budget. Additionally, any importance weights used assume that within the threshold set by the indicators, samples are well distributed along the tilted distribution. As such both estimators are sensitive to the quality of the guidance. Training based methods could be introduced such as Flow Matching ([4 , 51 , 52 ] ) or Schrödinger’s Bridges ([9 , 76 ] ) but these remain beyond the scope of this work.
Weight computation
Let P \mathbb{P} P and Q \mathbb{Q} Q be the path-measures on [ 0 , 1 ] [0,1] [ 0 , 1 ] of the base reverse-time SDE of Eq. (1) and the guided SDE of Eq. (9) respectively. Here we do not assume that Q \mathbb{Q} Q is the ideal Doob’s path measure P ∗ \mathbb{P}^{*} P ∗ and the gap between the two is variance in Theorem 2. Both measures start from X 1 ∼ p r e f X_1\sim p_{\mathrm{ref}} X 1 ∼ p ref and differ only the drift obtained by the reward gradient term, − σ t 2 ∇ x r t -\sigma_t^2\nabla_xr_t − σ t 2 ∇ x r t so Girsanov’s theorem gives us an exact form of the Radon-Nikodym Derivative ([64 ] ),
d P d Q = exp ( − ∫ 0 1 σ t ∇ x r t ( X t ) ⋅ d W ‾ t − 1 2 ∫ 0 1 σ t 2 ∥ ∇ x r t ( X t ) ∥ 2 d t ) , (66) \frac{\mathrm{d}\mathbb{P}}{\mathrm{d}\mathbb{Q}}=\exp\left(-\int_0^1\sigma_t\nabla_xr_t(X_t)\cdot\mathrm{d}\overline{W}_t-\frac{1}{2}\int_0^1\sigma_t^2\left\|\nabla_xr_t(X_t)\right\|^2\mathrm{d}t\right), \tag*{(66)} d Q d P = exp ( − ∫ 0 1 σ t ∇ x r t ( X t ) ⋅ d W t − 2 1 ∫ 0 1 σ t 2 ∥ ∇ x r t ( X t ) ∥ 2 d t ) , (66)
where W ‾ t \overline{W}_t W t is the reverse-time Wiener process driving the guided sampler. This expression is valid provided the change of measure exists at all. A sufficient condition for existence is given by Novikov’s condition,
E Q [ exp ( 1 2 ∫ 0 1 σ t 2 ∥ ∇ x r t ( X t ) ∥ 2 d t ) ] < ∞ . (67) \mathbb{E}_{\mathbb{Q}}\left[\exp\left(\frac{1}{2}\int_0^1\sigma_t^2\left\|\nabla_xr_t(X_t)\right\|^2\mathrm{d}t\right)\right]<\infty. \tag*{(67)} E Q [ exp ( 2 1 ∫ 0 1 σ t 2 ∥ ∇ x r t ( X t ) ∥ 2 d t ) ] < ∞. (67)
The discrete estimator of Algorithm 1 does not require this condition to be fulfilled as Theorem 1 requires only P ^ k − 1 ∣ k ≪ Q ^ k − 1 ∣ k \widehat{P}_{k-1|k}\ll\widehat{Q}_{k-1|k} P k − 1∣ k ≪ Q k − 1∣ k (Appendix § 8 ).
Discrete transition kernels. In practice we sample on the grid 0 = t 0 < ⋯ < t K = 1 0 = t_0 < \cdots< t_K = 1 0 = t 0 < ⋯ < t K = 1 of § 2 , with t = 0 t = 0 t = 0 the data distribution, writing x k x_k x k for the state at t k t_k t k so that step k k k moves x k → x k − 1 x_k \to x_{k-1} x k → x k − 1 . The path measures factorise into the backward transition kernels of § 2 and the kernel we actually simulate ((Wu et al., 2023)),
P 0 : K ( x 0 : K ) = p r e f ( x K ) ∏ k = 1 K P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) , Q 0 : K ( x 0 : K ) = p r e f ( x K ) ∏ k = 1 K Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) , (68) \begin{aligned}
\mathbb{P}_{0:K}(x_{0:K}) &= p_{\mathrm{ref}}(x_K) \prod_{k=1}^{K} \bar{P}_{k-1|k}(x_{k-1} \mid x_k),\\
\mathbb{Q}_{0:K}(x_{0:K}) &= p_{\mathrm{ref}}(x_K) \prod_{k=1}^{K} \bar{Q}_{k-1|k}(x_{k-1} \mid x_k), \tag*{(68)}
\end{aligned} P 0 : K ( x 0 : K ) Q 0 : K ( x 0 : K ) = p ref ( x K ) k = 1 ∏ K P ˉ k − 1∣ k ( x k − 1 ∣ x k ) , = p ref ( x K ) k = 1 ∏ K Q ˉ k − 1∣ k ( x k − 1 ∣ x k ) , (68)
where P ˉ k − 1 ∣ k \bar{P}_{k-1|k} P ˉ k − 1∣ k integrates the base reverse SDE of Eq. (1) and Q ˉ k − 1 ∣ k \bar{Q}_{k-1|k} Q ˉ k − 1∣ k the guided SDE of Eq. (9) from t k t_k t k down to t k − 1 t_{k-1} t k − 1 . Both are initialised from the same Gaussian prior p r e f p_{\mathrm{ref}} p ref which cancels,
d P 0 : K d Q 0 : K = ∏ k = 1 K P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) . (69) \frac{\mathrm{d}\mathbb{P}_{0:K}}{\mathrm{d}\mathbb{Q}_{0:K}} = \prod_{k=1}^{K} \frac{\bar{P}_{k-1|k}(x_{k-1} \mid x_k)}{\bar{Q}_{k-1|k}(x_{k-1} \mid x_k)}. \tag*{(69)} d Q 0 : K d P 0 : K = k = 1 ∏ K Q ˉ k − 1∣ k ( x k − 1 ∣ x k ) P ˉ k − 1∣ k ( x k − 1 ∣ x k ) . (69)
Incorporating a reward tilt e r 0 ( x 0 ) e^{r_0(x_0)} e r 0 ( x 0 ) as a telescope product of individual reward potentials,
R ( x 0 : K ) = ∏ k = 1 K G k , G k = e r k − 1 ( x k − 1 ) e r k ( x k ) , (70) R(x_{0:K}) = \prod_{k=1}^{K} G_k,\qquad G_k = \frac{e^{r_{k-1}(x_{k-1})}}{e^{r_k(x_k)}}, \tag*{(70)} R ( x 0 : K ) = k = 1 ∏ K G k , G k = e r k ( x k ) e r k − 1 ( x k − 1 ) , (70)
which collapses to R = exp ( r 0 ( x 0 ) − r K ( x K ) ) = e r 0 ( x 0 ) R = \exp(r_0(x_0) - r_K(x_K)) = e^{r_0(x_0)} R = exp ( r 0 ( x 0 ) − r K ( x K )) = e r 0 ( x 0 ) since r K = 0 r_K = 0 r K = 0 . Multiply Eqs. (69) and (70) yields,
e r 0 ( x 0 ) d P 0 : K d Q 0 : K ( x K : 0 ) = ∏ k = 1 K G k P ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) Q ˉ k − 1 ∣ k ( x k − 1 ∣ x k ) = ∏ k = 1 K g k − 1 ∣ k ( x k − 1 , x k ) , (71) e^{r_0(x_0)} \frac{\mathrm{d}\mathbb{P}_{0:K}}{\mathrm{d}\mathbb{Q}_{0:K}}(x_{K:0}) = \prod_{k=1}^{K} G_k \frac{\bar{P}_{k-1|k}(x_{k-1} \mid x_k)}{\bar{Q}_{k-1|k}(x_{k-1} \mid x_k)} = \prod_{k=1}^{K} g_{k-1|k}(x_{k-1},x_k), \tag*{(71)} e r 0 ( x 0 ) d Q 0 : K d P 0 : K ( x K : 0 ) = k = 1 ∏ K G k Q ˉ k − 1∣ k ( x k − 1 ∣ x k ) P ˉ k − 1∣ k ( x k − 1 ∣ x k ) = k = 1 ∏ K g k − 1∣ k ( x k − 1 , x k ) , (71)
which recovers the incremental weight of Eq. (10) accumulated by Algorithm 1.
Weight Computation. Recall from Lemma 1 that, for Gaussian transition kernels of Eq. (11) , the incremental log weight is given by,
log g k − 1 ∣ k ( x k − 1 , x k ) = r k − 1 ( x k − 1 ) − r k ( x k ) ⏟ reward telescope − ζ k 2 2 ∥ ∇ x r k ( x k ) ∥ 2 ⏟ control cost − ζ k ⟨ ∇ x r k ( x k ) , ϵ k ⟩ ⏟ martingale correction . (72) \log g_{k-1|k}(x_{k-1},x_k) = \underbrace{r_{k-1}(x_{k-1}) - r_k(x_k)}_{\text{reward telescope}} - \underbrace{\frac{\zeta_k^2}{2}\lVert\nabla_x r_k(x_k)\rVert^2}_{\text{control cost}} - \underbrace{\zeta_k\langle\nabla_x r_k(x_k),\epsilon_k\rangle}_{\text{martingale correction}}. \tag*{(72)} log g k − 1∣ k ( x k − 1 , x k ) = reward telescope r k − 1 ( x k − 1 ) − r k ( x k ) − control cost 2 ζ k 2 ∥ ∇ x r k ( x k ) ∥ 2 − martingale correction ζ k ⟨ ∇ x r k ( x k ) , ϵ k ⟩ . (72)
As all path-measures we have introduced differ only in the drift, the change of measure between them is given by Girsanov’s theorem which yields an exact Radon-Nikodym Derivative ([64 ] ) and the above computation represents its discretised form. The control-cost is the price paid by the guided SDE for perturbing the base drift towards the rare-event set and a martingale correction which accounts for any “lucky” noise ϵ k \epsilon_k ϵ k sampled along the guided step that carries the particle towards the set.
Remark. Nothing in this derivation constrains the r k r_k r k to be constant across time; and any family of schedules defined by ( λ ( t ) , τ ( t ) , δ ( t ) ) (\lambda(t), \tau(t), \delta(t)) ( λ ( t ) , τ ( t ) , δ ( t )) do not break the validity and the weight computation remains exact. The schedules enter the reward telescope of Eq. (70) only through the endpoints themselves R = exp ( r t 0 ( x 0 ) − r t K ( x K ) ) R = \exp(r_{t_0}(x_0) - r_{t_K}(x_K)) R = exp ( r t 0 ( x 0 ) − r t K ( x K )) , and the kernel ratio of Eq. (69) only through the guidance ∇ x t r t \nabla_{x_t} r_t ∇ x t r t .
ζ k \zeta_k ζ k for common integrators
The first-order exponential integrator ([59 ] ) of ([37 ] ) integrates the linear part of the reverse drift and the noise exactly, freezing only the network output across the step. Reparameterising the time increment in half-log Signal to Noise Ratio, ℓ t : = log ( α t / σ ˉ t ) \ell_t := \log(\alpha_t/\bar{\sigma}_t) ℓ t := log ( α t / σ ˉ t ) ; write Δ ℓ k = ℓ t k − 1 − ℓ t k ≥ 0 \Delta\ell_k = \ell_{t_{k-1}} - \ell_{t_k} \ge0 Δ ℓ k = ℓ t k − 1 − ℓ t k ≥ 0 for its increment across a step.
Exponential Integrator (VP & ϵ ^ θ \hat{\epsilon}_\theta ϵ ^ θ frozen) Restating their Eq. 14 (Gonzalez et al., [37 ] ) in our notation and abbreviating the symbols,
A k : = α t k − 1 α t k , D k : = 2 σ ˉ t k − 1 ( e Δ ℓ k − 1 ) , v k : = σ ˉ t k − 1 2 ( e 2 Δ ℓ k − 1 ) . (73) A_k := \frac{\alpha_{t_{k-1}}}{\alpha_{t_k}}, \qquad D_k := 2\bar{\sigma}_{t_{k-1}}\left(e^{\Delta\ell_k}-1\right), \qquad v_k := \bar{\sigma}_{t_{k-1}}^2\left(e^{2\Delta\ell_k}-1\right). \tag*{(73)} A k := α t k α t k − 1 , D k := 2 σ ˉ t k − 1 ( e Δ ℓ k − 1 ) , v k := σ ˉ t k − 1 2 ( e 2Δ ℓ k − 1 ) . (73)
The incremental reverse step is given by,
x k − 1 = A k x k − D k ϵ ^ θ ( x k , t k ) + v k ϵ k , ϵ k ∼ N ( 0 , I ) , (74) x_{k-1} = A_k x_k - D_k\hat{\epsilon}_\theta(x_k,t_k) + \sqrt{v_k}\epsilon_k, \qquad\epsilon_k \sim\mathcal{N}(0,I), \tag*{(74)} x k − 1 = A k x k − D k ϵ ^ θ ( x k , t k ) + v k ϵ k , ϵ k ∼ N ( 0 , I ) , (74)
where ϵ ^ θ \hat{\epsilon}_\theta ϵ ^ θ is the noise predicted by the network. This is related by a change of variable to the score network, s θ = − ϵ ^ θ σ ˉ s_\theta= -\frac{\hat{\epsilon}_\theta}{\bar{\sigma}} s θ = − σ ˉ ϵ ^ θ (Gao et al., [32 ] ). Hence, the guidance update in score maps to the noise prediction as,
s θ → s θ + ∇ x r t , s_\theta\to s_\theta+ \nabla_x r_t, s θ → s θ + ∇ x r t ,
ϵ θ → ϵ θ − σ ˉ t k ∇ x r t k ( x k ) . (75) \epsilon_\theta\to\epsilon_\theta- \bar{\sigma}_{t_k}\nabla_x r_{t_k}(x_k). \tag*{(75)} ϵ θ → ϵ θ − σ ˉ t k ∇ x r t k ( x k ) . (75)
Therefore, the change of means between the two guided and unguided process is obtained by substituting Eq. (75) into Eq. (74) to get,
μ k α − μ k ν = D k σ ˉ t k ∇ x r t k ( x k ) = c k V P ∇ x r t k ( x k ) , (76) \mu_k^\alpha-\mu_k^\nu= D_k\bar{\sigma}_{t_k}\nabla_x r_{t_k}(x_k) = c_k^{\mathrm{VP}}\nabla_x r_{t_k}(x_k), \tag*{(76)} μ k α − μ k ν = D k σ ˉ t k ∇ x r t k ( x k ) = c k VP ∇ x r t k ( x k ) , (76)
where we have further equated this to the mean shift of Eq. (11) . Hence, under the exponential first-order integrator and a VP noise schedule,
c k V P = D k σ ˉ t k = 2 σ ˉ t k − 1 σ ˉ t k ( e Δ ℓ k − 1 ) . (77) c_k^{\mathrm{VP}} = D_k\bar{\sigma}_{t_k} = 2\bar{\sigma}_{t_{k-1}}\bar{\sigma}_{t_k}\left(e^{\Delta\ell_k}-1\right). \tag*{(77)} c k VP = D k σ ˉ t k = 2 σ ˉ t k − 1 σ ˉ t k ( e Δ ℓ k − 1 ) . (77)
To obtain ζ k \zeta_k ζ k , we make further substitutions,
( ζ k V P ) 2 = ( c k V P ) 2 v k = 4 σ ˉ t k − 1 2 σ ˉ t k 2 ( e Δ ℓ k − 1 ) 2 σ ˉ t k − 1 2 ( e 2 Δ ℓ k − 1 ) = 4 σ ˉ t k 2 ( e Δ ℓ k − 1 ) 2 ( e Δ ℓ k − 1 ) ( e Δ ℓ k + 1 ) = 4 σ ˉ t k 2 ( e Δ ℓ k − 1 ) e Δ ℓ k + 1 = 4 σ ˉ t k 2 tanh ( Δ ℓ k / 2 ) , (78) \begin{aligned}
\left(\zeta_k^{\mathrm{VP}}\right)^2 &= \frac{\left(c_k^{\mathrm{VP}}\right)^2}{v_k} = \frac{4\bar{\sigma}_{t_{k-1}}^2\bar{\sigma}_{t_k}^2\left(e^{\Delta\ell_k}-1\right)^2}{\bar{\sigma}_{t_{k-1}}^2\left(e^{2\Delta\ell_k}-1\right)} \\
&= \frac{4\bar{\sigma}_{t_k}^2\left(e^{\Delta\ell_k}-1\right)^2}{\left(e^{\Delta\ell_k}-1\right)\left(e^{\Delta\ell_k}+1\right)} \\
&= \frac{4\bar{\sigma}_{t_k}^2\left(e^{\Delta\ell_k}-1\right)}{e^{\Delta\ell_k}+1} \\
&= 4\bar{\sigma}_{t_k}^2\tanh(\Delta\ell_k/2), \tag*{(78)}
\end{aligned} ( ζ k VP ) 2 = v k ( c k VP ) 2 = σ ˉ t k − 1 2 ( e 2Δ ℓ k − 1 ) 4 σ ˉ t k − 1 2 σ ˉ t k 2 ( e Δ ℓ k − 1 ) 2 = ( e Δ ℓ k − 1 ) ( e Δ ℓ k + 1 ) 4 σ ˉ t k 2 ( e Δ ℓ k − 1 ) 2 = e Δ ℓ k + 1 4 σ ˉ t k 2 ( e Δ ℓ k − 1 ) = 4 σ ˉ t k 2 tanh ( Δ ℓ k /2 ) , (78)
so that ζ k V P = 2 σ ˉ t k tanh ( Δ ℓ k / 2 ) \zeta_k^{\mathrm{VP}} = 2\bar{\sigma}_{t_k}\sqrt{\tanh(\Delta\ell_k/2)} ζ k VP = 2 σ ˉ t k tanh ( Δ ℓ k /2 ) .
Exponential Integrator (VE) Under the VE schedule, f t = 0 f_t = 0 f t = 0 and α t ≡ 1 \alpha_t \equiv1 α t ≡ 1 . Following (Gonzalez et al., [37 ] ) and rewriting the score network as a data prediction x ^ 0 ∣ t = x t + σ ˉ t 2 s θ \hat{x}_{0|t} = x_t + \bar{\sigma}_t^2s_\theta x ^ 0∣ t = x t + σ ˉ t 2 s θ using Tweedie’s formula (Efron, [27 ] ; Gao et al. [32 ] ) and freezing x ^ 0 ∣ t \hat{x}_{0|t} x ^ 0∣ t along the increment, the reverse drift is given by,
x k − 1 = κ k x k + ( 1 − κ k ) x ^ 0 ∣ t + v k ϵ k , v k = σ ˉ t k − 1 2 ( 1 − κ k ) , (79) x_{k-1} = \kappa_k x_k + (1-\kappa_k)\hat{x}_{0|t} + \sqrt{v_k}\epsilon_k, \qquad v_k = \bar{\sigma}_{t_{k-1}}^2(1-\kappa_k), \tag*{(79)} x k − 1 = κ k x k + ( 1 − κ k ) x ^ 0∣ t + v k ϵ k , v k = σ ˉ t k − 1 2 ( 1 − κ k ) , (79)
where κ k : = σ ˉ t k − 1 2 σ ˉ t k 2 \kappa_k := \frac{\bar{\sigma}_{t_{k-1}}^2}{\bar{\sigma}_{t_k}^2} κ k := σ ˉ t k 2 σ ˉ t k − 1 2 . Under a guided score the data prediction is perturbed to,
s θ → s θ + ∇ x r t , s_\theta\to s_\theta+ \nabla_x r_t, s θ → s θ + ∇ x r t ,
x ^ 0 ∣ t → x ^ 0 ∣ t + σ ˉ t k 2 ∇ x r t k ( x k ) , (80) \hat{x}_{0|t} \to\hat{x}_{0|t} + \bar{\sigma}_{t_k}^2\nabla_x r_{t_k}(x_k), \tag*{(80)} x ^ 0∣ t → x ^ 0∣ t + σ ˉ t k 2 ∇ x r t k ( x k ) , (80)
hence, c k = ( 1 − κ k ) σ ˉ t k 2 c_k = (1-\kappa_k)\bar{\sigma}_{t_k}^2 c k = ( 1 − κ k ) σ ˉ t k 2 and it follows,
ζ k V E , x ^ = σ ˉ t k e 2 Δ ℓ k − 1 , (81) \zeta_k^{\mathrm{VE},\hat{x}} = \bar{\sigma}_{t_k}\sqrt{e^{2\Delta\ell_k}-1}, \tag*{(81)} ζ k VE , x ^ = σ ˉ t k e 2Δ ℓ k − 1 , (81)
with ℓ t = − log σ ˉ t \ell_t=-\log\bar{\sigma}_t ℓ t = − log σ ˉ t when α t ≡ 1 \alpha_t\equiv1 α t ≡ 1 .
Freezing the noise-prediction ϵ ^ k \hat{\epsilon}_k ϵ ^ k would lead to an exact quadrature scheme of the noise term, v k v_k v k . Under a VE schedule f t = 0 f_t=0 f t = 0 , so the reverse drift carries no part linear in x x x and, using σ t 2 σ ˉ t = 2 σ ˉ ˙ t \frac{\sigma_t^2}{\bar{\sigma}_t}=2\dot{\bar{\sigma}}_t σ ˉ t σ t 2 = 2 σ ˉ ˙ t , the frozen integrand may be integrated in closed form (Gonzalez et al., [37 ] ),
x k − 1 = x k − D k V E ϵ ^ θ ( x k , t k ) + v k ϵ k , D k V E : = 2 ( σ ˉ t k − σ ˉ t k − 1 ) , v k : = σ ˉ t k 2 − σ ˉ t k − 1 2 , (82) x_{k-1}=x_k-D_k^{\mathrm{VE}}\hat{\epsilon}_\theta(x_k,t_k)+\sqrt{v_k}\,\epsilon_k,\qquad D_k^{\mathrm{VE}}:=2(\bar{\sigma}_{t_k}-\bar{\sigma}_{t_{k-1}}),\qquad v_k:=\bar{\sigma}_{t_k}^2-\bar{\sigma}_{t_{k-1}}^2, \tag*{(82)} x k − 1 = x k − D k VE ϵ ^ θ ( x k , t k ) + v k ϵ k , D k VE := 2 ( σ ˉ t k − σ ˉ t k − 1 ) , v k := σ ˉ t k 2 − σ ˉ t k − 1 2 , (82)
Substituting the guided noise-prediction of Eq. (75) gives c k V E = D k V E σ ˉ t k = 2 σ ˉ t k ( σ ˉ t k − σ ˉ t k − 1 ) c_k^{\mathrm{VE}}=D_k^{\mathrm{VE}}\bar{\sigma}_{t_k}=2\bar{\sigma}_{t_k}(\bar{\sigma}_{t_k}-\bar{\sigma}_{t_{k-1}}) c k VE = D k VE σ ˉ t k = 2 σ ˉ t k ( σ ˉ t k − σ ˉ t k − 1 ) , and since σ ˉ t k − 1 = σ ˉ t k e − Δ ℓ k \bar{\sigma}_{t_{k-1}}=\bar{\sigma}_{t_k}e^{-\Delta\ell_k} σ ˉ t k − 1 = σ ˉ t k e − Δ ℓ k when α t ≡ 1 \alpha_t\equiv1 α t ≡ 1 , both coefficients collapse onto the VP forms,
c k V E = 2 σ ˉ t k − 1 σ ˉ t k ( e Δ ℓ k − 1 ) , v k = σ ˉ t k − 1 2 ( e 2 Δ ℓ k − 1 ) , (83) c_k^{\mathrm{VE}}=2\bar{\sigma}_{t_{k-1}}\bar{\sigma}_{t_k}\left(e^{\Delta\ell_k}-1\right),\qquad v_k=\bar{\sigma}_{t_{k-1}}^2\left(e^{2\Delta\ell_k}-1\right), \tag*{(83)} c k VE = 2 σ ˉ t k − 1 σ ˉ t k ( e Δ ℓ k − 1 ) , v k = σ ˉ t k − 1 2 ( e 2Δ ℓ k − 1 ) , (83)
so that ζ k V E , ϵ ^ = 2 σ ˉ t k tanh ( Δ ℓ k / 2 ) \zeta_k^{\mathrm{VE},\hat{\epsilon}}=2\bar{\sigma}_{t_k}\sqrt{\tanh(\Delta\ell_k/2)} ζ k VE , ϵ ^ = 2 σ ˉ t k tanh ( Δ ℓ k /2 ) , identical to ζ k V P \zeta_k^{\mathrm{VP}} ζ k VP of Eq. (78) .
Euler–Maruyama Euler–Maruyama steps [47 ] discretise the reverse SDE directly, so the base and guided kernels share a common covariance, v k = σ t k 2 Δ t k v_k = \sigma_{t_k}^{2}\Delta t_k v k = σ t k 2 Δ t k and u t = − σ t 2 ∇ x r t u_t = -\sigma_t^{2}\nabla_x r_t u t = − σ t 2 ∇ x r t . Hence, c k E M = σ t k 2 Δ t k c_k^{\mathrm{EM}} = \sigma_{t_k}^{2}\Delta t_k c k EM = σ t k 2 Δ t k , and,
ζ k E M = σ t k Δ t k . (84) \zeta_k^{\mathrm{EM}} = \sigma_{t_k}\sqrt{\Delta t_k}. \tag*{(84)} ζ k EM = σ t k Δ t k . (84)
Table 3 collects the three cases. Notably, as we increase the number of discretisations or Δ ℓ k → 0 \Delta\ell_k \to0 Δ ℓ k → 0 , all variants given in Table 3 recover the EM ζ k 2 \zeta_k^{2} ζ k 2 .
Table 3. ζ k 2 = c k 2 / v k \zeta_k^2 = c_k^2/v_k ζ k 2 = c k 2 / v k for different integrators and noise schedules.
The guidance gradient via local linearisation
The variance-aware guidance, illustrated in Figure 5 used in § 3 is,
∇ x t log E p ( x 0 ∣ x t ) [ e r 0 , δ ( x 0 ) ] \nabla_{x_t}\log\mathbb{E}_{p(x_0\mid x_t)}[e^{r_{0,\delta}(x_0)}] ∇ x t log E p ( x 0 ∣ x t ) [ e r 0 , δ ( x 0 ) ]
This appendix derives the closed-form approximation used in our implementation. We consider a general vector-valued constraint ϕ : R d → R m \phi: \mathbb{R}^{d} \to\mathbb{R}^{m} ϕ : R d → R m using a Gaussian approximation of the denoising posterior and a local linearisation of ϕ \phi ϕ . The scalar affine guidance in Eq. (91) , used for the one-sided threshold-exceedance experiments, is recovered as a special case m = 1 m = 1 m = 1 with a linear-ϕ \phi ϕ . We then discuss how interval and compound events are represented by multiple one-sided constraints and the approximation induced when their guidance terms are treated independently.
For a multivariate constraint, the smooth reward is a multivariate Gaussian CDF Φ m ( ⋅ ∣ Σ c ) \Phi_m(\cdot\mid\Sigma_c) Φ m ( ⋅ ∣ Σ c ) with constraint covariance Σ c \Sigma_c Σ c (the smoothing bandwidth; in the scalar case Σ c = δ 2 \Sigma_c = \delta^2 Σ c = δ 2 ). The integral is given by,
I ( x t ) = E p ( x 0 ∣ x t ) [ Φ m ( ϕ ( x 0 ) − τ ∣ Σ c ) ] . (85) I(x_t) = \mathbb{E}_{p(x_0\mid x_t)}\left[\Phi_m\left(\phi(x_0)-\tau\mid\Sigma_c\right)\right]. \tag*{(85)} I ( x t ) = E p ( x 0 ∣ x t ) [ Φ m ( ϕ ( x 0 ) − τ ∣ Σ c ) ] . (85)
Gaussian posterior. We use the same Gaussian denoising-posterior approximation as in the main text, p ( x 0 ∣ x t ) ≈ N ( x 0 ∣ x ^ 0 ∣ t , Σ t ) p(x_0 \mid x_t) \approx\mathcal{N}(x_0 \mid\hat{x}_{0\mid t}, \Sigma_t) p ( x 0 ∣ x t ) ≈ N ( x 0 ∣ x ^ 0 ∣ t , Σ t ) with x ^ 0 ∣ t \hat{x}_{0\mid t} x ^ 0 ∣ t the Tweedie estimate and Σ t \Sigma_t Σ t the diagonal PiGDM posterior-covariance proxy (Appendix § 9 ), hence,
I ( x t ) ≈ ∫ R d N ( x 0 ∣ x ^ 0 ∣ t , Σ t ) Φ m ( ϕ ( x 0 ) − τ ∣ Σ c ) d x 0 . (86) I(x_t) \approx\int_{\mathbb{R}^{d}} \mathcal{N}(x_0 \mid\hat{x}_{0\mid t}, \Sigma_t)\,\Phi_m\left(\phi(x_0)-\tau\mid\Sigma_c\right)\,\mathrm{d}x_0. \tag*{(86)} I ( x t ) ≈ ∫ R d N ( x 0 ∣ x ^ 0 ∣ t , Σ t ) Φ m ( ϕ ( x 0 ) − τ ∣ Σ c ) d x 0 . (86)
Linearisation. Linearising the constraint about the Tweedie mean,
ϕ ( x 0 ) ≈ ϕ ( x ^ 0 ∣ t ) + J ϕ ( x ^ 0 ∣ t ) ( x 0 − x ^ 0 ∣ t ) , J ϕ ( x ^ 0 ∣ t ) = ∇ x 0 ϕ ∣ x ^ 0 ∣ t ∈ R m × d , (87) \phi(x_0) \approx\phi(\hat{x}_{0|t}) + J_{\phi}(\hat{x}_{0|t}) (x_0 - \hat{x}_{0|t}), \qquad J_{\phi}(\hat{x}_{0|t}) = \left.\nabla_{x_0}\phi\right|_{\hat{x}_{0|t}} \in\mathbb{R}^{m \times d}, \tag*{(87)} ϕ ( x 0 ) ≈ ϕ ( x ^ 0∣ t ) + J ϕ ( x ^ 0∣ t ) ( x 0 − x ^ 0∣ t ) , J ϕ ( x ^ 0∣ t ) = ∇ x 0 ϕ ∣ x ^ 0∣ t ∈ R m × d , (87)
makes the integrand a Gaussian convolved with a Gaussian CDF, which integrates in closed form to a single CDF with the two covariances added (Rasmussen & Williams, [74 ] ),
I ( x t ) ≈ Φ m ( ϕ ( x ^ 0 ∣ t ) − τ | Σ c + J ϕ ( x ^ 0 ∣ t ) Σ t J ϕ ( x ^ 0 ∣ t ) T ) . (88) I(x_t) \approx\Phi_m\left(\phi(\hat{x}_{0|t}) - \tau\,\middle|\, \Sigma_c + J_{\phi}(\hat{x}_{0|t}) \Sigma_t J_{\phi}(\hat{x}_{0|t})^{\mathsf{T}}\right). \tag*{(88)} I ( x t ) ≈ Φ m ( ϕ ( x ^ 0∣ t ) − τ Σ c + J ϕ ( x ^ 0∣ t ) Σ t J ϕ ( x ^ 0∣ t ) T ) . (88)
The posterior covariance Σ t \Sigma_t Σ t is thus pushed through the constraint Jacobian and inflates the effective observation variance.
Guidance gradient. Let π t ∝ p t e r t \pi_t \propto p_t e^{r_t} π t ∝ p t e r t be the continuous-time version of the tilted target π k \pi_k π k of Eq. (5) . The guided score is then the unconditional score plus the gradient of log I \log I log I ,
∇ x t log π t ( x t ) = ∇ x t log p t ( x t ) ⏟ unconditional score + ∇ x t log Φ m ( ϕ ( x ^ 0 ∣ t ) − τ | Σ c + J ϕ ( x ^ 0 ∣ t ) Σ t J ϕ ( x ^ 0 ∣ t ) T ) ⏟ variance-aware guidance gradient . (89) \nabla_{x_t} \log\pi_t(x_t) = \underbrace{\nabla_{x_t} \log p_t(x_t)}_{\text{unconditional score}} + \underbrace{\nabla_{x_t} \log\Phi_m\left(\phi(\hat{x}_{0|t}) - \tau\,\middle|\, \Sigma_c + J_{\phi}(\hat{x}_{0|t}) \Sigma_t J_{\phi}(\hat{x}_{0|t})^{\mathsf{T}}\right)}_{\text{variance-aware guidance gradient}}. \tag*{(89)} ∇ x t log π t ( x t ) = unconditional score ∇ x t log p t ( x t ) + variance-aware guidance gradient ∇ x t log Φ m ( ϕ ( x ^ 0∣ t ) − τ Σ c + J ϕ ( x ^ 0∣ t ) Σ t J ϕ ( x ^ 0∣ t ) T ) . (89)
Linear constraint. For an affine read-out ϕ ( x 0 ) = A x 0 + b \phi(x_0) = Ax_0 + b ϕ ( x 0 ) = A x 0 + b the Jacobian is constant, J ϕ = A J_{\phi} = A J ϕ = A , and the guidance simplifies to
∇ x t log π t ( x t ) = ∇ x t log p t ( x t ) + ∇ x t log Φ m ( A x ^ 0 ∣ t + b − τ | Σ c + A Σ t A T ) . (90) \nabla_{x_t} \log\pi_t(x_t) = \nabla_{x_t} \log p_t(x_t) + \nabla_{x_t} \log\Phi_m\left(A\hat{x}_{0|t} + b - \tau\,\middle|\, \Sigma_c + A\Sigma_t A^{\mathsf{T}}\right). \tag*{(90)} ∇ x t log π t ( x t ) = ∇ x t log p t ( x t ) + ∇ x t log Φ m ( A x ^ 0∣ t + b − τ Σ c + A Σ t A T ) . (90)
Specialising further to m = 1 m = 1 m = 1 with ϕ ( x ) = a T x \phi(x) = a^{\mathsf{T}}x ϕ ( x ) = a T x and Σ c = δ 2 \Sigma_c = \delta^2 Σ c = δ 2 gives the scalar guidance used in the main text,
∇ x t log E p ( x 0 ∣ x t ) [ exp ( r 0 , δ ( x 0 ) ) ] = ∇ x t log ∫ p ( x 0 ∣ x t ) Φ ( ϕ ( x 0 ) − τ δ ) d x 0 ≈ ∇ x t log Φ ( ϕ ( x ^ 0 ∣ t ) − τ δ 2 + a T Σ t a ) , (91) \begin{aligned}
\nabla_{x_t} \log\mathbb{E}_{p(x_0|x_t)}[\exp(r_{0,\delta}(x_0))] = \nabla_{x_t} \log\int p(x_0 \mid x_t)\,\Phi\left(\frac{\phi(x_0) - \tau}{\delta}\right)\,\mathrm{d}x_0 \\
&\approx\nabla_{x_t} \log\Phi\left(\frac{\phi(\hat{x}_{0|t}) - \tau}{\sqrt{\delta^2 + a^{\mathsf{T}}\Sigma_t a}}\right), \tag*{(91)}
\end{aligned} ∇ x t log E p ( x 0 ∣ x t ) [ exp ( r 0 , δ ( x 0 ))] = ∇ x t log ∫ p ( x 0 ∣ x t ) Φ ( δ ϕ ( x 0 ) − τ ) d x 0 ≈ ∇ x t log Φ ( δ 2 + a T Σ t a ϕ ( x ^ 0∣ t ) − τ ) , (91)
with the inflated width δ 2 + a T Σ t a \sqrt{\delta^2 + a^{\mathsf{T}}\Sigma_t a} δ 2 + a T Σ t a .
Factorised guidance for multiple constraints
Consider an event defined by the intersection of m m m one-sided constraints,
E = ⋂ j = 1 m { ϕ j ( x ) ≥ τ j } , (92) E = \bigcap_{j=1}^{m} \{\phi_j(x) \ge\tau_j\}, \tag*{(92)} E = j = 1 ⋂ m { ϕ j ( x ) ≥ τ j } , (92)
such as the boxed intervals of App. § 14 .§ 4 . Section E gives the corresponding look-ahead likelihood as a multivariate Gaussian CDF Φ m ( ⋅ ∣ Σ e f f ) \Phi_m(\cdot\mid\Sigma_{\mathrm{eff}}) Φ m ( ⋅ ∣ Σ eff ) with
Σ e f f = Σ c + J ϕ ( x ^ 0 ∣ t ) Σ t J ϕ ( x ^ 0 ∣ t ) T , (93) \Sigma_{\mathrm{eff}} = \Sigma_c + J_{\phi}(\hat{x}_{0|t})\Sigma_t J_{\phi}(\hat{x}_{0|t})^{\mathsf{T}}, \tag*{(93)} Σ eff = Σ c + J ϕ ( x ^ 0∣ t ) Σ t J ϕ ( x ^ 0∣ t ) T , (93)
where Σ c \Sigma_c Σ c is the user-specified smoothing covariance and the second term is the denoising-posterior uncertainty projected through the read-out (Eq. (88) ).
To obtain the guidance gradient, we require ∇ x t log Φ m \nabla_{x_t}\log\Phi_m ∇ x t log Φ m , which in turn requires evaluating Φ m \Phi_m Φ m itself. For m = 1 m = 1 m = 1 , this is available in closed form and for m = 2 , 3 m = 2, 3 m = 2 , 3 it reduces to a low-dimensional quadrature (Drezner, [25 ] ; Genz, [34 ] ; Owen, [68 ] ). For m ≥ 4 m \ge4 m ≥ 4 with an unstructured or full covariance matrix Σ e f f \Sigma_{\mathrm{eff}} Σ eff no such reduction exists and the function has to be approximated by (randomised) quasi-Monte Carlo techniques (Genz, [33 ] ). The cost of that approximation is incurred once per particle per diffusion step, and unless the evaluation points are held fixed across particles and steps, the reward and its gradient become stochastic rather than deterministic functions of x t x_t x t . We therefore also provide the factorised surrogate below.
Optionally, Σ e f f \Sigma_{\mathrm{eff}} Σ eff may be approximated by its diagonal, under which Φ m \Phi_m Φ m factorises into a product of univariate Gaussian CDFs,
I f a c t ( x t ) = ∏ j = 1 m Φ ( ϕ j ( x ^ 0 ∣ t ) − τ j δ e f f , j ( x t ) ) , δ e f f , j 2 ( x t ) = δ j 2 + a j T Σ t a j , a j = ∇ x 0 ϕ j ∣ x ^ 0 ∣ t , (94) I_{\mathrm{fact}}(x_t)=\prod_{j=1}^{m}\Phi\left(\frac{\phi_j(\hat{x}_{0|t})-\tau_j}{\delta_{\mathrm{eff},j}(x_t)}\right),\qquad\delta_{\mathrm{eff},j}^{2}(x_t)=\delta_j^{2}+a_j^{\mathsf{T}}\Sigma_t a_j,\qquad a_j=\left.\nabla_{x_0}\phi_j\right|_{\hat{x}_{0|t}}, \tag*{(94)} I fact ( x t ) = j = 1 ∏ m Φ ( δ eff , j ( x t ) ϕ j ( x ^ 0∣ t ) − τ j ) , δ eff , j 2 ( x t ) = δ j 2 + a j T Σ t a j , a j = ∇ x 0 ϕ j ∣ x ^ 0∣ t , (94)
with a factorised reward r t f a c t : = log I f a c t r_t^{\mathrm{fact}}:=\log I_{\mathrm{fact}} r t fact := log I fact and guidance,
∇ x t r t f a c t = ∑ j = 1 m ∇ x t log Φ ( ϕ j ( x ^ 0 ∣ t ) − τ j δ e f f , j ( x t ) ) . (95) \nabla_{x_t}r_t^{\mathrm{fact}}=\sum_{j=1}^{m}\nabla_{x_t}\log\Phi\left(\frac{\phi_j(\hat{x}_{0|t})-\tau_j}{\delta_{\mathrm{eff},j}(x_t)}\right). \tag*{(95)} ∇ x t r t fact = j = 1 ∑ m ∇ x t log Φ ( δ eff , j ( x t ) ϕ j ( x ^ 0∣ t ) − τ j ) . (95)
This is simply m m m independent copies of the scalar guidance and while the factorisation retains the marginal posterior uncertainty of each constraint, it discards the off-diagonal entries of Σ e f f \Sigma_{\mathrm{eff}} Σ eff . This alters the guidance drift, and hence the implemented proposal Q Q Q together with the sequence of marginals π t \pi_t π t . Our rejuvenation kernels are made invariant with respect to the same marginals, using the factorised surrogate I f a c t I_{\mathrm{fact}} I fact . However, the target itself remains unchanged p 0 e r 0 , δ ( x ) p_0e^{r_{0,\delta}(x)} p 0 e r 0 , δ ( x ) as it depends on the data-reward at t = 0 t=0 t = 0 alone and remains unaffected by π t \pi_t π t or ∇ x r t \nabla_xr_t ∇ x r t . Hence, this approximation only contributes to the variance of our estimator.
Note finally that the factorisation describes the tilted marginals and not the sampler. The guided drift is,
∇ x t log p t ( x t ) + ∇ x t r t f a c t ( x t ) , \nabla_{x_t}\log p_t(x_t)+\nabla_{x_t}r_t^{\mathrm{fact}}(x_t), ∇ x t log p t ( x t ) + ∇ x t r t fact ( x t ) ,
and the unconditional score retains the emulator’s full joint dependence structure. Additionally, each term is also mapped through the dense ∂ x ^ 0 ∣ t / ∂ x t \partial\hat{x}_{0|t}/\partial x_t ∂ x ^ 0∣ t / ∂ x t , so a constraint supported on a single region and channel still induces a global drift across all variables. The diagonality of Σ e f f \Sigma_{\mathrm{eff}} Σ eff suppresses cross-constraint terms in the look-ahead variance ; it does not decouple the resulting drift.
Interval Guidance. A useful special case is an event defined by the interval, E = { τ a ≤ ϕ ( x ) ≤ τ b } E=\{\tau_a\le\phi(x)\le\tau_b\} E = { τ a ≤ ϕ ( x ) ≤ τ b } , which is the intersection (92) with m = 2 m=2 m = 2 , taking ϕ 1 = ϕ \phi_1=\phi ϕ 1 = ϕ , τ 1 = τ a \tau_1=\tau_a τ 1 = τ a and ϕ 2 = − ϕ \phi_2=-\phi ϕ 2 = − ϕ , τ 2 = − τ b \tau_2=-\tau_b τ 2 = − τ b . We write the reward as a difference of two individual rewards given by,
e r 0 , δ ( x ) = Φ ( ϕ ( x ) − τ a δ ) − Φ ( ϕ ( x ) − τ b δ ) , (96) e^{r_{0,\delta}(x)}=\Phi\left(\frac{\phi(x)-\tau_a}{\delta}\right)-\Phi\left(\frac{\phi(x)-\tau_b}{\delta}\right), \tag*{(96)} e r 0 , δ ( x ) = Φ ( δ ϕ ( x ) − τ a ) − Φ ( δ ϕ ( x ) − τ b ) , (96)
with the look-ahead and guidance following as before, replacing δ \delta δ by δ e f f = δ 2 + a T Σ t a \delta_{\mathrm{eff}}=\sqrt{\delta^2+a^{\mathsf{T}}\Sigma_t a} δ eff = δ 2 + a T Σ t a which is shared across both boundaries.
The correlated 2D GMM benchmark
This appendix specifies the synthetic benchmark used in our 2D experiments and collects the closed-form quantities it admits: the base density, the normalisation constant Z 0 , δ Z_{0,\delta} Z 0 , δ of the soft tilt, the exact exceedance probability p 0 [ E ] p_0[E] p 0 [ E ] , and the exact Doob guidance ∇ x r t ∗ = ∇ x log G t \nabla_xr_t^*=\nabla_x\log G_t ∇ x r t ∗ = ∇ x log G t (Dai Pra, [18 ] ; Denker et al., [21 ] ). All of these are available in closed form precisely because the GMM prior is conjugate to both the Gaussian forward kernel and the Gaussian-CDF reward, which lets us isolate the behaviour of the estimator from score- and reward-approximation error (Rasmussen & Williams, [74 ] ).
Base distribution. The data distribution is an M = 7 M=7 M = 7 -component Gaussian mixture in R 2 \mathbb{R}^2 R 2 ,
p 0 ( x ) = ∑ i = 1 M w i N ( x ; μ i , Σ i ) , ∑ i w i = 1 , (97) p_0(x)=\sum_{i=1}^{M}w_i\mathcal{N}(x;\mu_i,\Sigma_i),\qquad\sum_i w_i=1, \tag*{(97)} p 0 ( x ) = i = 1 ∑ M w i N ( x ; μ i , Σ i ) , i ∑ w i = 1 , (97)
where w i w_i w i (i = 1 , … , M i=1,\ldots,M i = 1 , … , M ) denote the mixture weights. The parameters are given in Table 4 . The four “bulk” modes carry most of the mass near the origin; the three right-hand modes are pushed out towards large x 1 x_1 x 1 and given strong off-diagonal covariance (ρ ≈ ± 0.85 \rho\approx\pm0.85 ρ ≈ ± 0.85 ) of opposite sign. This is by design: it makes the tail conditional p 0 ( x 2 ∣ x 1 > τ ) p_0(x_2\mid x_1>\tau) p 0 ( x 2 ∣ x 1 > τ ) bi-modal and markedly non-Gaussian, so that hitting the rare set is not equivalent to matching a single Gaussian tail and the proposal must reproduce a genuine multi-modal conditional.
The mixture weights w i w_i w i are given in Table 4 and sum to one. The observable is the linear read-out ϕ ( x ) = a T x \phi(x)=a^{\mathsf{T}}x ϕ ( x ) = a T x with a = ( 1 , 0 ) T a=(1,0)^{\mathsf{T}} a = ( 1 , 0 ) T , i.e. the event of interest is the threshold exceedance { x : x 1 ≥ τ } \{x:x_1\ge\tau\} { x : x 1 ≥ τ } .
Normalisation constant Z 0 , δ Z_{0,\delta} Z 0 , δ . The soft tilt π 0 , δ ( x ) ∝ p 0 ( x ) e r 0 , δ ( x ) \pi_{0,\delta}(x) \propto p_0(x)e^{r_{0,\delta}(x)} π 0 , δ ( x ) ∝ p 0 ( x ) e r 0 , δ ( x ) with the Gaussian-CDF reward e r 0 , δ ( x ) = Φ ( ( a ⊤ x − τ ) / δ ) e^{r_{0,\delta}(x)} = \Phi((a^\top x-\tau)/\delta) e r 0 , δ ( x ) = Φ (( a ⊤ x − τ ) / δ ) has normaliser Z 0 , δ = E p 0 [ e r 0 , δ ( X ) ] Z_{0,\delta} = \mathbb{E}_{p_0}[e^{r_{0,\delta}(X)}] Z 0 , δ = E p 0 [ e r 0 , δ ( X ) ] . Under each Gaussian component the read-out y = a ⊤ x ∼ N ( m i , v i ) y = a^\top x \sim\mathcal{N}(m_i,v_i) y = a ⊤ x ∼ N ( m i , v i ) with m i = a ⊤ μ i m_i = a^\top\mu_i m i = a ⊤ μ i and v i = a ⊤ Σ i a v_i = a^\top\Sigma_i a v i = a ⊤ Σ i a , and a standard Gaussian–Gaussian-CDF convolution (see Section 3.9 of Rasmussen & Williams, [74 ] ) gives the closed form,
Z 0 , δ = ∑ i = 1 M w i E N ( m i , v i ) [ Φ ( y − τ δ ) ] = ∑ i = 1 M w i Φ ( m i − τ δ 2 + v i ) . (98) Z_{0,\delta} = \sum_{i=1}^{M} w_i\,\mathbb{E}_{\mathcal{N}(m_i,v_i)}\left[\Phi\left(\frac{y-\tau}{\delta}\right)\right] = \sum_{i=1}^{M} w_i\,\Phi\left(\frac{m_i-\tau}{\sqrt{\delta^2+v_i}}\right). \tag*{(98)} Z 0 , δ = i = 1 ∑ M w i E N ( m i , v i ) [ Φ ( δ y − τ ) ] = i = 1 ∑ M w i Φ ( δ 2 + v i m i − τ ) . (98)
As δ ↓ 0 \delta\downarrow0 δ ↓ 0 the reward sharpens to the hard indicator and Z 0 , δ → p 0 [ E ] Z_{0,\delta} \to p_0[E] Z 0 , δ → p 0 [ E ] .
Exact exceedance probability. Because the read-out a ⊤ X a^{\top}X a ⊤ X is itself a 1D GMM with component means m i m_i m i and variances v i v_i v i , the exceedance probability is available in closed form,
p 0 [ E ] = p 0 [ a ⊤ X ≥ τ ] = ∑ i = 1 M w i [ 1 − Φ ( τ − m i v i ) ] = ∑ i = 1 M w i Φ ( m i − τ v i ) , (99) p_0[E] = p_0[a^{\top}X \ge\tau] = \sum_{i=1}^{M} w_i \left[1-\Phi\left(\frac{\tau-m_i}{\sqrt{v_i}}\right)\right] = \sum_{i=1}^{M} w_i \Phi\left(\frac{m_i-\tau}{\sqrt{v_i}}\right), \tag*{(99)} p 0 [ E ] = p 0 [ a ⊤ X ≥ τ ] = i = 1 ∑ M w i [ 1 − Φ ( v i τ − m i ) ] = i = 1 ∑ M w i Φ ( v i m i − τ ) , (99)
which we use as ground truth.
Tilted read-out marginal. While the full tilted density π 0 , δ ( x ) ∝ p 0 ( x ) Φ ( ( a ⊤ x − τ ) / δ ) \pi_{0,\delta}(x) \propto p_0(x)\Phi((a^{\top}x-\tau)/\delta) π 0 , δ ( x ) ∝ p 0 ( x ) Φ (( a ⊤ x − τ ) / δ ) is not itself a Gaussian mixture, the marginal of the read-out y = a ⊤ x y=a^{\top}x y = a ⊤ x is available in closed form,
π 0 , δ r e a d ( y ) = 1 Z 0 , δ ∑ i = 1 M w i N ( y ; m i , v i ) Φ ( y − τ δ ) , y = a ⊤ x , (100) \pi^{\mathrm{read}}_{0,\delta}(y) = \frac{1}{Z_{0,\delta}}\sum_{i=1}^{M} w_i \mathcal{N}(y;m_i,v_i)\Phi\left(\frac{y-\tau}{\delta}\right), \qquad y=a^{\top}x, \tag*{(100)} π 0 , δ read ( y ) = Z 0 , δ 1 i = 1 ∑ M w i N ( y ; m i , v i ) Φ ( δ y − τ ) , y = a ⊤ x , (100)
with Z 0 , δ Z_{0,\delta} Z 0 , δ from Eq. (98) and ( m i , v i ) (m_i,v_i) ( m i , v i ) as above.
Forward process. We use the VP-SDE schedule of Appendix § 9 with β min = 0.1 \beta_{\min}=0.1 β m i n = 0.1 , β max = 20 \beta_{\max}=20 β m a x = 20 , so that B ( t ) = ∫ 0 t β ( s ) d s = t β min + 1 2 t 2 ( β max − β min ) B(t)=\int_{0}^{t}\beta(s)\,\mathrm{d}s=t\beta_{\min}+\frac{1}{2}t^2(\beta_{\max}-\beta_{\min}) B ( t ) = ∫ 0 t β ( s ) d s = t β m i n + 2 1 t 2 ( β m a x − β m i n ) , α t = e − B ( t ) / 2 \alpha_t=e^{-B(t)/2} α t = e − B ( t ) /2 and σ ˉ t 2 = 1 − e − B ( t ) \bar{\sigma}_t^2=1-e^{-B(t)} σ ˉ t 2 = 1 − e − B ( t ) . Because the forward kernel is Gaussian, the noised marginal p t p_t p t is again a GMM whose i i i -th component has mean α t μ i \alpha_t\mu_i α t μ i and covariance (Rasmussen & Williams, [74 ] ),
Σ t , i = α t 2 Σ i + σ ˉ t 2 I . (101) \Sigma_{t,i}=\alpha_t^2\Sigma_i+\bar{\sigma}_t^2 I. \tag*{(101)} Σ t , i = α t 2 Σ i + σ ˉ t 2 I . (101)
Exact score. The exact score of the noised marginal is the weighted sum of the per-component scores. For any mixture,
∇ x log p t ( x ) = ∑ i w i ∇ x N i ∑ j w j N j = ∑ i w i N i [ − Σ t , i − 1 ( x − α t μ i ) ] ∑ j w j N j . (102) \nabla_x \log p_t(x)=\frac{\sum_i w_i\nabla_x\mathcal{N}_i}{\sum_j w_j\mathcal{N}_j}=\frac{\sum_i w_i\mathcal{N}_i\left[-\Sigma_{t,i}^{-1}(x-\alpha_t\mu_i)\right]}{\sum_j w_j\mathcal{N}_j}. \tag*{(102)} ∇ x log p t ( x ) = ∑ j w j N j ∑ i w i ∇ x N i = ∑ j w j N j ∑ i w i N i [ − Σ t , i − 1 ( x − α t μ i ) ] . (102)
We use this exact score wherever analytical score is reported.
Exact look-ahead guidance. The exact guidance is the gradient of the Doob reward of Eq. (14) (Dai Pra, [18 ] ; Denker et al., [21 ] ), which for the soft reward reads r t ∗ ( x ) = log G t ( x ) r_t^*(x)=\log G_t(x) r t ∗ ( x ) = log G t ( x ) with G t ( x ) = E p ( x 0 ∣ x t ) [ exp ( r 0 , δ ( x 0 ) ) ] G_t(x)=\mathbb{E}_{p(x_0\mid x_t)}[\exp(r_{0,\delta}(x_0))] G t ( x ) = E p ( x 0 ∣ x t ) [ exp ( r 0 , δ ( x 0 ))] , i.e. ∇ x r t ∗ = ∇ x log G t ( x ) \nabla_xr_t^*=\nabla_x\log G_t(x) ∇ x r t ∗ = ∇ x log G t ( x ) . Conjugacy makes this closed-form. We can use the fact that p ( x 0 ∣ x t , i ) ∝ p ( x t ∣ x 0 ) p ( x 0 ∣ i ) p(x_0\mid x_t,i)\propto p(x_t\mid x_0)p(x_0\mid i) p ( x 0 ∣ x t , i ) ∝ p ( x t ∣ x 0 ) p ( x 0 ∣ i ) , hence the posterior under each component i i i is a product of two Gaussians - another Gaussian, N ( m t , i , C t , i ) \mathcal{N}(m_{t,i},C_{t,i}) N ( m t , i , C t , i ) with,
C t , i = ( Σ i − 1 + α t 2 σ ˉ t 2 I ) − 1 , m t , i = C t , i ( Σ i − 1 μ i + α t σ ˉ t 2 x ) . (103) C_{t,i}=\left(\Sigma_i^{-1}+\frac{\alpha_t^2}{\bar{\sigma}_t^2}I\right)^{-1}, \qquad m_{t,i}=C_{t,i}\left(\Sigma_i^{-1}\mu_i+\frac{\alpha_t}{\bar{\sigma}_t^2}x\right). \tag*{(103)} C t , i = ( Σ i − 1 + σ ˉ t 2 α t 2 I ) − 1 , m t , i = C t , i ( Σ i − 1 μ i + σ ˉ t 2 α t x ) . (103)
To evaluate the expected reward, we consider a linear observable ϕ ( x 0 ) = a ⊤ x 0 \phi(x_0)=a^{\top}x_0 ϕ ( x 0 ) = a ⊤ x 0 . Under the i i i -th component posterior, this projection is a 1D Gaussian, a ⊤ X 0 ∼ N ( a ⊤ m t , i , s t , i 2 ) a^{\top}X_0\sim\mathcal{N}(a^{\top}m_{t,i},s_{t,i}^2) a ⊤ X 0 ∼ N ( a ⊤ m t , i , s t , i 2 ) with s t , i 2 = a ⊤ C t , i a s_{t,i}^2=a^{\top}C_{t,i}a s t , i 2 = a ⊤ C t , i a , so the per-mode look-ahead reward integrates to another Gaussian CDF with,
E p ( x 0 ∣ x t ) [ Φ ( ⋅ ) ] = Φ ( η t , i ) , η t , i = a ⊤ m t , i − τ δ 2 + s t , i 2 . (104) \mathbb{E}_{p(x_0\mid x_t)}[\Phi(\cdot)]=\Phi(\eta_{t,i}), \qquad\eta_{t,i}=\frac{a^{\top}m_{t,i}-\tau}{\sqrt{\delta^2+s_{t,i}^2}}. \tag*{(104)} E p ( x 0 ∣ x t ) [ Φ ( ⋅ )] = Φ ( η t , i ) , η t , i = δ 2 + s t , i 2 a ⊤ m t , i − τ . (104)
We can then write the global look-ahead potential G t ( x ) G_t(x) G t ( x ) as the expected reward marginalised over all M M M . Using Eq. (104) , we can write G t ( x ) = ∑ i = 1 M w t , i Φ ( η t , i ) G_t(x)=\sum_{i=1}^{M}w_{t,i}\Phi(\eta_{t,i}) G t ( x ) = ∑ i = 1 M w t , i Φ ( η t , i ) , giving the exact guidance as follows.
∇ x r t ∗ ( x ) = ∇ x log G t ( x ) = 1 G t ( x ) ∇ x ( ∑ i = 1 M w t , i ( x ) Φ ( η t , i ) ) = 1 G t ( x ) ∑ i = 1 M [ Φ ( η t , i ) ∇ x w t , i ( x ) + w t , i ( x ) ∇ x Φ ( η t , i ) ] . (105) \begin{aligned}
\nabla_x r_t^*(x)=\nabla_x\log G_t(x) \\
&=\frac{1}{G_t(x)}\nabla_x\left(\sum_{i=1}^{M}w_{t,i}(x)\Phi(\eta_{t,i})\right) \\
&=\frac{1}{G_t(x)}\sum_{i=1}^{M}\left[\Phi(\eta_{t,i})\nabla_x w_{t,i}(x)+w_{t,i}(x)\nabla_x\Phi(\eta_{t,i})\right]. \tag*{(105)}
\end{aligned} ∇ x r t ∗ ( x ) = ∇ x log G t ( x ) = G t ( x ) 1 ∇ x ( i = 1 ∑ M w t , i ( x ) Φ ( η t , i ) ) = G t ( x ) 1 i = 1 ∑ M [ Φ ( η t , i ) ∇ x w t , i ( x ) + w t , i ( x ) ∇ x Φ ( η t , i ) ] . (105)
We can rewrite the above equation as,
∇ x r t ⋆ ( x ) = ∑ i = 1 M w ~ i ( x ) [ ∇ x Φ ( η t , i ) Φ ( η t , i ) + ∇ x w t , i ( x ) w t , i ( x ) ] w ~ i ( x ) = w t , i ( x ) Φ ( η t , i ) ∑ j = 1 M w t , j ( x ) Φ ( η t , j ) (106) \nabla_x r_t^\star(x)=\sum_{i=1}^{M}\widetilde{w}_i(x)\left[\frac{\nabla_x\Phi(\eta_{t,i})}{\Phi(\eta_{t,i})}+\frac{\nabla_x w_{t,i}(x)}{w_{t,i}(x)}\right]\qquad\widetilde{w}_i(x)=\frac{w_{t,i}(x)\Phi(\eta_{t,i})}{\sum_{j=1}^{M}w_{t,j}(x)\Phi(\eta_{t,j})} \tag*{(106)} ∇ x r t ⋆ ( x ) = i = 1 ∑ M w i ( x ) [ Φ ( η t , i ) ∇ x Φ ( η t , i ) + w t , i ( x ) ∇ x w t , i ( x ) ] w i ( x ) = ∑ j = 1 M w t , j ( x ) Φ ( η t , j ) w t , i ( x ) Φ ( η t , i ) (106)
Here w ~ i \widetilde{w}_i w i represents the reward weighted (posterior) responsibility of the GMM - i.e. it is the responsibility re-weighted by each mode’s chance of reaching the rare event set [8 ] . A mode i i i is up-weighted when x t x_t x t is consistent with it (i.e. w t , i w_{t,i} w t , i large) and when it is well placed to cross the threshold (Φ ( η t , i ) \Phi(\eta_{t,i}) Φ ( η t , i ) large). The first term inside the bracket is the per-mode push towards the rare set; second is the routing correction that re-weights mass between modes as the reward favours different components. Evaluating the two terms in ∇ x r t ⋆ \nabla_x r_t^\star ∇ x r t ⋆ , the first term is the reward push,
∇ x Φ ( η t , i ) Φ ( η t , i ) = φ ( η t , i ) Φ ( η t , i ) g t , i = ψ ( η t , i ) g t , i , (107) \frac{\nabla_x\Phi(\eta_{t,i})}{\Phi(\eta_{t,i})}=\frac{\varphi(\eta_{t,i})}{\Phi(\eta_{t,i})}g_{t,i}=\psi(\eta_{t,i})g_{t,i}, \tag*{(107)} Φ ( η t , i ) ∇ x Φ ( η t , i ) = Φ ( η t , i ) φ ( η t , i ) g t , i = ψ ( η t , i ) g t , i , (107)
where g t , i = ∇ x η t , i = α t σ ˉ t 2 C t , i a δ 2 + σ t , i 2 g_{t,i}=\nabla_x\eta_{t,i}=\frac{\alpha_t}{\bar{\sigma}_t^2}\frac{C_{t,i}a}{\sqrt{\delta^2+\sigma_{t,i}^2}} g t , i = ∇ x η t , i = σ ˉ t 2 α t δ 2 + σ t , i 2 C t , i a and ψ ( ⋅ ) = φ ( ⋅ ) / Φ ( ⋅ ) \psi(\cdot)=\varphi(\cdot)/\Phi(\cdot) ψ ( ⋅ ) = φ ( ⋅ ) /Φ ( ⋅ ) is the Inverse-Mills ratio.
The second term of Eq. (106) represents the standard GMM responsibility at a noised time t t t , given by,
w t , i ( x ) = w i N ( x ; α t μ i , S t , i ) p t ( x ) . w_{t,i}(x)=\frac{w_i\mathcal{N}(x;\alpha_t\mu_i,S_{t,i})}{p_t(x)}. w t , i ( x ) = p t ( x ) w i N ( x ; α t μ i , S t , i ) .
Evaluating this yields,
∇ x log w t , i ( x ) = ∇ x log N ( x ; α t μ i , S t , i ) − ∇ x log p t ( x ) . (108) \nabla_x\log w_{t,i}(x)=\nabla_x\log\mathcal{N}(x;\alpha_t\mu_i,S_{t,i})-\nabla_x\log p_t(x). \tag*{(108)} ∇ x log w t , i ( x ) = ∇ x log N ( x ; α t μ i , S t , i ) − ∇ x log p t ( x ) . (108)
Putting this together, we get the analytical guidance for the GMM,
∇ x r t ⋆ ( x ) = ∑ i = 1 M w ~ i ( x ) [ ψ ( η t , i ) g t , i + ∇ x log N ( x ; α t μ i , S t , i ) − ∇ x log p t ( x ) ] . (109) \nabla_x r_t^\star(x)=\sum_{i=1}^{M}\widetilde{w}_i(x)\left[\psi(\eta_{t,i})g_{t,i}+\nabla_x\log\mathcal{N}(x;\alpha_t\mu_i,S_{t,i})-\nabla_x\log p_t(x)\right]. \tag*{(109)} ∇ x r t ⋆ ( x ) = i = 1 ∑ M w i ( x ) [ ψ ( η t , i ) g t , i + ∇ x log N ( x ; α t μ i , S t , i ) − ∇ x log p t ( x ) ] . (109)
We refer readers to Wu et al., 2024 for a rigorous exposition of the effect of guidance on GMMs.
2D GMM experiments
Experimental details
The learned score. The learned score for the correlated 7-component GMM of Table 4 , is a velocity prediction MLP trained under the linear VP schedule [80 ] . The network takes ( x , emb ( t ) ) ∈ R 2 + 128 (x,\operatorname{emb}(t))\in\mathbb{R}^{2+128} ( x , emb ( t )) ∈ R 2 + 128 , where t t t is embedded using a sinusoidal time embedding through 6 layers (hidden width 512, SiLU [28 ] ; 1.1M parameters) to a two-dimensional output. Targets are v = α t ϵ − σ ˉ t x 0 v=\alpha_t\epsilon-\bar{\sigma}_t x_0 v = α t ϵ − σ ˉ t x 0 with x t = α t x 0 + σ ˉ t ϵ x_t=\alpha_t x_0+\bar{\sigma}_t\epsilon x t = α t x 0 + σ ˉ t ϵ ; the score used by the sampler is recovered as s θ ( x , t ) = − ϵ ^ / σ ˉ t s_\theta(x,t)=-\hat{\epsilon}/\bar{\sigma}_t s θ ( x , t ) = − ϵ ^ / σ ˉ t with ϵ ^ = σ ˉ t x + α t v θ ( x , t ) \hat{\epsilon}=\bar{\sigma}_t x+\alpha_t v_\theta(x,t) ϵ ^ = σ ˉ t x + α t v θ ( x , t ) . The loss is the per-sample v v v -MSE under min-SNR-γ \gamma γ weighting with γ = 5 \gamma=5 γ = 5 and the weights given by w ( t ) = min ( SNR ( t ) , γ ) / ( SNR ( t ) + 1 ) w(t)=\min(\operatorname{SNR}(t),\gamma)/(\operatorname{SNR}(t)+1) w ( t ) = min ( SNR ( t ) , γ ) / ( SNR ( t ) + 1 ) of Hang et al., [39 ] , with t ∼ U [ 0.01 , 0.99 ] t\sim\mathcal{U}[0.01,0.99] t ∼ U [ 0.01 , 0.99 ] . Training draws fresh exact GMM samples every step: 40,000 steps at batch 4096 with AdamW [46 , 53 ] (learning rate 2 × 10 − 4 2\times10^{-4} 2 × 1 0 − 4 , weight decay 10 − 4 10^{-4} 1 0 − 4 ), 1,000-step linear warm-up followed by cosine decay, gradient clipping at 1.0, and an exponential moving average of the weights (decay 0.999); the EMA weights are used for evaluation.
The tempering ladder. Our guidance ladder used through the experiment is λ ( t ) = 1 − ( t / t o n ) 2 \lambda(t)=1-(t/t_{\mathrm{on}})^2 λ ( t ) = 1 − ( t / t on ) 2 for t < t o n = 0.9 t<t_{\mathrm{on}}=0.9 t < t on = 0.9 in the case of rejuvenation and λ t ≡ 1 \lambda_t\equiv1 λ t ≡ 1 without it, see App. § 14 .§ 6 . We chose this simple form of tempering, inspired by polynomial tempered likelihood [31 ] .
The benchmark. The mixture parameters and every closed form we compare against: the base density, the exact score, the soft-tilt normaliser Z 0 , δ Z_{0,\delta} Z 0 , δ of Eq. (98) , the exceedance probability p 0 [ E ] p_0[E] p 0 [ E ] of Eq. (99) , the tilted target π 0 , δ \pi_{0,\delta} π 0 , δ of Eq. (100) and the exact Doob guidance ∇ x r t ⋆ \nabla_x r_t^\star ∇ x r t ⋆ of Eq. (106) are defined in Appendix F. The right-hand modes carry strong off-diagonal covariance of opposite sign, so the tail conditional p 0 ( x 2 ∣ x 1 > τ ) p_0(x_2\mid x_1>\tau) p 0 ( x 2 ∣ x 1 > τ ) is genuinely bi-modal: hitting the rare set requires reproducing a multi-modal conditional. The learned-score arm uses the v v v -prediction MLP described above.
Sampling parameters. Unless stated otherwise every run below uses the deployed configuration of § 4.1 : N = 1000 N = 1000 N = 1000 particles, K = 1000 K = 1000 K = 1000 SEEDS-1 steps on a uniform half-log SNR noise schedule with δ = 0.01 \delta= 0.01 δ = 0.01 , the quadratic tempering ladder λ ( t ) \lambda(t) λ ( t ) above for the rejuvenation arm and λ ≡ 1 \lambda\equiv1 λ ≡ 1 otherwise, adaptive resampling at E S S / N < 0.5 \mathrm{ESS}/N < 0.5 ESS / N < 0.5 with three MADM rejuvenation sweeps per resampling (Simpson’s (1/3) rule with Eq. (119) ), and 24 seeds. The MH step is ρ = c ( t ) σ ˉ t 2 \rho= c(t)\,\bar{\sigma}_t^2 ρ = c ( t ) σ ˉ t 2 with c ( t ) c(t) c ( t ) fixed once from a pilot sweep targeting an acceptance ratio of ≈ 0.72 \approx0.72 ≈ 0.72 at each noise level, as prescribed in [49 ] .
All experiments were done on a single Nvidia A100 GPU with 40 GB of VRAM.
Sources of Bias
We begin by discussing the two main contributing factors that bias our estimate against the true p 0 [ E ] p_0[E] p 0 [ E ] , followed by additional results. Neither bias is an error of the estimator, and the path-weighted estimator remains unbiased exactly for the law we sample from. The two primary sources are the learning process where the score is approximated poorly (Appendix § 14 .2.1) and when the discretised law we sample from differs from the continuous law (Appendix § 14 .2.2). We separate and isolate each to study their contributions to the final estimate.
Tail Bias of the Learned Score
We estimate the tail bias of the learned score by comparing the model’s output at a specific time and location ( x t , t ) (x_t,t) ( x t , t ) against the analytical score. Write Δ s ( x , t ) = s θ ( x , t ) − s ⋆ ( x , t ) \Delta s(x,t)=s_\theta(x,t)-s^\star(x,t) Δ s ( x , t ) = s θ ( x , t ) − s ⋆ ( x , t ) for the pointwise gap between the learned and exact scores. The induced log-density bias b ( x 0 ) : = log p m o d e l ( x 0 ) − log p ⋆ ( x 0 ) b(x_0):=\log p_{\mathrm{model}}(x_0)-\log p^\star(x_0) b ( x 0 ) := log p model ( x 0 ) − log p ⋆ ( x 0 ) accumulates along the probability-flow ODE trajectory { x t } t ∈ [ 0 , 1 ] \{x_t\}_{t\in[0,1]} { x t } t ∈ [ 0 , 1 ] that carries x 0 x_0 x 0 back to the prior under the learned velocity field, as
b ( x 0 ) = − ∫ 0 1 1 2 β ( t ) [ ∇ ⋅ Δ s + s ⋆ ⋅ Δ s ] ( x t ) d t , (110) b(x_0)=-\int_0^1 \frac{1}{2}\beta(t)\left[\nabla\cdot\Delta s+s^\star\cdot\Delta s\right](x_t)\,\mathrm{d}t, \tag*{(110)} b ( x 0 ) = − ∫ 0 1 2 1 β ( t ) [ ∇ ⋅ Δ s + s ⋆ ⋅ Δ s ] ( x t ) d t , (110)
from which the tail ratio follows by reweighting the exact conditional,
P m o d e l ( ϕ ( X ) ≥ τ ) P ⋆ ( ϕ ( X ) ≥ τ ) = E P ⋆ ( ⋅ ∣ ϕ ( X ) ≥ τ ) [ e b ( x 0 ) ] . (111) \frac{P_{\mathrm{model}}(\phi(X)\ge\tau)}{P^\star(\phi(X)\ge\tau)}
=\mathbb{E}_{P^\star(\,\cdot\mid\phi(X)\ge\tau)}\left[e^{b(x_0)}\right]. \tag*{(111)} P ⋆ ( ϕ ( X ) ≥ τ ) P model ( ϕ ( X ) ≥ τ ) = E P ⋆ ( ⋅ ∣ ϕ ( X ) ≥ τ ) [ e b ( x 0 ) ] . (111)
In practice, we draw 2.16 × 10 8 2.16\times10^8 2.16 × 1 0 8 samples from the model unconditionally and use it as our reference pool. We find that with both methods, the tail bias widens with rarity, and the score-estimate degrades monotonically, see Table 5 . All quoted comparisons for the trained model are against the model’s own rare event probability p 0 [ E ] p_0[E] p 0 [ E ] , obtained via Monte Carlo estimate.
Table 5. Tail bias of the learned 2D-GMM score. p m o d e l p_{\mathrm{model}} p model (MC) is obtained from a large MC reference pool using unguided draws. Path integral measures the ratio obtained by integrating the pointwise score error along the probability-flow ODE (Eq. (110) ) and reweighing the exact conditional. The two induce different laws but agree to within 7% across three decades of rarity. p d a t a [ E ] p_{\mathrm{data}}[E] p data [ E ] is the analytical probability.
The Discretised Law: Grid and Integrator
Alongside the bias due to the score estimate, which in the general case cannot be estimated, our discretisation itself induces a distinct, reducible form of bias. Let P \mathbb{P} P be the continuous path measure defined by the diffusion process, and P K \mathbb{P}_K P K be the discretised law that we simulate. Our estimator is unbiased for the discrete law that we compute weights for under any guidance ([19 ] ). Hence any gap that remains is a property of the base chain and the integrator alone. This section first measures this gap for two first order integrators and whether the choice of integrator reduces it at a fixed K K K .
Setup. Exact Doob guidance (i.e. ∇ x r t ∗ ( x ) \nabla_x r_t^*(x) ∇ x r t ∗ ( x ) ), with resampling turned off, so neither guidance error nor adaptive resampling contributes and the residual is resolved above seed noise. We compare the Euler-Maruyama (EM) integrator against the first order exponential SDE solver of Gonzalez et al. [37 ] which we denote as SEEDS-1. Both are explicit one-step schemes of first order. The only difference is that SEEDS-1 treats the integration of the reverse SDE as a semi-linear integral, separating the linear and non-linear parts of the score, and integrating the linear and the noise term exactly, whereas EM approximates it to first order, see Gonzalez et al. [37 ] , Milstein & Tretyakov [59 ] ; Pfarr et al. [70 ] for more details. Alongside the integrator, the placement of the grid itself is a design choice: we run the sweep on a grid uniform in t t t and on a grid uniform in the half-log Signal-to-Noise ratio ℓ t = log ( α t / σ ˉ t ) \ell_t = \log(\alpha_t/\bar{\sigma}_t) ℓ t = log ( α t / σ ˉ t ) of App. § 11 .§ 1 , the integrator’s own time variable. Table 6 sweeps the step count K K K under both placements and compares the signed bias in the probability estimate with the ground truth in τ = 10 \tau= 10 τ = 10 .
Table 6. Signed discretisation bias versus step count K K K for the two integrators, under exact Doob guidance, at different grids, uniform in t t t (top block) and uniform in the half-log SNR ℓ t = log ( α t / σ ˉ t ) \ell_t = \log(\alpha_t/\bar{\sigma}_t) ℓ t = log ( α t / σ ˉ t ) (bottom block). Positive values are overestimates. Paired columns are EM/SEEDS-1 throughout. k ^ \hat{k} k ^ is the Pareto Smoothed Importance Sampling shape estimate (Vehtari et al. (2024)) on the weights, and E S S E \mathrm{ESS}_E ESS E is the ESS of the final particles, measured after thresholding to τ ≥ 10 \tau\ge10 τ ≥ 10 .
The 1 / K 1/K 1/ K law. Both integrators are one-step schemes of weak order one (Milstein & Tretyakov [59 ] ), for which the weak-error admits the expansion c 1 / K + O ( 1 / K 2 ) c_1/K + O(1/K^2) c 1 / K + O ( 1/ K 2 ) with c 1 c_1 c 1 independent of the step size (Milstein & Tretyakov [59 ] ; Talay & Tubaro (1990)). While this holds for smooth test functions, it does not automatically hold for the indicator 1 E 1_{\mathsf{E}} 1 E . We therefore fit the form using ordinary least-squares instead of invoking it directly as a theorem. Fitting the coefficient c 1 c_1 c 1 , weighted by the per-K K K standard errors s k s_k s k ,
c ^ 1 = ∑ k b k K k − 1 s k − 2 ∑ k K k − 2 s k − 2 , (112) \hat{c}_1 = \frac{\sum_k b_k K_k^{-1} s_k^{-2}}{\sum_k K_k^{-2} s_k^{-2}}, \tag*{(112)} c ^ 1 = ∑ k K k − 2 s k − 2 ∑ k b k K k − 1 s k − 2 , (112)
restricted to K ≥ 30 K \ge30 K ≥ 30 , since K = 10 K = 10 K = 10 -20 sits outside the asymptotic regime. On the uniform-t t t grid the fits are c ^ 1 = + 7.27 \hat{c}_1 = +7.27 c ^ 1 = + 7.27 for Euler-Maruyama against − 4.41 -4.41 − 4.41 for SEEDS-1, with largest residuals of 1.6 and 2.4 standard errors respectively, so the 1 / K 1/K 1/ K law holds to within roughly two standard errors over the fitted range. The signs record that the two integrators approach the continuous limit from opposite sides on this grid: EM overestimates and SEEDS-1 underestimates at every K K K , and the ∣ E M ∣ / ∣ S E E D S ∣ |\mathrm{EM}|/|\mathrm{SEEDS}| ∣ EM ∣/∣ SEEDS ∣ column of Table 6 is the per-K K K magnitude comparison. The fitted coefficients track the measurements closely: c ^ 1 = 7.27 \hat{c}_1 = 7.27 c ^ 1 = 7.27 predicts + 3.6 % +3.6\% + 3.6% at K = 200 K = 200 K = 200 against a measured + 3.72 % +3.72\% + 3.72% , and + 14.6 % +14.6\% + 14.6% at K = 50 K = 50 K = 50 against + 16.8 % +16.8\% + 16.8% . On the uniform-ℓ \ell ℓ grid the EM arm fits similarly (c ^ 1 = − 4.45 \hat{c}_1 = -4.45 c ^ 1 = − 4.45 . largest residual 2.4 standard errors), but the SEEDS-1 arm changes sign between K = 30 K = 30 K = 30 and K = 50 K = 50 K = 50 : its leading coefficient is small enough that higher-order terms are not negligible over the measured range.
Grid placement. At coarse grids the two placements order the integrators differently. In uniform in t t t , SEEDS-1 dominates EM in every K K K : the magnitude ratio drops from 4.0 in K = 10 K = 10 K = 10 towards parity by K ≥ 500 K \ge500 K ≥ 500 . For the uniform in the ℓ \ell ℓ grid, the order inverts in the coarsest grids K = 10 K = 10 K = 10 and K = 15 K = 15 K = 15 , where we reproduce the result of Gonzalez et al. [37 ] where the performance of the integrator is poor at very small discretisation. We hypothesise that this is because, a uniform Δ ℓ \Delta\ell Δ ℓ starves the “middle” of the denoising process, which principled methods for noise-scheduling such as Williams et al. (2024) place a larger number of discretisation on, see Fig. 4 of Williams et al. (2024), which adversely affects the discretised law that we sample. Given that the schedule intimately interplays with Gaussian transition kernel approximation, we leave studying the effects it has on the weight computation for future work.
From K ≥ 20 K \ge20 K ≥ 20 SEEDS-1 yields a smaller discretisation bias, and the two integrators converge to each other by K = 200 K = 200 K = 200 . We find that in our setting, SEEDS-1 reduces the discretisation bias at lower K K K on either grid placement away from the coarsest ℓ \ell ℓ -grids, and both integrators are comparable at higher K K K ’s. We deploy SEEDS-1 at K = 1000 K = 1000 K = 1000 on the uniform-ℓ \ell ℓ grid, where both integrators are within 0.2% of the continuous limit (Table 6 , last row). The exponential integrator is also used in the larger climate experiments.
Both channels improve together. In this experiment, the integrator does not only control the bias but also affects the variance. Across Table 6 the variance diagnostics move with it: on the uniform-t t t EM arm the CV falls from 0.338 to 0.009, ESSE climbs from 0.032 to 0.943, with the PSIS k ^ \hat{k} k ^ dropping below 0.5 by K = 100 K = 100 K = 100 . The grid placement moves the same diagnostics: at matched K K K the ℓ \ell ℓ -grid improves ESSE and k ^ \hat{k} k ^ for both integrators (e.g. at K = 100 K = 100 K = 100 , EM’s ESSE is 0.713 uniform in ℓ \ell ℓ against 0.600 uniform in t t t , with k ^ \hat{k} k ^ of 0.24 against 0.40), the coarsest ℓ \ell ℓ -grids under SEEDS-1 excepted. These are not two separate effects but one mechanism with two consequences. A finer grid puts the discrete chain closer to the continuous dynamics, which simultaneously shrinks the gap P K − P \mathbb{P}_{K} - \mathbb{P} P K − P that the bias measures. As we simulate using the exact Doob’s guidance, this moves the discretised proposal Q K \mathbb{Q}^{K} Q K close to the variance minimising Doob’s proposal which helps all other metrics. In a general setting with approximate guidance the dominant source of error is not the discretisation bias but instead the approximation error of Doob’s h h h -transform, e.g. using DPS.
The threshold-exceedance experiment
Everything in this subsection belongs to the deployed threshold-exceedance experiment of § 4.1 : the conditional clouds behind the sample-quality columns, the no-resampling arm, the whole-path ESS diagnostics, and how the estimator scales with the particle budget N N N . We summarise our results in Table 7 , where we find that our method recovers the correct probability estimates as well as the correct shape statistics. We analyse all individual aspects of these results in the section below. All experiments were done with the same guidance with K = 1000 K = 1000 K = 1000 and the SEEDS-1 integrator on the uniform-ℓ \ell ℓ grid unless stated otherwise.
Conditional-sample coverage: clouds for learned and analytical
We plot the sample clouds (N = 2048 N = 2048 N = 2048 ) using the deployed configuration of § 4.1 for both Analytical and Learned Guidance with the same guidance/resampling/rejuvenation parameters. The red samples are drawn from the exact conditional p ( x ∣ x 1 ≥ τ ) p(x \mid x_1 \ge\tau) p ( x ∣ x 1 ≥ τ ) , drawn larger (at 2 × 10 4 2 \times10^4 2 × 1 0 4 ) and the blue particles represent the guided samples. Together with the KS/EMD ratios of Table 7 the plots qualitatively highlight that samples are drawn from the conditional distribution itself. The two clouds remain visually indistinguishable as can be seen in Figure 10 .
Figure 10. Conditional-sample coverage on the 2D GMM for the analytical (a) and learned (b) scores. Blue is the path-weighted guided cloud (2048 samples; pooled over 8 seeds for the learned score); red is a MC draw from the conditional p ( x ∣ x 1 ≥ τ ) p(x \mid x_1 \ge\tau) p ( x ∣ x 1 ≥ τ ) . Left : the joint cloud, with the threshold dashed. Centre, right : the x 1 x_1 x 1 and x 2 x_2 x 2 marginals on a log density scale. Corresponding quantitative KS/EMD metrics in Table 7 .
ESS along the trajectory
Without resampling the accumulated weight is never reset and the terminal ESS asymptotically converges to 1 / ( 1 + χ 2 ( P 0 : K ∥ Q 0 : K ) ) 1/(1 + \chi^2(\mathbb{P}_{0:K}\Vert\mathbb{Q}_{0:K})) 1/ ( 1 + χ 2 ( P 0 : K ∥ Q 0 : K )) (Agapiou et al. [3 ] ). Hence for the sampled path, the ESS measures the gap between the implemented guidance and the exact Doob’s guidance. Figure 11 tracks it along the trajectory for both scores and five thresholds. Two features that are worth noting. The trace is flat at E S S / N = 1 \mathrm{ESS}/N = 1 ESS / N = 1 until t ≈ 0.9 t \approx0.9 t ≈ 0.9 , which is the untilted stretch of the denoising time, where the guidance is turned off. After guidance is turned on, the ESS decays monotonically in both learned
Figure 11. Effective sample size of the path weights along diffusion time, without resampling (analytic score, left; learned score, right), for τ ∈ { 6 , 7 , 8 , 9 , 10 } \tau\in\{6, 7, 8, 9, 10\} τ ∈ { 6 , 7 , 8 , 9 , 10 } . Settings as Table 7 . Time runs right to left, from noise (t = 1 t = 1 t = 1 ) to data (t = 0 t = 0 t = 0 ).
Figure 8. Measured bias versus K K K with 1000 particles, analytical scores and Doob’s transition kernels. See App G.2.2. We show the bias of our estimate falls with a O ( 1 / K ) O(1/K) O ( 1/ K ) leading order term. We compare both the EM integrator and the SEEDS-1 integrator in the noise prediction form. We compare two different noise schedules: uniform in time and uniform in log-SNR ℓ \ell ℓ . Error-bars represent standard error of the mean. Experiment is conducted the τ = 10 \tau= 10 τ = 10 threshold exceed problem. See Table 6 .
Figure 9. Measured bias versus K K K with 10,000 particles and the deployed guidance and no rejuvenation for the learned score. We compare the discretisation bias at different rarities, we compare against a 10 8 10^{8} 1 0 8 unconditional MC draw of the exponential integrator at K K K as our reference. Hence, this measures how quickly the estimates converge to the reference with K K K .
and analytical arms. The two panels remain close to indistinguishable, highlighting that the profile is set by the guidance geometry rather than the score itself.
Selection and rejuvenation
We ablate whether resampling or rejuvenation is helpful for our problem. For simplicity we provide two tables, separating the effect of each on the analytical and learned scores. Table 8 ablates the no-resampling, resampling and rejuvenation for the analytical score. Table 9 then runs the full threshold ladder on the learned score, adding the arm with no resampling at all and three noise levels where the rejuvenation move is switched off. All experiments are done using the same configuration as mentioned above. Each arm is scored against the law it samples from, p ⋆ p^\star p ⋆ . Weighted sample quality statistics are evaluated against a conditional reference drawn from the same law, presented as ratios to their split-half noise floor. All reported uncertainties are computed over 24 seeds.
Table 8. Selection and rejuvenation on the 2D GMM under the analytical score, 24 seeds, all other settings as in Table 7 . Resampling and rejuvenation are ablated at different threshold exceedance rarities. Weighted shape-metrics are computed against a conditional reference. Rejuvenation helps reduce the CV across all rarities; without it resampling alone can adversely prune lineages.
Benefits of SMC Across, both Table 8 and Table 9 , resampling prunes low-weight trajectories and rejuvenation decorrelates duplicated samples. We find that rejuvenation keeps the relative variance constant across rarity for both analytical and learned scores, showing a noticeable decrease in CV if the base estimator is poor [19 , 20 ] .
Gating the rejuvenation move by noise level For the analytical score, there is no score approximation error, hence the line-integral of the Metropolis-Hastings acceptance ratio is defined exactly up to quadrature error [49 ] . However for a learned score it is approximated by s θ ≈ ∇ x t log p t s_\theta\approx\nabla_{x_t} \log p_t s θ ≈ ∇ x t log p t , and any errors in the learning process can lead to a non-conservative score approximation. The left of Figure 12 , evaluates this via the antisymmetric part of the Jacobian; here we reproduce the findings of [48 ] (Thornton et al. 2025), where the score network becomes increasingly non-conservative as the denoising time, t → 0 t \to0 t → 0 .
Figure 12. (Left) Magnitude of the antisymmetric part of the Jacobian of the score network, measured as a Frobenius norm for 1024 particles for the different threshold exceedance problems of Table 9. (Right) Same value as the left multiplied by ρ \rho ρ for τ > 10 \tau> 10 τ > 10 threshold exceedance problem, for different calibrated step sizes ρ \rho ρ , denoted by their average acceptance rate. The shaded band marks the range of gates tested and the dashed line the adopted gate.
A MALA transition kernel requires that M k M_k M k fulfil the Kolmogorov criteria of reversibility. As the Metropolis-Hastings acceptance ratio of MADM [49 ] is estimated by the line-integral of the score, i.e. Eq. (118) ; this means the line integral, I ( ⋅ ) I(\cdot) I ( ⋅ ) must fulfil the cyclic sum (or Stokes’ Theorem),
I ( b , a ) + I ( c , b ) + I ( a , c ) = 0 , (113) I(b, a) + I(c, b) + I(a, c) = 0, \tag*{(113)} I ( b , a ) + I ( c , b ) + I ( a , c ) = 0 , (113)
for all triples ( a , b , c ) (a, b, c) ( a , b , c ) . This means that the acceptance ratio of the transition: a → b → c → a a \to b \to c \to a a → b → c → a must be equal to 1 for MADM kernel to equate to MALA. A non-conservative score does not fulfil this criterion (Vuong et al., 2025) and hence for a learned score, MADM need not be invariant to π k \pi_k π k .
To account for this, we turn off rejuvenation at a specific threshold in time or ℓ t \ell_t ℓ t when the non-conservativity of the score increases. Table 9 ablates different thresholds. At τ = 10 \tau= 10 τ = 10 the ungated move reads KS 1.48/1.59 and EMD 2.10 against 1.23/1.07/0.98 when gated at t ≥ 0.30 t \ge0.30 t ≥ 0.30 , and the same ordering holds at τ = 9 \tau= 9 τ = 9 ; we therefore adopt the gated rejuvenation for the rest of our examples, selecting the middle of the values we tested, ℓ t ≤ − 0.21 \ell_t \le-0.21 ℓ t ≤ − 0.21 (t ≥ 0.30 t \ge0.30 t ≥ 0.30 ). At τ = 7 , 8 \tau= 7, 8 τ = 7 , 8 , where the corrector and resampling events were triggered less frequently, the gated and ungated rows coincide within noise, as the ungated version already sits close to the noise floor. Both gated and un-gated arms at τ = 10 \tau= 10 τ = 10 read 0.965 and 0.994 within 1.3 standard errors.
Step size selection As the step-size ρ \rho ρ defines the region where a move is proposed, i.e. x ~ − x ∼ N ( ρ g ( x ) / 2 , ρ I ) \tilde{x} - x \sim\mathcal{N}(\rho g(x)/2, \rho I) x ~ − x ∼ N ( ρ g ( x ) /2 , ρ I ) of Eq. (114) , a larger ρ \rho ρ leads to, what we hypothesise, a higher exposure to the non-conservative part of the score network, which affects the estimated M k M_k M k further. For a simple visualisation, we plot the proposed step size ρ \rho ρ multiplied by the Frobenius norm of the antisymmetric part of the Jacobian, to the right of Figure 12 . This for various ρ \rho ρ on the τ = 10 \tau= 10 τ = 10 threshold exceedance problem of § 4.1 ; here the step size has been tuned to target a range of acceptance probabilities as is common [49 ] . We elect to take smaller, more conservative steps, tuning ρ \rho ρ to target a 0.72 acceptance.
We hypothesise that, for a fixed number of MADM steps and ρ \rho ρ , there is a tradeoff between the total number of MADM steps that rejuvenate duplicated particles and the net error injected into the system by an approximate MH ratio. An adaptive schedule on ρ ( t ) \rho(t) ρ ( t ) or M ( t ) M(t) M ( t ) that accounts for these trade-offs could be an interesting direction for future work.
Ablation of Errors due to MADM In this setting we ablate what the discretisation error is at different K K K using MADM. As MADM targets the continuous-time marginal p t p_t p t instead of the discretised γ 0 \gamma_0 γ 0 law, it incurs a discretisation bias. We find the same issue while not plotted here, exists with MALA suggesting it is not a quadrature error itself. We verify this using analytical scores and the variance minimising Doob’s guidance. See Figure 13 .
Box and multiple box events
We test the guidance on boxed geometries, each at two rarities, plus a bounded family. This is an analogue of an extreme defined as a set where variables exist in some range. Both families are boxes in the observable, i.e., E = { x : a ≤ ϕ ( x ) ≤ b } E = \{x : a \le\phi(x) \le b\} E = { x : a ≤ ϕ ( x ) ≤ b } with a , b ∈ ( R ∪ { ± ∞ } ) m a,b \in(\mathbb{R} \cup\{\pm\infty\})^m a , b ∈ ( R ∪ { ± ∞ } ) m and the inequalities read component-wise. We take the interval guidance of Eq. (96) , see App. § 12 . Any corner boxes that we use, takes b = + ∞ b = +\infty b = + ∞ , and it represents extremes that are joint threshold exceedances; bounded boxes have finite a a a and b b b .
For simplicity we have illustrated the box boundaries we test in Figure 14 overlaid against the true unconditional density of the analytical 2D GMM. We report performance on the learned variant in Table 10 , where we ablate the effect of no resampling, resampling with gated/un-gated rejuvenation. We find that similar to the other experiments, rejuvenation lowers the CV on the rare boxes ($p^* \le
Figure 14. Illustrative example of box boundaries. Plotted against a backdrop of the unconditional density of the 2D-GMM. Quantitative results of rare-event sampling are given in Table 10 below.
2 × 10 − 4 2 \times10^{-4} 2 × 1 0 − 4 , by 1.5-2.5×) and is neutral or slightly worse on the easy ones (p ⋆ ≥ 10 − 2 p^\star\ge10^{-2} p ⋆ ≥ 1 0 − 2 ), where resampling is triggered at most twice per run.
Ablation of Parameters
We ablate our parameters once: one the τ = 10 \tau= 10 τ = 10 threshold exceedance problem and we reuse it throughout our experiments. There are two parameters we ablate over the starting point of our guidance t o n t_{\mathrm{on}} t on and the exponential p p p in λ ( t ) = 1 − ( t / t o n ) p \lambda(t) = 1 - (t/t_{\mathrm{on}})^p λ ( t ) = 1 − ( t / t on ) p . Below are the results of the ablation for our method, separated by the base, resampling and resampling with rejuvenation; we also ablate for the lowest CV of Manshausen et al. [55 ] which we use for the experiments in Figure 2 . All experiments were done with 24 seeds, N = 1000 N = 1000 N = 1000 , K = 1000 K = 1000 K = 1000 using the SEEDS-1 integrator (Gonzalez et al. [37 ] ), with M = 3 M = 3 M = 3 steps of MADM (Lam et al. [49 ] ) after resampling.
Table 11. Schedule ablation at τ = 10 \tau= 10 τ = 10 , K = 1000 K = 1000 K = 1000 , N = 1000 N = 1000 N = 1000 : CV of p ^ \hat{p} p ^ for the tempering schedule λ ( t ) = 1 − ( t / t o n ) p \lambda(t) = 1 - (t/t_{\mathrm{on}})^p λ ( t ) = 1 − ( t / t on ) p . Bold marks the minimum of each column. We find that the no-rejuvenation variants converged on the same tempering schedule λ t ≡ 1 \lambda_t \equiv1 λ t ≡ 1 compared to the MADM variant. All schedules with rejuvenation yield a lower CV compared to without.
Climate experiments
Setup and model details
We use a pretrained score-based diffusion climate emulator that acts as a surrogate for physics-based Earth System Models Bouabid et al., [10 ] (licensed under MIT Licence), trained on large-ensemble runs from the Coupled Model Intercomparison Project (CMIP6) on different climate change (forcing) scenarios O’Neill et al., [65 ] . Our results are based on the MPI-ESM1-2-LR emulator. The model outputs monthly-averaged fields conditioned on the global mean surface temperature anomaly (GMST), which captures global warming against preindustrial warming, and on the month of the year, which captures annual variability.
The emulator generates four surface fields jointly across the globe on every draw, listed in Table 12 by their CMIP6 short names. All fields are monthly means and are handled throughout as anomalies against the pre-industrial (piControl) climatology, matching the convention of Table 13 .
Table 12. Emulated variables with their corresponding CMIP6 short names, descriptions and units.
Table 13. Tail thresholds for the four emulator variables, from N = 9,011,200 N = 9{,}011{,}200 N = 9 , 011 , 200 unguided Monte Carlo draws over R \mathbb{R} R at Δ T = + 1.5 \Delta T = +1.5 Δ T = + 1.5 K in July. Upper-tail entries satisfy P ( φ ≥ τ ) = p P(\varphi\ge\tau) = p P ( φ ≥ τ ) = p , lower-tail entries P ( φ ≤ τ ) = p P(\varphi\le\tau) = p P ( φ ≤ τ ) = p . Binomial relative standard errors are 1.1%, 3.3% and 10.5% at p = 10 − 3 , 10 − 4 , 10 − 5 p = 10^{-3}, 10^{-4}, 10^{-5} p = 1 0 − 3 , 1 0 − 4 , 1 0 − 5 respectively. The guided runs use the same thresholds.
We compute a large Monte Carlo average of the rare event probability with N = 9,011,200 N = 9{,}011{,}200 N = 9 , 011 , 200 unguided draws at a GMST of Δ T = 1.5 \Delta T = 1.5 Δ T = 1.5 K for the month of July to validate our results against. For the region R R R , with ϕ ( ⋅ ) \phi(\cdot) ϕ ( ⋅ ) as a per-variable regional average, the associated mean, standard deviation and tail values at different rarities of interest are given in Table 13 .
Implementation details
For all experiments throughout we use K = 200 K = 200 K = 200 discretisation of the exponential integrator in the noise-prediction mode, see App. § 11 and Figure 15 . We schedule λ ( t ) \lambda(t) λ ( t ) and δ ( t ) \delta(t) δ ( t ) for all experiments below. For a VE-schedule, α t ≡ 1 \alpha_t \equiv1 α t ≡ 1 , so the half-log SNR is ℓ t = − log σ ˉ t \ell_t = -\log\bar{\sigma}_t ℓ t = − log σ ˉ t and we specify both schedule in σ ˉ t \bar{\sigma}_t σ ˉ t : piecewise linear in λ \lambda λ and δ t \delta_t δ t is interpolated log-linearly between two endpoints. Similar to
Figure 15. Discretisation bias for the integrator for the τ 1 \tau_1 τ 1 PNW heatwave event using the SEEDS-1 integrator, with 1024 samples at each point and without any rejuvenation. Dotted line represents the reference pool. We find that for SEEDS-1 and Euler-Maruyama integrators using K = 200 K = 200 K = 200 saturates the discretisation bias. We could not compare against a large K K K unconditional reference due to prohibitive costs. Bars represent ±1 standard error of the mean over 8 shared seeds across both integrators.
GMM example, we turn guidance, i.e. λ ( t ) ≡ 0 \lambda(t) \equiv0 λ ( t ) ≡ 0 off for the first 15% (σ ˉ > 40 \bar{\sigma} > 40 σ ˉ > 40 ) of the denoising process to account for any approximation errors in x ^ 0 ∣ t \hat{x}_{0\mid t} x ^ 0 ∣ t , converging to λ ( σ ˉ ) → 1 \lambda(\bar{\sigma}) \to1 λ ( σ ˉ ) → 1 after adding a lambda overshoot at a maximum of 1.25. δ ( t ) \delta(t) δ ( t ) is held at 0.5 until σ ˉ = 0.3 \bar{\sigma} = 0.3 σ ˉ = 0.3 SD and sharpens to 0.01 by σ ˉ = 0.03 \bar{\sigma} = 0.03 σ ˉ = 0.03 SD, where SD is the standard deviation of each observable approximated by the same method as the ΠGDM mentioned in App B. We decrease δ \delta δ towards the end of the denoising process to reduce the variance of our estimator due to mismatch in the generated π 0 \pi_0 π 0 . For simplicity, we do not anneal τ ( σ ˉ ) \tau(\bar{\sigma}) τ ( σ ˉ ) .
Correctness of our method is independent of these choices, so they are selected for variance alone. We set them empirically on the p ∗ ≈ 10 − 3 p^* \approx10^{-3} p ∗ ≈ 1 0 − 3 rarity, PNW marginal hot and dry threshold exceedance problems using a pilot sweep at the same setup as described above. We provide an ablation of the values we tested below (Table 22 ), but adopt the same hyper-parameters for all experiments, with N = 1024 N = 1024 N = 1024 , K = 200 K = 200 K = 200 and 16 seeds throughout, see Table 14 .
Table 14. Deployed schedule and sampler configuration for the climate emulator experiments. σ ˉ \bar{\sigma} σ ˉ is the marginal noise standard deviation. Selected once on the marginal 10 − 3 10^{-3} 1 0 − 3 PNW hot and dry events and applied unchanged to other experiments. ‡ δ \delta δ is quoted in units of the observable’s unconditional standard deviation.
Table 22. One-knob ablation of the guidance schedules at p ∗ = 10 − 3 p^* = 10^{-3} p ∗ = 1 0 − 3 . We vary a single parameter reference in Table 14 ; the same 16 seeds are used in every row. Collapsed runs are included: one hot run at λ max = 2.0 \lambda_{\max}=2.0 λ m a x = 2.0 , and two hot and two dry runs at δ h i = 0.25 \delta_{\mathrm{hi}}=0.25 δ hi = 0.25 SD.
All experiments were done on a single Nvidia H100 GPU with 96 GB of VRAM. We used approximately 370 GPUh to generate the 9 million reference samples. A single batch of 1024 unconditional draws at K = 200 K = 200 K = 200 steps takes approximately 155 seconds, with the method and its variants multiplying this cost; we summarise this in Table 21 .
Table 21: Net speed-up over crude Monte Carlo at matched CV for N = 1024 N = 1024 N = 1024 guided draws against unguided draws. Computed using CVs obtained from Tables 15, 1 and 18. The dry 10 − 4 10^{-4} 1 0 − 4 entry is low because of one collapsed run (App. § 15 .2.1); without it the CV is 0.124, close to the other 10 − 4 10^{-4} 1 0 − 4 cells.
Table 21. Net speed-up over crude Monte Carlo at matched CV for N = 1024 N = 1024 N = 1024 guided draws against unguided draws. Computed using CVs obtained from Tables 15, 1 and 18. The dry 10 − 4 10^{-4} 1 0 − 4 entry is low because of one collapsed run (App. § 15 .2.1); without it the CV is 0.124, close to the other 10 − 4 10^{-4} 1 0 − 4 cells.
Experiment 1: Compound hot & dry events
This subsection supports the first climate experiment of § 4.2 : the ablation behind the deployed recipe, and the fields the guided sampler produces at each rarity. We begin with the marginal threshold exceedance problem, with the hot (tas) and dry (hurs) marginal results reported in Table 15 , followed by the joint.
Selection and rejuvenation
Similar to Appendix § 14 .§ 3.5 , we ablate the effect of resampling and rejuvenation on the hot and dry threshold exceedance events and the joint hot-and-dry event that we report the net speed-up on. because while resampling does not cost extra wall clock time, rejuvenation does. We evaluate whether the reduction in CV justifies the added computation cost. For this, we use a fixed M = 5 M = 5 M = 5 MADM steps using 2 degrees of quadrature. Additionally, we cache the estimate of log Γ π \log\Gamma_{\pi} log Γ π in Eq. (119) for either the current x x x or proposal x ~ \widetilde{x} x so that it may be reused between moves. For the same reasons as highlighted in Appendix § 14 , we set the acceptance target at 0.72 and gate the rejuvenation move to run only at noise levels σ ˉ ≥ 0.30 \bar{\sigma} \ge0.30 σ ˉ ≥ 0.30 .
Table 16 captures this ablation. We report the CV which is the spread of the estimated p ^ \hat{p} p ^ across 16 seeds; k ^ \hat{k} k ^ is the generalised-Pareto shape parameter of the importance weights, fitted with the top 96 ( min ( 0.2 N , 3 N ) ) \left(\min(0.2N, 3\sqrt{N})\right) ( min ( 0.2 N , 3 N ) ) ((Vehtari et al., 2024)), within a run, reported as the median over seeds. We find that without resampling the median k ^ \hat{k} k ^ exceeds 0.5 (no finite second moment) in seven of the nine cells. This suggests that the weights are very heavy-tailed and the convergence of the no-resampling estimator is slow to converge, with an accompanying CV that is optimistic.
Table 16. Ablation of resampling and rejuvenation on the climate emulator for the hot, dry, and joint hot-and-dry events. Same parameters as in the main text; details in App. § 15 .2.1. Ratios are mean ± \pm ± one standard error over 16 seeds. W 1 W_1 W 1 is a weighted distance between the ϕ ( ⋅ ) \phi(\cdot) ϕ ( ⋅ ) of generated samples and draws from a reference, scaled against a null floor. The relative error of p ⋆ p^\star p ⋆ is 1.1/3.3/10.5% at the three marginal rarities and 0.6/2.3/8.9% at the three joint rarities. CV is estimated across p ^ \hat{p} p ^ estimates; k ^ \hat{k} k ^ is estimated per seed and we report the median over the 16 seeds. †Includes one collapsed run; without it p ^ / p ⋆ = 0.968 \hat{p}/p^\star= 0.968 p ^ / p ⋆ = 0.968 and CV = 0.124. k ^ > 0.7 \hat{k} > 0.7 k ^ > 0.7 represents weights that have no finite second moment ((Vehtari et al., 2024)), so the CV estimates, and the speed-ups of those rows, are optimistic. Speed-up is over crude MC at matched CV, including each arm’s measured wall-clock (App. § 15 .§ 4 ); in brackets, its 95% bootstrap CI (BCa, 20,000 resamples of the 16 seeds).
Resampling lowers the CV in eight of the nine cells; the exception, dry at 10 − 4 10^{-4} 1 0 − 4 , comes from a single collapsed run in which one lineage takes over the crossing particles (seed 12, p ^ / p ⋆ = 1.72 \hat{p}/p^{\star} = 1.72 p ^ / p ⋆ = 1.72 with 5 effective families); without it the CV is 0.124. Rejuvenation does not change the CV consistently: it is lower for hot at 10 − 5 10^{-5} 1 0 − 5 and for dry at 10 − 4 10^{-4} 1 0 − 4 , where no rejuvenated run collapses, and higher in the other seven cells, by at most 27%. Differences of this size are within the sampling error of a CV estimated from 16 seeds. W 1 W_1 W 1 is the weighted Wasserstein-1 distance of the quantity of interest ϕ ( ⋅ ) \phi(\cdot) ϕ ( ⋅ ) between the generated samples and the Monte Carlo reference, reported against a null floor. All variants report a similar W 1 W_1 W 1 and there is no discernible issue with any. However, it is worth noting that rejuvenation adds ∼ 1.1 \sim1.1 ∼ 1.1 –1.25 × 1.25\times 1.25 × wall-clock time compared to resampling alone, hence there is a trade-off between a larger N N N versus more rejuvenation steps at finite compute budget. In the experiments below, unless stated otherwise we run with zero rejuvenation steps.
Conditional fields for temperature events
We plot both the local (Figure 16 ) and global (Figure 17 ) guided fields for the threshold exceedance problem to visualise representative draws from the conditional model obtained using guidance. In the example below, guidance is only applied to the region R R R for the tas variable, any structure or perturbation of other variables or away from R R R is due to the unguided score.
Figure 16. Top-weight crossing fields over the Pacific Northwest (PNW) target region produced by the guided sampler at different exceedance threshold τ \tau τ . Guided samples based on the tas variable alone. Same setup as reference Table 15 . p p p denotes p 0 [ E ] p_0[E] p 0 [ E ] and ϕ ( ⋅ ) \phi(\cdot) ϕ ( ⋅ ) is the regional average temperature.
Figure 17. The same fields as Figure 16 on the global domain.
Estimating the marginals and the joint
We expand on the multivariate hazard experiment of § 4.2 . d d d -values are computed using three guided runs for the guided process and read out as a fraction of joint exceedance p ( h o t & d r y ) p(\mathrm{hot}\ \&\ \mathrm{dry}) p ( hot & dry ) from the Monte Carlo reference. For the joint guided runs we ablate between two variants for the CDF reward, one with a joint 2 dimensional CDF across the two variables Φ ( h u r s , t a s ) \Phi(\mathrm{hurs},\mathrm{tas}) Φ ( hurs , tas ) and another as a product of two individual CDFs Φ ( h u r s ) Φ ( t a s ) \Phi(\mathrm{hurs})\Phi(\mathrm{tas}) Φ ( hurs ) Φ ( tas ) . We replace the ΠGDM’s isotropic covariance estimate, Cov ( x 0 ∣ x t ) \operatorname{Cov}(x_0|x_t) Cov ( x 0 ∣ x t ) with the model’s by computing the Jacobian Vector Product of a Σ ⊤ ξ t a \Sigma^\top\xi_t a Σ ⊤ ξ t a ([11 ] ), additionally we use a joint 2-dimensional bandwidth-inflated CDF Φ 2 ( ⋅ ) \Phi_2(\cdot) Φ 2 ( ⋅ ) (Eq. (88) ) as the reward estimated using Drezner’s algorithm with a 16-point Gauss-Legendre quadrature ([26 ] ).
Table 17 summarises the probability estimate obtained via the Monte Carlo reference which we compare against. In this setting we define p p p to be the probability a marginal exceeds a specific threshold, with the joint probability given by p 2 p^2 p 2 under an independence assumption.
Table 17 : Monte Carlo estimate and dependence for the compound hot-dry event at matched marginal quantiles. p p p represents the compound hot-dry event at matched marginal quantiles: at each level p p p both thresholds are the pool’s own p p p -quantiles, so p i n d e p = p 2 p_{\mathrm{indep}} = p^2 p indep = p 2 exactly; quoted errors are binomial, and the 10 − 4 10^{-4} 1 0 − 4 row rests on 125 joint crossers.
Table 17.
Factorised versus multivariate guidance
We ablate the two reward variants - factorised (Eq. (94) ) and joint (Eq. (88) ) of the compound weather event of § 4.2 . Across rarities, we compute the guidance based on a factorised reward (i.e. a product of two independent 1-dimensional CDFs) and its correlated Φ 2 \Phi_2 Φ 2 variant. Both variants yield a different guidance drift as well as look-ahead reward r 0 , δ r_{0,\delta} r 0 , δ . Additionally, for the Gaussian surrogate of p ( x 0 ∣ x t ) ≈ N ( x ^ 0 ∣ t , Σ ) p(x_0|x_t) \approx\mathcal{N}(\hat{x}_{0|t}, \Sigma) p ( x 0 ∣ x t ) ≈ N ( x ^ 0∣ t , Σ ) , where x ^ 0 ∣ t \hat{x}_{0|t} x ^ 0∣ t is Tweedie’s estimate, we replace the isotropic Σ \Sigma Σ approximation of Song et al. [81 ] , with a JVP estimate of σ 2 A T J A \sigma^2 A^T J A σ 2 A T J A , where A A A is defined by the linear function, J J J is the Jacobian of the network and σ 2 \sigma^2 σ 2 is the current noise level (Appendix § 12 .§ 1 ). The joint estimator costs roughly 1.64× wall-clock time (Appendix § 15 .§ 4 ) of the factorised but yields a lower variance of p 0 [ E ] p_0[E] p 0 [ E ] at the rarest level, which we discuss below.
The experiment was conducted with identical seeds and settings as the main text and compared against the MC reference. We use the same 16 seeds across both variants.
The joint reward has a lower CV at every level, and the difference is most prominent at the rarest level: at 10 − 4 10^{-4} 1 0 − 4 the factorised reward has CV 0.310 against 0.080 (variance ratio 14.8, p < 0.001 p < 0.001 p < 0.001 ) and its d ^ / d ⋆ \hat{d}/d^\star d ^ / d ⋆ is further from one (1.12 against 1.06). At 10 − 2 10^{-2} 1 0 − 2 and 10 − 3 10^{-3} 1 0 − 3 the two are statistically indistinguishable, and the cheaper factorised reward reaches a similar net speed-up (Table 21 ). As τ t a s \tau_{\mathrm{tas}} τ tas and τ h u r s \tau_{\mathrm{hurs}} τ hurs are strongly correlated (ρ ≈ 0.72 \rho\approx0.72 ρ ≈ 0.72 ), a product of marginal rewards undersamples the correlated region where p ( x i ) / q ( x i ) > 1 p(x_i)/q(x_i) > 1 p ( x i ) / q ( x i ) > 1 ; the few particles that reach it carry large weights, which inflates the variance at deeper rarities.
Conditional fields for compound events
The compound event as a field. Figure 18 contrasts the conditional mean field under the hot-only constraint with the one under the joint hot & dry constraint of Table 1 . Guiding on the temperature alone, reduces the humidity across the region, illustrating why the dependence ratio d > 1 d > 1 d > 1 .
Table 1. Probability estimates of three compound hot and dry extreme events over the PNW region. The dependence ratio d d d is defined in the main text, d ^ \hat{d} d ^ denotes that estimated by our method. Net speed-up is the reduced-MC cost of matching the CV of the guided run divided by the measured per-sample cost of guidance (Table 21 ); thresholds τ \tau τ are given in App. H.1. Mean ± \pm ± standard error over 16 seeds.
Figure 18. Conditional mean fields for the compound event of Table 1 , over the PNW box in July at GMST +1.5 K. Top: conditioned on the hot constraint alone. Bottom: conditioned jointly on hot & dry. Left: near-surface temperature. Right: relative humidity. Both constraints are at marginal 10 − 3 10^{-3} 1 0 − 3 ; the box is the region of interest. Guiding on temperature alone reduces the humidity across a region.
Experiment 2: A changing climate
Table 19 reports the sweep at a frozen threshold against the large Monte Carlo reference, the generated fields behind it are in Figure 19 . As the global mean surface temperature increases, the degree of warming across regions varies per region which is expected under the modelling condition of [10 ] . As such, the regional mean temperature is greater than the GMST which is reflected at Δ T = 4.0 \Delta T = 4.0 Δ T = 4.0 K, where the estimated p 0 [ E ] = 0.95 p_0[E] = 0.95 p 0 [ E ] = 0.95 . Table 20 reports the performance of DireSMC compared against a compute normalised MC estimate. Due to computational constraints we could not validate the estimates at Δ T ≤ 1.2 \Delta T \le1.2 Δ T ≤ 1.2 K; to obtain a MC probability estimate at a 5% relative error we would require on the order of 10 8 / 10 7 / 10 6 10^{8}/10^{7}/10^{6} 1 0 8 /1 0 7 /1 0 6 draws from the unconditional model at Δ T = 0.0 / 1.0 / 1.2 \Delta T = 0.0/1.0/1.2 Δ T = 0.0/1.0/1.2 K respectively.
Table 20. Warming sweep at the frozen event τ = 5.81 \tau= 5.81 τ = 5.81 K over the region computed with 16 seeds per point. We compare against an unguided MC estimate at matched clock time allocating it 4.7 × 4.7 \times 4.7 × particles, over 16 replicates. Zero counts the number of MC replicates that record no event. See Table 19 for DireSMC validated against a large MC pool. Var. Ratio = Var ( p ^ M C ) / Var ( p ^ ) \operatorname{Var}(\hat{p}_{\mathrm{MC}})/\operatorname{Var}(\hat{p}) Var ( p ^ MC ) / Var ( p ^ ) .
Computational cost
We measure the net-speed-up of the path-weighted estimator by comparing the net wall-clock time required for each example in Table 21 . We compare our results against the number of N M C N_{MC} N M C samples required to form a Monte Carlo estimate at equal-CV, discounted by the added cost of computing the guidance. An unguided draw is one denoiser call per step (0.151 s per sample at K = 200 K = 200 K = 200 ); the production sampler measures 4.7× \times × that per sample for a univariate or factorised reward (marginal threshold exceedances and multivariate exceedance under uncorrelated reward), and the correlated variant of the reward measures a larger 7.7× \times × . In general, any m m m -coupled reward requires m m m vector Jacobian product calls per denoising step, which contributes a linearly growing computational cost to the wall-clock time.
We find that for most of the generations, the net speedup of the path-weighted sampler out-weighs the added clock time for guided steps. Additionally, at deeper rarities where Monte Carlo has zero samples within the extreme event set of interest (e.g. for very rare events), the method becomes a point of feasibility rather than speed-up alone. These speed-ups scale with the quality of the guidance itself.
Hyperparameter ablation
We test a range of schedules of ( λ ( σ ˉ ) , δ ( σ ˉ ) ) (\lambda(\bar{\sigma}), \delta(\bar{\sigma})) ( λ ( σ ˉ ) , δ ( σ ˉ )) on the threshold exceedance problem at a marginal p ∗ = 10 − 3 p^* = 10^{-3} p ∗ = 1 0 − 3 . We caveat that the parameters we present were chosen heuristically, and we do not independently tune the hyperparameters for any other setting presented in our paper. While we tune on the marginal hot and dry τ 1 \tau_1 τ 1 (p ∗ = 10 − 3 p^* = 10^{-3} p ∗ = 1 0 − 3 ) problems, we believe there are further performance improvements that can be made by better schedule tuning. All ablations are done with a single change to the default parameters described in App. § 15 .1.1. We report p ^ 0 [ E ] / p ∗ \hat{p}_0[E]/p^* p ^ 0 [ E ] / p ∗ against the Monte Carlo anchor, with errors displayed as the standard errors over the 16 seeds, which are shared across all arms.
Metropolis-adjusted Langevin corrections
We use Metropolis-Adjusted Diffusion Model (MADM, [49 ] ) for the rejuvenation kernel M k M_k M k of § 3.1 . From the predictor-corrector framework of [80 ] the guided score can be used as a predictor and M M M MADM steps act as our corrector, targeting the tilted marginals π k \pi_k π k of Eq. (5) . The unadjusted Langevin algorithm (ULA) update is,
x ~ = x + ρ 2 g ( x ) + ρ z , z ∼ N ( 0 , I ) , g ( x ) : = ∇ x log π k ( x ) = s θ ( x , t k ) + h t k ( x ) . (114) \tilde{x}=x+\frac{\rho}{2}g(x)+\sqrt{\rho}z,\quad z\sim\mathcal{N}(0,I),\quad g(x):=\nabla_x\log\pi_k(x)=s_\theta(x,t_k)+h_{t_k}(x). \tag*{(114)} x ~ = x + 2 ρ g ( x ) + ρ z , z ∼ N ( 0 , I ) , g ( x ) := ∇ x log π k ( x ) = s θ ( x , t k ) + h t k ( x ) . (114)
Here g g g is the guided score. ULA accepts all proposals x → x ~ x\to\tilde{x} x → x ~ and is biased for every finite step size ρ \rho ρ , and only leaves π k \pi_k π k invariant in the ρ → 0 \rho\to0 ρ → 0 limit.
A Metropolis-Hastings correction removes this bias while keeping the same proposal: accept x ~ \tilde{x} x ~ with probability A ( x , x ~ ) = 1 ∧ [ Γ π ( x , x ~ ) H ( x , x ~ ) ] A(x,\tilde{x})=1\wedge\left[\Gamma_\pi(x,\tilde{x})H(x,\tilde{x})\right] A ( x , x ~ ) = 1 ∧ [ Γ π ( x , x ~ ) H ( x , x ~ ) ] , otherwise stay at x x x , where the acceptance ratio splits into a target ratio Γ π \Gamma_\pi Γ π and a proposal ratio H H H . The proposal ratio is Gaussian and closed-form,
log H ( x , x ~ ) = 1 2 ρ ∥ x ~ − x − ρ 2 g ( x ) ∥ 2 − 1 2 ρ ∥ x − x ~ − ρ 2 g ( x ~ ) ∥ 2 , (115) \log H(x,\tilde{x})=\frac{1}{2\rho}\left\|\tilde{x}-x-\frac{\rho}{2}g(x)\right\|^2-\frac{1}{2\rho}\left\|x-\tilde{x}-\frac{\rho}{2}g(\tilde{x})\right\|^2, \tag*{(115)} log H ( x , x ~ ) = 2 ρ 1 x ~ − x − 2 ρ g ( x ) 2 − 2 ρ 1 x − x ~ − 2 ρ g ( x ~ ) 2 , (115)
while the target ratio is exactly the tilted-density ratio at t k t_k t k ,
Γ π ( x , x ~ ) = π k ( x ~ ) π k ( x ) ∝ p t k ( x ~ ) e r t k ( x ~ ) p t k ( x ) e r t k ( x ) . (116) \Gamma_\pi(x,\tilde{x})=\frac{\pi_k(\tilde{x})}{\pi_k(x)}\propto\frac{p_{t_k}(\tilde{x})e^{r_{t_k}(\tilde{x})}}{p_{t_k}(x)e^{r_{t_k}(x)}}. \tag*{(116)} Γ π ( x , x ~ ) = π k ( x ) π k ( x ~ ) ∝ p t k ( x ) e r t k ( x ) p t k ( x ~ ) e r t k ( x ~ ) . (116)
Only Γ π \Gamma_\pi Γ π remains intractable for a diffusion model: the reward factor e r t k e^{r_{t_k}} e r t k is available in closed form, but we do not have direct access to the base marginal p t k p_{t_k} p t k , only its score s θ ( x , t k ) s_\theta(x,t_k) s θ ( x , t k ) . Writing the target ratio as
log Γ π ( x , x ~ ) = log p t k ( x ~ ) p t k ( x ) ⏟ intractable + ( r t k ( x ~ ) − r t k ( x ) ) ⏟ exact (117) \log\Gamma_\pi(x,\tilde{x})=\underbrace{\log\frac{p_{t_k}(\tilde{x})}{p_{t_k}(x)}}_{\text{intractable}}+\underbrace{\left(r_{t_k}(\tilde{x})-r_{t_k}(x)\right)}_{\text{exact}} \tag*{(117)} log Γ π ( x , x ~ ) = intractable log p t k ( x ) p t k ( x ~ ) + exact ( r t k ( x ~ ) − r t k ( x ) ) (117)
isolates the one hard piece: the reward term is known in closed form and needs no approximation at all. MADM ([49 ] ) sidesteps the marginal-density problem by computing the remaining p t k p_{t_k} p t k -ratio, under a well trained network where s θ = ∇ x log p t k s_\theta=\nabla_x\log p_{t_k} s θ = ∇ x log p t k , using a line-integral,
log p t k ( x ~ ) p t k ( x ) = ∫ 0 1 ⟨ s θ ( x + u ( x ~ − x ) , t k ) , x ~ − x ⟩ d u , (118) \log\frac{p_{t_k}(\tilde{x})}{p_{t_k}(x)}=\int_0^1\left\langle s_\theta\left(x+u(\tilde{x}-x),t_k\right),\tilde{x}-x\right\rangle\,du, \tag*{(118)} log p t k ( x ) p t k ( x ~ ) = ∫ 0 1 ⟨ s θ ( x + u ( x ~ − x ) , t k ) , x ~ − x ⟩ d u , (118)
valid when s θ s_\theta s θ is a gradient field, which holds exactly for an analytic score but is not enforced by the denoising objective for a learned network. This is the conservation error of the learned score, which is small in high noise regions, where we apply rejuvenation. The line integral can be approximated by quadrature, for instance by Simpson’s rule at the midpoint x ˉ = ( x + x ~ ) / 2 \bar{x}=(x+\tilde{x})/2 x ˉ = ( x + x ~ ) /2 ,
log Γ π ^ = 1 6 ⟨ s θ ( x , t k ) + 4 s θ ( x ˉ , t k ) + s θ ( x ~ , t k ) , x ~ − x ⟩ + ( r t k ( x ~ ) − r t k ( x ) ) , (119) \widehat{\log\Gamma_\pi}=\frac{1}{6}\left\langle s_\theta(x,t_k)+4s_\theta(\bar{x},t_k)+s_\theta(\tilde{x},t_k),\tilde{x}-x\right\rangle+\left(r_{t_k}(\tilde{x})-r_{t_k}(x)\right), \tag*{(119)} log Γ π = 6 1 ⟨ s θ ( x , t k ) + 4 s θ ( x ˉ , t k ) + s θ ( x ~ , t k ) , x ~ − x ⟩ + ( r t k ( x ~ ) − r t k ( x ) ) , (119)
giving the practical acceptance probability A ^ ( x , x ~ ) = 1 ∧ exp ( log Γ ^ π ) H ( x , x ~ ) \widehat{A}(x,\widetilde{x}) = 1 \wedge\exp\left(\log\widehat{\Gamma}_{\pi}\right) H(x,\widetilde{x}) A ( x , x ) = 1 ∧ exp ( log Γ π ) H ( x , x ) . The endpoint scores s θ ( x , t k ) s_\theta(x,t_k) s θ ( x , t k ) , s θ ( x ~ , t k ) s_\theta(\widetilde{x},t_k) s θ ( x , t k ) and rewards r t k ( x ) r_{t_k}(x) r t k ( x ) , r t k ( x ~ ) r_{t_k}(\widetilde{x}) r t k ( x ) are shared with the proposal and its acceptance test, so the quadrature costs additional unconditional score evaluations.
The quadrature carries a truncation error of order O ( ρ 5 / 2 ) O(\rho^{5/2}) O ( ρ 5/2 ) on the p t k p_{t_k} p t k -ratio, so the adjusted kernel is not exactly π k \pi_k π k -invariant but is accurate to far higher order than the O ( ρ ) O(\rho) O ( ρ ) bias of the unadjusted chain [49 ] . An exact alternative replaces the Metropolis rule with Barker acceptance, at the cost of additional score evaluations [49 ] ; but we use the Simpson-rule variant throughout.
We can summarise a single MADM move under the Simpson’s-rule variant of [49 ] as (i) propose a transition with Eq. (114) and (ii) accept the proposal with an acceptance probability approximated with Eqs. (115) and (119) . Algorithm 2 states this as the rejuvenation kernel M k M_k M k called by Algorithm 1.
Table 2 (PDF p. 61).
Related Works Extended
We compare our method for generating the rare event probabilities against the method introduced in [55 ] . Both methods guide a pre-trained diffusion model towards the extremes, and reweight the resulting samples to estimate p 0 [ E ] p_0[E] p 0 [ E ] under the model density p θ p_\theta p θ . The methods differ at the integrator. The method of [55 ] samples with an ODE and estimates the rare-event probability using the Probability Flow ODE (PF-ODE) [80 ] for both unguided and guided processes, which allows them to weigh each sample by its exact terminal likelihood. We sample with a reverse SDE and weight each trajectory by the Girsanov density of the guided path measure, computed against the unguided process. Neither object is available to the other: a stochastic integrator has no PF-ODE likelihood, and a deterministic flow induces path measures that are mutually singular, so Girsanov’s theorem is not available.
Resampling mid-trajectory is only available to the path-weights formulation as a terminal-only weight defines no intermediate targets to resample against. During the denoising process, we measure how far the sampled trajectory Q \mathbb{Q} Q deviates from one defined by the tilted process P r 0 , δ \mathbb{P}_{r_{0,\delta}} P r 0 , δ , and adaptively resample within a Sequential Monte Carlo scheme. Under the operating guidance of [55 ] , this yields us a far larger fraction of particles from the rare-event set E E E .
Notation. The arrow on a density is the direction in which it is evaluated: backward (← \leftarrow ← ) means along the sampling run itself (i.e. from a Gaussian prior → \to → the data distribution); forward (→ \to → ) is the noising direction (i.e. data → \to → prior) obtained via integrating the ODE from the generated sample back to noise. K K K is the number of integrator steps; arrow-free symbols ( p 0 , q 0 ) (p_0,q_0) ( p 0 , q 0 ) are the continuous-time objects, untouched by the discretisation. The key point is that, at a finite K K K , the two directions assign different values to the same density (dependent on the integrator of choice).
Table 3 (PDF p. 61).
The three discrepancies E 0 \mathcal{E}_0 E 0 , E γ \mathcal{E}_\gamma E γ , D m a p D_{\mathrm{map}} D map are all O ( 1 / K ) O(1/K) O ( 1/ K ) discretisation quantities and vanish as K → ∞ K \to\infty K → ∞ .
The PF-ODE Estimator
Both methods target the same quantity, p 0 [ E ] p_0[E] p 0 [ E ] by importance sampling with a guided proposal: draw x ∼ q ← x \sim\overset{\leftarrow}{q} x ∼ q ← , then reweight,
p 0 [ E ] = ∫ p 0 1 E d x = E x ∼ q ← [ p 0 q ← 1 E ] . (120) p_0[E] = \int p_0 \mathbf{1}_E\,\mathrm{d}x = \mathbb{E}_{x \sim\overset{\leftarrow}{q}}\left[\frac{p_0}{\overset{\leftarrow}{q}}\mathbf{1}_E\right]. \tag*{(120)} p 0 [ E ] = ∫ p 0 1 E d x = E x ∼ q ← [ q ← p 0 1 E ] . (120)
The two methods differ only in how this ratio is estimated. We compute the Girsanov path ratio d P / d Q \mathrm{d}P/\mathrm{d}Q d P / d Q using transition kernels which is accumulated during the run itself. It is a functional of the whole trajectory X [ 0 , 1 ] X_{[0,1]} X [ 0 , 1 ] , not of its endpoint alone. The method of [55 ] is a ratio of two forward-evaluated endpoint densities:
ours: E X [ 0 , 1 ] ∼ Q [ d P d Q ( X [ 0 , 1 ] ) 1 E ( X 0 ) ] , (Manshausen et al., 2026): E x ∼ q ← [ p → ( x ) q → ( x ) 1 E ( x ) ] . (121) \text{ours: }\mathbb{E}_{X_{[0,1]}\sim Q}\left[\frac{\mathrm{d}P}{\mathrm{d}Q}(X_{[0,1]})\mathbf{1}_E(X_0)\right], \qquad\text{(Manshausen et al., 2026): }\mathbb{E}_{x\sim\overset{\leftarrow}{q}}\left[\frac{\overset{\rightarrow}{p}(x)}{\overset{\rightarrow}{q}(x)}\mathbf{1}_E(x)\right]. \tag*{(121)} ours: E X [ 0 , 1 ] ∼ Q [ d Q d P ( X [ 0 , 1 ] ) 1 E ( X 0 ) ] , (Manshausen et al., 2026): E x ∼ q ← [ q → ( x ) p → ( x ) 1 E ( x ) ] . (121)
Both estimators target the integral of Eq. (120) , ours by the tower property in conditional expectations, E Q [ d P / d Q ∣ X 0 ] = p → ( X 0 ) / q ← ( X 0 ) \mathbb{E}_Q[\mathrm{d}P/\mathrm{d}Q \mid X_0] = \overset{\rightarrow}{p}(X_0)/\overset{\leftarrow}{q}(X_0) E Q [ d P / d Q ∣ X 0 ] = p → ( X 0 ) / q ← ( X 0 ) and theirs by the ratio p → / q → ≈ p 0 / q ← \overset{\rightarrow}{p}/\overset{\rightarrow}{q} \approx p_0/\overset{\leftarrow}{q} p → / q → ≈ p 0 / q ← . Our path weight uses the backward or denoising process, simulated under the guided chain. Note that importance sampling asks us to divide by the density of the draws, i.e. the backward object q ← \overset{\leftarrow}{q} q ← instead of q → \overset{\rightarrow}{q} q → . We note that both estimators need not have the same variance [14 , 19 ] .
The method of [55 ] first generates a sample by integrating a deterministic ODE from t = 1 t = 1 t = 1 down to data at t = 0 t = 0 t = 0 ,
x 0 = x 1 − ∫ 0 1 ( f t x t − 1 2 σ t 2 ( s θ ( x t , t ) + γ h t ( x t ) 1 { t ∈ Δ } ) ) d t , (122) x_0 = x_1 - \int_0^1 \left(f_t x_t - \frac{1}{2}\sigma_t^2\left(s_\theta(x_t,t) + \gamma h_t(x_t)\mathbf{1}\{t \in\Delta\}\right)\right)\,\mathrm{d}t, \tag*{(122)} x 0 = x 1 − ∫ 0 1 ( f t x t − 2 1 σ t 2 ( s θ ( x t , t ) + γ h t ( x t ) 1 { t ∈ Δ } ) ) d t , (122)
where h t h_t h t is their classifier guidance term and γ \gamma γ is their guidance strength. After sampling, samples that belong to the rare event set of interest x E ∼ q ← ∈ E x_E \sim\overset{\leftarrow}{q} \in E x E ∼ q ← ∈ E are selected and their likelihoods are evaluated: from each sample x E x_E x E , they re-integrate the same dynamics in the noising direction t = 0 → 1 t = 0 \to1 t = 0 → 1 , accumulating the integral,
log p → ( x E ) = log p 1 ( x 1 ) + ∫ 0 1 ( d f t − 1 2 σ t 2 ∇ ⋅ s θ ( x t , t ) ) d t , (123) \log\overset{\rightarrow}{p}(x_E) = \log p_1(x_1) + \int_0^1 \left(d f_t - \frac{1}{2}\sigma_t^2 \nabla\cdot s_\theta(x_t,t)\right)\,\mathrm{d}t, \tag*{(123)} log p → ( x E ) = log p 1 ( x 1 ) + ∫ 0 1 ( d f t − 2 1 σ t 2 ∇ ⋅ s θ ( x t , t ) ) d t , (123)
where d d d is the dimension and x 1 x_1 x 1 the endpoint of the re-integration (noise), log q → \log\overset{\rightarrow}{q} log q → is obtained similarly via replacing the score in Eq. (123) with its guided variant, s θ → s θ + γ h t ( x t ) 1 { t ∈ Δ } s_\theta\to s_\theta+ \gamma h_t(x_t)\mathbf{1}\{t \in\Delta\} s θ → s θ + γ h t ( x t ) 1 { t ∈ Δ } . Their importance weight is given by,
log p 1 ( x 1 ) p 1 ( x 1 γ ) − 1 2 ∫ 0 1 σ t 2 ( ∇ ⋅ s θ ( x t , t ) − ∇ ⋅ s θ ( x t γ , t ) ) d t + γ 2 ∫ Δ σ t 2 ∇ ⋅ h t ( x t γ ) d t , (124) \log\frac{p_1(x_1)}{p_1(x_1^\gamma)} - \frac{1}{2}\int_0^1 \sigma_t^2\left(\nabla\cdot s_\theta(x_t,t) - \nabla\cdot s_\theta(x_t^\gamma,t)\right)\,\mathrm{d}t + \frac{\gamma}{2}\int_\Delta\sigma_t^2\nabla\cdot h_t(x_t^\gamma)\,\mathrm{d}t, \tag*{(124)} log p 1 ( x 1 γ ) p 1 ( x 1 ) − 2 1 ∫ 0 1 σ t 2 ( ∇ ⋅ s θ ( x t , t ) − ∇ ⋅ s θ ( x t γ , t ) ) d t + 2 γ ∫ Δ σ t 2 ∇ ⋅ h t ( x t γ ) d t , (124)
where x t x_t x t and x t γ x_t^\gamma x t γ are the unguided and guided re-integration trajectories from the same sample x E x_E x E , with endpoints x 1 x_1 x 1 and x 1 γ x_1^\gamma x 1 γ .
The assumption of [55 ] . The weight is exact iff (i) p → = p 0 \overset{\rightarrow}{p} = p_0 p → = p 0 , or when the forward density equals the true model density, where D m a p = 0 D_{\mathrm{map}} = 0 D map = 0 , and (ii) q → = q ← \overset{\rightarrow}{q} = \overset{\leftarrow}{q} q → = q ← , where the forward re-integration of the guided path reproduces the density of the draws, i.e, E γ = 0 \mathcal{E}_\gamma= 0 E γ = 0 . Neither holds at finite K K K for the explicit Euler integrator used, as the reverse of this integrator is the implicit Euler which is not used. Hence the forward density q → \overset{\rightarrow}{q} q → does not retrace the same trajectory as the backward process q ← \overset{\leftarrow}{q} q ← .
The bias (the expectation over guided draws in E E E ) of this is given by,
p ^ 0 [ E ] p 0 [ E ] = E [ exp ( E 0 − E γ + D m a p ) ] , (125) \frac{\widehat{p}_0[E]}{p_0[E]} = \mathbb{E}\left[\exp\left(\mathcal{E}_0 - \mathcal{E}_\gamma+ D_{\mathrm{map}}\right)\right], \tag*{(125)} p 0 [ E ] p 0 [ E ] = E [ exp ( E 0 − E γ + D map ) ] , (125)
which is unbiased iff the right-hand side is one. This happens trivially, when E 0 − E γ = 0 \mathcal{E}_0 - \mathcal{E}_\gamma= 0 E 0 − E γ = 0 (i.e. no guidance) and D m a p = 0 D_{\mathrm{map}} = 0 D map = 0 , i.e. p → = p 0 \overset{\rightarrow}{p} = p_0 p → = p 0 . The non-trivial solution requires p → = p ← = p 0 \overset{\rightarrow}{p} = \overset{\leftarrow}{p} = p_0 p → = p ← = p 0 and q → = q ← \overset{\rightarrow}{q} = \overset{\leftarrow}{q} q → = q ← , such that E 0 = E γ = 0 \mathcal{E}_0 = \mathcal{E}_\gamma= 0 E 0 = E γ = 0 which occurs exactly at K → ∞ K \to\infty K → ∞ . In a non-analytical setting, D m a p D_{\mathrm{map}} D map is unknown and cannot be evaluated, hence, both methods assume p → = p 0 \overset{\rightarrow}{p} = p_0 p → = p 0 . At finite K K K , an accurate estimator therefore requires the three terms to cancel. Within the finite limit, the system becomes unbiased if E γ = E 0 + D m a p \mathcal{E}_{\gamma} = \mathcal{E}_{0} + D_{\mathrm{map}} E γ = E 0 + D map such that individual biases cancel under addition. Our counterpart is a single condition, p ˉ → p 0 \bar{p} \to p_{0} p ˉ → p 0 : the law of the K K K -step chain must approach the model’s, or D m a p → 0 D_{\mathrm{map}} \to0 D map → 0 . We too need large K K K for this to be satisfied. In the absence of p 0 p_{0} p 0 and D m a p D_{\mathrm{map}} D map , our condition is trivially satisfied, whereas Manshausen et al. [55 ] requires E 0 = E γ \mathcal{E}_{0} = \mathcal{E}_{\gamma} E 0 = E γ or the cancellation of individual biases.
Empirical Results
As the laws induced by the discretised ODE and SDE integrators need not coincide generally for a learned score, see Deveney et al. [22 ] , we evaluate the bias using analytical scores where the true rare-event probability p 0 [ E ] p_{0}[E] p 0 [ E ] is known without any discretisation bias. We compare these methods using the 2D GMM threshold exceedance problem at τ = 10 \tau= 10 τ = 10 . As both methods use first order integrators, we use the exponential integrator for both ODE and SDE variants with analytical scores and Doob’s guidance on the tested equal ℓ \ell ℓ discretisation (see App. § 14 .2.2). In the ODE setting of Manshausen et al. [55 ] , this is equivalent to the DDIM (Gonzalez et al. [37 ] ; Lu et al. [54 ] ; Song et al. [80 ] ) integrator, but under the EDM’s parametrisation (Karras et al. [45 ] ) this corresponds to the Euler integrator used in Manshausen et al. [55 ] . Additionally, we clip the guidance to ensure that the crossing fraction remains 10% for both methods (under no resampling) which mirrors the operational regime of Manshausen et al. [55 ] . We calibrate the clipping for both methods at each K K K separately.
Remark To isolate the effect of discretisation bias, we provide the true ∇ ⋅ s ( x t , t ) \nabla\cdot s(x_t,t) ∇ ⋅ s ( x t , t ) in Eq. (124) for the PF-ODE computation of Manshausen et al. [55 ] instead of approximating it via the Hutchinson trace estimator. However, in practice the trace estimator contributes variance to the estimate, shrinking with the number of probes in exchange for a larger computational overhead.
Under the exact Doob’s guidance, the discretisation bias from p ˉ / q ˉ \bar{p}/\bar{q} p ˉ / q ˉ survives, as the guidance is employed throughout the trajectory. We report the discretisation bias against K K K in Table 23 . Exact guidance highlights that this is a discretisation bias itself which converges as p ˉ → p ˉ \bar{p} \to\bar{p} p ˉ → p ˉ and D m a p = 0 D_{\mathrm{map}} = 0 D map = 0 . For our method, an error lives in D m a p D_{\mathrm{map}} D map . The discretisation bias of Manshausen et al. [55 ] is dependent on a specific choice of γ \gamma γ and h t h_t h t , reflected in E γ \mathcal{E}_{\gamma} E γ . Hence the two proposals in Table 23 give a different estimate for p 0 [ E ] p_{0}[E] p 0 [ E ] . Additionally, as we adaptively resample, our crossing fraction remains high even with the clipped guidance at 86.5%/80.4%/81.3%/79.4% (averaged across seeds) for K = 50 / 100 / 200 / 500 K = 50/100/200/500 K = 50/100/200/500 respectively compared to that at 10%, which results in a higher particle population concentration on the event of interest. We need not discard 90% of samples in this regime, and this is reflected in a lower seed-level standard error of our method.
Remark on computational costs. Let N N N be the number of particles, R R R the number of resampling steps, M M M the number of MCMC move of Algorithm 1, and P P P the number of Hutchinson trace estimator probes used per step in Eq. (124) . Both samplers pay a different number of function evaluations per particle, and have a different compute budget. Table 24 summarises this. K K K is fixed and set by the discretisation bias tolerance versus compute. Which has the same weak-order convergence for both methods (first-order) (Gonzalez et al. [37 ] ; Manshausen et al. [55 ] ).
As an illustrative example, take the τ = 10 \tau= 10 τ = 10 example of § 4 , coupled with the guidance term of Eq. (18) and the ΠGDM Σ t \Sigma_t Σ t proxy (Song et al., [81 ] ). Averaged over 24 seeds, resampling is triggered R = 3.5 R = 3.5 R = 3.5 times, followed by M = 3 M = 3 M = 3 MADM rejuvenation steps. If we set P = 1 P = 1 P = 1 , which is a conservative estimate as typically a larger P P P results in a lower variance estimate of the Jacobian trace. If we were to count every single score evaluation, reward and reward-gradient evaluation as one call, our estimator uses 2 K + 3 R M ≈ 2032 2K + 3RM \approx2032 2 K + 3 R M ≈ 2032 function calls per particle, of which rejuvenation moves account for 32, whereas the odds-ratio estimator with a single probe uses 5 K + 2 P K = 7000 5K + 2PK = 7000 5 K + 2 P K = 7000 . As a reward and its gradient calls are often paired together, at an equal step count Manshausen et al. [55 ] receive N / 3.5 N/3.5 N /3.5 particles at the same compute budget, which is the comparison drawn in Figure 2 .
Detailed Comparison
Below we collate the tables used to generate Figure 2 . In the first two panels, we use a learned score network, whereas the final uses an analytical score with Doob’s transition kernels. We motivate why this is selected in § 4.1 . All hyperparameters are kept the same unless they are ablated. The only exception is that each arm uses the best λ ( t ) \lambda(t) λ ( t ) tempering parameter as selected in App. § 14 .§ 6 .
CV vs N. We keep the same K = 1000 K = 1000 K = 1000 and ablate at τ = 10 \tau= 10 τ = 10 with learned scores. Table 25 summarises these results, where we find that the CV of DireSMC (w/ rejuvenation) outperforms Manshausen et al. [55 ] at all K K K .
Table 25. CV of p ^ \hat{p} p ^ against particle count N N N (Figure 2 , left), at τ = 10 \tau= 10 τ = 10 , K = 1000 K = 1000 K = 1000 , with the learned score, over 24 seeds. Measured against model’s tail mass p ∗ p^* p ∗ (Table 7 ).
CV vs Rarity. We keep the same K = 1000 K = 1000 K = 1000 and N = 1000 N = 1000 N = 1000 and ablate the rarities using approximate guidance and learned scores. We discount the number of particles available based on number of function evaluations compared to DireSMC base. For Manshausen et al. [55 ] this is 3.5 × 3.5\times 3.5 × less particles (286) on this problem. Table 26 summarises these results, where we find that at matched compute all variants of DireSMC outperform Manshausen et al. [55 ] .
Table 26. CV of p ^ \hat{p} p ^ relative to models threshold exceedance probability p ⋆ p^\star p ⋆ (Table 7 ). p ^ \hat{p} p ^ across rarities at equal compute (Figure 2 , middle), with K = 1000 K = 1000 K = 1000 , the learned score and 24 seeds. We use N = 1000 N = 1000 N = 1000 and Manshausen et al. [55 ] use n = N / 3.5 = 286 n = N/3.5 = 286 n = N /3.5 = 286 (Table 24 ). All variants of DireSMC outperform Manshausen et al. [55 ] .
Bias vs K. We measure the discretisation bias using analytical scores, Doob’s transition kernels of DireSMC with no resampling, selected to isolate the errors introduced in Eq. (124) . Table 27 summarises these results.
Table 27. Discretisation bias against the step count K K K (Figure 2 , right), shown as the mean p ^ / p ⋆ ± \hat{p}/p^\star\pm p ^ / p ⋆ ± s.e. over 24 seeds. Computed using analytical socres, Doob’s transition kernels and withut resampling at N = 1000 N = 1000 N = 1000 . p ⋆ p^\star p ⋆ is p d a t a [ E ] p_{\mathrm{data}}[E] p data [ E ] . Manshausen et al. [55 ] are given the exact divergence.