A Hybrid GA-PSO Method for Evolving Architecture and Short Connections of Deep Convolutional Neural Networks

Bin Wang, Yanan Sun, Bing Xue, Mengjie Zhang

Abstract

Designing deep convolutional neural networks (CNNs) requires balancing depth with trainability. While shortcut connections mitigate the vanishing gradient problem, their optimal configuration remains a complex design challenge. This paper presents HGAPSO, a hybrid evolutionary approach that automatically optimizes both the macro-architecture and the internal shortcut topology. By combining Particle Swarm Optimization (PSO) and Genetic Algorithms (GA), the proposed method achieves state-of-the-art performance on challenging image classification benchmarks with significantly reduced human intervention.

Introduction

As CNNs grow deeper to handle complex visual tasks, they encounter the "vanishing gradient" problem, where signal strength dissipates during backpropagation. Architectures like ResNet and DenseNet introduced shortcut connections to bypass layers, but manually designing these "wirings" is an arduous process requiring significant expertise. Neural Architecture Search (NAS) aims to automate this, yet many existing methods are computationally prohibitive. This research introduces an efficient, automated framework to evolve both the network's "skeleton" (dimensions) and its "nervous system" (internal connections).

Methodology: The HGAPSO Framework

The core innovation of this work is the Hybrid Genetic Algorithm-Particle Swarm Optimization (HGAPSO), which employs a two-level encoding strategy to navigate the vast search space of potential network designs.

The two-level encoding strategy of HGAPSO: PSO handles macro-parameters while GA optimizes discrete shortcut connections.

Two-Level Encoding

  1. Level 1 (PSO): Particle Swarm Optimization is used to evolve the macro-architecture. This level handles continuous or decimal-valued parameters, such as the number of blocks, the number of layers per block, and the "growth rate" (the number of feature maps added per layer). PSO is particularly suited for searching these multi-dimensional spaces.
  2. Level 2 (GA): Within each architecture proposed by the PSO, a Genetic Algorithm evolves the specific shortcut connections. These are represented as binary vectors where '1' indicates a connection between two layers and '0' indicates its absence. GAs excel at optimizing these discrete, combinatorial patterns.

Evolutionary Pipeline

To maintain computational feasibility, the system uses a "fitness evaluation" shortcut. Instead of training every candidate network to full convergence, they are trained for only 5 epochs with an automatically adjusted learning rate. This provides a reliable estimate of the network's potential performance while saving weeks of GPU time.

The overall evolutionary process, from dataset splitting to the evaluation of the evolved CNN.

Experimental Results

The HGAPSO method, referred to as DynamicNet, was evaluated against several benchmarks:

  • MDRBI (MNIST-rotated-background-images): On this difficult dataset featuring rotated digits and complex noise, DynamicNet achieved an error rate of 12.23%, significantly outperforming the evolutionary competitor DECNN (37.55%).
  • CONVEX: The method reached a 1.24% error rate, a major improvement over the previous state-of-the-art automated method (11.19%).
  • CIFAR-10: In a proof-of-concept run, the evolved architecture achieved 95.63% accuracy, placing it among top-tier human-designed networks without requiring domain-specific tuning.

Discussion and Conclusion

The success of HGAPSO stems from its separation of concerns. By splitting the optimization of architecture dimensions and connection topology between PSO and GA, the search process becomes more efficient and manageable. Furthermore, the evolved shortcut connections facilitate "knowledge reuse," allowing the network to leverage feature maps from early layers throughout the entire depth of the model.

While HGAPSO is more efficient than many NAS alternatives, it remains computationally intensive, requiring over a week on a single GPU for CIFAR-10. Future work will focus on scaling the method to massive datasets like ImageNet and exploring its application to novel CNN primitives beyond standard convolutions.

Summary updated

BibTeX
@inproceedings{wang2019hybrid,
  author = {Bin Wang and Yanan Sun and Bing Xue and Mengjie Zhang},
  title = {{A Hybrid GA-PSO Method for Evolving Architecture and Short Connections of Deep Convolutional Neural Networks}},
  booktitle = {PRICAI},
  year = {2019},
  url = {https://openreview.net/forum?id=biJheijB6N},
}
Figure