Post-training Neural Network (NN) model compression is an attractive approach for deploying large, memory-consuming models on devices with limited memory resources. In this study, we investigate the rate-distortion tradeoff for NN model compression. First, we suggest a Rotation-Invariant Quantization (RIQ) technique that utilizes a single parameter to quantize the entire NN model, yielding a different rate at each layer, i.e., mixed-precision quantization. Then, we prove that our rotation-invariant approach is optimal in terms of compression. We rigorously evaluate RIQ and demonstrate its capabilities on various models and tasks. For example, RIQ facilitates $\times 19.4$ and $\times 52.9$ compression ratios on pre-trained VGG dense and pruned models, respectively, with $<0.4\%$ accuracy degradation. Code is available in \url{https://github.com/ehaleva/RIQ}.
翻译:后训练神经网络模型压缩是在内存受限设备上部署大规模、高内存消耗模型的一种极具吸引力的方法。本研究探讨了神经网络模型压缩中的率失真权衡问题。首先,我们提出了一种旋转不变量化(RIQ)技术,该技术利用单一参数对整个神经网络模型进行量化,在不同层生成不同的量化位宽,即混合精度量化。随后,我们证明所提出的旋转不变方法在压缩性能上具有最优性。我们对RIQ进行了严格评估,并在多种模型和任务上展示了其性能。例如,RIQ在预训练的VGG稠密模型和剪枝模型上分别实现了$\times 19.4$和$\times 52.9$的压缩比,且精度损失小于$0.4\%$。代码已开源于\url{https://github.com/ehaleva/RIQ}。