QuantNet:通过在完全可微框架内学习来量化
QuantNet: Learning to Quantize by Learning within Fully Differentiable Framework
摘要:
尽管最近的二值化方法在减少二进制神经网络(BNN)性能下降方面取得了成就,但直通估计器(STE)引起的梯度不匹配仍然主导着量化网络。本文提出了一种名为QuantNet的基于元的量化器,该量化器利用可微子网络直接对全精度权重进行二值化,而无需求助于STE和任何可学习的梯度估计器。我们的方法不仅解决了梯度不匹配的问题,但也减少了离散化误差的影响,所造成的二进制化操作中的部署,对性能。通常,该算法是在完全可微的框架内实现的,并且很容易扩展到具有任何比特的一般网络量化。在CIFAR-100和ImageNet上的定量实验表明,与以往的二值化方法相比,QuantNet实现了显著的改进,甚至弥补了二值化模型与全精度模型之间的精度差距。
英文摘要:
Despite the achievements of recent binarization methods on reducing the performance degradation of Binary Neural Networks (BNNs), gradient mismatching caused by the Straight-Through-Estimator (STE) still dominates quantized networks. This paper proposes a meta-based quantizer named QuantNet, which utilizes a differentiable sub-network to directly binarize the full-precision weights without resorting to STE and any learnable gradient estimators. Our method not only solves the problem of gradient mismatching, but also reduces the impact of discretization errors, caused by the binarizing operation in the deployment, on performance. Generally, the proposed algorithm is implemented within a fully differentiable framework, and is easily extended to the general network quantization with any bits. The quantitative experiments on CIFAR-100 and ImageNet demonstrate that QuantNet achieves the signifficant improvements comparing with previous binarization methods, and even bridges gaps of accuracies between binarized models and full-precision models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。