Journal of Xidian University ›› 2020, Vol. 47 ›› Issue (2): 98-107.doi: 10.19665/j.issn1001-2400.2020.02.014

Previous Articles     Next Articles

Optimization of memory access for the convolutional neural network training

WANG Jijun,HAO Ziyu,LI Hongliang   

  1. Jiangnan Institute of Computing Technology, Wuxi 214083, China
  • Received:2019-11-14 Online:2020-04-20 Published:2020-04-26

Abstract:

Batch Normalization (BN) can effectively speed up deep neural network training, while its complex data dependence leads to the serious "memory wall" bottleneck. Aiming at the "memory wall" bottleneck for the training of the convolutional neural network(CNN) with BN layers, an effective memory access optimization method is proposed through BN reconstruction and fused-layers computation. First, through detailed analysis of BN’s data dependence and memory access features during training, some key factors for large amounts of memory access are identified. Second, the “Convolution + BN + ReLU (Rectified Linear Unit)” block is fused as a computational block to reduce memory access with re-computing strategy in training. Besides, the BN layer is split into two sub-layers which are respectively fused with its adjacent layers, and this approach further reduces memory access during training and effectively improves the accelerator’s computational efficiency. Experimental results show that the amount of memory access is decreased by 33%, 22% and 31% respectively, and the actual computing efficiency of the V100 is improved by 20.5%, 18.5% and 18.1% respectively when the ResNet-50, Inception V3 and DenseNet are trained on the NVIDIA TELSA V100 GPU with the optimization method. The proposed method exploits the characteristics of memory access during training, and can be used in conjunction with other optimization methods to further reduce the amount of memory access during training.

Key words: deep convolutional neural networks, model training, fused-layers, batch normalization reconstruction, off-chip memory access optimization.

CLC Number: 

  • TP391

Baidu
map