Evolutionary Architecture Search for Generative Adversarial Networks Based on Weight Sharing

Yu Xue, Weinan Tong, Ferrante Neri, Peng Chen, Tao Luo, Liangli Zhen, Xiao Wang

Abstract

Generative Adversarial Networks (GANs) are powerful tools for image synthesis but suffer from training instability and high computational costs during architecture design. This paper introduces EWSGAN (Evolutionary Weight Sharing GAN), a framework that leverages a weight-sharing supernet and multi-objective evolutionary algorithms to efficiently discover high-performance generator architectures. By employing "fair sampling" and a "discarding strategy," EWSGAN stabilizes the search process, achieving state-of-the-art results on CIFAR-10 within a single GPU day.

Introduction

Designing optimal GAN architectures typically requires significant domain expertise and extensive trial-and-error. While Neural Architecture Search (NAS) has revolutionized image classification, its application to GANs is hindered by the delicate minimax game between the generator and discriminator. Existing NAS methods for GANs often face two primary challenges: extreme computational requirements (sometimes exceeding 1,000 GPU days) and a tendency to get trapped in local optima due to greedy gradient-based optimization.

EWSGAN addresses these issues by decoupling the weight optimization from the architecture search through a weight-sharing supernet, combined with a robust evolutionary search strategy.

The EWSGAN Framework

The proposed method follows a two-stage pipeline designed for stability and efficiency.

1. Supernet Training with Weight Sharing

Instead of training individual candidate networks, EWSGAN trains a single "supernet" where every possible sub-architecture (subnet) shares weights. To ensure the supernet provides a reliable performance proxy for its subnets, the authors introduce two key mechanisms:

  • Fair Single-Path Sampling: During each training iteration, paths are sampled without replacement. This ensures that every operation (e.g., different convolution types) receives equal training time, preventing a "bucket effect" where under-trained operations destabilize the entire supernet.
  • Discarding Strategy: After an initial warm-up period, the framework prunes operations that consistently underperform or rarely appear in top-tier subnets. This focuses the supernet's capacity on the most promising structural components.
The EWSGAN framework, illustrating the two-stage process: SuperNet training with fair sampling and discarding, followed by the evolutionary search phase.

2. Evolutionary Search (NSGA-II)

Following supernet training, the Non-dominated Sorting Genetic Algorithm II (NSGA-II) is used to navigate the architecture space. The search aims to find the Pareto front—the set of architectures providing the best trade-offs between Inception Score (IS) and Fréchet Inception Distance (FID). To accelerate this phase, the authors utilize Low-Fidelity Evaluation, calculating metrics using 5,000 images rather than the standard 50,000, which maintains ranking consistency while drastically reducing compute time.

Experimental Evaluation

The framework was rigorously tested on two benchmarks:

  • CIFAR-10: 50,000 images at 32x32 resolution.
  • STL-10: 105,000 images, downsampled to 48x48 for experimentation.

A critical finding was the validation of weight inheritance. The researchers observed a moderate positive correlation (Kendall’s $\tau = 0.524$) between the performance of subnets using inherited weights versus those trained from scratch, confirming the supernet's effectiveness as a performance proxy.

Results and Analysis

EWSGAN demonstrates both high performance and remarkable efficiency:

  • Performance: On CIFAR-10, the discovered architecture achieved an FID of 9.09 and an IS of 8.99, setting a new benchmark for NAS-designed GANs.
  • Efficiency: The entire search process completes in approximately 1 GPU day on a single Nvidia RTX 2080Ti, a significant leap over previous reinforcement learning-based approaches.
  • Generalization: The method proved robust on STL-10, achieving an IS of 10.51 and an FID of 21.89.
Qualitative results showing images generated by the discovered architectures on the CIFAR-10 and STL-10 datasets.

Conclusion

EWSGAN provides a stable and efficient path for automating GAN architecture design. By combining weight sharing with evolutionary multi-objective optimization, it overcomes the traditional stability issues of GAN-NAS. Future work will explore joint searches for both generator and discriminator architectures and scaling the framework to higher-resolution image synthesis tasks.

Summary updated

BibTeX
@article{xue2024evolutionary,
  author = {Yu Xue and Weinan Tong and Ferrante Neri and Peng Chen and Tao Luo and Liangli Zhen and Xiao Wang},
  title = {{Evolutionary Architecture Search for Generative Adversarial Networks Based on Weight Sharing}},
  journal = {IEEE Trans. Evol. Comput.},
  year = {2024},
  doi = {10.1109/tevc.2023.3338371},
}
Figure