Abstract
With the rise of cloud computing and AI, training neural networks in cloud-edge environments requires efficient task scheduling. Model segmentation—splitting a model between edge and cloud—is a promising approach, but finding the optimal split point is challenging due to factors like resource allocation and network bandwidth. This paper introduces the Cloud-Edge Collaborative Task Scheduling method based on model segmentation (CECMS). CECMS utilizes a pre-execution phase to gather accurate performance metrics and an improved multi-objective evolutionary algorithm to determine the best segmentation point. Experimental results demonstrate that CECMS minimizes task execution time while maximizing edge resource utilization, outperforming existing adaptive frameworks.
Introduction
Training large-scale Deep Neural Networks (DNNs) on edge devices is often constrained by limited memory and processing power. Conversely, offloading entire training tasks to the cloud can lead to significant latency and high energy consumption due to data transmission. Model segmentation offers a middle ground by executing initial layers at the edge and offloading subsequent layers to the cloud. However, existing methods often overlook edge resource utilization, leading to inefficiencies. The CECMS method addresses this by balancing execution time and hardware utilization through intelligent scheduling.
The CECMS Framework
The CECMS method is designed to optimize the distribution of DNN layers across a collaborative cloud-edge environment. The architecture involves a user uploading data and models to an edge node, which then coordinates with the cloud to determine the most efficient split point.
Core Methodology
The CECMS approach consists of three primary phases:
- Pre-execution Phase: To avoid relying on inaccurate theoretical estimates, the edge node pre-executes the model using a small data sample (typically 10%). This measures real-world metrics such as Floating Point Operations (FLOPs), memory occupancy, and intermediate data sizes for each layer.
- Multi-Objective Optimization (MTMGMO): The system employs a Multi-Threading Multi-Group Multi-Objective algorithm, an enhancement of NSGA-III. By running multiple populations in parallel, it rapidly identifies the optimal split point without the computational overhead typical of genetic algorithms.
- Dual-Goal Scheduling: The optimization function targets two objectives: minimizing total task completion time (computation + transmission) and maximizing the utilization of available edge memory.
Experimental Evaluation and Results
The researchers validated CECMS using standard datasets (CIFAR-10) and specialized medical imaging data (Pathological Recognition Dataset) across various architectures like AlexNet and VGG.
- Optimization Efficiency: The MTMGMO algorithm proved to be 60% faster than traditional single-threaded approaches in finding the optimal split point.
- Performance Gains: For AlexNet, CECMS identified the 6th layer as the ideal split, reducing training duration by 85% compared to cloud-only offloading by minimizing raw data transfer.
- Resource Management: Compared to baseline algorithms like DADS and ADC, CECMS maintained competitive execution times while improving edge memory utilization by approximately 2%. In scenarios where edge resources were ample, the system correctly defaulted to edge-only execution, avoiding unnecessary cloud costs.
Conclusion
CECMS provides a robust framework for cloud-edge collaboration, ensuring that hardware resources are not wasted while maintaining high performance. Future work will focus on adapting to dynamic network fluctuations in real-time and incorporating energy consumption as a primary optimization objective for battery-constrained IoT devices.
Reference: Zhang, C., Chen, J., Li, W. et al. A cloud-edge collaborative task scheduling method based on model segmentation. J Cloud Comp 13, 81 (2024).
Summary updated