arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.06865cs.LGcs.AI
收藏

FP=xINT:通过低比特级数基函数表示神经网络

FP=xINT:Representing Neural Networks via Low-Bit Series Basis Functions

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Pengcheng Laboratory(鹏城实验室);University of Chinese Academy of Sciences(中国科学院大学);Harbin Institute of Technology(哈尔滨工业大学);South China University of Technology(华南理工大学)

Boyang Zhang, Daning Cheng, Yunquan Zhang, Jiake Tian, Jing Li, Fangming Liu

AI总结:

本文提出通过低比特级数基函数表示神经网络的方法,实现无需校准集的高精度量化,实验表明在4比特设置下ResNet-50的精度达到77.03%。

摘要:

后训练量化(PTQ)将预训练的全精度(FP)模型转换为量化版本,而无需训练。尽管现有方法减少了尺寸和计算成本,但在极低设置下,由于量化噪声,它们也显著降低了性能和量化效率。我们引入了一种深度模型级数展开框架来解决这个问题,使能够快速准确地近似未量化的模型,而无需校准集或微调。这是首次将级数展开应用于神经网络量化。具体而言,我们的方法将FP模型展开为多个低比特基模型。为了确保准确的量化,我们开发了不同粒度(张量、层、模型)的低比特基模型展开,并从理论上确认它们收敛到密集模型,从而恢复FP模型的精度。此外,我们设计了在低比特展开中同构模型之间的阿贝尔加/乘操作,形成一个阿贝尔群,以确保操作并行性和交换性。实验表明,我们的算法在低比特设置下实现了最先进的性能;例如,ResNet-50的4比特量化在原始精度上超过了,达到77.03%。代码将被公开。

英文摘要:

Post-Training Quantization (PTQ) converts pre-trained Full-Precision (FP) models into quantized versions without training. While existing methods reduce size and computational costs, they also significantly degrade performance and quantization efficiency at extremely low settings due to quantization noise. We introduce a deep model series expansion framework to address this issue, enabling rapid and accurate approximation of unquantized models without calibration sets or fine-tuning. This is the first use of series expansion for neural network quantization. Specifically, our method expands the FP model into multiple low-bit basis models. To ensure accurate quantization, we develop low-bit basis model expansions at different granularities (tensor, layer, model), and theoretically confirm their convergence to the dense model, thus restoring FP model accuracy. Additionally, we design AbelianAdd/Mul operations between isomorphic models in the low-bit expansion, forming an Abelian group to ensure operation parallelism and commutativity. The experiments show that our algorithm achieves state-of-the-art performance in low-bit settings; for example, 4-bit quantization of ResNet-50 surpasses the original accuracy, reaching 77.03%. The code will be made public.

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

↑