Tighter Variational Representations of f-Divergences via Restriction to Probability Measures

Avraham Ruderman, Mark D. Reid, Dario García-García, James PettersonICML 2012

Measuring the difference between probability distributions is a foundational task in machine learning. This paper offers a mathematical "tightening" of how we represent and estimate these differences from finite data samples. By incorporating the simple constraint that probability measures must sum to one, the authors derive a more accurate way to calculate $f$-divergences, leading to a new estimator that significantly reduces bias and outperforms previous state-of-the-art variational methods.

The Problem with "Loose" Divergence Estimates

In machine learning, we often need to measure the discrepancy between two probability distributions, $P$ and $Q$, using a family of metrics called $f$-divergences (which includes the well-known Kullback-Leibler, or KL, divergence). Because we rarely know the true underlying distributions and only have access to finite samples, we rely on variational representations. These turn the divergence calculation into an optimization problem: finding a function that maximizes a specific objective.

However, existing variational forms—such as the popular NWJ estimator—are mathematically "loose." They treat $P$ and $Q$ as general measures rather than strict probability distributions that must integrate to 1. This lack of constraint leads to estimators that systematically underestimate the true divergence. This underestimation worsens as the distributions become more dissimilar or as data dimensionality increases.

Methods: The Restriction Trick

The paper’s core contribution is a mathematical refinement of the convex dual used to represent $f$-divergences.

  1. The Restriction Trick: The authors show that by restricting the dual space specifically to probability distributions, they can derive a lower bound that is guaranteed to be "tighter" (closer to the true value) than the unrestricted version.
Geometric intuition of the tighter restricted lower bound.
  1. RKHS Estimator: They apply this tighter bound to derive a new estimator using Reproducing Kernel Hilbert Spaces (RKHS). This allows the method to handle complex, high-dimensional data by mapping it into a high-dimensional feature space.
  2. Dual Optimization Program: They derive a closed-form dual program for this estimator. Interestingly, the resulting objective function acts as a trade-off between two terms:
  3. An empirical estimate of the $f$-divergence.
  4. A "data matching" term that penalizes the discrepancy between the means of the features.
  5. MMD Connection: The authors prove that their "data matching" term is equivalent to the squared Maximum Mean Discrepancy (MMD). This provides a novel theoretical bridge between variational divergence estimation and MMD-based homogeneity testing, showing that RKHS regularization is physically dual to matching the empirical moments of the data.

Experimental Results

The authors evaluated their method using synthetic datasets where the "ground truth" divergence could be calculated analytically. They used various pairings of 1-D and 10-D Beta distributions to simulate different shapes, levels of overlap, and dimensionalities, typically using $n=100$ samples.

Estimates and MSE for various Beta distribution pairings.
  • Lower Mean Squared Error (MSE): In head-to-head comparisons, the proposed "Restricted" estimator consistently achieved lower MSE than the standard NWJ estimator.
  • Performance at Scale: The improvement was most pronounced when the true KL divergence was large (e.g., $> 1.0$). In these cases, the old NWJ method fell significantly short, while the new method remained much closer to the truth.
  • Stability in High Dimensions: In 10-D experiments, nearest-neighbor-based estimators (like WKV) often wildly overestimated the divergence due to the "curse of dimensionality." The authors' variational approach remained stable and more reliable, even if it still exhibited a slight tendency to underestimate.

Key Insights and Limitations

The fundamental takeaway is that constraints are features. The simple observation that "probabilities must sum to 1" isn't just a formal detail; enforcing it mathematically changes the geometry of the optimization problem, leading to a strictly better lower bound and directly reducing systematic bias.

However, the method does have limitations:

  • Still a Lower Bound: While tighter, the method is still a variational lower bound. It will still underestimate the true divergence, especially with very small sample sizes or extremely complex distributions.
  • Computational Complexity: The method requires solving a non-linear convex optimization problem, which may be slower than simple nearest-neighbor heuristics for very large datasets.

Future work suggested by the authors includes extending this "restriction" approach to other types of divergences (like $\alpha$-divergences) and exploring its use in hypothesis testing and parameter estimation for complex modalities like audio and image data.

Summary updated

BibTeX
@inproceedings{ruderman2012tighter,
  author = {Avraham Ruderman and Mark D. Reid and Dario García-García and James Petterson},
  title = {{Tighter Variational Representations of f-Divergences via Restriction to Probability Measures}},
  booktitle = {International Conference on Machine Learning},
  year = {2012},
}
Figure