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

Harmonizing Maximum Likelihood with GANs for Multimodal Conditional Generation

Soochan Lee, Junsoo Ha, Gunhee Kim

TL;DR

Conditional GANs (cGANs) often struggle with "mode collapse," producing a single, deterministic output even when they should generate diverse results. This paper introduces Moment Reconstruction (MR) losses, which replace standard pixel-wise reconstruction losses with a requirement to match the statistics (mean and variance) of the data distribution, enabling stable training and high-quality, diverse image generation.

What Problem Does This Paper Address?

In conditional image generation—tasks like turning a sketch into a photo or colorizing a grayscale image—there isn't just one "correct" answer. A single architectural floor plan could correspond to thousands of different interior designs. This is a one-to-many mapping.

Ideally, a Generative Adversarial Network (GAN) should use a random noise seed to explore these different possibilities. However, to make training stable, researchers almost always add a "reconstruction loss" (like $L_1$ or $L_2$ distance) between the generated image and the ground truth.

The authors point out a fatal flaw: these reconstruction losses are mathematically designed to minimize variance. When you force a model to minimize the distance to a single ground-truth image, it learns to play it safe by producing the "average" of all possible outputs. Consequently, the model learns to ignore the random noise entirely, resulting in a model that produces the same blurry or "safe" image every time, regardless of the input seed.

Methods

The authors propose a new training recipe that swaps the standard reconstruction loss for Moment Reconstruction (MR) losses. Instead of telling the generator, "Make this specific pixel match this specific value," they tell the generator, "Make the distribution of your outputs match the statistics of the real data."

They introduce two primary architectures:

  1. MR-GAN: The generator produces a set of $K$ different samples for a single input by varying the noise seed. The model then calculates the sample mean and variance of these $K$ images and uses a Maximum Likelihood Estimation (MLE) loss to match these moments to the ground truth.
  2. Proxy MR-GAN: To improve stability, they introduce a "Predictor" network (a twin of the generator). The Predictor is trained first to estimate the conditional mean and variance of the real data. Then, the generator is trained to ensure its own sample statistics match the Predictor’s estimates. This acts as a stable "guide" for the GAN.

By matching moments rather than individual pixels, the generator is no longer penalized for being different from a single ground-truth image, as long as it stays within the statistically likely "cloud" of the data distribution.

Datasets

The researchers evaluated their methods on three diverse conditional generation tasks:

  • Image-to-Image Translation: Using the Cityscapes (segmentation maps to street scenes) and Maps (satellite images to maps) datasets.
  • Super-Resolution: Upscaling low-resolution faces using the CelebA dataset.
  • Image Inpainting: Filling in missing holes in face images, also using CelebA.

Key Insights and Ideas

  • The "Loss Mismatch": The authors mathematically prove that the GAN loss and the $L_2$ reconstruction loss have disjoint sets of optimal solutions. A model literally cannot be optimal for both at the same time. $L_2$ pushes variance to zero, while the GAN loss tries to match the true (non-zero) variance of the data.
  • Guidance, Not Constraint: MR losses provide the training stability of traditional reconstruction losses without the "regression to the mean" side effect. It provides a "corridor" for the generator to stay in, rather than a single point it must hit.
  • Predicting Uncertainty: By using a predictor that outputs both a mean and a variance, the model explicitly accounts for "aleatoric uncertainty"—the inherent ambiguity in the data (e.g., "I know there's a car here, but I don't know what color it is").

Key Results

Comparison of generation methods on street scenes
  • Visual Quality and Diversity: Human evaluators found the generated samples to be more realistic than those from standard cGANs. As seen in the comparison above, standard $\ell_1$ loss produces blurry averages, while GAN + $\ell_1$ suffers from mode collapse (producing identical images despite different noise seeds). The proposed method successfully generates sharp variations in lighting, textures, and fine details that change appropriately with the noise seed.
  • Quantitative Diversity: Using the LPIPS metric (which measures perceptual diversity), the proposed methods significantly outperformed baselines like Pix2Pix and even specialized models like BicycleGAN. For example, in the Maps task, their diversity scores were often double or triple those of the baselines.
  • Stability: The "Proxy" version of their loss proved to be as stable as standard $L_1/L_2$ training, solving the notorious volatility issues associated with training GANs for diverse output.

Limitations and Future Work

  • Computational Cost: Because the generator must produce $K$ samples (the paper uses $K=8$ to $24$) for every training update to calculate moments, training takes about 1.5x longer than standard methods.
  • Higher-Order Statistics: The current work focuses on the first two moments (mean and variance). The authors suggest that exploring higher-order statistics or feature-level correlations could capture even more complex data relationships.
  • Broader Applications: While focused on images, the authors note this framework could be applied to other "one-to-many" domains like text-to-speech or video prediction.

Summary updated

BibTeX
@inproceedings{lee2019harmonizing,
  author = {Soochan Lee and Junsoo Ha and Gunhee Kim},
  title = {{Harmonizing Maximum Likelihood with GANs for Multimodal Conditional Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
}
Figure