[Paper Review] Bayesian Conditional Generative Adverserial Networks
This paper proposes Bayesian Conditional Generative Adversarial Networks (BC-GANs), a novel GAN framework that replaces the deterministic generator with a stochastic function, using weight uncertainty via dropout to model Bayesian inference. By integrating out generator and discriminator parameters through Monte Carlo sampling, BC-GANs improve training stability, reduce overfitting, and achieve state-of-the-art performance in semi-supervised learning on CIFAR-10 with only 10 labeled examples per class.
Traditional GANs use a deterministic generator function (typically a neural network) to transform a random noise input $z$ to a sample $\mathbf{x}$ that the discriminator seeks to distinguish. We propose a new GAN called Bayesian Conditional Generative Adversarial Networks (BC-GANs) that use a random generator function to transform a deterministic input $y'$ to a sample $\mathbf{x}$. Our BC-GANs extend traditional GANs to a Bayesian framework, and naturally handle unsupervised learning, supervised learning, and semi-supervised learning problems. Experiments show that the proposed BC-GANs outperforms the state-of-the-arts.
Motivation & Objective
- To address the instability and overfitting issues in traditional GANs by introducing a Bayesian framework for both generator and discriminator.
- To unify unsupervised, supervised, and semi-supervised learning under a single conditional GAN architecture using model uncertainty.
- To replace input noise with deterministic conditioning inputs and use parameter uncertainty as the source of generation diversity.
- To improve generalization and robustness by integrating out model parameters through Monte Carlo sampling.
- To enhance performance using Maximum Mean Discrepancy (MMD) as a regularizer in the GAN objective.
Proposed method
- Replace the deterministic generator in GANs with a stochastic function $ f_G $ that maps deterministic input $ y' $ to generated samples $ \mathbf{x} $, where $ f_G $ is parameterized by random weights $ \boldsymbol{\omega} $.
- Model the generator and discriminator as random functions with priors $ p(\boldsymbol{\omega}) $ and $ p(\boldsymbol{\theta}) $, and perform Bayesian inference via Monte Carlo sampling over these parameters.
- Use both Bernoulli and Gaussian dropout as approximate Bayesian inference methods to induce uncertainty in the generator and discriminator networks.
- Integrate out the generator and discriminator functions by marginalizing over their parameters, leading to a Bayesian objective that reduces overfitting.
- Incorporate Maximum Mean Discrepancy (MMD) as a regularizer in the GAN loss to improve distributional alignment between real and generated samples.
- Train the model using alternating optimization in a minimax framework, where uncertainty in the generator's function space drives sample diversity.
Experimental results
Research questions
- RQ1Can replacing input noise with deterministic conditioning inputs and modeling generator uncertainty improve GAN stability and performance?
- RQ2How does Bayesian integration over generator and discriminator parameters affect generalization and overfitting in GANs?
- RQ3Can BC-GANs unify unsupervised, supervised, and semi-supervised learning within a single conditional GAN framework?
- RQ4Does the use of MMD as a regularizer in conjunction with Bayesian inference further improve sample quality and distribution matching?
- RQ5How does the performance of BC-GANs compare to state-of-the-art methods in low-data regimes, such as 10 labeled examples per class?
Key findings
- BC-GANs achieve a test error of $ 7.9 \pm 0.3\% $ on CIFAR-10 with all 50,000 training labels, outperforming prior state-of-the-art methods.
- With only 10 labeled examples per class, BC-GANs achieve a test error of $ 20.9 \pm 1.05\% $ using MAP-MC sampling, demonstrating strong low-shot generalization.
- The Langevin dynamics variant achieves $ 25.8 \pm 1.45\% $ error with 1,000 labeled examples, indicating strong performance but potential mode collapse in some classes.
- Visual samples show diverse, class-conditional generations with consistent semantics across columns, indicating effective disentanglement and diversity.
- The Bayesian framework reduces variance over time, with the discriminator becoming more confident and stable as training progresses.
- The integration of MMD into the GAN objective leads to improved distributional matching and sample quality compared to standard GANs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.