arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2210.15623cs.LG
收藏

具有Quantization约束的神经网络

Neural Networks with Quantization Constraints

University of Pennsylvania(宾夕法尼亚大学)

Ignacio Hounie, Juan Elenter, Alejandro Ribeiro

摘要:

在资源和延迟受限的设置中,有必要在不显著降低性能的情况下实现深度学习模型的低精度实现。此外,利用对跨层量化的敏感性的差异可以允许混合精度实现来实现相当好的计算性能权衡。然而,通过量化操作的反向传播需要引入梯度近似,并且由于大的搜索空间,对于现代架构来说,选择哪些层进行迭代是具有挑战性的。在这项工作中,我们提出了一种约束学习方法,量化意识的培训。我们制定低精度监督学习作为一个约束优化问题,并表明,尽管它的非凸性,所产生的问题是强对偶,并取消梯度估计。此外,我们表明,对偶变量表示的敏感性的约束扰动的目标。我们证明了所提出的方法在图像分类任务中表现出有竞争力的性能,并利用灵敏度结果来应用基于对偶变量值的层选择性量化,从而导致相当大的性能改进。

英文摘要:

Enabling low precision implementations of deep learning models, without considerable performance degradation, is necessary in resource and latency constrained settings. Moreover, exploiting the differences in sensitivity to quantization across layers can allow mixed precision implementations to achieve a considerably better computation performance trade-off. However, backpropagating through the quantization operation requires introducing gradient approximations, and choosing which layers to quantize is challenging for modern architectures due to the large search space. In this work, we present a constrained learning approach to quantization aware training. We formulate low precision supervised learning as a constrained optimization problem, and show that despite its non-convexity, the resulting problem is strongly dual and does away with gradient estimations. Furthermore, we show that dual variables indicate the sensitivity of the objective with respect to constraint perturbations. We demonstrate that the proposed approach exhibits competitive performance in image classification tasks, and leverage the sensitivity result to apply layer selective quantization based on the value of dual variables, leading to considerable performance improvements.

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

↑