ConvBench:用于二维卷积原语评估的综合基准测试
ConvBench: A Comprehensive Benchmark for 2D Convolution Primitive Evaluation
AI总结:
针对现有卷积算法对比易出错、基准测试覆盖有限的问题,本文提出原语级基准ConvBench,基于千余真实模型的九千余卷积操作做全面评估,并借助其发现SConv算法的打包步骤减速问题,指明优化方向。
摘要:
卷积是卷积神经网络(CNN)核心的计算密集型操作,推动了Im2col-GEMM、Winograd、Direct-Convolution等多种高性能算法的发展。然而,不同卷积算法的对比是一项容易出错的任务,因为它需要特定的数据布局和系统资源,若不满足这些要求可能会产生不必要的时间损耗。因此,综合评估并公平比较卷积算法的性能,必须考虑算法内的所有处理步骤。此外,大多数现有卷积基准测试采用临时测试套件,覆盖范围有限且操作多为手工定制。本文提出ConvBench,一种用于评估和对比卷积算法的原语级基准测试工具。它评估了源自1097个真实深度学习模型的9243个卷积操作,生成性能与执行分解图以实现详细评估。研究还通过Sliced Convolution(SConv,切片卷积)算法验证了ConvBench的能力。实验显示,SConv在93.6%的卷积运算中速度快于Im2col-GEMM。而借助ConvBench,研究人员得以深入分析剩余6.4%性能不佳的卷积运算,发现SConv的打包步骤平均存在79.5%的严重减速。该分析指出了SConv的一个潜在优化方向,为卷积算法设计者改进算法开辟了新路径。
英文摘要:
Convolution is a compute-intensive operation placed at the heart of Convolution Neural Networks (CNNs). It has led to the development of many high-performance algorithms, such as Im2col-GEMM, Winograd, and Direct-Convolution. However, the comparison of different convolution algorithms is an error-prone task as it requires specific data layouts and system resources. Failure to address these requirements might lead to unwanted time penalties. Thus, considering all processing steps within convolution algorithms is essential to comprehensively evaluate and fairly compare their performance. Furthermore, most known convolution benchmarking adopts ad-hoc testing suites with limited coverage and handmade operations. This paper proposes ConvBench, a primitive-level benchmark for the evaluation and comparison of convolution algorithms. It assesses 9243 convolution operations derived from 1097 real-world deep learning models, resulting in performance and execution breakdown graphs for a detailed evaluation. ConvBench capability is evaluated across the Sliced Convolution (SConv) algorithm. The experiments showed results faster than Im2col-GEMM in 93.6% of the convolutions. However, the use of ConvBench allowed the delving into the remaining 6.4% underperforming convolutions, uncovering a critical slowdown of 79.5% on average of SConv's packing step. This analysis underscores a potential source of optimization for SConv, opening up new paths for convolution designers to improve their algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。