Host-Pathongen Co-evolution Inspired Algorithm Enables Robust GAN Training

Andrei Kucharavy, El Mahdi El Mhamdi, Rachid GuerraouiarXiv 2020

TL;DR

This paper proposes a novel GAN training approach inspired by host-pathogen co-evolution, treating generators as pathogens and discriminators as hosts. By simulating diverse "immune systems" (discriminator architectures) and allowing "pathogens" (generators) to adapt across them, they achieve more stable and efficient GAN training, leading to better image generation with fewer computational resources.

What Problem Does This Paper Address?

Training Generative Adversarial Networks (GANs) is notoriously difficult and often described as more of an "art" than a science. Two major challenges are mode collapse, where the generator produces only a limited variety of outputs, and vanishing gradients, where the discriminator becomes too good, hindering generator learning. These issues often require computationally expensive techniques like multiple restarts and careful hyperparameter tuning to achieve satisfactory results. The authors draw an analogy between GAN training instability and the co-evolutionary dynamics between pathogens and host immune systems, suggesting that the biological system's resilience might offer insights into improving GAN robustness.

Methods

The core of the paper's contribution lies in its novel training methodology, inspired by host-pathogen co-evolution. Instead of the standard single generator-single discriminator setup, they propose:

  • Population-based Training: Multiple "hosts" (discriminators with varying architectures or parameters) and "pathogens" (generators) are maintained.
  • Co-evolutionary Dynamics: Generators are trained against a population of discriminators, simulating a pathogen adapting to a diverse immune system.
  • "Population Jumps": Generators are periodically exposed to entirely new, naive populations of discriminators. This is analogous to a pathogen encountering a new host species or a population with no prior immunity, forcing broader adaptation and preventing stagnation.
  • Architectural Diversity: The "hosts" (discriminators) are varied in their architectures (e.g., different numbers of features, activation functions like "light" and "PreLU" variants) to simulate a diverse immune landscape.
  • Fitness-Based Selection (in some variants): In more advanced methods, generators and discriminators are selected for the next round based on their "fitness" (performance in distinguishing real from fake, or generating convincing fakes).

The paper compares several configurations of this approach, including:

  • Standard Round-Robin: Simple cross-matching without fitness or selection.
  • Stochastic Round-Robin: Randomly selected matches.
  • Round-Robin with Population Jumps: Generators move between different naive discriminator populations.
  • Round-Robin with Heterogeneous Population Jumps: Generators move between populations of discriminators with different architectures. This is a key innovation.
  • Evolution with Heterogeneous Populations Jumps: Incorporates fitness-based selection within heterogeneous populations.

Datasets

The experiments were conducted using the MNIST dataset. This is a standard benchmark for image generation tasks, particularly for evaluating GANs. The paper does not introduce new datasets.

Key Insights and Ideas

  • GANs as Host-Pathogen Systems: The analogy between GAN training instability and pathogen-host co-evolution is surprisingly apt. Both involve a dynamic arms race where one side (generator/pathogen) tries to overcome the other (discriminator/host immune system).
  • Diversity is Key to Robustness: Just as a diverse immune system is crucial for fending off a wide range of pathogens, a diverse set of discriminators (especially with architectural variations) forces generators to learn more robust and generalizable features.
  • "Population Jumps" Prevent Stagnation: Moving generators between different discriminator populations, particularly those with varied architectures, is critical for preventing them from getting stuck in local optima (mode collapse). This mimics how pathogens might adapt to new environments.
  • Evolutionary Phase Can Be Detrimental: Counter-intuitively, the explicit fitness-based selection mechanism in the "Evolution with heterogeneous populations jumps" method did not outperform simpler population jump strategies. This suggests that the complex interplay of selection pressures in GANs might be more sensitive than anticipated, or that the current implementation of fitness might not be optimal.

Key Results

  • "Round-Robin with Heterogeneous Population Jumps" Outperforms Baseline: This method significantly improved upon the baseline (standard GAN training with restarts) in terms of the Frechet Inception Distance (FID), a metric for image quality and diversity.
  • Reduced Computational Budget: The proposed methods achieved better FID scores even with a reduced computational budget compared to the baseline.
  • Robustness Across Methods: Several of the Round-Robin variants showed surprisingly similar performance, all robustly outperforming the reference method, indicating the general benefit of population-based approaches.
  • "Evolutionary" Method Underperforms: The method incorporating explicit fitness-based selection performed worse than simpler population jump strategies, suggesting that the evolutionary phase might not always be beneficial or that its implementation needs refinement.

Limitations and Future Work

  • Limited Scope of Discriminator Diversity: The paper explored variations in discriminator architecture ("light," "PreLU," "base") but acknowledges that more optimal architectures could be found using evolutionary methods, which is outside the scope of this study.
  • Complexity of Evolutionary Phase: The unexpected underperformance of the evolutionary method suggests that designing effective fitness functions and selection pressures for GANs is challenging. Future work could explore more sophisticated evolutionary strategies or different interpretations of "fitness."
  • Biological Parallels: The authors note that while the analogy is strong, direct generalization from GANs to biological systems is complex due to differences in genome-phenotype mapping, gradient descent vs. random mutation, and biological constraints.
  • Future Research Directions:
    • Investigating the impact of "imprecise matching" (analogous to antibodies recognizing similar shapes) in GANs.
  • Exploring how insights from GAN training could inform our understanding of biological pathogen-host co-evolution.
  • Developing more sophisticated evolutionary architectures for GANs that better leverage host-pathogen dynamics.
  • Accounting for larger population sizes and longer training times, similar to herd immunity in biological systems.

Summary updated

BibTeX
@misc{kucharavy2020host,
  author = {Andrei Kucharavy and El Mahdi El Mhamdi and Rachid Guerraoui},
  title = {{Host-Pathongen Co-evolution Inspired Algorithm Enables Robust GAN Training}},
  year = {2020},
  eprint = {2006.04720},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.04720},
}
Figure