Evolutionary convolutional neural network for image classification based on multi-objective genetic programming with leader–follower mechanism

Qingqing Liu, Xianpeng Wang, Yao Wang, Xiangman SongComplex 2022

TL;DR

The researchers developed LF-MOGP, an evolutionary algorithm that automatically designs high-performing, lightweight convolutional neural networks (CNNs). By using a "leader-follower" mechanism to guide the search and a flexible graph-based encoding, the system finds optimized architectures that rival or beat human-designed models while using significantly fewer parameters and computational resources.

What Problem Does This Paper Address?

Designing a high-performing CNN is traditionally a "black art" requiring immense human expertise to tune depth, width, and layer types. Evolutionary Neural Architecture Search (ENAS) aims to automate this, but existing methods often suffer from three major flaws:

  1. Rigidity: Many algorithms use fixed-length "templates," limiting the search space.
  2. Resource Intensity: Some state-of-the-art methods require thousands of GPU hours to find a single good model.
  3. Local Optima: Algorithms often get "stuck" on a decent design and fail to explore more innovative, higher-performing structures.

This paper introduces the LF-MOGP (Leader-Follower Multi-Objective Genetic Programming) algorithm to create a more flexible, efficient, and robust search process.

Methods

The authors combine two powerful concepts to evolve better networks:

  • Cartesian Genetic Programming (CGP) Encoding: Instead of a simple list of layers, the algorithm represents a CNN as a flexible graph. This allows for variable depth and width, and complex "skip connections" (similar to ResNet or DenseNet) can emerge naturally. They designed 22 functional blocks (like ConvBlocks, ResNet blocks, and various pooling types) that the algorithm can mix and match.
  • Leader-Follower Evolution Mechanism: This is the core innovation. The algorithm maintains two groups:
  • Leaders: An external archive of "non-dominated" solutions—the current best trade-offs between accuracy and model size (the Pareto front).
  • Followers: An elite population that evolves by following the leaders. In the early stages, the search focuses on following leaders to converge quickly. In later stages, it balances following leaders with exploring new variations to maintain diversity and avoid getting stuck.

  • Multi-Objective Optimization: The algorithm doesn't just look for the highest accuracy; it simultaneously tries to minimize the number of parameters, ensuring the resulting models are efficient enough for real-world use.

Datasets

The algorithm was stress-tested across nine different tasks:

  • Standard Benchmarks: CIFAR10, CIFAR100, and Fashion-MNIST.
  • Robustness Benchmarks: Five variants of MNIST (MB, MBI, MRB, MRD, MRDBI) that include challenges like background noise and rotated digits.
  • Industrial Task: A real-world dataset for identifying "slab numbers" in a steel manufacturing environment, which involves low-quality, noisy industrial images.

Key Insights and Ideas

  • Topological Freedom Matters: By using CGP, the evolved networks often look quite different from standard human-designed "stacks." They feature irregular branching and merging that better utilize feature maps.
  • Efficiency via Hierarchy: The leader-follower mechanism acts as a smart filter. By focusing the evolutionary "effort" on the most promising candidates (the leaders), the algorithm reaches high accuracy much faster than standard random-search or basic evolutionary methods.
  • Small is Beautiful: The multi-objective approach proved that you don't need massive models for high accuracy. For example, on CIFAR10, the evolved model achieved a 4.13% error rate with only 1.07M parameters—significantly smaller than many handcrafted counterparts.

Key Results

The LF-MOGP algorithm was compared against 35 existing algorithms, including heavyweights like ResNet, DenseNet, and other NAS methods:

  • Superior Accuracy: On the difficult MRDBI (rotated digits with background images) dataset, LF-MOGP achieved a 14.98% error rate, outperforming the previous best ENAS result of 17.92%.
  • Speedup: On CIFAR10, LF-MOGP found its best architecture in just 10 GPU days. For comparison, the well-known PNAS algorithm takes 225 GPU days to achieve similar results.
  • Industrial Success: In the slab number recognition task, the evolved model reached 98.07% accuracy, outperforming VGG, ResNet, and DenseNet while maintaining a lightweight profile suitable for industrial hardware.

Limitations and Future Work

While the paper demonstrates significant progress, some areas remain for exploration:

  • Task Complexity: The study focused primarily on image classification. The authors suggest that future work should apply this mechanism to more complex computer vision tasks like object detection or semantic segmentation.
  • Hardware-Awareness: While the algorithm minimizes parameter counts, it doesn't explicitly optimize for "inference latency" (how fast the model runs on a specific chip), which is a critical metric for mobile and edge computing.
  • Search Space Expansion: While 22 blocks are a lot, the search space could be further expanded to include newer operations like Transformers or Attention modules.

Summary updated

Abstract

Abstract As a popular research in the field of artificial intelligence in the last 2 years, evolutionary neural architecture search (ENAS) compensates the disadvantage that the construction of convolutional neural network (CNN) relies heavily on the prior knowledge of designers. Since its inception, a great deal of researches have been devoted to improving its associated theories, giving rise to many related algorithms with pretty good results. Considering that there are still some limitations in the existing algorithms, such as the fixed depth or width of the network, the pursuit of accuracy at the expense of computational resources, and the tendency to fall into local optimization. In this article, a multi-objective genetic programming algorithm with a leader–follower evolution mechanism (LF-MOGP) is proposed, where a flexible encoding strategy with variable length and width based on Cartesian genetic programming is designed to represent the topology of CNNs. Furthermore, the leader–follower evolution mechanism is proposed to guide the evolution of the algorithm, with the external archive set composed of non-dominated solutions acting as the leader and an elite population updated followed by the external archive acting as the follower. Which increases the speed of population convergence, guarantees the diversity of individuals, and greatly reduces the computational resources. The proposed LF-MOGP algorithm is evaluated on eight widely used image classification tasks and a real industrial task. Experimental results show that the proposed LF-MOGP is comparative with or even superior to 35 existing algorithms (including some state-of-the-art algorithms) in terms of classification error and number of parameters.
BibTeX
@inproceedings{liu2022evolutionary,
  author = {Qingqing Liu and Xianpeng Wang and Yao Wang and Xiangman Song},
  title = {{Evolutionary convolutional neural network for image classification based on multi-objective genetic programming with leader–follower mechanism}},
  booktitle = {Complex},
  year = {2022},
  doi = {10.1007/s40747-022-00919-y},
}
Figure