A Variational Formula for Rényi Divergences

Jeremiah Birrell, Paul Dupuis, Markos A. Katsoulakis, Luc Rey-Bellet, Jie Wang · OpenReview

Abstract

We derive a new variational formula for the Rényi family of divergences, $R_\alpha(Q\|P)$, between probability measures $Q$ and $P$. Our result generalizes the classical Donsker-Varadhan variational formula for the Kullback-Leibler divergence. We further show that this Rényi variational formula holds over a range of function spaces; this leads to a formula for the optimizer under very weak assumptions and is also key in our development of a consistency theory for Rényi divergence estimators. By applying this theory to neural-network estimators, we show that if a neural network family satisfies one of several strengthened versions of the universal approximation property then the corresponding Rényi divergence estimator is consistent. In contrast to density-estimator based methods, our estimators involve only expectations under $Q$ and $P$ and hence are more effective in high dimensional systems. We illustrate this via several numerical examples of neural network estimation in systems of up to 5000 dimensions.

Introduction

In machine learning and information theory, measuring the discrepancy between two probability distributions, $Q$ and $P$, is a fundamental task. While the Kullback-Leibler (KL) divergence is the standard metric, it faces two significant challenges: instability in the presence of rare events and the "curse of dimensionality" when using traditional density-based estimation methods. Rényi divergences $R_\alpha(Q\|P)$ offer a more flexible alternative, where the parameter $\alpha$ allows practitioners to tune the measure's sensitivity to the tails of the distributions. This paper introduces a novel variational formula for the Rényi family, providing a mathematical bridge that enables neural networks to estimate these divergences in extremely high-dimensional spaces (up to 5,000 dimensions).

Variational Representation and Neural Estimators

The core contribution of this work is a new variational representation for Rényi divergences that generalizes the classical Donsker-Varadhan formula. This formula expresses the divergence as a supremum over a space of functions. By parameterizing this function space with a neural network, the estimation problem is transformed into an optimization task that requires only samples from $Q$ and $P$.

Convergence of the neural network estimator across different values of $\alpha$ over iterations.

Because the formula involves calculating expectations rather than densities, it bypasses the primary bottleneck of high-dimensional estimation. The authors establish a consistency theory for these estimators, proving that as data volume and network capacity increase, the estimate converges to the true value. Notably, the formula holds for unbounded function spaces, justifying the use of ReLU activation functions in modern neural architectures.

Experimental Results and Scalability

The neural network estimator was validated on several high-dimensional synthetic systems, including 4-dimensional Gaussians mapped into 5,000-dimensional spaces using non-linear embeddings. The results demonstrate that the method successfully overcomes the curse of dimensionality where traditional non-parametric density estimators fail.

Relative error decay as a function of the number of samples, illustrating the power-law convergence of the estimator.

Key empirical findings include:

  • High-Dimensional Performance: The estimator successfully converged in systems of up to 5,000 dimensions.
  • Sample Efficiency: The relative error follows a power-law decay (approximately $N^{-1.4}$) relative to the number of samples $N$.
  • Stability: In scenarios where KL-divergence estimation fails due to high variance, Rényi-based estimation with $\alpha < 1$ remains stable and accurate.

Conclusion

By shifting the focus from density estimation to expectation-based variational optimization, this framework provides a robust tool for calculating divergences in high-dimensional systems. The ability to tune tail sensitivity via $\alpha$ offers a powerful mechanism for improving the stability of generative models and other distribution-matching tasks. Future work will explore systematic rules for optimal $\alpha$ selection and extend theoretical guarantees to a broader range of network architectures.

Summary updated

BibTeX
@article{birrell2020variational,
  author = {Jeremiah Birrell and Paul Dupuis and Markos A. Katsoulakis and Luc Rey-Bellet and Jie Wang},
  title = {{A Variational Formula for Rényi Divergences}},
  journal = {SIAM J. Math. Data Sci.},
  year = {2020},
}
Figure