Predict-Project-Renoise: Sampling Diffusion Models under Hard Constraints
Omer Rochman-Sharabi, Gilles Louppe
TL;DR
This work tackles the challenge of sampling diffusion models under hard constraints by defining a constrained forward process and corresponding constrained marginals, then introducing Predict-Project-Renoise (PPR) to sample from these marginals. PPR alternates between enforcing feasibility through a denoiser-based projection and restoring the diffusion noise via renoising, thereby approximating the constrained distribution $p_t^{\mathcal{C}}$ at each step. Across Data2D, Kuramoto-Sivashinsky, and global weather tasks, PPR substantially reduces constraint violations and yields samples that closely match the constrained ground truth, outperforming existing projection-based and posterior-sampling baselines. The approach offers a principled, training-free mechanism to incorporate hard constraints into score-based diffusion models, with a controllable compute-quality tradeoff and broad applicability to scientific domains such as weather forecasting and PDE-driven systems.
Abstract
Neural emulators based on diffusion models show promise for scientific applications, but vanilla models cannot guarantee physical accuracy or constraint satisfaction. We address this by introducing a constrained sampling framework that enforces hard constraints, such as physical laws or observational consistency, at generation time. Our approach defines a constrained forward process that diffuses only over the feasible set of constraint-satisfying samples, inducing constrained marginal distributions. To reverse this, we propose Predict-Project-Renoise (PPR), an iterative algorithm that samples from the constrained marginals by alternating between denoising predictions, projecting onto the feasible set, and renoising. Experiments on 2D distributions, PDEs, and global weather forecasting demonstrate that PPR reduces constraint violations by over an order of magnitude while improving sample consistency and better matching the true constrained distribution compared to baselines.
