The change-of-measure inequality #
For probability measures μ and ν with finite Kullback–Leibler divergence and a function f
integrable under μ with exp ∘ f integrable under ν,
∫ f ∂μ ≤ KL(μ ‖ ν) + log ∫ exp f ∂ν,
the divergence in nats. This is the easy half of the Donsker–Varadhan variational formula, and
the change-of-measure step of PAC-Bayes bounds [McAllester1999] [ShalevShwartzBenDavid2014,
Section 31.1, inequality (31.2)]. The proof is Gibbs' inequality for the exponentially tilted
measure ν.tilted f, through Mathlib's integral_llr_tilted_right; the source derives it from
Jensen's inequality for discrete distributions, and the measure form covers that case.
For nonnegative f, finiteness of ∫ exp f ∂ν already makes f integrable under μ, by the
inequality for the truncations min f n and monotone convergence; this applies the inequality to
unbounded functions, such as the binary relative entropy in the PAC-Bayes-kl bound.
The divergence of a point mass from a probability measure ν with an atom at a is
log (1 / ν {a}). This evaluates the change-of-measure bound at a point mass, which turns a
PAC-Bayes bound into an Occam bound.
Main results #
Cslib.Probability.integral_le_toReal_klDiv_add_log_integral_exp: the change-of-measure inequality.Cslib.Probability.integrable_of_lintegral_exp_ne_top: integrability of nonnegativefwith∫ exp f ∂ν < ∞.Cslib.Probability.klDiv_dirac_ne_top,Cslib.Probability.toReal_klDiv_dirac: the divergence of a point mass.
References #
- [M. D. Donsker, S. R. S. Varadhan, Asymptotic evaluation of certain Markov process expectations for large time, IV][DonskerVaradhan1983]
- [D. A. McAllester, PAC-Bayesian model averaging][McAllester1999]
- [S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms][ShalevShwartzBenDavid2014]
The change-of-measure inequality (Donsker–Varadhan): for probability measures with
klDiv μ ν ≠ ∞, ∫ f ∂μ ≤ KL(μ ‖ ν) + log ∫ exp f ∂ν, in nats.
A nonnegative function whose exponential has finite ν-integral is μ-integrable whenever
KL(μ ‖ ν) < ∞: by change of measure, its truncations at level n have μ-integrals at most
KL(μ ‖ ν) + log ∫ exp f ∂ν.
The divergence of a point mass at an atom of ν is finite.
The divergence of a point mass at an atom a of ν is log (1 / ν {a}), in nats.