Denoising Diffusion Samplers (DDS) adapt the state-of-the-art power of generative diffusion models to the classic problem of sampling from unnormalized probability densities. By learning to reverse a process that diffuses a complex target distribution into a simple Gaussian, DDS provides a numerically stable variational framework for both generating samples and estimating normalizing constants in high-dimensional spaces.
The Challenge of Unnormalized Densities
In many areas of statistics and machine learning, we encounter "unnormalized" probability densities. In these scenarios, we know the shape of the distribution, but we don't know the scaling factor (the normalizing constant, $Z$) required to make the total area under the curve equal to one. Calculating $Z$ and drawing accurate samples from these distributions is a fundamental computational challenge.
Traditional methods like Annealed Importance Sampling (AIS) or Sequential Monte Carlo (SMC) are powerful but can be computationally expensive or struggle with very complex, multimodal landscapes. Recent "diffusion-based" samplers, such as the Path Integral Sampler (PIS), attempted to solve this by diffusing the target to a single point (a delta function). However, this often leads to "exploding" gradients near the end of the process, making them numerically unstable and difficult to train.
The DDS Methodology
DDS takes inspiration from Denoising Diffusion Probabilistic Models (DDPMs), which are famous for generating high-quality images, and adapts them for unnormalized target densities.
- Forward Diffusion: The authors define a forward process—specifically an Ornstein-Uhlenbeck (OU) process—that gradually adds noise to the target distribution until it becomes a simple Gaussian. Unlike previous methods that diffuse to a point, diffusing to a Gaussian ensures the "drift" (the direction the sampler moves) remains bounded, significantly improving numerical stability.
- Reverse Approximation: Because we cannot easily sample from the target to begin with, standard "score matching" used in image generation is inapplicable. Instead, DDS treats this as a variational inference problem, training a neural network to approximate the time-reversal of the diffusion.
- The Objective: The network is trained by minimizing the Kullback–Leibler (KL) divergence between the approximate reverse process and the true (but intractable) time-reversal. This is mathematically equivalent to maximizing an Evidence Lower Bound (ELBO).
- Discrete-Time Integration: A key technical contribution is the derivation of a specific "exponential-type" integrator. The authors prove that standard discretization methods (like Euler-Maruyama) break the mathematical guarantees of the ELBO, whereas their proposed integrator preserves them.
The paper also explores extensions using Underdamped Langevin Dynamics (adding a momentum variable for smoother trajectories) and Continuous-Time Normalizing Flows (using ODEs instead of SDEs).
Key Results and Insights
The authors evaluated DDS on a variety of challenging synthetic and real-world benchmarks, including the Funnel distribution, a 1600-D Log Gaussian Cox Process (LGCP), Logistic Regression datasets (Ionosphere, Sonar), and a multimodal target based on a pre-trained normalizing flow on MNIST digits (NICE).
Numerical Stability DDS demonstrated drastically lower variance in its gradients compared to PIS, allowing for much more reliable training across different hyperparameters.
Normalizing Constant Estimation On complex tasks like the high-dimensional LGCP and the heavy-tailed Funnel distribution, DDS provided estimates of $\ln Z$ that were highly competitive with SMC and vastly superior to the unstable PIS baseline.
Mode Capture and Efficiency In the high-dimensional NICE task, DDS successfully identified 9 out of 10 image classes, while SMC only identified 5. This demonstrates superior performance in complex, multimodal settings. Furthermore, while DDS requires an initial "training" phase that SMC does not, it can generate samples very efficiently once trained.
Limitations and Future Directions
While highly effective, DDS comes with a few limitations:
- Training Overhead: Compared to "training-free" methods like SMC, DDS requires a non-negligible amount of time to optimize the neural network.
- Mode Dropping: Like all methods based on the "reverse KL" divergence, DDS is theoretically prone to "mode seeking" behavior, where it might ignore some parts of the distribution to focus on others, though it performed well empirically.
- Underwhelming Extensions: Surprisingly, the more complex Underdamped and ODE-based versions did not provide significant gains over the base DDS model in high dimensions.
Future work may involve integrating more advanced diffusion techniques (like those used in Stable Diffusion), exploring better inductive biases for the neural networks, and developing more sophisticated integrators to unlock the potential of the underdamped and continuous-time extensions.
Summary updated