Off-Policy Reinforcement Learning for Efficient and Effective GAN Architecture Search

Yuan Tian, Qin Wang, Zhiwu Huang, Wen Li, Dengxin Dai, Minghao Yang, Jun Wang, Olga Fink

Introduction

Designing high-performing Generative Adversarial Networks (GANs) is a notoriously difficult task, often characterized by the unstable "cat-and-mouse" game between generator and discriminator. While Neural Architecture Search (NAS) has successfully automated the design of image classifiers, its application to GANs has been hindered by extreme computational costs. Traditional reinforcement learning (RL) approaches for NAS typically rely on on-policy algorithms like REINFORCE or PPO, which are sample-inefficient and often require thousands of GPU days to converge.

E2GAN (Efficient and Effective GAN) addresses these challenges by reframing GAN architecture search as a Markov Decision Process (MDP) solved via off-policy reinforcement learning. By leveraging the Soft Actor-Critic (SAC) algorithm, E2GAN achieves state-of-the-art results on CIFAR-10 in just 7 GPU hours—a 6x speedup over previous RL-based methods and orders of magnitude more efficient than traditional search approaches.

Methods: The E2GAN Framework

The authors introduce several innovations to stabilize and accelerate the search process:

  1. MDP Formulation: Instead of searching for an entire architecture at once, E2GAN breaks the design process into a sequence of steps. The agent adds "cells" one by one, receiving more frequent feedback and reducing the variance in rewards.
  2. Off-Policy Learning (SAC): Unlike on-policy methods that discard data after each update, E2GAN utilizes a replay buffer to store and reuse every tested architecture. This "recycling" of experience is central to its efficiency.
  3. Progressive State Representation: To provide the agent with context, the state includes current depth, performance metrics, and a "progressive" feature—the average output of current cells given fixed noise. This acts as a visual snapshot of the generator's progress.
  4. Multi-Metric Reward: The reward function optimizes for both image quality (Inception Score) and diversity (FID), ensuring a balanced search.
Overview of the E2GAN off-policy reinforcement learning framework, illustrating the interaction between the state representation, policy network, and memory buffer.

Key Insights and Search Space

The search space for E2GAN is defined by a set of operations including convolutions, upsampling, and skip connections. A key finding was that the step-wise approach provides smoother gradients for the RL agent compared to trajectory-wise search.

The internal architecture of a discovered cell, showing the arrangement of upsampling, convolution blocks, and skip connections.
  • Efficiency of "Old" Data: The transition from 1,200 GPU days (AutoGAN) to 0.3 GPU days (E2GAN) demonstrates the power of off-policy RL as a force multiplier for NAS.
  • Alignment with Human Intuition: E2GAN discovered that post-activation convolution blocks and batch normalization performed best, aligning with common practices among human experts.
  • Metric Balancing: The authors noted that optimizing for Inception Score (IS) alone can degrade the Frechet Inception Distance (FID), necessitating their combined reward function.

Datasets and Evaluation

  • CIFAR-10: The primary benchmark for search and evaluation, containing 60,000 32x32 images.
  • STL-10: Used to evaluate the transferability of the discovered architecture. The CIFAR-10 architecture was retrained on STL-10 (96x96 resolution) without structural changes.

Key Results

  • Search Speed: E2GAN completed its search in 0.3 GPU days (7.2 hours).
  • CIFAR-10 Performance: The model achieved an FID of 11.26, outperforming AutoGAN (12.42) and hand-crafted models like SN-GAN (21.7).
  • Transferability: On STL-10, the architecture achieved an IS of 9.51 and FID of 25.35, surpassing other RL-based competitors.

Limitations and Future Work

While highly effective, E2GAN currently focuses on evolving the Generator while using a pre-designed, growing Discriminator. Future work could involve searching for both architectures simultaneously. Additionally, the search relies on a proxy task (training for one epoch), which assumes early performance correlates perfectly with final convergence. Expanding the search space beyond the current set of operations could also lead to more novel architectural discoveries.

Summary updated

BibTeX
@inproceedings{tian2020off,
  author = {Yuan Tian and Qin Wang and Zhiwu Huang and Wen Li and Dengxin Dai and Minghao Yang and Jun Wang and Olga Fink},
  title = {{Off-Policy Reinforcement Learning for Efficient and Effective GAN Architecture Search}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58571-6\_11},
}
Figure