BatOpt: Optimizing GPU-Based Deep Learning Inference Using Dynamic Batch Processing
IEEE Transactions on Cloud Computing · 2024-01 · 12 (1) · 174-185
DOI: 10.1109/tcc.2024.3350561 ↗Kurz gefasst
Fachartikel in der Zeitschrift IEEE Transactions on Cloud Computing, 2024-01. Verfasst von Deyu Zhang und 4 weiteren Autor:innen. Die Arbeit wurde bisher 15-mal zitiert (Crossref) und nennt 34 Literaturangaben. Gefördert von: National Key R&D Program of China, National Natural Science Foundation of China, Natural Science Foundation of Hunan Province.
Abstract (Originalsprache)
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$ 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.
Förderung
- National Key R&D Program of China
- National Natural Science Foundation of China
- Natural Science Foundation of Hunan Province
- National Science Fund for Excellent Young Scholars of Hunan Province
- Central South University
Zitieren
APA
Zhang, D., Luo, Y., Wang, Y., Kui, X., & Ren, J. (2024). BatOpt: Optimizing GPU-Based Deep Learning Inference Using Dynamic Batch Processing. IEEE Transactions on Cloud Computing, 12(1), 174-185. https://doi.org/10.1109/tcc.2024.3350561
Vancouver
Zhang D, Luo Y, Wang Y, Kui X, Ren J. BatOpt: Optimizing GPU-Based Deep Learning Inference Using Dynamic Batch Processing. IEEE Transactions on Cloud Computing. 2024;12(1):174-185. doi:10.1109/tcc.2024.3350561
BibTeX
@article{Zhang2024,
author = {Zhang, Deyu and Luo, Yunzhen and Wang, Yaobo and Kui, Xiaoyan and Ren, Ju},
title = {BatOpt: Optimizing GPU-Based Deep Learning Inference Using Dynamic Batch Processing},
journal = {IEEE Transactions on Cloud Computing},
year = {2024},
volume = {12},
number = {1},
pages = {174--185},
doi = {10.1109/tcc.2024.3350561}
}
EUVIMED