LED: Latent Variable-based Estimation of Density

Omri Ben-Dov, Pravir Singh Gupta, Victoria Fernández Abrevaya, Michael J. Black, Partha GhosharXiv 2022 · DOI

Abstract

Generative modeling has traditionally been divided between implicit models like Generative Adversarial Networks (GANs), which offer high-quality sampling but lack explicit density functions, and prescribed models like Normalizing Flows, which provide exact likelihoods but require restrictive invertible architectures. We present LED (Latent Variable-based Estimation of Density), a novel framework that bridges this gap. By relaxing the bijectivity requirements of traditional flows and incorporating an entropy-regularized adversarial objective derived from Maximum Likelihood Estimation (MLE), LED achieves high-fidelity image generation alongside precise density estimation.

Introduction

The landscape of generative AI is characterized by a trade-off between sampling quality and density tractability. GANs produce visually impressive results but operate as "black boxes" regarding probability, making them unsuitable for tasks like anomaly detection or model comparison. Conversely, Normalizing Flows provide exact density estimation but are constrained by invertible, volume-preserving architectures that often struggle to scale to high-dimensional data.

LED addresses this dichotomy by proposing a model that retains the flexible, high-quality sampling of GANs while providing the explicit density functions characteristic of flow-based models.

Methodology

The LED framework is built upon a mathematical synthesis of MLE and adversarial training.

Entropy-Regularized Objective

The authors demonstrate that maximizing the log-likelihood of a discriminator network—conditioned on it representing a valid density—results in an objective function similar to a Wasserstein GAN. Crucially, this derivation introduces an explicit entropy term for the generator. This term naturally encourages data diversity, providing a principled solution to the common "mode collapse" issue in GAN training.

Non-Invertible Flow Architectures

Unlike traditional flows that require every layer to be bijective and dimension-preserving, LED utilizes a "flow-based" generator capable of up-sampling and down-sampling. While this prevents calculating the density of arbitrary external points directly through the generator, it allows for the exact calculation of the density for any image the model generates.

Discriminator as Density Estimator

To handle real-world data, the discriminator is designed to act as a density estimator. It employs a "perpendicular component" technique, projecting input data into a subspace and penalizing components that deviate from the training data manifold. This effectively assigns low probability to out-of-distribution noise.

Experimental Results

LED was evaluated on synthetic 2D distributions and standard image datasets including MNIST and CelebA.

Comparison of generative models on synthetic 2D datasets (Ring and Grid of Gaussians). LED (f, l) demonstrates superior mode capture compared to GAN, ALI, Unrolled GAN, and VEEGAN.

Synthetic 2D Data

On the "Ring of Gaussians" (8 modes), LED achieved 63.5% High-Quality samples, significantly outperforming VEEGAN (52.9%). As shown in the figure above, LED (f) captures all modes of the ring distribution with high precision, whereas models like GAN (b) and ALI (c) fail to represent the full distribution accurately. Similarly, for the 25-mode grid, LED (l) exhibits much higher fidelity than the baselines.

Image Generation and Likelihood

On MNIST and CelebA, LED produced images with FID scores comparable to DCGAN (e.g., 4.19 on MNIST). Furthermore, LED outperformed the state-of-the-art flow model (GLOW) in bits-per-pixel (b/p) metrics on MNIST, indicating a more efficient capture of the underlying data distribution. Qualitative analysis revealed that images assigned higher probabilities by the model were consistently more realistic and "cleaner" than low-probability samples.

Discussion and Key Insights

A core theoretical contribution of LED is addressing the "manifold lifting" problem. Since data often resides on low-dimensional manifolds within high-dimensional spaces, standard density functions can become degenerate. LED utilizes noise injection and specific architectural constraints to "lift" the dimensionality, ensuring the density function remains learnable via gradient descent. By decoupling density estimation—letting the discriminator handle real data and the generator handle generated data—LED bypasses the memory-intensive bijectivity constraints of standard flows.

Limitations and Future Work

While highly effective on the 8-mode ring, LED initially struggled with the 25-mode grid, suggesting that generator depth is critical for capturing highly complex distributions. Future improvements could involve replacing nearest-neighbor operations with bilinear or bicubic interpolation to enhance image smoothness and exploring more expressive generator architectures.

Conclusion

LED offers a promising path for generative modeling, combining the statistical rigor of density-based models with the visual fidelity of adversarial networks. It provides a robust framework for researchers requiring both high-quality samples and tractable likelihoods.

Summary updated

BibTeX
@misc{bendov2022led,
  author = {Omri Ben-Dov and Pravir Singh Gupta and Victoria Fernández Abrevaya and Michael J. Black and Partha Ghosh},
  title = {{LED: Latent Variable-based Estimation of Density}},
  year = {2022},
  eprint = {2206.11563},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.11563},
}
Figure