A2Q:可确保避免溢出的累加器感知量化
A2Q: Accumulator-Aware Quantization with Guaranteed Overflow Avoidance
AI总结:
针对低精度累加器推理易溢出的问题,提出A2Q权重量化方法,通过权重L1范数约束和固有稀疏性避免溢出,在FPGA部署中实现最高2.3倍资源缩减且保留99.2%浮点精度。
摘要:
我们提出了累加器感知量化(A2Q),这是一种新型权重量化方法,旨在训练量化神经网络(QNNs),使其在推理阶段使用低精度累加器时避免溢出。A2Q受权重归一化启发,提出了一种独特的公式,根据我们推导的累加器位宽边界约束模型权重的L1范数。因此,在为低精度累加训练QNN时,A2Q还会固有地促进非结构化权重稀疏性,以确保避免溢出。我们将该方法应用于基于深度学习的计算机视觉任务,证明A2Q能够为低精度累加器训练QNN,同时保持与浮点基线相当的模型精度。在评估中,我们考察了A2Q在通用平台和可编程硬件上的效果,不过我们主要针对FPGA上的模型部署,因为FPGA可以通过编程充分利用自定义累加器位宽。我们的实验表明,累加器位宽会显著影响基于FPGA的加速器的资源效率。在我们的基准测试中,平均而言,与32位累加器方案相比,A2Q最多可将资源利用率降低2.3倍,同时达到浮点模型99.2%的精度。
英文摘要:
We present accumulator-aware quantization (A2Q), a novel weight quantization method designed to train quantized neural networks (QNNs) to avoid overflow when using low-precision accumulators during inference. A2Q introduces a unique formulation inspired by weight normalization that constrains the L1-norm of model weights according to accumulator bit width bounds that we derive. Thus, in training QNNs for low-precision accumulation, A2Q also inherently promotes unstructured weight sparsity to guarantee overflow avoidance. We apply our method to deep learning-based computer vision tasks to show that A2Q can train QNNs for low-precision accumulators while maintaining model accuracy competitive with a floating-point baseline. In our evaluations, we consider the impact of A2Q on both general-purpose platforms and programmable hardware. However, we primarily target model deployment on FPGAs because they can be programmed to fully exploit custom accumulator bit widths. Our experimentation shows accumulator bit width significantly impacts the resource efficiency of FPGA-based accelerators. On average across our benchmarks, A2Q offers up to a 2.3x reduction in resource utilization over 32-bit accumulator counterparts with 99.2% of the floating-point model accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。