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

Variational Annealing of GANs: A Langevin Perspective

Chenyang Tao, Shuyang Dai, Liqun Chen, Ke Bai, Junya Chen, Chang Liu, Ruiyi Zhang, Georgiy V. Bobashev, Lawrence CarinICML 2019

Introduction

Generative Adversarial Networks (GANs) have revolutionized data synthesis, yet they remain notoriously brittle. Training instability and mode collapse—where the generator produces a limited variety of outputs, ignoring large parts of the target distribution—are persistent challenges. While researchers often add likelihood-based regularizers to the GAN objective to mitigate these issues, these solutions are typically heuristic rather than theoretically grounded.

Furthermore, standard GANs require a dataset of empirical samples to learn. They struggle when the target is an unnormalized distribution (a mathematical function where the relative shape of the density is known, but not the total area under the curve), a common scenario in Bayesian statistics and physics. This paper provides a rigorous theoretical bridge between GANs and Langevin diffusion processes, introducing Variational Annealing (VA) to stabilize training, prevent mode collapse, and enable GANs to learn from unnormalized probability distributions.

Methods: A Langevin Framework for GANs

The authors reframe GAN training through the lens of Langevin dynamics, a mathematical framework describing how particles diffuse and settle into a target distribution. They prove that the update rule for a specific type of GAN (Reverse-KL GAN) is mathematically equivalent to the Fokker-Planck equation, which governs the evolution of a Langevin diffusion process.

Building on this connection, they introduce several key methodological innovations:

  1. Variational Annealing (VA): The core proposal is to add a time-varying likelihood regularization term to the GAN objective. By adjusting a parameter (often conceptualized as an inverse temperature), the model can be controlled to either explore the entire space (mode-covering) or focus on high-probability regions (mode-seeking).
Effect of temperature parameter on distribution covering
  1. Score Function Estimation: To implement VA when the true likelihood is unknown, the authors utilize Denoising Autoencoders (DAEs) to estimate the "score function" (the gradient of the log-density) of the data.
  2. Unnormalized GAN (U-GAN): For cases where only an unnormalized density is available, they introduce a bridging measure using Masked Autoregressive Flows (MAF). This allows the GAN to bridge the gap between a simple noise distribution and a complex, unnormalized target.
  3. Dynamic Annealing Schemes: The authors test three strategies for changing the regularization parameter during training:
  4. PMA (Positive Monotonic): Gradually reducing a positive penalty.
  5. NMA (Negative Monotonic): Gradually reducing a negative penalty to encourage diversity.
  6. OA (Oscillatory Annealing): Cycling between positive and negative values to balance exploration and consolidation.

Key Insights

  • Negative Annealing Promotes Diversity: Counter-intuitively, the theory suggests that negative likelihood regularization acts like a "repulsive force." It pushes the generator to explore more diverse regions of the data space, directly combating mode collapse.
  • Oscillation is Key: The most effective strategy proved to be Oscillatory Annealing (OA). By swinging between positive and negative regularization, the model alternates between exploring new modes and consolidating the patterns it has already learned.
  • Amortized Sampling: U-GAN effectively turns a GAN into an "amortized sampler" for unnormalized distributions, providing a faster alternative to traditional Markov Chain Monte Carlo (MCMC) methods.

Empirical Results

The authors evaluated their methods across image synthesis, toy distributions, Bayesian inference, and reinforcement learning.

Toy Distributions: On 2D toy datasets (like the "Kidney" or "Banana" distributions), the models successfully demonstrated the ability to capture complex, multi-modal shapes using the estimated score functions.

Comparison of samplers on toy distributions

Image Synthesis: On the Cifar10 dataset, the Oscillatory Annealing (OA) scheme consistently achieved the best results. For example, RKL-GAN with OA reached an FID score of 28.9, significantly outperforming the baseline (36.5) and static annealing approaches. Qualitative results on CelebA showed that negative annealing helped the model maintain high sample diversity without sacrificing image quality.

Bayesian Inference & RL: In Bayesian Logistic Regression tasks (across eight UCI datasets), U-GAN produced Negative Log-Likelihood (NLL) results more consistent with ground-truth "gold standard" methods (like SGLD) than other variational methods. In Reinforcement Learning (the OpenAI Gym "Swimmer" task), replacing the standard sampler with U-GAN led to faster and more stable reward accumulation.

Limitations and Future Work

While powerful, the approach has limitations. Denoising Autoencoders (DAEs) provide a valid estimator for gradients but do not account for the normalizing constant of the distribution, which can be restrictive in certain statistical contexts. Additionally, using generative flows (like MAF) as a bridge in U-GAN adds architectural complexity and computational overhead compared to a vanilla GAN.

Future research directions include exploring alternative ways to estimate likelihoods and investigating how these annealing schedules might be automatically tuned during training rather than relying on pre-specified schedules.

Summary updated

BibTeX
@inproceedings{tao2019variational,
  author = {Chenyang Tao and Shuyang Dai and Liqun Chen and Ke Bai and Junya Chen and Chang Liu and Ruiyi Zhang and Georgiy V. Bobashev and Lawrence Carin},
  title = {{Variational Annealing of GANs: A Langevin Perspective}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=bHa0TAOSL6T},
}
Figure