Advanced Search
    Wang Qinglin, Li Dongsheng, Mei Songzhu, Lai Zhiquan, Dou Yong. Optimizing Winograd-Based Fast Convolution Algorithm on Phytium Multi-Core CPUs[J]. Journal of Computer Research and Development, 2020, 57(6): 1140-1151. DOI: 10.7544/issn1000-1239.2020.20200107
    Citation: Wang Qinglin, Li Dongsheng, Mei Songzhu, Lai Zhiquan, Dou Yong. Optimizing Winograd-Based Fast Convolution Algorithm on Phytium Multi-Core CPUs[J]. Journal of Computer Research and Development, 2020, 57(6): 1140-1151. DOI: 10.7544/issn1000-1239.2020.20200107

    Optimizing Winograd-Based Fast Convolution Algorithm on Phytium Multi-Core CPUs

    • Convolutional neural networks (CNNs) have been extensively used in artificial intelligence fields such as computer vision and natural language processing. Winograd-based fast convolution algorithms can effectively reduce the computational complexity of convolution operations in CNNs so that they have attracted great attention. With the application of Phytium multi-core CPUs independently developed by the National University of Defense Technology in artificial intelligence fields, there is strong demand of high-performance convolution primitives for Phytium multi-core CPUs. This paper proposes a new high-performance parallel Winograd-based fast convolution algorithm after studying architecture characteristics of Phytium multi-core CPUs and computing characteristics of Winograd-based fast convolution algorithms. The new parallel algorithm does not rely on general matrix multiplication routines, and consists of four stages: kernels transformation, input feature maps transformation, element-wise multiplication, and output feature maps inverse transformation. The data movements in all four stages have been collaboratively optimized to improve memory access performance of the algorithm. The custom data layouts, multi-level parallel data transformation algorithms and multi-level parallel matrix multiplication algorithm have also been proposed to support the optimization above efficiently. The algorithm is tested on two Phytium multi-core CPUs. Compared with Winograd-based fast convolution implementations in ARM Computer Library (ACL) and NNPACK, the algorithm can achieve speedup of 1.05~16.11 times and 1.66~16.90 times, respectively. The application of the algorithm in the open source framework Mxnet improves the forward-propagation performance of the VGG16 network by 3.01~6.79 times.
    • loading

    Catalog

      Turn off MathJax
      Article Contents

      /

      DownLoad:  Full-Size Img  PowerPoint
      Return
      Return