离散神经网络的松弛Quantization
Relaxed Quantization for Discretized Neural Networks
摘要:
神经网络量化由于其对在资源受限的设备上部署大型模型的巨大影响而成为一个重要的研究领域。为了训练网络,可以有效地离散化而不损失性能,我们引入了可微量化过程。可微性可以通过将网络的权重和激活上的连续分布转换为量化网格上的分类分布来实现。这些随后被放松到连续的替代,可以允许有效的基于梯度的优化。我们进一步表明,随机舍入可以被看作是一个特殊的情况下,所提出的方法,根据这种提法的量化网格本身也可以优化与梯度下降。我们通过实验验证了我们的方法在MNIST,CIFAR 10和Imagenet分类上的性能。
英文摘要:
Neural network quantization has become an important research area due to its great impact on deployment of large models on resource constrained devices. In order to train networks that can be effectively discretized without loss of performance, we introduce a differentiable quantization procedure. Differentiability can be achieved by transforming continuous distributions over the weights and activations of the network to categorical distributions over the quantization grid. These are subsequently relaxed to continuous surrogates that can allow for efficient gradient-based optimization. We further show that stochastic rounding can be seen as a special case of the proposed approach and that under this formulation the quantization grid itself can also be optimized with gradient descent. We experimentally validate the performance of our method on MNIST, CIFAR 10 and Imagenet classification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。