arrow
Return

BatOpt: Optimizing GPU-Based Deep Learning Inference Using Dynamic Batch Processing

delete2024-01-01
delete1
PRE
AI
D
Deyu Zhang
Y
Yunzhen Luo
Y
Yaobo Wang
X
Xiaoyan Kui *
Ju Ren cover
Ju Ren (Ju Ren)
DOI:10.1109/TCC.2024.3350561delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Deep learning (DL) has been applied in billions of mobile devices due to its astonishing performance in image, text, and audio processing. However, limited by the computing capability of mobile devices, a large amount of DL inference tasks need to be offloaded to edge or cloud servers, which makes powerful GPU servers are struggling to ensure the quality of service(QoS). To better utilize the highly parallel computing architecture of GPU to improve the QoS, we propose BatOpt, a framework that uses dynamic batch processing to strike a good balance between service latency and GPU memory usage in DL inference services. Specifically, BatOpt innovatively models the DL inference service as a M/G(a,b)/1/N queue, with the consideration of stochastic task arrivals, which enables it to predict the service latency accurately in different system states. Furthermore, we propose an optimization algorithm to trade off the service latency and GPU memory usage in different system states by analyzing the queueing model. We have implemented BatOpt on Pytorch and evaluated it on an RTX 2080 GPU using real DL models. BatOpt brings up to 31x and 4.3x times performance boost in terms of service latency, compared to single-input and fixed-batch-size strategies, respectively. And BatOpt's maximum GPU memory usage is only 0.3x that of greedy-dynamic-batch-size strategy on the premise of the same service latency.
Keywords:
Graphics processing units
Task analysis
Servers
Throughput
Computational modeling
Mobile handsets
Stochastic processes
Deep learning
GPU servers
batch processing
stochastic process

Journal

I
IEEE Transactions on Cloud Computing
IF:
5
Papers:
1.8K
Citations:
4.3K

Organization

T
tsinghua university
Scholars:
11.9W
Papers: 10.0W
Citations: 137
C
Central South University
Scholars:
10.0W
Papers: 7.2W
Citations: 10.9W
H
hunan university
Scholars:
4.5W
Papers: 3.3W
Citations: 70
researcher View more organizations
Cited Papers

Cited Papers

Regulation and Functions of the lms Homeobox Gene during Development of Embryonic Lateral Transverse Muscles and Direct Flight Muscles in Drosophila
err2010-12-15
err0
errOAAI
errDominik Müller; Teresa Jagla; Ludivine Mihaila Bodart; Nina Jährling; Hans-Ulrich Dodt; Krzysztof Jagla; Manfred Frasch
errShare
errSave
CrowdVision: A Computing Platform for Video Crowdprocessing Using Deep Learning
err2019-07-01
err9
PREAI
errLu, Zongqing; Chan, Kevin; Pu, Shiliang; La Porta, Thomas
errShare
errSave
The neural basis of analogical reasoning: An event-related potential study
err2008-10-01
err0
PREAI
errJiang Qiu; Hong Li; Antao Chen; Qinglin Zhang
errShare
errSave
Studies on Au/Cu–Zn–Al catalyst for methanol synthesis from CO2
err2015-09-01
err0
PREAI
errNagaraju Pasupulety; Hafedh Driss; Yahia Abobakor Alhamed; Abdulrahim Ahmed Alzahrani; Muhammad A. Daous; Lachezar Petrov
errShare
errSave
Association of a 70‐kDa tyrosine phosphoprotein with the CD16:ζ:γ complex expressed in human natural killer cells
err2005-12-09
err0
PREAI
errEric Vivier; Antonio J. da Silva; Melissa Ackerly; Herbert Levine; Christopher E. Rudd; Paul Anderson
errShare
errSave
researcher View more