arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.15703cs.CVstat.ML
收藏

置换、量化和微调:神经网络的高效压缩

Permute, Quantize, and Fine-tune: Efficient Compression of Neural Networks

Uber Advanced Technologies Group(优步先进技术集团);University of Waterloo(滑铁卢大学);University of Toronto(多伦多大学)

Julieta Martinez, Jashan Shewakramani, Ting Wei Liu, Ioan Andrei Bârsan, Wenyuan Zeng, Raquel Urtasun

摘要:

压缩大型神经网络是将其部署在资源受限的计算平台中的重要步骤。在这种情况下,矢量量化是一种有吸引力的框架,它使用单个代码来表达多个参数,并且最近在一系列核心视觉和自然语言处理任务上实现了最先进的网络压缩。矢量量化成功的关键是决定哪些参数组应该被压缩在一起。以前的工作依赖于对单个卷积滤波器的空间维度进行分组的算法,但一般的解决方案仍然没有解决。这对于逐点卷积(主导现代架构)、线性层(没有空间维度的概念)和卷积(当多个滤波器被压缩到同一码字时)是理想的。在本文中,我们观察到,两个相邻层的权重可以置换,同时表示相同的功能。然后,我们建立一个连接到率失真理论和搜索的排列,导致网络更容易压缩。最后,我们依靠退火量化算法来更好地压缩网络并实现更高的最终精度。我们展示了图像分类、目标检测和分割的结果,与当前最先进的模型相比,与未压缩模型的差距缩小了40%至70%。

英文摘要:

Compressing large neural networks is an important step for their deployment in resource-constrained computational platforms. In this context, vector quantization is an appealing framework that expresses multiple parameters using a single code, and has recently achieved state-of-the-art network compression on a range of core vision and natural language processing tasks. Key to the success of vector quantization is deciding which parameter groups should be compressed together. Previous work has relied on heuristics that group the spatial dimension of individual convolutional filters, but a general solution remains unaddressed. This is desirable for pointwise convolutions (which dominate modern architectures), linear layers (which have no notion of spatial dimension), and convolutions (when more than one filter is compressed to the same codeword). In this paper we make the observation that the weights of two adjacent layers can be permuted while expressing the same function. We then establish a connection to rate-distortion theory and search for permutations that result in networks that are easier to compress. Finally, we rely on an annealed quantization algorithm to better compress the network and achieve higher final accuracy. We show results on image classification, object detection, and segmentation, reducing the gap with the uncompressed model by 40 to 70% with respect to the current state of the art.

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

↑