Variational f-divergence Minimization

Mingtian Zhang, Thomas Bird, Raza Habib, Tianlin Xu, David Barber · OpenReview

Abstract

Probabilistic models are often trained by maximum likelihood, which corresponds to minimizing a specific f-divergence between the model and data distribution. In light of recent successes in training Generative Adversarial Networks, alternative non-likelihood training criteria have been proposed. Whilst not necessarily statistically efficient, these alternatives may better match user requirements such as sharp image generation. A general variational method for training probabilistic latent variable models using maximum likelihood is well established; however, how to train latent variable models using other f-divergences is comparatively unknown. We discuss a variational approach that, when combined with the recently introduced Spread Divergence, can be applied to train a large class of latent variable models using any f-divergence.

Introduction

In machine learning, probabilistic models are traditionally trained using Maximum Likelihood Estimation (MLE), which is mathematically equivalent to minimizing the forward Kullback-Leibler (KL) divergence. While MLE possesses strong theoretical properties, it is inherently "mean-matching." When a model lacks the capacity to capture the full complexity of a dataset, it tends to spread its probability mass to cover all data points, often resulting in blurry generated samples.

Alternative measures, such as the reverse KL divergence, exhibit "mode-seeking" behavior. These measures encourage models to focus on specific modes of the data distribution, leading to sharper, higher-fidelity samples. However, training latent variable models (like Variational Autoencoders) with divergences other than forward KL is computationally challenging. Current alternatives, such as Generative Adversarial Networks (GANs), utilize a lower bound on these divergences, resulting in an unstable minimax optimization game. This paper proposes a stable, non-adversarial alternative: minimizing a variational upper bound on any $f$-divergence.

Methodology

The proposed framework relies on two primary components to enable stable training across various divergence measures:

  1. The Auxiliary Upper Bound: Leveraging the data processing inequality, the authors demonstrate that the divergence between two distributions $p(x)$ and $q(x)$ is bounded by the divergence between their joint distributions $p(x, z)$ and $q(x, z)$. This allows for the creation of a variational upper bound that can be minimized through standard downward optimization, avoiding the instabilities of the minimax games found in GANs.
Comparison between the proposed auxiliary f-divergence upper bound (a) and the standard Fenchel-conjugate lower bound used in GANs (b).
  1. Spread Divergence: To address the issue of disjoint supports in high-dimensional spaces—where data and model distributions do not overlap, leading to undefined divergences—the authors employ "Spread Divergence." By adding a small amount of noise to both distributions, they ensure sufficient overlap for stable gradient-based optimization while still allowing the model to learn the underlying data structure.

To scale this approach, the authors developed a specialized gradient estimator for reverse KL divergence and utilized Principal Component Analysis (PCA) to accelerate computations in high-dimensional image spaces like CelebA.

Experimental Results

The method was evaluated on three benchmarks: a toy mixture of Gaussians, MNIST, and CelebA.

Mode Capture and Fidelity

In the toy problem, the choice of divergence significantly impacted the model's behavior. While forward KL attempted to cover the entire space between modes, the reverse KL objective successfully captured individual modes with high precision. This "mode-seeking" property translates to visibly sharper images on complex datasets like MNIST and CelebA compared to standard MLE training.

Visual comparison of samples and latent space distributions for Forward KL, JS divergence, and Reverse KL on a toy dataset.

Stability and Convergence

Unlike $f$-GANs, which minimize a lower bound, the proposed upper bound approach demonstrated superior convergence properties. Training was significantly more stable and less sensitive to hyperparameter tuning. Empirical results showed that the upper bound converged faster and reached lower true divergence values than adversarial counterparts, characterized by a smooth, consistently decreasing loss curve.

Discussion and Conclusion

This work provides a principled way to move beyond maximum likelihood training for latent variable models. By minimizing an upper bound rather than a lower bound, researchers can achieve the stability of VAE-style training while gaining the flexibility to choose divergence measures that prioritize sample sharpness or mode coverage.

While the approach introduces some computational overhead—specifically in the gradient estimation for reverse KL—techniques like PCA-based dimensionality reduction make it feasible for high-dimensional data. Future work may explore more efficient neighbor-search algorithms to further scale these variational $f$-divergence techniques to even larger datasets.

Summary updated

BibTeX
@misc{zhang2019variational,
  author = {Mingtian Zhang and Thomas Bird and Raza Habib and Tianlin Xu and David Barber},
  title = {{Variational f-divergence Minimization}},
  year = {2019},
  eprint = {1907.11891},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.11891},
}
Figure