Steering Diffusion Models to Rare Events
with Sequential Monte Carlo

1University of Oxford 2University of British Columbia
Correspondence: subedi@stats.ox.ac.uk
DireSMC at a glance. Run as it is, the diffusion model takes particles from noise p1 to data p0, and none of them lands in the rare event E. DireSMC adds the reward gradient to the score to steer particles (●) towards E, weighs them to correct for the steering (dot size reflects the weight), resamples (✕), and averages the weights of the particles that land in E to estimate p0[E].
9× – 1413×

net speed-up over Monte Carlo on a climate emulator

10−3 → 10−5

event probabilities recovered

Training-free

works at inference time with any pre-trained score model

Abstract

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.

Method

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).

∇x log pt + ∇x rt integrate x0 ~ 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.

E 0 0.5 1 Soft reward τ φ(x) E 10−2 100 102 Guidance strength τ φ(x)
The soft reward. Smaller widths δ approach the hard indicator (left). Outside the event the gradient stays large, so particles far from E are pushed hardest (right).
Results

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.

Three panels. Left: coefficient of variation falls with the number of particles; DireSMC with MADM rejuvenation is lowest. Middle: at equal compute, DireSMC's error stays flat across rarities while Monte Carlo grows. Right: the ODE baseline overestimates the probability by up to 2.5 times at 50 steps; DireSMC stays near 1.
Gaussian mixture. Left: error falls as particles are added; resampling and MCMC rejuvenation (MADM) help most. Middle: at equal compute, error stays flat as the event gets rarer. Right: with exact guidance, the ratio of estimate to truth across step counts K; ours sits at 1.
Cite

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}
}