Abstract
Density Ratio Estimation (DRE) is a fundamental task in machine learning, yet it remains challenging when distributions have non-overlapping supports or complex, multi-modal geometries. This paper, presented at ICML 2025, introduces $D^3RE$, a framework that leverages Dequantified Diffusion-Schrödinger Bridges to estimate density ratios with unprecedented stability and accuracy. By integrating Gaussian dequantization and Optimal Transport (OT) into a diffusion-based bridge, the authors overcome the numerical instabilities and "exploding gradients" that typically plague continuous-time DRE models.
Introduction
Calculating the ratio $r(x) = q_1(x)/q_0(x)$ is essential for applications ranging from mutual information estimation to generative modeling. However, traditional DRE methods often struggle with two primary obstacles: the Support-Chasm, where non-overlapping distributions lead to undefined or infinite ratios, and the Density-Chasm, where complex multi-modal distributions make the path between $q_0$ and $q_1$ difficult to learn.
While recent advancements like DRE-$\infty$ have attempted to bridge these gaps using continuous-time interpolants, they often suffer from divergent time scores at the boundaries ($t=0$ and $t=1$). The $D^3RE$ framework addresses these limitations by mollifying the boundary distributions and optimizing the transport path between them.
The $D^3RE$ Framework
The authors propose three synergistic innovations to create a more robust density ratio estimator:
1. Diffusion Bridge Interpolant (DBI)
Unlike deterministic interpolants that move samples along straight lines, the Diffusion Bridge Interpolant (DBI) introduces stochasticity via a Brownian bridge. This stochastic nature "smears" the trajectory, ensuring that intermediate distributions maintain wider support and better overlap. This effectively bridges the support-chasm by providing a continuous, well-defined path even between disjoint distributions.
2. Gaussian Dequantization (GD)
A critical theoretical contribution of this work is the identification of the "boundary divergence" problem. The authors prove (Theorem 3.4) that standard interpolants must diverge as they approach the target data. To counteract this, they introduce Gaussian Dequantization—adding a controlled amount of Gaussian noise to the boundary samples. This mollification ensures that the scores (gradients) remain bounded and numerically stable throughout the training process, a claim supported by Corollary 3.8.
3. Optimal Transport Rearrangement (OTR)
To improve efficiency, the framework employs Optimal Transport Rearrangement. By using the Sinkhorn algorithm to pair samples from $q_0$ and $q_1$ in a way that minimizes transport cost, the bridge is transformed into a Schrödinger Bridge. This represents the most efficient path between distributions, allowing the model to achieve high accuracy with fewer function evaluations (NFE).
The combination of these techniques results in the Dequantified Schrödinger Bridge Interpolant (DSBI), which is stable, computationally efficient, and capable of covering the entire distribution space.
Experimental Results
The $D^3RE$ framework was validated across synthetic and high-dimensional real-world datasets:
- 2D Synthetic Benchmarks: In tests on complex distributions like the "Swiss Roll," "Checkerboard," and "2 Spirals," $D^3RE$ was the only method capable of perfectly recovering intricate, discontinuous patterns. Other methods frequently produced blurred or distorted results in regions with sharp density transitions.
- Energy-Based Modeling (MNIST): The model was used to estimate the density of the MNIST digit manifold relative to various noise distributions. The DSBI variant achieved a state-of-the-art 1.293 Bits-Per-Dimension (BPD) with Gaussian noise, significantly outperforming DRE-$\infty$ (1.33) and TRE (1.39).
- Mutual Information (MI) Estimation: In high-dimensional settings ($d=120$), $D^3RE$ demonstrated superior convergence and stability compared to existing baselines, maintaining accuracy where other models fluctuated or failed to converge.
Conclusion
$D^3RE$ represents a significant advancement in Density Ratio Estimation by combining the theoretical rigor of Optimal Transport with the practical flexibility of Diffusion Models. By solving the boundary divergence problem through dequantization and optimizing the transport path, the authors provide a framework that is both numerically stable and highly accurate. Future work may focus on adaptive solvers to further reduce computational overhead and the exploration of more expressive interpolants for even higher-dimensional manifolds.
Summary updated