NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

f-GAN: Training Generative Neural Samplers using Variational Divergence Minimization

Sebastian Nowozin, Botond Cseke, Ryota Tomioka

Introduction

Generative Adversarial Networks (GANs) have revolutionized the field of probabilistic generative modeling by framing the learning process as a minimax game between two neural networks: a generator and a discriminator. In its original formulation, this game was shown to minimize the Jensen-Shannon divergence between the model's generated distribution and the true data distribution.

This paper generalizes the GAN framework, demonstrating that generative models can be trained using any $f$-divergence—a broad family of statistical distance measures that includes the Kullback-Leibler (KL), Hellinger, and Pearson $\chi^2$ divergences. By introducing a framework called Variational Divergence Minimization (VDM), the authors provide a unified toolkit that allows practitioners to select specific statistical properties for their generative models, such as "mode-seeking" or "mean-seeking" behavior.

Variational Divergence Minimization

The core of the $f$-GAN framework lies in the use of Fenchel conjugates from convex analysis to estimate $f$-divergences. The authors prove that the standard GAN objective is a special case of a more general variational objective. By selecting different generator functions $f$ and their corresponding conjugates $f^*$, the objective function can be tailored to minimize a specific divergence.

Comparison of the variational functions $g_f(v)$ and the conjugate functions $-f^*(g_f(v))$ for various $f$-divergences.

Implementation and Optimization

One of the most practical aspects of this work is its architectural simplicity. Implementing a new divergence does not require a complete redesign of the network. Instead, it involves two straightforward changes:

  1. Variational Function: Adjusting the activation function on the final layer of the discriminator (e.g., using linear for KL or tanh for Total Variation).
  2. Loss Function: Updating the loss calculation based on the chosen $f$ and $f^*$.

Furthermore, the authors propose a single-step optimization method. While the original GAN paper suggested alternating updates between the discriminator and generator, the authors provide a local convergence proof for a method where both networks are updated simultaneously in a single back-propagation step, simplifying the training loop.

Experimental Results

The framework was evaluated across three distinct settings to test its theoretical foundations and scalability.

Toy Models and MNIST

Using a univariate mixture of Gaussians, the authors visualized how different divergences behave under model misspecification. As predicted by theory, the KL divergence exhibited "mean-seeking" behavior, attempting to cover the entire distribution, while the Reverse KL divergence was "mode-seeking," focusing on a single peak. On the MNIST dataset, quantitative evaluation using Kernel Density Estimation (KDE) showed that the KL-based $f$-GAN achieved a higher holdout log-likelihood (416 nats) than the standard Jensen-Shannon GAN (305 nats).

Large-Scale Image Generation

To demonstrate scalability, the authors trained Deep Convolutional GANs (DCGANs) on the LSUN "classroom" dataset. The results confirmed that the $f$-GAN framework can successfully utilize various divergences to produce high-quality, realistic images at scale.

Qualitative results on the LSUN classroom dataset using (a) GAN, (b) KL, and (c) Squared Hellinger divergences.

Discussion and Key Insights

The primary insight of this work is that the adversarial mechanism is not tied to a single objective but is a general tool for variational inference. The choice of $f$-divergence becomes particularly critical when models are misspecified—that is, when the neural network lacks the capacity to perfectly represent the true data distribution. In these common real-world scenarios, the divergence choice dictates the shape and characteristics of the learned approximation.

While the results are promising, the authors note that evaluating generative models remains challenging; KDE-based log-likelihoods on high-dimensional data like MNIST showed high variability. Future work may involve extending this framework to conditional GANs to better capture and represent uncertainty in discriminative tasks.

Summary updated

BibTeX
@inproceedings{nowozin2016f,
  author = {Sebastian Nowozin and Botond Cseke and Ryota Tomioka},
  title = {{f-GAN: Training Generative Neural Samplers using Variational Divergence Minimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=HkW5yFbOZB},
}
Figure