Abstract
Flow-GAN is a generative model that integrates normalizing flows into a Generative Adversarial Network (GAN) framework, enabling exact log-likelihood computation for the first time in an adversarial setting. This architecture reveals a significant "likelihood gap" in standard GANs, where high visual quality often correlates with poor statistical fit. By employing a hybrid objective that combines maximum likelihood estimation (MLE) and adversarial training (ADV), Flow-GAN bridges this gap, achieving both high sample realism and superior density estimation on standard benchmarks.
Introduction
Generative modeling has long been divided into two primary philosophies. Likelihood-based models (such as VAEs or Normalizing Flows) minimize the distance between the model and the data distribution, ensuring broad "mode-covering" behavior but often resulting in blurry samples. Conversely, Adversarial models (GANs) utilize a discriminator to drive the generator toward high-quality, "mode-seeking" realism, but they lack an explicit probability density function $p(x)$.
Because standard GANs cannot calculate the exact likelihood of a data point, researchers have historically relied on ad-hoc metrics like the Inception Score or unreliable approximations like Kernel Density Estimation (KDE). Flow-GAN addresses this by providing a principled, quantitative framework to evaluate how well GANs actually model the underlying data distribution.
Methodology
The core innovation of Flow-GAN is replacing the standard neural network generator with a Normalizing Flow (e.g., NICE or Real-NVP architectures).
- The Invertibility Trick: Unlike standard generators, a normalizing flow consists of a sequence of invertible transformations. This allows any generated image $x$ to be mathematically inverted back to its latent noise vector $z$.
- Exact Likelihood: Due to this invertibility and differentiability, the change-of-variables formula can be used to calculate the exact probability density $p(x)$ of any data point.
- Training Objectives: With an explicit density available, the model can be trained via three distinct regimes: pure Maximum Likelihood Estimation (MLE), pure Adversarial training (ADV), or a Hybrid objective that balances both realism and statistical fit.
Key Insights: The Likelihood Gap
The authors discovered a massive "likelihood gap": models trained purely with adversarial objectives (ADV) achieve log-likelihoods orders of magnitude worse than MLE models. This occurs because adversarial training causes the generator's Jacobian matrix to "squish" the latent space into a thin manifold in the data space. While this produces sharp images, it leads to a form of mode collapse where the model assigns near-zero probability to real data points not exactly on that manifold.
Furthermore, the paper demonstrates that common proxies for GAN likelihood, such as Annealed Importance Sampling (AIS) and KDE, are often wildly inaccurate and can incorrectly rank model performance compared to the ground-truth exact likelihood.
Experimental Results
The models were evaluated on the MNIST and CIFAR-10 datasets, showing that the hybrid approach acts as an effective regularizer:
- MNIST: The Hybrid model achieved a superior MODE score of 9.37, outperforming both pure ADV (9.24) and MLE (7.42) while maintaining a test negative log-likelihood (NLL) comparable to MLE models.
- CIFAR-10: While pure ADV achieved the highest Inception Score (5.76), it suffered from a poor test NLL (8.53 bits/dim). The Hybrid model provided a "best of both worlds" result, significantly improving the likelihood (4.21 bits/dim) while maintaining a respectable Inception Score (3.90).
Qualitatively, MLE samples appeared noisy, while ADV samples were sharp but lacked diversity. Hybrid samples retained the sharpness of ADV while covering the data distribution more broadly.
Conclusion and Future Work
Flow-GAN successfully bridges the gap between likelihood-based and adversarial modeling. However, normalizing flows require the latent space $z$ to have the same dimensionality as the data $x$, which can be computationally expensive. Future research may explore Flow-GANs in fields like Reinforcement Learning, where reliable density estimates are crucial for count-based exploration in complex environments.
Summary updated