arrow
返回

p-im2col: Simple Yet Efficient Convolution Algorithm With Flexibly Controlled Memory Overhead

delete2021-01-01
delete12
delete
OA
AI
A
Anton Trusov *
E
Elena Limonova
D
Dmitry Nikolaev
V
Vladimir V. Arlazarov
DOI:10.1109/ACCESS.2021.3135690delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Convolution is the most time-consuming operation in modern deep artificial neural networks, so its performance is crucial for fast inference. One of the standard approaches to fast convolution computation is to use GeMM-based convolution algorithms relying on efficient general matrix multiplication (GeMM) from optimized BLAS libraries. However, commonly used GeMM-based algorithms may cause significant memory overhead or avoid it only at the cost of worse performance. In this paper, we propose a novel convolution algorithm, p-im2col, based on a well-known im2col algorithm that avoids memory overhead by splitting a single multiplication of a large matrix into several multiplications of smaller matrices. We theoretically and experimentally compare our algorithm with two other GeMM-based algorithms: im2col, which is widely used as a baseline, and the memory-efficient kn2row-aa. We measure the inference time of these algorithms on central processing units of x86, x86_64, ARM, and MIPS architectures for a large set of convolutional parameters. The proposed algorithm demonstrates a speedup over im2col and kn2row-aa in a number of cases and a significant reduction in additional memory requirements compared to im2col. Based on our experiments, we present a new convolution algorithm selection scheme that considers memory restrictions, CPU architecture, and convolutional parameters and provides a noticeable advantage over each particular algorithm.
Keyword:
Convolution
Inference algorithms
Memory management
Tensors
Libraries
Neural networks
Kernel
Computational efficiency
convolutional neural networks
GeMM-based convolution
memory consumption

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
9.8W
被引数:
29.4W

机构

M
moscow institute of physics & technology
学者数:
4.5K
论文数: 3.0K
被引数: 3
R
russian academy of sciences
学者数:
9.1W
论文数: 6.0W
被引数: 60
引用论文

引用论文

err分享
err收藏
Convolutional Neural Networks Based Fire Detection in Surveillance Videos基于卷积神经网络的监控视频火灾检测
err2018-01-01
err320
errOAAI
errMuhammad, Khan; Ahmad, Jamil; Mehmood, Irfan; Rho, Seungmin; Baik, Sung Wook
err分享
err收藏
Polysome profiling shows extensive posttranscriptional regulation during human adipocyte stem cell differentiation into adipocytes
err2013-09-01
err0
errOAAI
errLucia Spangenberg; Patricia Shigunov; Ana Paula R. Abud; Axel R. Cofré; Marco A. Stimamiglio; Crisciele Kuligovski; Jaiesa Zych; Andressa V. Schittini; Alexandre Dias Tavares Costa; Carmen K. Rebelatto; Paulo R.S. Brofman; Samuel Goldenberg; Alejandro Correa; Hugo Naya; Bruno Dallagiovanna
err分享
err收藏
学者 查看更多内容