AI-oriented Medical Workload Allocation for Hierarchical Cloud/Edge/Device Computing

Tianshu Hao, Jianfeng Zhan, Kai Hwang, Wanling Gao, Xu WenarXiv 2020

TL;DR

This paper tackles the challenge of optimizing AI workload allocation in a hierarchical cloud/edge/device computing environment for critical medical applications. They propose a novel strategy that dynamically assigns AI tasks to the most suitable layer (cloud, edge, or device) to minimize response times, crucial for life-saving scenarios. Their approach demonstrates significant improvements in overall response time for both single and multiple AI jobs compared to traditional methods.

What Problem Does This Paper Address?

In modern computing, AI workloads are increasingly being deployed across a spectrum of devices, from powerful cloud servers to resource-constrained edge devices and end-user gadgets. This hierarchical structure offers flexibility but introduces a critical challenge: where should an AI workload be executed to achieve the lowest possible response time? This is particularly vital in latency-sensitive applications like those found in emergency rooms (ER) or intensive care units (ICU), where even milliseconds can impact patient outcomes. Traditional approaches often default to edge servers for real-time processing, but this paper argues that this isn't always optimal. The authors highlight the need for a dynamic allocation strategy that considers the varying computational capabilities of each layer, network conditions, and the specific characteristics of the AI workload itself to minimize latency.

Methods

The paper introduces a two-pronged approach:

  • Single Workload Allocation: For individual AI tasks, they develop an optimization strategy that calculates the estimated response time for deploying the workload on each of the three layers (cloud, edge, end device). This estimation considers factors like the AI model's computational complexity (measured in FLOPs), the device's processing power (also in FLOPS), and the data transmission time between layers. By comparing these estimated times, they determine the optimal layer for a single workload.
  • Multi-job Scheduling Strategy: To handle scenarios with multiple AI jobs arriving sequentially (like in an ICU with multiple patients), they propose a heuristic greedy algorithm. This algorithm builds upon the single-workload allocation by considering job priorities, release times, and the constraint that each machine can only process one job at a time (except for end devices, which are assumed to be dedicated). The algorithm iteratively optimizes the deployment of jobs across the available layers to minimize the overall response time of all jobs.

Datasets

The authors utilize the Edge AIBench benchmark [15] to extract relevant AI workloads. Specifically, they focus on three ICU patient monitoring AI applications:

  • Short-of-breath alerts
  • Patient phenotype classification
  • Life-death prediction

For training and evaluation, they use real-world medical data from the MIMIC-III database [22].

Key Insights and Ideas

  • No One-Size-Fits-All: The most significant insight is that the optimal deployment layer for an AI workload is highly dependent on its characteristics. Heavy-weight, complex models might benefit from cloud processing, while simpler, latency-critical tasks might be best handled by end devices.
  • Trade-off is Crucial: The core of the problem lies in balancing processing time (dependent on device capability) and transmission time (dependent on network conditions and data size). Their method explicitly models this trade-off.
  • Prioritization Matters for Multi-jobs: When dealing with multiple AI tasks, simply assigning each to its individually optimal layer isn't sufficient. A scheduling strategy that accounts for job priorities and arrival times is essential to minimize the overall system response.
  • End Devices Can Be Optimal: For certain workloads, particularly those with smaller models and high latency sensitivity, deploying directly on the end device can yield the lowest response time, bypassing edge and cloud entirely.

Key Results

  • Single Workload Optimization: Their algorithm successfully predicted the optimal deployment layer for most tested workloads, aligning well with experimental results. For instance, "short-of-breath alerts" were best deployed on the edge server, while "life-death prediction" tasks were optimal on the end device.
  • Multi-job Scheduling: Their proposed allocation and scheduling strategy for multiple jobs achieved a significantly lower "whole response time" and "last response time" compared to other strategies (e.g., deploying all on cloud, edge, or end devices, or using individually optimal layers). Specifically, their strategy resulted in 33% to 63% lower whole response times than these baseline approaches.

Limitations and Future Work

  • Simplified Model: The paper acknowledges that their model simplifies the problem by assuming only one cloud server and one edge server, and that end devices are not shared machines. Real-world scenarios might involve multiple edge servers or shared end devices.
  • Heuristic Algorithm: The multi-job scheduling uses a heuristic greedy algorithm, which aims for a good solution but doesn't guarantee absolute optimality.
  • Future Work: The authors suggest that future research could explore more complex scenarios with multiple edge servers and shared end devices. They also mention the need to consider other factors beyond latency, such as energy consumption and resource utilization, in their allocation strategies.

Summary updated

Abstract

In a hierarchically-structured cloud/edge/device computing environment, workload allocation can greatly affect the overall system performance. This paper deals with AI-oriented medical workload generated in emergency rooms (ER) or intensive care units (ICU) in metropolitan areas. The goal is to optimize AI-workload allocation to cloud clusters, edge servers, and end devices so that minimum response time can be achieved in life-saving emergency applications. In particular, we developed a new workload allocation method for the AI workload in distributed cloud/edge/device computing systems. An efficient scheduling and allocation strategy is developed in order to reduce the overall response time to satisfy multi-patient demands. We apply several ICU AI workloads from a comprehensive edge computing benchmark Edge AIBench. The healthcare AI applications involved are short-of-breath alerts, patient phenotype classification, and life-death threats. Our experimental results demonstrate the high efficiency and effectiveness in real-life health-care and emergency applications.
BibTeX
@misc{hao2020ai,
  author = {Tianshu Hao and Jianfeng Zhan and Kai Hwang and Wanling Gao and Xu Wen},
  title = {{AI-oriented Medical Workload Allocation for Hierarchical Cloud/Edge/Device Computing}},
  year = {2020},
  eprint = {2002.03493},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.03493},
}
Figure