arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.12982cs.ARcs.CVcs.LG
收藏

Winograd卷积更进一步:在4x4 Tile上进行有效推理的Tap-Wise Quantization

Going Further With Winograd Convolutions: Tap-Wise Quantization for Efficient Inference on 4x4 Tile

Huawei Zurich Research Center(华为苏黎世研究中心);Politecnico di Torino(都灵理工大学)

Renzo Andri, Beatrice Bussolino, Antonio Cipolletta, Lukas Cavigelli, Zhe Wang

摘要:

当今的大多数计算机视觉管道都是围绕深度神经网络构建的,其中卷积运算需要大部分通常较高的计算工作量。与标准算法相比,Winograd卷积算法使用较少的MAC计算卷积,当使用具有2x2大小的切片$F_2$的版本时,对于3x3卷积,操作计数减少了2.25倍。即使增益是显著的,具有较大的瓦片大小的Winograd算法,即,$F_4$在提高吞吐量和能效方面具有更大的潜力,因为它将所需的MAC减少了4倍。不幸的是,具有较大区块大小的Winograd算法引入了数值问题,这些问题阻止了其在整数域特定加速器上的使用,并且在空间域和Winograd域之间转换输入和输出数据的计算开销更高。为了释放Winograd $F_4$的全部潜力,我们提出了一种新的抽头式量化方法,该方法克服了使用较大瓦片的数值问题,从而实现仅整数推理。此外,我们提出了自定义的硬件单元,处理的Winograd转换的功率和面积有效的方式,我们展示了如何将这些自定义模块集成在一个工业级的,可编程的DSA。对大量最先进的计算机视觉基准进行的广泛实验评估表明,抽头式量化算法使量化的Winograd $F_4$网络几乎与FP32基线一样准确。Winograd增强型DSA实现了高达1.85倍的能效增益和高达1.83倍的端到端速度提升,适用于最先进的分段和检测网络。

英文摘要:

Most of today's computer vision pipelines are built around deep neural networks, where convolution operations require most of the generally high compute effort. The Winograd convolution algorithm computes convolutions with fewer MACs compared to the standard algorithm, reducing the operation count by a factor of 2.25x for 3x3 convolutions when using the version with 2x2-sized tiles $F_2$. Even though the gain is significant, the Winograd algorithm with larger tile sizes, i.e., $F_4$, offers even more potential in improving throughput and energy efficiency, as it reduces the required MACs by 4x. Unfortunately, the Winograd algorithm with larger tile sizes introduces numerical issues that prevent its use on integer domain-specific accelerators and higher computational overhead to transform input and output data between spatial and Winograd domains. To unlock the full potential of Winograd $F_4$, we propose a novel tap-wise quantization method that overcomes the numerical issues of using larger tiles, enabling integer-only inference. Moreover, we present custom hardware units that process the Winograd transformations in a power- and area-efficient way, and we show how to integrate such custom modules in an industrial-grade, programmable DSA. An extensive experimental evaluation on a large set of state-of-the-art computer vision benchmarks reveals that the tap-wise quantization algorithm makes the quantized Winograd $F_4$ network almost as accurate as the FP32 baseline. The Winograd-enhanced DSA achieves up to 1.85x gain in energy efficiency and up to 1.83x end-to-end speed-up for state-of-the-art segmentation and detection networks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑