Abstract
Sampling from unnormalized probability distributions is a core challenge in Bayesian inference and computational physics. While diffusion bridges have emerged as a flexible framework for this task, their training remains sensitive to the choice of loss function. This paper identifies a fundamental theoretical flaw in the widely used Log Variance (LV) loss—specifically its violation of the Data Processing Inequality (DPI) in the context of diffusion bridges. We propose the use of the reverse KL divergence with the log-derivative trick (rKL-LD) combined with learnable diffusion coefficients. This approach provides a theoretically consistent objective that yields superior stability and performance across high-dimensional benchmarks.
Introduction
In generative modeling, the ability to sample from a distribution where only the energy function is known (and the partition function is unknown) is critical. Diffusion models address this by reversing a noise-adding process. Diffusion bridges extend this concept by allowing both the forward and backward processes to be learned, optimizing the path between a simple prior and a complex target.
Historically, practitioners have chosen between two primary objectives: the theoretically grounded but gradient-unstable Reverse KL (rKL-R) and the empirically popular Log Variance (LV) loss. This research investigates the theoretical underpinnings of these losses, revealing why the LV loss often leads to instabilities in bridge settings and proposing a robust alternative.
The Theoretical Flaw in Log Variance Loss
The Log Variance (LV) loss has been a "gold standard" due to its empirical success in fixed-path diffusion models. However, this research demonstrates that the LV loss violates the Data Processing Inequality (DPI) when applied to diffusion bridges where the forward process is not fixed.
In a diffusion bridge, the model learns the most efficient path between noise and data. Because the LV loss fails the DPI, it does not guarantee that improving the joint path distribution leads to an improvement in the marginal target distribution. This theoretical inconsistency manifests as "divergent runs," where the training loss decreases while the actual sampling quality deteriorates.
Methodology: The rKL-LD Objective
To rectify these issues, the authors propose a shift toward the reverse KL divergence using the log-derivative trick (rKL-LD), also known as the REINFORCE estimator.
1. Gradient Estimation
Unlike the standard reparameterization trick (rKL-R), which backpropagates through stochastic paths and often suffers from exploding or vanishing gradients over many time steps, the rKL-LD approach uses the log-derivative trick. To manage the inherent variance of this estimator, a control variate (baseline) is incorporated, ensuring stable gradient updates.
2. Learnable Diffusion Coefficients
While most models utilize a fixed noise schedule ($\sigma_t$), the proposed framework treats $\sigma_t$ as a learnable parameter. This allows the model to dynamically balance exploration and exploitation. By adding more noise when searching for modes and reducing it during refinement, the sampler becomes significantly more efficient. Crucially, this learnable noise is only stable when paired with the rKL-LD objective; the LV loss typically becomes more unstable when $\sigma_t$ is not fixed.
Experimental Evaluation
The proposed method was evaluated against standard benchmarks to test its robustness in high-dimensional and multimodal settings.
- Bayesian Inference: Tasks included the Seeds (26d), Sonar (61d), and German Credit (25d) datasets. Most notably, the model was tested on Log-Gaussian Cox Processes (LGCP), a 1600-dimensional task.
- Synthetic Targets: To test mode-seeking capabilities, the authors used Gaussian Mixture Models (GMM-40), Mixtures of Student’s t-distributions, and the anisotropic "Funnel" distribution.
Key Results
- Stability: In the LGCP and Brownian tasks, the LV loss frequently failed to converge or diverged entirely. In contrast, rKL-LD remained stable across all initializations.
- Performance: rKL-LD consistently achieved higher Evidence Lower Bound (ELBO) scores than both LV and rKL-R, particularly in high-dimensional spaces.
- Hyperparameter Sensitivity: The rKL-LD objective proved to be less sensitive to the initial noise levels and learning rates, reducing the need for extensive grid searches.
Discussion and Insights
A critical finding of this work is the "Equivalence Trap." While LV and rKL-LD yield identical gradients when the forward process is fixed, this equivalence vanishes the moment the forward process or noise levels are learned. This explains why previous attempts to optimize diffusion bridges with LV loss often met with inconsistent results.
By ensuring theoretical consistency through the DPI-compliant rKL-LD objective, researchers can now leverage the full potential of diffusion bridges, including learnable noise schedules that adapt to the geometry of the target distribution.
Limitations and Future Work
Despite its stability, rKL-LD is not a complete solution for mode collapse in extremely complex distributions. If learning rates are poorly chosen, the model may still focus on a subset of the target modes. Future research may explore combining rKL-LD with off-policy buffers or MCMC-based resampling to further enhance mode discovery in high-dimensional landscapes.
Summary updated