DarwinML: A Graph-based Evolutionary Algorithm for Automated Machine Learning

Fei Qi, Zhaohui Xia, Gaoyang Tang, Hang Yang, Yu Song, Guangrui Qian, Xiong An, Chunhuan Lin, Guangming ShiarXiv 2019

Introduction

Building high-performing machine learning (ML) solutions is traditionally a labor-intensive process, requiring deep expertise in data preprocessing, feature engineering, and model selection. While Automated Machine Learning (AutoML) tools aim to streamline this, many are limited by rigid architectural constraints. For instance, tree-based tools like TPOT follow strict hierarchies, while stacking-based tools like Autostacker utilize fixed layer-by-layer ensembles.

DarwinML introduces a more flexible approach by representing ML pipelines as Directed Acyclic Graphs (DAGs). This allows for complex data flows where features can bypass layers or be processed in parallel, significantly expanding the search space for optimal model combinations.

Methodology: The Evolutionary Framework

The core of DarwinML is a specialized Evolutionary Algorithm (EA) designed to navigate the vast space of possible DAG architectures. The algorithm treats ML models—such as classifiers, regressors, or unsupervised models like k-means—as vertices, while edges represent the flow of data between them.

Overview of the Evolutionary Algorithm process, showing the transition from initial random graphs to an optimized evolved graph through various operations.

The EA employs several key operators to evolve the population:

  1. Random Operation: Initializes a diverse set of starting architectures.
  2. Mutation Operations: Includes vertex mutation (swapping models), edge mutation (altering connections), and layer mutation (adjusting the graph's scale).
  3. Heredity Operation: A sophisticated crossover mechanism that replaces underperforming layers in one individual with successful layers from another, effectively "broadcasting" high-performing sub-structures.
  4. Bayesian Hyper-parameter Optimization (BHO): Once the EA identifies the top five architectures, BHO fine-tunes the internal parameters of each model within the graph.
The adjacency matrix representation and layer unit structure that define the connectivity and hierarchy of the model graph.

The fitness function used during evolution balances predictive accuracy against model complexity, ensuring that the resulting pipelines remain efficient and interpretable.

Experimental Results

The researchers evaluated DarwinML using 15 datasets from the Penn Machine Learning Benchmark (PMLB), covering various binary and multi-class classification tasks. DarwinML was compared against industry standards including TPOT, Autostacker, and auto-sklearn.

Key findings include:

  • Superior Performance: DarwinML achieved the highest mean balanced accuracy on 12 out of the 15 datasets.
  • Robustness: On challenging datasets like parity5+5, DarwinML significantly outperformed competitors, often reaching perfect accuracy.
  • Effective Search: Experimental data confirmed that the "Heredity" and "Mutation" operators consistently produce individuals that outperform those generated by random sampling, validating the evolutionary approach.

Insights and Future Directions

DarwinML demonstrates that moving from rigid trees to flexible graphs allows for the discovery of non-intuitive, high-performing structures that human experts might overlook. By incorporating unsupervised models as automated feature extractors and separating architecture search from hyperparameter tuning, the framework remains both powerful and computationally feasible.

While currently focused on traditional ML models, the authors plan to extend these graph-based evolutionary principles to Neural Architecture Search (NAS) to discover novel deep learning architectures.

Summary updated

BibTeX
@misc{qi2019darwinml,
  author = {Fei Qi and Zhaohui Xia and Gaoyang Tang and Hang Yang and Yu Song and Guangrui Qian and Xiong An and Chunhuan Lin and Guangming Shi},
  title = {{DarwinML: A Graph-based Evolutionary Algorithm for Automated Machine Learning}},
  year = {2019},
  eprint = {1901.08013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.08013},
}
Figure