LaLaRAND: Flexible Layer-by-Layer CPU/GPU Scheduling for Real-Time DNN Tasks

Woosung Kang, Kilho Lee, Jinkyu Lee, Insik Shin, Hoon Sung Chwa

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

64 Scopus citations

Abstract

Deep neural networks (DNNs) have shown remarkable success in various machine-learning (ML) tasks useful for many safety-critical, real-time embedded systems. The foremost design goal for enabling DNN execution on real-time embedded systems is to provide worst-case timing guarantees with limited computing resources. Yet, the state-of-the-art ML frameworks hardly leverage heterogeneous computing resources (i.e., CPU, GPU) to improve the schedulability of real-time DNN tasks due to several factors, which include a coarse-grained resource allocation model (one-resource-per-task), the asymmetric nature of DNN execution on CPU and GPU, and lack of schedulability-aware CPU/GPU allocation scheme. This paper presents, to the best of our knowledge, the first study of addressing the above three major barriers and examining their cooperative effect on schedulability improvement. In this paper, we propose LaLaRAND, a real-time layer-level DNN scheduling framework, that enables flexible CPU/GPU scheduling of individual DNN layers by tightly coupling CPU-friendly quantization with fine-grained CPU/GPU allocation schemes (one-resource-per-layer) while mitigating accuracy loss without compromising timing guarantees. We have implemented and evaluated LaLaRAND on top of the state-of-the-art ML framework to demonstrate its effectiveness in making more DNN task sets schedulable by 56% and 80% over an existing approach and a baseline (vanilla PyTorch), respectively, with only up to -0.4% of performance (inference accuracy) difference.

Original languageEnglish
Title of host publicationProceedings - 2021 IEEE 42nd Real-Time Systems Symposium, RTSS 2021
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages329-341
Number of pages13
ISBN (Electronic)9781665428026
DOIs
StatePublished - 2021
Event42nd IEEE Real-Time Systems Symposium, RTSS 2021 - Virtual, Online, Germany
Duration: 7 Dec 202110 Dec 2021

Publication series

NameProceedings - Real-Time Systems Symposium
Volume2021-December
ISSN (Print)1052-8725

Conference

Conference42nd IEEE Real-Time Systems Symposium, RTSS 2021
Country/TerritoryGermany
CityVirtual, Online
Period7/12/2110/12/21

Fingerprint

Dive into the research topics of 'LaLaRAND: Flexible Layer-by-Layer CPU/GPU Scheduling for Real-Time DNN Tasks'. Together they form a unique fingerprint.

Cite this