Donsker–Varadhan variational formula and Gibbs posteriors #
Completes the variational duality of the Kullback–Leibler divergence built on
CslibFrontier.Probability.ChangeOfMeasure [DV83] [Cat07] [Alq24]:
- Exact excess-KL / tilted decomposition. For probability measures
μandνwithKL(μ ‖ ν) < ∞, an exponentially tilted (Gibbs) measureν.tilted fsatisfiesKL(μ ‖ ν.tilted f) = KL(μ ‖ ν) - ∫ f ∂μ + log ∫ exp f ∂ν. Atμ = ν.tilted fthis gives exact equality in the change-of-measure inequality:∫ f ∂(ν.tilted f) - KL(ν.tilted f ‖ ν) = log ∫ exp f ∂ν. - Donsker–Varadhan variational formula (both halves).
log_integral_exp_eq_sSup:log ∫ exp f ∂ν = sup_μ (∫ f ∂μ - KL(μ ‖ ν)), where the supremum ranges over probability measuresμwithKL(μ ‖ ν) < ∞andf ∈ L¹(μ), attained uniquely atμ = ν.tilted f.toReal_klDiv_eq_sSup: for arbitrary probability measuresμ, νwithKL(μ ‖ ν) < ∞,KL(μ ‖ ν) = sup_f (∫ f ∂μ - log ∫ exp f ∂ν), where the supremum ranges over bounded measurable functionsf : α → ℝ. The proof truncates the log-likelihood ratiollr μ νto[-n, n](setting-non{dμ/dν = 0}wherelog 0 = 0), then passes to the limit using dominated convergence andlog (1 + e⁻ⁿ) ≤ e⁻ⁿ.
- Unique Gibbs posterior minimizer. At inverse temperature
β > 0, for any measurable lossg : α → ℝwithexp (-β * g) ∈ L¹(ν), the Gibbs posteriorν.tilted (-β * g)uniquely minimizes the PAC-Bayes free-energy functionalμ ↦ ∫ g ∂μ + KL(μ ‖ ν) / β, with excess valueKL(μ ‖ ν.tilted (-β * g)) / β.
Main results #
Cslib.Probability.klDiv_tilted_right_ne_top,Cslib.Probability.toReal_klDiv_tilted_right: KL divergence against a tilted measure.Cslib.Probability.klDiv_tilted_self_ne_top,Cslib.Probability.toReal_klDiv_tilted_self: equality case of change of measure.Cslib.Probability.log_integral_exp_eq_sSup: Fenchel dual ofKL(· ‖ ν).Cslib.Probability.toReal_klDiv_eq_sSup: full Donsker–Varadhan variational formula.Cslib.Probability.freeEnergy_sub_eq_toReal_klDiv_tilted,Cslib.Probability.freeEnergy_tilted_le,Cslib.Probability.freeEnergy_eq_tilted_iff: unique optimality of the Gibbs posterior.
References #
Exact section and page locators below are unverified against the primary PDFs (pending an outside-fleet source check).
- M. D. Donsker, S. R. S. Varadhan, Asymptotic evaluation of certain Markov process expectations for large time, IV (locator unverified)
- O. Catoni, PAC-Bayesian Supervised Classification (locator unverified)
- P. Alquier, User-friendly Introduction to PAC-Bayes Bounds (locator unverified)
Tilted measure identities and equality case of change of measure #
If KL(μ ‖ ν) < ∞, f is μ-integrable, and exp ∘ f is ν-integrable, then
KL(μ ‖ ν.tilted f) < ∞.
Exact tilted KL decomposition: for probability measures with KL(μ ‖ ν) < ∞,
KL(μ ‖ ν.tilted f) = KL(μ ‖ ν) - ∫ f ∂μ + log ∫ exp f ∂ν.
The tilted probability measure ν.tilted f has finite KL divergence from ν whenever
exp ∘ f is ν-integrable and f is (ν.tilted f)-integrable.
Equality case of the change-of-measure inequality: the exponentially tilted measure
ν.tilted f satisfies KL(ν.tilted f ‖ ν) = ∫ f ∂(ν.tilted f) - log ∫ exp f ∂ν.
Donsker–Varadhan variational duality #
Dual variational principle for the log-moment generating function (Fenchel conjugate of
KL(· ‖ ν)): log ∫ exp f ∂ν = sup { ∫ f ∂μ - KL(μ ‖ ν) }, where the supremum runs over
probability measures μ with KL(μ ‖ ν) < ∞ and f ∈ L¹(μ), attained at μ = ν.tilted f.
Donsker–Varadhan variational formula for KL(μ ‖ ν) [DV83] (locator
unverified): for arbitrary probability measures μ, ν with KL(μ ‖ ν) < ∞,
KL(μ ‖ ν) = sup { ∫ f ∂μ - log ∫ exp f ∂ν }, taken over bounded measurable functions f : α → ℝ.
Gibbs posterior free-energy minimization #
Exact excess free-energy identity for the Gibbs posterior ν.tilted (fun x => -β * g x) at
inverse temperature β > 0:
(∫ g ∂μ + KL(μ ‖ ν) / β) - (-log ∫ exp (-β * g) ∂ν / β) = KL(μ ‖ ν.tilted (-β * g)) / β.
The Gibbs posterior ν.tilted (fun x => -β * g x) minimizes the KL-regularized loss
μ ↦ ∫ g ∂μ + KL(μ ‖ ν) / β over all probability measures with KL(μ ‖ ν) < ∞ and
g ∈ L¹(μ) [Cat07] [Alq24] (locators unverified).
Uniqueness of the Gibbs posterior minimizer: a probability measure μ with KL(μ ‖ ν) < ∞
achieves the minimum free energy -log ∫ exp (-β * g) ∂ν / β if and only if
μ = ν.tilted (fun x => -β * g x).