arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.01400cs.LGcs.NE
收藏

带群权变换的二元加权网络的精确反向传播算法

Exact Backpropagation in Binary Weighted Networks with Group Weight Transformations

Yaniv Shulman

摘要:

基于量化的模型压缩用作高性能和快速的推理方法,其产生当与其全精度浮点对应物相比时高度压缩的模型。最极端的量化是参数的1位表示,使得它们只有两个可能的值,通常为-1(0)或+1,从而使得能够仅使用加法来有效地实现无处不在的点积。这项工作的主要贡献是介绍了一种方法来平滑的组合问题,确定一个二进制向量的权重,以尽量减少预期损失为一个给定的目标,通过经验风险最小化与反向传播。这是通过利用实值连续参数的确定性和可微变换来近似权重上的多变量二进制状态来实现的。所提出的方法在训练中增加了很少的开销,可以容易地应用,而无需对原始架构进行任何实质性修改,不引入额外的饱和非线性或辅助损耗,并且不禁止应用其他方法来二进制化激活。与文献中的常见断言相反,证明了二进制加权网络可以使用与全精度对应物相同的标准优化技术和类似的超参数设置进行训练,特别是具有大学习率和$L_2$正则化的动量SGD。最后,实验表明,该方法在具有各种架构的多个归纳图像分类任务中与其全精度对应物相比表现得非常好。源代码可在https://bitbucket.org/YanivShu/binary_weighted_networks_public上公开获得。

英文摘要:

Quantization based model compression serves as high performing and fast approach for inference that yields models which are highly compressed when compared to their full-precision floating point counterparts. The most extreme quantization is a 1-bit representation of parameters such that they have only two possible values, typically -1(0) or +1, enabling efficient implementation of the ubiquitous dot product using only additions. The main contribution of this work is the introduction of a method to smooth the combinatorial problem of determining a binary vector of weights to minimize the expected loss for a given objective by means of empirical risk minimization with backpropagation. This is achieved by approximating a multivariate binary state over the weights utilizing a deterministic and differentiable transformation of real-valued, continuous parameters. The proposed method adds little overhead in training, can be readily applied without any substantial modifications to the original architecture, does not introduce additional saturating nonlinearities or auxiliary losses, and does not prohibit applying other methods for binarizing the activations. Contrary to common assertions made in the literature, it is demonstrated that binary weighted networks can train well with the same standard optimization techniques and similar hyperparameter settings as their full-precision counterparts, specifically momentum SGD with large learning rates and $L_2$ regularization. To conclude experiments demonstrate the method performs remarkably well across a number of inductive image classification tasks with various architectures compared to their full-precision counterparts. The source code is publicly available at https://bitbucket.org/YanivShu/binary_weighted_networks_public.

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

↑