arrow
Return

Optimizing Depthwise Separable Convolution Operations on GPUs

delete2022-01-01
delete35
delete
OA
AI
G
Gangzhao Lu
张
张伟哲 (Weizhe Zhang) *
Z
Zheng Wang
DOI:10.1109/TPDS.2021.3084813delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
The depthwise separable convolution is commonly seen in convolutional neural networks (CNNs), and is widely used to reduce the computation overhead of a standard multi-channel 2D convolution. Existing implementations of depthwise separable convolutions target accelerating model training with large batch sizes with a large number of samples to be processed at once. Such approaches are inadequate for small-batch-sized model training and the typical scenario of model inference where the model takes in a few samples at once. This article aims to bridge the gap of optimizing depthwise separable convolutions by targeting the GPU architecture. We achieve this by designing two novel algorithms to improve the column and row reuse of the convolution operation to reduce the number of memory operations performed on the width and the height dimensions of the 2D convolution. Our approach employs a dynamic tile size scheme to adaptively distribute the computational data across GPU threads to improve GPU utilization and to hide the memory access latency. We apply our approach on two GPU platforms: an NVIDIA RTX 2080Ti GPU and an embedded NVIDIA Jetson AGX Xavier GPU, and two data types: 32-bit floating point (FP32) and 8-bit integer (INT8). We compared our approach against cuDNN that is heavily tuned for the NVIDIA GPU architecture. Experimental results show that our approach delivers over 2x (up to 3x) performance improvement over cuDNN. We show that, when using a moderate batch size, our approach averagely reduces the end-to-end training time of MobileNet and EfficientNet by 9.7 and 7.3 percent respectively, and reduces the end-to-end inference time of MobileNet and EfficientNet by 12.2 and 11.6 percent respectively.
Keywords:
Convolution
Graphics processing units
Instruction sets
Kernel
Standards
Training
Registers
Performance optimization
convolution
depthwise
pointwise
memory optimization
GPU utilization
Enabling Efficient Fast Convolution Algorithms on GPUs via MegaKernels
err2020-01-01
err19
errOAAI
errJia, Liancheng; Liang, Yun; Li, Xiuhong; Lu, Liqiang; Yan, Shengen
errShare
errSave
How Much Can We Gain From Tensor Kernel Fusion on GPUs?
err2024-01-01
err1
errOAAI
errSun, Wei; Li, Ang; Stuijk, Sander; Corporaal, Henk
errShare
errSave
Optimizing Finite Volume Method Solvers on Nvidia GPUs
err2019-12-01
err10
PREAI
errXu, Jingheng; Fu, Haohuan; Luk, Wayne; Gan, Lin; Shi, Wen; Xue, Wei; Yang, Chao; Jiang, Yong; He, Conghui; Yang, Guangwen
errShare
errSave
TurboDL: Improving the CNN Training on GPU With Fine-Grained Multi-Streaming Scheduling
err2021-04-01
err6
errOAAI
errJin, Hai; Wu, Wenchao; Shi, Xuanhua; He, Ligang; Zhou, Bing Bing
errShare
errSave
DO-Conv: Depthwise Over-Parameterized Convolutional Layer
err2022-01-01
err95
errOAAI
errCao, Jinming; Li, Yangyan; Sun, Mingchao; Chen, Ying; Lischinski, Dani; Cohen-Or, Daniel; Chen, Baoquan; Tu, Changhe
errShare
errSave
MDSCN: multiscale depthwise separable convolutional network for underwater graphics restoration
err2024-06-17
err1
PREAI
errLi, Shiyu; Liu, Zehao; Gao, Meijing; Bai, Yang; Yin, Haozheng
errShare
errSave

Journal

IEEE Transactions on Parallel and Distributed Systems cover
IEEE Transactions on Parallel and Distributed Systems
IF:
6
Papers:
5.2K
Citations:
1.4W

Organization

Harbin Institute of Technology cover
Harbin Institute of Technology
Scholars:
1.1W
Papers: 3.1K
Citations: 5.7W
U
University of Leeds
Scholars:
2.3K
Papers: 946
Citations: 2.5W
Cited Papers

Cited Papers

Enabling Efficient Fast Convolution Algorithms on GPUs via MegaKernels
err2020-01-01
err19
errOAAI
errJia, Liancheng; Liang, Yun; Li, Xiuhong; Lu, Liqiang; Yan, Shengen
errShare
errSave
Promoting Inclusive Growth
err
IF0
err2012-04-06
err0
errOAAI
err
errShare
errSave
Enzymes et micro-organismes aux interfaces : mécanismes physico-chimiques et propriétés
err2006-04-26
err0
PREAI
errP. G. Rouxhet; S. Caillou; C. J. Nonckreman; A. Alves; P. A. Gerin
errShare
errSave
Assessment of the Glue-Line Quality in Glued Laminated Timber Structures
err2013-09-01
err0
PREAI
errBettina Franke; Florian Scharmacher; Andreas Müller
errShare
errSave
Ultrastructure of the spore in four Japanese species ofPtychomitriumFürnr. (Musci)
err2006-03-01
err0
PREAI
errBelén Estébanez; Tomio Yamaguchi; Hironori Deguchi
errShare
errSave
researcher View more