HiKonv:一种新的逐位管理和计算的高吞吐量量化卷积算法
HiKonv: High Throughput Quantized Convolution With Novel Bit-wise Management and Computation
摘要:
卷积神经网络(CNN)的量化已经显示出显著的进展,其意图是降低低位宽数据输入的计算和存储成本。然而,对于如何更好地利用现有的全位宽处理单元(诸如CPU和DSP)来在各种量化位宽下执行显著更高的卷积计算吞吐量,没有系统的研究。在这项研究中,我们提出了HiKonv,一个统一的解决方案,最大限度地提高了一个给定的底层处理单元的计算吞吐量,通过新颖的逐位并行计算处理低位宽量化数据输入。我们建立了理论上的性能界限,使用高度并行化的低位宽卷积的全位宽乘法器,并展示了在这个关键领域的高性能计算的新突破。例如,单个32位处理单元可以在一条CPU指令下提供128个二进制卷积运算(乘法和加法),单个27x18 DSP内核可以在一个周期内提供8个具有4位输入的卷积运算。我们在CPU和FPGA上演示了HiKonv对卷积层或完整DNN模型的有效性。对于量化为4位的卷积层,HiKonv实现了比在CPU上使用C++的基线实现高3.17倍的延迟。与DAC-SDC 2020冠军FPGA模型相比,HiKonv的吞吐量提高了2.37倍,DSP效率提高了2.61倍。
英文摘要:
Quantization for Convolutional Neural Network (CNN) has shown significant progress with the intention of reducing the cost of computation and storage with low-bitwidth data inputs. There are, however, no systematic studies on how an existing full-bitwidth processing unit, such as CPUs and DSPs, can be better utilized to carry out significantly higher computation throughput for convolution under various quantized bitwidths. In this study, we propose HiKonv, a unified solution that maximizes the compute throughput of a given underlying processing unit to process low-bitwidth quantized data inputs through novel bit-wise parallel computation. We establish theoretical performance bounds using a full-bitwidth multiplier for highly parallelized low-bitwidth convolution, and demonstrate new breakthroughs for high-performance computing in this critical domain. For example, a single 32-bit processing unit can deliver 128 binarized convolution operations (multiplications and additions) under one CPU instruction, and a single 27x18 DSP core can deliver eight convolution operations with 4-bit inputs in one cycle. We demonstrate the effectiveness of HiKonv on CPU and FPGA for both convolutional layers or a complete DNN model. For a convolutional layer quantized to 4-bit, HiKonv achieves a 3.17x latency improvement over the baseline implementation using C++ on CPU. Compared to the DAC-SDC 2020 champion model for FPGA, HiKonv achieves a 2.37x throughput improvement and 2.61x DSP efficiency improvement, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。