Donsker–Varadhan Variational Formula
- Donsker–Varadhan variational formula is a core result that provides a dual representation of KL divergence, unifying concepts in probability, large deviations, and spectral theory.
- The formula extends to applications in statistical mechanics, risk-sensitive control, and modern machine learning, with concrete examples in reinforcement learning and density estimation.
- Recent advances integrate the DV framework into neural network divergence estimation and robust variational inference, highlighting its utility in high-dimensional and complex stochastic systems.
The Donsker–Varadhan variational formula is a foundational result in probability theory, statistical mechanics, large deviations, spectral theory, risk-sensitive control, and modern machine learning. It provides a dual representation of quantities such as the Kullback–Leibler divergence, principal eigenvalues of positive operators, and large deviation rate functions for empirical measures of Markov processes. The formula and its extensions unify concepts from convex analysis, information theory, stochastic control, and statistical inference, with modern applications ranging from reinforcement learning policy optimization to neural network-based divergence estimation.
1. Classical Variational Principle
The classical Donsker–Varadhan (DV) variational formula gives a dual representation of the Kullback–Leibler divergence (relative entropy) between two probability measures. For probability measures and on a measurable space with , the DV formula is: The supremum is attained at . This representation applies to general measurable spaces, with the admissible test functions extendable to bounded continuous or Lipschitz functions where appropriate. For Markov processes, the associated rate function for empirical measures admits an equivalent formula using the generator : where the infimum is over strictly positive functions in the domain of (Birrell et al., 2020, Dupuis et al., 2013).
2. Extensions: Rényi and Generalized Divergences
The DV formula generalizes to the Rényi α-divergences. For , the order-0 Rényi divergence 1 admits the following variational form: 2 for any function class 3 containing the bounded measurable functions. At optimality, 4 in the absolutely continuous case, and in the limit 5, the formula recovers the classical DV variational representation for Kullback–Leibler divergence (Birrell et al., 2020).
A maxitive analogue of the Donsker–Varadhan formula exists in possibility theory, substituting integrals with suprema and KL divergence with the max-relative entropy, formalizing a max-plus (tropical) duality essential for possibilistic variational inference (Singh et al., 26 Nov 2025).
3. Spectral and Large Deviations Theory
The DV formula is the cornerstone for analyzing large deviations of empirical measures of Markov processes:
- Diffusions: For a reversible diffusion 6 with infinitesimal generator
7
the rate function for occupation-time large deviations is
8
This formula connects to the Freidlin–Wentzell action in small noise limits (Bertini et al., 2022).
- Jump Markov processes: For pure jump Markov processes on a compact Polish space with generator
9
and reversible invariant measure 0, the explicit DV rate function is:
1
equivalently expressed via the Dirichlet form 2 for 3 (Dupuis et al., 2013).
- Spectral theory: The DV formula arises in characterizing principal eigenvalues of positive (linear or nonlinear) operators via
4
crucial for risk-sensitive control and spectral theory of elliptic operators (Arapostathis et al., 2013, Anantharam et al., 2015, Arapostathis et al., 2019).
4. Applications in Modern Machine Learning
The Donsker–Varadhan variational principle underlies numerous algorithms and estimator designs in contemporary machine learning:
- Reinforcement learning: The DV formula expresses the equivalence between entropy-regularized policy gradients and soft Q-learning, with the optimal policy taking the Gibbs (Boltzmann) form:
5
The Bellman operator incorporates a log-sum-exp (softmax) and the Legendre transform with respect to entropy regularization (Richemond et al., 2017).
- Density estimation by deep networks: Plugging deep neural networks into the DV representation enables principled estimation of data densities. For example, with 6 empirical and 7 uniform, training 8 to maximize
9
produces 0 approximating 1-density up to an additive constant. This approach is competitive for high-dimensional density estimation, outperforms kernel density estimation, and improves downstream tasks such as anomaly detection and classification (Park et al., 2021).
- Variational estimation of Rényi divergences: The Rényi-DV formula provides the foundation for statistically consistent neural network estimators of 2. Universal approximation of the test function by neural nets is sufficient for consistency, and rates scale efficiently with sample size even in thousands of dimensions (Birrell et al., 2020).
- Possibilistic inference: Replacement of integrals by max operations and KL by max-entropy allows application in imprecise probability and robust inference (Singh et al., 26 Nov 2025).
5. Risk-Sensitive Control, Dynamic Programming, and Collatz–Wielandt Duality
The variational structure of the DV formula generalizes to the principal eigenvalue of controlled positive operators, yielding risk-sensitive reward rates: 3 where 4 runs over ergodic occupation measures induced by admissible policies 5, and 6 is the Kullback–Leibler divergence; 7 denotes per-stage reward (Arapostathis et al., 2019, Anantharam et al., 2015).
The abstract Collatz–Wielandt duality, extended to nonlinear and controlled contexts, provides the min-max structure underlying the DV formula and its generalizations (Arapostathis et al., 2013).
6. Further Structural and Computational Developments
The DV variational principle also:
- Underlies large deviation analysis for Markov processes with degenerate rates (e.g., absorbing states) and self-interacting pure jump processes, yielding explicit and non-convex large deviation rate functions in the latter case (Basile et al., 2013, Budhiraja et al., 16 Oct 2025).
- Admits max-plus (tropical) analogues for possibility theory, crucial for robust variational inference frameworks (Singh et al., 26 Nov 2025).
- Provides lower bounds for principal eigenvalues of elliptic operators in terms of exit times, offering both classical moment-based and quantile-based (probabilistic) bounds with implications for metastability and Monte Carlo spectral estimation (Lu et al., 2016).
- Facilitates explicit computation in Piecewise Deterministic Markov Processes (PDMP) such as the zig-zag sampler, where the DV rate function quantifies empirical measure convergence and elucidates the effect of refreshment rates (Bierkens et al., 2019).
7. Summary Table: Donsker–Varadhan Formula—Contexts and Variational Forms
| Context | Variational Form | Reference |
|---|---|---|
| KL divergence (8) | 9 | (Birrell et al., 2020, Park et al., 2021) |
| Rényi divergence | 0 | (Birrell et al., 2020) |
| Empirical measure LDP (diffusion) | 1 | (Dupuis et al., 2013, Bertini et al., 2022) |
| Controlled Markov chain (reward rate) | 2 | (Arapostathis et al., 2019, Anantharam et al., 2015) |
| Possibility theory (maxitive) | 3 | (Singh et al., 26 Nov 2025) |
| Zig-zag process PDMP | 4, explicit minimization in 5 | (Bierkens et al., 2019) |
The DV variational framework thus serves as a unifying principle across stochastic processes, divergence estimation, spectral theory, control, and contemporary machine learning, underpinning both theoretical advances and practical algorithmic developments.