Introduction
Density ratio estimation (DRE) is a fundamental task in machine learning, essential for generative modeling, domain adaptation, and mutual information estimation. While simple classification-based approaches struggle in high dimensions due to poor calibration and separation issues, "divide-and-conquer" methods like Telescoping Density Ratio Estimation (TRE) introduce intermediate "bridge" distributions to mitigate these problems. However, TRE's reliance on discrete bridges necessitates training multiple classifiers, leading to computational inefficiencies. This paper introduces DRE-\infty, a framework that extends the bridge concept to a continuous, infinite path, enabling more accurate and efficient density ratio estimation through the learning of "time scores."
Methodology
Instead of a finite sequence of distributions, DRE-\infty$ defines a smooth interpolation path $p_t(x)$ for $t \in [0, 1]$, where $p_0 = q$ and $p_1 = p$. The core innovation is the time score, defined as the derivative of the log-density with respect to time: $\frac{\partial}{\partial t} \log p_t(x)$.
The authors demonstrate that this time score can be learned directly from samples using a novel objective function, which they prove is equivalent to solving an infinite series of "infinitesimal classification" tasks. Once the time score model is trained, the log-density ratio is obtained by integrating the scores over the path using numerical ODE solvers. This approach replaces $T$ separate classifiers with a single time-conditioned neural network.
Experimental Results
The performance of DRE-\infty$ was evaluated across synthetic 2-D Gaussians, high-dimensional correlated Gaussians, and MNIST-based energy models.
In 2-D synthetic experiments, DRE-\infty$ achieved a Mean Squared Error (MSE) of 0.58, outperforming TRE with 9 bridges (0.63) and vastly exceeding the baseline classifier (952.8). In high-dimensional settings (up to 320 dimensions), DRE-\infty$ maintained accuracy where standard classifiers failed. Furthermore, on MNIST, the method produced superior log-likelihood estimates (e.g., 1.21 bpd with Copula interpolation) compared to both Noise Contrastive Estimation (NCE) and TRE.
Discussion and Conclusion
DRE-\infty$ provides a scalable and theoretically grounded alternative to discrete bridge methods. By leveraging the link between classification and score matching, it achieves higher accuracy with fewer function evaluations at test time. Future work will focus on optimizing the interpolation paths and weighting functions to further enhance stability and convergence when distributions are significantly distant.
Summary updated