arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2008.09916cs.LGcs.CVeess.IV
收藏

一个权重位宽来统治它们

One Weight Bitwidth to Rule Them All

Carnegie Mellon University(卡内基梅隆大学);Facebook Inc.(Facebook公司);The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Ting-Wu Chin, Pierce I-Jen Chuang, Vikas Chandra, Diana Marculescu

摘要:

深度ConvNets的权重量化在图像分类和语义分割等应用中显示出了有希望的结果,对于内存存储有限的应用尤其重要。然而,当旨在量化而不降低精度时,不同的任务可能最终具有不同的位宽。这为软件和硬件支持带来了复杂性,并且当考虑混合精度量化时,复杂性会累积,在这种情况下,每个层的权重使用不同的位宽。我们的关键见解是,在不降低精度的情况下优化最小比特宽度并不一定是最佳策略。这是因为如果一个具有较小的模型大小而另一个具有更好的精度,则无法确定两个位宽之间的最优性。在这项工作中,我们采取的第一步,以了解如果一些权重位宽比其他更好的对齐所有相同的模型大小使用宽度乘数。在这种设置下,有点令人惊讶的是,我们表明,当两者具有相同的模型大小时,与以零精度退化为目标的混合精度量化相比,对整个网络使用单个位宽可以实现更好的精度。特别是,我们的研究结果表明,当通道的数量成为一个目标超参数,一个单一的权重位宽在整个网络显示优越的结果模型压缩。

英文摘要:

Weight quantization for deep ConvNets has shown promising results for applications such as image classification and semantic segmentation and is especially important for applications where memory storage is limited. However, when aiming for quantization without accuracy degradation, different tasks may end up with different bitwidths. This creates complexity for software and hardware support and the complexity accumulates when one considers mixed-precision quantization, in which case each layer's weights use a different bitwidth. Our key insight is that optimizing for the least bitwidth subject to no accuracy degradation is not necessarily an optimal strategy. This is because one cannot decide optimality between two bitwidths if one has a smaller model size while the other has better accuracy. In this work, we take the first step to understand if some weight bitwidth is better than others by aligning all to the same model size using a width-multiplier. Under this setting, somewhat surprisingly, we show that using a single bitwidth for the whole network can achieve better accuracy compared to mixed-precision quantization targeting zero accuracy degradation when both have the same model size. In particular, our results suggest that when the number of channels becomes a target hyperparameter, a single weight bitwidth throughout the network shows superior results for model compression.

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

↑