Scheduling Real-time Deep Learning Services as Imprecise Computations

Shuochao Yao, Yifan Hao, Yiran Zhao, Huajie Shao, Dongxin Liu, Shengzhong Liu, Tianshi Wang, Jinyang Li, Tarek F. Abdelzaher

Introduction

The proliferation of autonomous systems and IoT devices has created a significant "compute gap." While these devices generate vast amounts of sensor data, they often lack the local processing power required for complex Deep Neural Network (DNN) tasks. Edge servers provide a solution by offering local, high-performance GPU nodes. However, scheduling multiple concurrent requests with strict deadlines on these servers is challenging. Traditional real-time schedulers often drop tasks that cannot be completed in full, resulting in zero utility.

This paper presents RTDeepIoT, a framework that addresses this by treating DNN tasks as "imprecise computations." Instead of monolithic blocks, DNNs are structured into a mandatory base and optional refinement stages, allowing the system to dynamically shed computation to meet deadlines while maximizing accuracy.

System Design and Methodology

The RTDeepIoT framework relies on three core innovations to manage real-time DNN execution:

  1. Stage-wise Architecture: Standard DNNs like ResNet are modified with "internal classifiers" at various depths. This enables the network to produce a valid result early (the mandatory part) or continue through subsequent stages (optional parts) for increased precision.
  2. Near-Optimal Scheduling: A dynamic programming-based algorithm determines the optimal number of stages for each task to maximize total system reward (accuracy). To ensure real-time feasibility, this is implemented as a Fully Polynomial Time Approximation Scheme (FPTAS).
  3. Dynamic Utility Prediction: The scheduler uses a novel "confidence" metric to estimate the value of additional computation. An Exponential Increase heuristic—which assumes each subsequent stage halves the remaining error—was found to be the most effective predictor.
RTDeepIoT System Architecture: The framework integrates stage-wise DNNs with dynamic confidence estimation and a centralized scheduling algorithm.

Evaluation and Key Results

The framework was evaluated using the CIFAR-10 and ImageNet benchmarks. ResNet models were retrained to include intermediate classifiers and calibrated for confidence-based scheduling. RTDeepIoT was compared against traditional baselines such as Earliest Deadline First (EDF) and Round Robin (RR).

Key findings include:

  • Accuracy Improvements: RTDeepIoT achieved a 10% to 20% boost in overall classification accuracy under heavy workloads compared to traditional schedulers.
  • Deadline Compliance: The system maintained nearly zero deadline misses by gracefully degrading result quality instead of failing entirely.
  • Low Overhead: The scheduling logic added only 0.5% to 6% to total execution time.
Performance Comparison: Accuracy vs. Minimum Relative Deadline on the CIFAR-10 dataset, showing the superiority of the RTDeepIoT-Exp and OPT variants.

Discussion and Future Work

RTDeepIoT demonstrates that DNNs are naturally suited for "anytime" computation due to their hierarchical nature. By using confidence as a proxy for accuracy, the system transforms probabilistic deep learning outputs into concrete scheduling metrics.

While effective, current limitations include a focus on single-task GPU execution and image classification. Future work may explore GPU spatial partitioning to increase throughput and extend the framework to other domains like LIDAR processing or voice recognition. Additionally, moving the scheduler from user-space to the OS kernel could further minimize overhead.

Summary updated

BibTeX
@inproceedings{yao2020scheduling,
  author = {Shuochao Yao and Yifan Hao and Yiran Zhao and Huajie Shao and Dongxin Liu and Shengzhong Liu and Tianshi Wang and Jinyang Li and Tarek F. Abdelzaher},
  title = {{Scheduling Real-time Deep Learning Services as Imprecise Computations}},
  booktitle = {RTCSA},
  year = {2020},
  doi = {10.1109/rtcsa50079.2020.9203676},
}
Figure