比特下降:重温神经网络的Quantization
And the Bit Goes Down: Revisiting the Quantization of Neural Networks
摘要:
在本文中,我们解决了减少卷积网络架构的内存占用的问题。我们引入了一种矢量量化方法,其目的是保持网络输出的重建质量,而不是其权重。我们的方法的原则是,它最大限度地减少损失重建误差的域内输入。我们的方法只需要一组未标记的数据在量化时间,并允许有效的推理CPU使用字节对齐的码本存储压缩的权重。我们通过将高性能的ResNet-50模型量化到5 MB的内存大小(20倍压缩因子),同时在ImageNet对象分类上保持76.1%的top-1准确度,并通过使用26倍因子压缩Mask R-CNN来验证我们的方法。
英文摘要:
In this paper, we address the problem of reducing the memory footprint of convolutional network architectures. We introduce a vector quantization method that aims at preserving the quality of the reconstruction of the network outputs rather than its weights. The principle of our approach is that it minimizes the loss reconstruction error for in-domain inputs. Our method only requires a set of unlabelled data at quantization time and allows for efficient inference on CPU by using byte-aligned codebooks to store the compressed weights. We validate our approach by quantizing a high performing ResNet-50 model to a memory size of 5MB (20x compression factor) while preserving a top-1 accuracy of 76.1% on ImageNet object classification and by compressing a Mask R-CNN with a 26x factor.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。