Genetic Network Architecture Search

Hai Victor Habi, Gil RafalovicharXiv 2019

Introduction

Designing optimal neural network architectures manually is a labor-intensive process requiring significant domain expertise. Neural Architecture Search (NAS) aims to automate this design, but traditional methods—particularly those utilizing evolutionary or genetic algorithms (GA)—have historically been computationally prohibitive, often requiring thousands of GPU-days to train candidate networks from scratch.

GeneticNAS addresses this challenge by integrating weight sharing into an evolutionary search framework. By allowing candidate sub-networks to share weights from a single super-network, GeneticNAS reduces search time to just 0.4 GPU-days on a single consumer-grade GPU, while achieving competitive performance on standard benchmarks like CIFAR-10 and CIFAR-100.

Methodology

Search Space and Macro-Architecture

The search space is defined by a Directed Acyclic Graph (DAG) representation for network cells, categorized into Normal, Reduction, and Input cells. Within these cells, nodes represent specific operations such as pooling or depthwise-separable convolutions, while edges represent tensor connections. The architecture also incorporates Squeeze-and-Excitation (SE) blocks to enhance feature representation.

The macro-architecture of GeneticNAS and the DAG structure of individual cells.

Weight Sharing Integration

Unlike traditional GA-based NAS, which trains every individual in a population independently, GeneticNAS utilizes a shared weight pool. During the Stochastic Gradient Descent (SGD) training loop, a random architecture is sampled from the population for each batch, and only its active weights are updated. This approach serves as a powerful regularization mechanism, forcing the shared weights to remain robust across diverse topological configurations.

The Genetic Algorithm

The core of the search process involves standard evolutionary mechanics adapted for neural structures:

  • Selection: Fitness-proportionate selection is performed based on validation accuracy.
  • Mutation: Random perturbations are applied to the integer representations of operations or connections.
  • Block Crossover: A key innovation of this work is the "Block Crossover" method. Rather than swapping random individual genes, this operator swaps entire functional blocks between parent networks. This preserves the structural integrity of high-performing sub-modules, which the authors found to be more effective than uniform random swapping.
The Block Crossover mechanism used to generate offspring architectures from parent networks.

Experimental Results

Performance Benchmarks

GeneticNAS was evaluated on the CIFAR-10 and CIFAR-100 datasets using standard data augmentation techniques, including CutOut.

  • CIFAR-10: The method achieved a peak accuracy of 96.0% (4.00% error). The search was completed in only 0.4 GPU-days on an NVIDIA GTX 1080Ti, outperforming or matching the efficiency of gradient-based methods like DARTS (1.5 days) and ENAS (0.45 days).
  • CIFAR-100: The architecture transferred well to more complex tasks, reaching 80.1% accuracy.

Ablation Studies

Ablation results highlighted the importance of domain-specific operators. The custom Block Crossover achieved 93.9% accuracy in proxy tasks, a significant improvement over the 91.8% achieved by standard Uniform Crossover. This suggests that respecting the modular boundaries of neural cells is critical for successful evolutionary search.

Conclusion

GeneticNAS demonstrates that evolutionary algorithms can be highly efficient for neural architecture search when combined with weight sharing and structurally aware genetic operators. By reducing the computational barrier to entry, this method allows for high-performance architecture discovery on commodity hardware. Future research may involve scaling this approach to larger datasets like ImageNet and expanding the search space to include more diverse operations and macro-architectures.

Summary updated

BibTeX
@misc{habi2019genetic,
  author = {Hai Victor Habi and Gil Rafalovich},
  title = {{Genetic Network Architecture Search}},
  year = {2019},
  eprint = {1907.02871},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.02871},
}
Figure