Steering Diffusion Models to Rare Events
with Sequential Monte Carlo
net speed-up over Monte Carlo on a climate emulator
event probabilities recovered
works at inference time with any pre-trained score model
Rare event samples and probabilities are required for planning and decision making.
Diffusion models are increasingly used as cheap surrogates for expensive simulators in weather prediction, molecular dynamics and materials design. Computing the probability p0[E] of an event E under these models is hard when the event is rare. With naive Monte Carlo, the number of samples needed for a stable estimate grows as 1/p0[E]: an event with probability 10−5 (1 in 100,000) needs about ten million samples for 10% accuracy.
We present DireSMC (Diffusion rare event sampling with Sequential Monte Carlo), which guides a population of weighted samples towards the rare event. It gives both samples of the event and a calibrated estimate of its probability, with no retraining of the diffusion model. The guidance uses an analytical relaxation of the event set, so the same method works for a wide range of user-defined events.
On a Gaussian mixture with an analytical answer and on a score-based climate emulator, DireSMC gives accurate probabilities for rarities from 10−3 to 10−5, with net speed-ups of 9× to 1413× over Monte Carlo.
Steering by changing the score
A diffusion model generates samples by integrating the score ∇x log pt from a reference p1 back to data p0. Changing the score targets a different distribution. By adding the gradient of a reward that targets rare events, ∇x rt, we can generate samples from p0(x | E).
Soften, steer, estimate
A rare event E is defined as a set. For a threshold-exceedance event, φ(x) ≥ τ, the indicator function has zero gradient almost everywhere, so it gives nothing to steer with. We mollify the set with a Gaussian cumulative distribution function (CDF), giving a smooth reward that pushes particles towards the rare-event region.
At each denoising step we look ahead to the model's guess of the clean sample (Tweedie's formula) and add the reward's gradient to the drift. For linear observables this look-ahead is closed-form.
Steering changes the distribution the particles are drawn from, so we track an importance weight for each one. The weights tell us when to resample, and the accumulated weights give the estimate.
- Initialise N particles from p1 with equal weights.
- For each denoising step, from noise to data:
- Steer every particle with the guided drift, the score plus ∇x rt.
- Weigh it: update its weight to correct for the steering and the change in reward.
- Resample when the weights degenerate, dropping light particles and copying heavy ones.
- Rejuvenate the particles with an MCMC move.
- Output weighted samples of the event, and an estimate p̂0[E] of its probability from the accumulated weights.
Experiments
We test DireSMC on a Gaussian mixture where the exact answer is known, and on a pre-trained climate emulator.
Checking against an exact answer
We first test on a seven-mode Gaussian mixture where the true probability is known in closed form. Events of the form x1 ≥ τ range from about 7 × 10−3 down to 1.4 × 10−5.
DireSMC recovers the reference with both the analytical and a learned score. Its coefficient of variation stays flat as the event gets rarer, while Monte Carlo at the same budget gets steadily worse. We also compare with the importance-sampling estimator of Manshausen et al. (2026), which uses the probability-flow ODE: DireSMC has lower variance at equal compute and a much smaller discretisation bias.

Heatwaves in a climate emulator
We take a pre-trained score-based climate emulator (Bouabid et al.), trained on CMIP6 output from MPI-ESM1-2-LR. It generates global monthly fields of temperature, precipitation, humidity and wind, conditioned on the month and the level of global warming ΔT.
We target the region hit by the June 2021 Pacific Northwest heatwave and ask how likely an extremely hot July is at ΔT = 1.5 K. The reference comes from about ten million Monte Carlo samples.

Multivariate extremes
Compound events matter because the variables move together. We ask for Julys that are both extremely hot and extremely dry over the region, using a single reward on both variables. DireSMC recovers the joint probability and the dependence ratio d, which compares the joint probability with the product of the marginals.
| Reference p* | p̂ / p* | CV | Dependence d* | d̂ / d* | Net speed-up |
|---|---|---|---|---|---|
| 3.14 × 10−3 | 0.97 ± 0.02 | 0.07 | 31 | 1.04 ± 0.02 | 9× |
| 2.12 × 10−4 | 0.99 ± 0.03 | 0.11 | 212 | 1.02 ± 0.03 | 47× |
| 1.39 × 10−5 | 1.04 ± 0.02 | 0.08 | 1384 | 1.06 ± 0.06 | 1413× |
Mean ± standard error over 16 seeds. Net speed-up is the Monte Carlo compute needed to match our variance, divided by our compute with the cost of guidance included.
The dependence grows sharply with rarity. At the rarest level a hot and dry July is over a thousand times more likely than treating heat and dryness as independent would suggest.

Climate attribution
The emulator is conditioned on global warming, so we can ask how the odds of one fixed extreme change as the planet heats up. We hold the threshold at a level that is about a 1-in-10,000 event at 1.2 K of warming, roughly the 2021 climate.
Its probability goes from about 10−6 in a pre-industrial climate to near certainty at 4 K. DireSMC tracks all six orders of magnitude with the same settings. At equal compute, Monte Carlo records no events at all in the coolest climates.

This points towards using generative emulators for event attribution: asking how much more likely a given extreme has become because of warming.
BibTeX
@article{subedi2026diresmc,
title = {Steering Diffusion Models to Rare Events
with Sequential Monte Carlo},
author = {Subedi, Aavash and Reichelt, Tim and Williams, Christopher
and Stier, Philip and Teh, Yee Whye and Syed, Saifuddin},
journal = {arXiv preprint},
year = {2026}
}