Reinforcement Learning for AI as a Service: CPU-GPU Task Scheduling for Preprocessing, Training, and Inference Tasks
The rise of AI solutions has driven the emergence of AI as a Service (AIaaS), offering cost-effective and scalable solutions by outsourcing AI functionalities to specialized providers. Within AIaaS, three key components are essential: segmenting AI services into preprocessing, training, and inference tasks; utilizing GPU-CPU heterogeneous systems where GPUs handle parallel processing and CPUs manage sequential tasks; and minimizing latency in a distributed architecture consisting of cloud, edge, and fog computing. Efficient task scheduling is crucial to optimize performance across these components. In order to enhance task scheduling in AIaaS, we propose a user-experience-and-performance-balanced reinforcement learning (UXP-RL) algorithm. The UXP-RL algorithm considers 11 factors, including queuing task information. It then estimates resource release times and observes previous action outcomes, to select the optimal AI task for execution on either a GPU or CPU. This method effectively reduces the average turnaround time, particularly for rapid inference tasks. Our experimental findings show that the proposed RL-based scheduling algorithm reduces average turnaround time by 27.66% to 57.81% compared to the heuristic approaches such as SJF and FCFS. In a distributed architecture, utilizing distributed RL schedulers reduces the average turnaround time by 89.07% compared to a centralized scheduler.
Authors
- Ying‐Dar Lin (ORCID: https://orcid.org/0000-0002-5226-4396)
- Didik Sudyana (ORCID: https://orcid.org/0000-0001-5378-2622)
- Yuan‐Cheng Lai (ORCID: https://orcid.org/0000-0003-3695-5784)
- Yangrong Ling (ORCID: https://orcid.org/0000-0002-5973-8486)
Institutions
- National Yang Ming Chiao Tung University (TW)
- National Taiwan University of Science and Technology (TW)
- National Cheng Kung University (TW)
Publication Details
- Journal
- IEEE Transactions on Network and Service Management
- Published
- 2025-04-25
- DOI
- https://doi.org/10.1109/tnsm.2025.3564480
- Primary Topic
- Reinforcement Learning in Robotics
- Type
- article
- Field-Weighted Citation Impact
- 0.00