Automated evolutionary approach for the design of composite machine learning pipelines

Nikolay O. Nikitin, Pavel Vychuzhanin, Mikhail Sarafanov, Iana S. Polonskaia, Ilia Revin, Irina V. Barabanova, Gleb Maximov, Anna V. Kalyuzhnaya, Alexander Boukhanovsky · DOI

Introduction

Automated Machine Learning (AutoML) has significantly lowered the barrier to entry for developing high-performing predictive models. However, most contemporary AutoML frameworks are limited by a "fixed-shape" paradigm, typically arranging operations in a linear sequence: data cleaning, followed by feature engineering, and ending with a single estimator. This paper introduces an automated evolutionary approach for designing "composite" machine learning pipelines—complex, graph-based structures that transcend these linear constraints. By implementing this approach in the open-source FEDOT framework, the authors demonstrate that the automated discovery of pipeline topologies leads to superior performance across diverse tasks, including classification, regression, and time-series forecasting.

The Structural Gap in AutoML

The authors identify a critical gap between Workflow Management Systems (WMS) and existing AutoML tools. While WMS can handle complex, multi-stage Directed Acyclic Graphs (DAGs), they generally lack the "intelligent" automation required to optimize these structures without manual intervention. Conversely, while AutoML excels at model selection and hyperparameter tuning, it often lacks the structural flexibility to handle multi-modal data or sophisticated ensembling techniques.

The challenge lies in treating the pipeline structure itself as an optimization variable. A composite pipeline allows for parallel feature extraction, multi-level stacking, and the integration of domain-specific operations into a unified graph.

The FEDOT Framework: Evolutionary Design

The proposed solution utilizes an Evolutionary Composer based on genetic programming to explore the vast search space of possible pipeline topologies.

Key Components:

  1. Unified Abstraction: Every step in the pipeline—whether a Random Forest classifier, a Principal Component Analysis (PCA) transformation, or a simple scaling operation—is treated as a "node" within a DAG.
  2. Structural Evolution: The system employs genetic operators such as mutation (adding, deleting, or replacing nodes) and crossover (swapping sub-graphs between candidate pipelines) to iteratively improve the population of models.
  3. Sensitivity Analysis (SA): To prevent the evolution of overly complex or redundant graphs, the authors introduce a structural pruning step. By evaluating the impact of individual nodes on the final score, the system can remove "dead weight," resulting in leaner and more interpretable models.
  4. Atomization: This technique allows a previously optimized pipeline to be "collapsed" into a single meta-node. These atomized models can then be reused as building blocks in even more complex, nested pipelines, significantly reducing the search space for subsequent tasks.
  5. Simultaneous Hyperparameter Tuning: Rather than tuning nodes in isolation, the framework utilizes Bayesian optimization to tune the hyperparameters of all nodes in the graph simultaneously, ensuring that the components work harmoniously.

Experimental Validation

The FEDOT framework was benchmarked against leading AutoML tools, including TPOT, H2O, Auto-Sklearn, and MLBox. The evaluation spanned several domains:

  • PMLB Benchmarks: 10 datasets from the Penn Machine Learning Benchmarks covering regression (e.g., FacultySalaries, cpu_small) and classification (e.g., magic, spect).
  • Time-Series Forecasting: 12 datasets from the Federal Reserve Economic Data (FRED) archive, testing the framework's ability to handle varying sequence lengths.
  • Real-World Applications: Specific tests on credit scoring and cholesterol prediction to validate the sensitivity analysis and structural robustness.

Results and Discussion

The experimental results highlight the clear advantages of topological flexibility:

  • Regression and Classification: In regression tasks, FEDOT achieved the lowest Mean Absolute Error (MAE) in 4 out of 5 benchmarks. For instance, on the FacultySalaries dataset, FEDOT achieved an MAE of 1.120, significantly outperforming TPOT (1.508) and MLBox (3.670). Similar dominance was observed in classification tasks, where FEDOT consistently outperformed competitors in F1-score and ROC-AUC.
  • Time-Series Excellence: The most striking results appeared in time-series forecasting. FEDOT achieved an average Mean Absolute Percentage Error (MAPE) of 8.4%, whereas specialized tools like AutoTS (15.8%) and Facebook’s Prophet (50.4%) struggled, particularly with short-term horizons.
  • Structural Efficiency: Through sensitivity analysis, the authors demonstrated that evolved pipelines could be simplified without sacrificing accuracy, improving the "Sustainability Index" (a measure of structural robustness) of the models.

Conclusion and Future Work

The research demonstrates that the structure of a machine learning pipeline is often as critical as the choice of the final estimator. By automating the design of composite DAGs, FEDOT provides a powerful tool for tackling complex, real-world data challenges.

While the evolutionary approach is computationally intensive, the use of "atomization" and structural pruning helps mitigate these costs. Future work aims to evolve FEDOT into a "model factory" capable of generating adaptive, short-lived models for real-time MLOps environments and improving integration with distributed computing infrastructures like Kubernetes.

Summary updated

BibTeX
@article{nikitin2022automated,
  author = {Nikolay O. Nikitin and Pavel Vychuzhanin and Mikhail Sarafanov and Iana S. Polonskaia and Ilia Revin and Irina V. Barabanova and Gleb Maximov and Anna V. Kalyuzhnaya and Alexander Boukhanovsky},
  title = {{Automated evolutionary approach for the design of composite machine learning pipelines}},
  journal = {Future Generation Computer Systems},
  year = {2022},
  doi = {10.1016/j.future.2021.08.022},
}
Figure