[Paper Review] HyperGAN: A Generative Model for Diverse, Performant Neural Networks
HyperGAN introduces a novel generative model that learns a diverse, performant distribution of neural network parameters using a GAN-based approach with a learnable mixer to correlate latent noise for layer-wise weight generation. It enables efficient sampling of high-quality, diverse ensembles without fine-tuning, achieving competitive accuracy and superior uncertainty estimation on out-of-distribution and adversarial data.
Standard neural networks are often overconfident when presented with data outside the training distribution. We introduce HyperGAN, a new generative model for learning a distribution of neural network parameters. HyperGAN does not require restrictive assumptions on priors, and networks sampled from it can be used to quickly create very large and diverse ensembles. HyperGAN employs a novel mixer to project prior samples to a latent space with correlated dimensions, and samples from the latent space are then used to generate weights for each layer of a deep neural network. We show that HyperGAN can learn to generate parameters which label the MNIST and CIFAR-10 datasets with competitive performance to fully supervised learning, while learning a rich distribution of effective parameters. We also show that HyperGAN can also provide better uncertainty estimates than standard ensembles by evaluating on out of distribution data as well as adversarial examples.
Motivation & Objective
- To learn a rich, diverse distribution of neural network parameters without restrictive priors or variational assumptions.
- To enable efficient generation of large, diverse ensembles of neural networks with a single forward pass.
- To improve uncertainty estimation for out-of-distribution data and adversarial examples using ensemble diversity.
- To overcome limitations of standard ensembles and variational methods by learning a more expressive posterior over network weights.
- To scale the generation of diverse, high-performing models without requiring iterative training or fine-tuning.
Proposed method
- A generator network takes a multi-dimensional Gaussian latent code and uses a learnable mixer to produce correlated vectors for each layer’s weights.
- The mixer transforms independent noise into structured latent vectors that ensure parameter coherence across layers.
- The generator is trained via maximum likelihood on target task loss (e.g., classification) to produce accurate models.
- An adversarial discriminator regularizes the latent space to prevent mode collapse and enhance diversity of generated networks.
- The model jointly optimizes for both performance and diversity, avoiding reliance on invertible flows or fixed noise models.
- Sampling from the generator produces complete, trainable neural networks in a single forward pass, enabling scalable ensemble creation.
Experimental results
Research questions
- RQ1Can a generative model learn a diverse and performant distribution of neural network parameters without restrictive priors?
- RQ2How does HyperGAN’s mixer mechanism improve optimization and parameter coherence across network layers?
- RQ3Can HyperGAN-generated ensembles outperform standard ensembles in uncertainty estimation on out-of-distribution and adversarial inputs?
- RQ4Does the absence of invertible flows or fixed noise models hinder scalability or performance in weight generation?
- RQ5To what extent does adversarial regularization improve diversity and prevent mode collapse in the generated network population?
Key findings
- HyperGAN generates complete, multi-layer convolutional networks that achieve competitive classification accuracy on MNIST and CIFAR-10 without further fine-tuning.
- Ensembles of 100 networks sampled from HyperGAN significantly improve test accuracy compared to single models and standard ensembles.
- The diversity of HyperGAN-generated models, measured as relative standard deviation of L2 norms, is substantially higher than with standard training or variational methods.
- HyperGAN ensembles detect out-of-distribution samples and adversarial examples (e.g., FGSM, PGD) more effectively than standard ensembles of equal size.
- Removing the discriminator leads to reduced diversity despite similar accuracy, confirming its role in promoting distributional spread.
- Removing the mixer causes a significant drop in diversity and slower convergence, indicating its importance in enabling effective optimization across layers.
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.