Optimising ML Pipeline Execution via Smart Task Placement
The adoption of Machine Learning Operations (MLOps) has grown rapidly as organisations seek to streamline the development and deployment of machine learning (ML) models. A core concept in MLOps workflows is the ML pipeline, consisting of a sequence of tasks representing the various stages of the ML lifecycle, such as data preprocessing, model training, and evaluation. As these tasks have different resource requirements and computational demands, using heterogeneous computing environments has become important. However, to exploit this heterogeneity, it is essential to map each task within a pipeline to the right machine. This paper introduces a modular and flexible placement system for ML pipelines that automatically allocates tasks to the most suitable machines in order to reduce execution and waiting times. Although designed to support custom placement strategies, the system employs a two-phase strategy: pipeline scheduling and task placement. During the scheduling phase, the Shortest Job First (SJF) algorithm determines the execution order of the pipelines. In the task placement phase, a heuristic-based method is used to assign tasks to machines. Experimental evaluations across a range of ML models and datasets demonstrate that the proposed system significantly outperforms baseline methods and the Kubernetes default scheduler. It achieved reductions of up to 68% in total execution time, and over 80% in average waiting time. Moreover, the system also demonstrates efficient pipeline dispatching in scenarios where multiple pipelines are submitted for execution. These results highlight the system’s potential to improve resource utilisation and accelerate ML model development in heterogeneous environments.
Authors
- Pedro Rodrigues (ORCID: https://orcid.org/0009-0009-5916-4062)
- Mário Antunes (ORCID: https://orcid.org/0000-0002-6504-9441)
- Júlio Corona (ORCID: https://orcid.org/0009-0001-7898-7883)
- Rui L. Aguiar (ORCID: https://orcid.org/0000-0003-0107-6253)
Institutions
- Instituto de Telecomunicações (PT)
- University of Aveiro (PT)
Publication Details
- Journal
- Electronics
- Published
- 2025-06-24
- DOI
- https://doi.org/10.3390/electronics14132555
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Universidade de Aveiro
- Fundação para a Ciência e a Tecnologia