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

通过率约束量化和熵编码减少预训练神经网络的存储

Reducing Storage of Pretrained Neural Networks by Rate-Constrained Quantization and Entropy Coding

Department of Computer Science University of Tübingen(计算机科学系图宾根大学)

Alexander Conzelmann, Robert Bamler

AI总结:

提出一种结合率感知量化与熵编码的训练后压缩框架,通过二次率估计和OBS局部精确解,在保持性能的同时降低20-40%比特率,兼容任意量化网格。

摘要:

神经网络规模的不断增长对资源受限设备(如嵌入式传感器)提出了严峻挑战。压缩算法可以在模型性能保持接近原始水平的前提下减小其规模,从而缓解这些问题。我们提出了一种新颖的训练后压缩框架,该框架将率感知量化与熵编码相结合,具体方法为:(1)将众所周知的逐层损失扩展为包含二次率估计;(2)遵循最优脑外科医生(OBS)方法,为该修改后的目标提供局部精确解。我们的方法支持非常快速的解码,并且兼容任意量化网格。我们通过在多种计算机视觉网络上进行测试来实证验证我们的结果,在相同性能下,比特率相比流行的压缩算法NNCodec降低了20-40%。我们的代码可在https://github.com/Conzel/cerwu获取。

英文摘要:

The ever-growing size of neural networks poses serious challenges on resource-constrained devices, such as embedded sensors. Compression algorithms that reduce their size can mitigate these problems, provided that model performance stays close to the original. We propose a novel post-training compression framework that combines rate-aware quantization with entropy coding by (1) extending the well-known layer-wise loss by a quadratic rate estimation, and (2) providing locally exact solutions to this modified objective following the Optimal Brain Surgeon (OBS) method. Our method allows for very fast decoding and is compatible with arbitrary quantization grids. We verify our results empirically by testing on various computer-vision networks, achieving a 20-40\% decrease in bit rate at the same performance as the popular compression algorithm NNCodec. Our code is available at https://github.com/Conzel/cerwu.

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

↑