Impacts of Darwinian Evolution on Pre-Trained Deep Neural Networks

Guodong Du, Runhua Jiang, Senqiao Yang, Haoyang Li, Wei Chen, Keren Li, Sim Kuan Goh, Ho-Kin Tang

Abstract

Standard training of Deep Neural Networks (DNNs) relies almost exclusively on gradient-based back-propagation (BP). While effective, BP faces challenges including high computational costs, sensitivity to hyperparameters, and susceptibility to vanishing or exploding gradients. This paper introduces EALEARNING, a hybrid optimization framework that leverages Differential Evolution (DE) to fine-tune models after they have been pre-trained. By initializing the evolutionary process with a "primordial ancestor" developed through BP, the framework overcomes the traditional "curse of dimensionality" associated with neuro-evolution. Experimental results across MNIST, CIFAR, and ImageNet demonstrate that this Darwinian refinement enhances accuracy, improves robustness to environmental corruptions, and reduces computational complexity during the final stages of training.

1. Introduction

The dominance of back-propagation (BP) in deep learning is well-established, yet its limitations—such as the requirement for explicit regularization and the mathematical intensity of gradient calculations—persist. Conversely, neuro-evolution offers a biologically inspired alternative that operates without gradients. However, evolving complex architectures from a "primordial soup" (random initialization) is often computationally prohibitive and fails to converge on large-scale tasks.

This research proposes a middle ground: using BP for the initial feature learning and Differential Evolution (DE) for the final optimization. This approach treats the pre-trained model as a "primordial ancestor," allowing evolution to act as a global search mechanism to refine weights and escape local minima that gradient descent might struggle with.

2. The EALEARNING Framework

The EALEARNING process is divided into two distinct phases:

2.1 The BP Stage: Creating the Primordial Ancestor

The network is first trained using standard gradient-based optimizers (e.g., Adam) for a set number of epochs. This stage ensures the model learns fundamental representations and reaches a high-performing region of the weight space.

2.2 The EA Stage: Darwinian Refinement

The weights of the pre-trained ancestor are used to initialize a population for Differential Evolution (DE). The optimization follows three main steps:

  • Mutation and Recombination: Candidate weight sets ("offspring") are generated by perturbing and combining existing weight vectors.
  • Evaluation: The "fitness" of each candidate is determined by its loss on the training set.
  • Selection: A survival-of-the-fittest mechanism ensures that only offspring with lower loss than their parents persist into the next generation.

This framework maps biological concepts directly to neural network optimization: species represent architectures, the environment represents the dataset, genetic traits are the weights, and survival fitness is the loss function.

3. Computational Efficiency

A significant advantage of the EALEARNING framework is its reduced time complexity during the refinement phase. Unlike BP, which requires both a forward pass to calculate loss and a backward pass to calculate gradients, DE only requires the forward pass (inference) to evaluate fitness. By eliminating the backward pass, the weight update phase becomes an order of magnitude more efficient than traditional gradient-based fine-tuning.

4. Experimental Results

The framework was rigorously tested on standard benchmarks (MNIST, Fashion-MNIST, CIFAR-10, CIFAR-100, and ImageNet) and robustness benchmarks (MNIST-C, CIFAR-10-C).

4.1 Accuracy Improvements

The DE-tuned models consistently outperformed Adam-only baselines. Notable improvements include:

  • LeNet5 on CIFAR-100: Accuracy increased from 24.47% to 26.73%.
  • ResNet18 on ImageNet: Accuracy rose from 66.12% to 66.87%.

The results suggest that DE acts as an effective global search, finding superior local minima that BP misses. Furthermore, DE appears to provide implicit regularization, achieving these gains without the $L2$ weight decay typically required by BP.

4.2 Robustness to Noise

One of the most compelling findings is the enhanced robustness of evolved models. When tested on corrupted data (MNIST-C), the Mean Corruption Error (mCE) for LeNet5 dropped from 13.9% to 11.6%. This indicates that the evolutionary process helps the model generalize better to out-of-distribution data and environmental noise.

5. Discussion and Future Work

While EALEARNING demonstrates clear benefits, the scale of improvement on massive datasets like ImageNet remains modest (under 1%). Additionally, the current implementation requires manual tuning of DE hyperparameters, such as the mutation factor ($F$) and crossover rate ($Cr$).

Future research will focus on Adaptive DE, where these hyperparameters evolve alongside the network weights. Such advancements could potentially unlock higher performance gains and further streamline the optimization of extremely deep architectures.

6. Conclusion

By combining the strengths of gradient-based learning and Darwinian evolution, the EALEARNING framework provides a robust and efficient alternative for fine-tuning DNNs. It proves that while evolution may struggle to build complex systems from scratch, it is an exceptionally powerful tool for refining pre-trained "ancestors," leading to models that are more accurate, more robust, and computationally cheaper to finalize.

Summary updated

BibTeX
@inproceedings{du2024impacts,
  author = {Guodong Du and Runhua Jiang and Senqiao Yang and Haoyang Li and Wei Chen and Keren Li and Sim Kuan Goh and Ho-Kin Tang},
  title = {{Impacts of Darwinian Evolution on Pre-Trained Deep Neural Networks}},
  booktitle = {SMC},
  year = {2024},
  doi = {10.1109/smc54092.2024.10831875},
}
Figure