arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.04126cs.LGstat.ML
收藏

FleXOR:可训练的分数Quantization

FleXOR: Trainable Fractional Quantization

Samsung Research(三星研究院)

Dongsoo Lee, Se Jung Kwon, Byeongwook Kim, Yongkweon Jeon, Baeseong Park, Jeongin Yun

摘要:

基于二进制码的量化正在获得关注,因为每个量化的比特可以直接用于计算,而无需使用查找表进行解量化。然而,先前的尝试仅允许整数数量的量化比特,这最终限制了压缩比和精度的搜索空间。在本文中,我们提出了一种加密算法/架构来压缩量化的权重,以实现每权重的小数位数。在推理过程中的解密是通过添加到神经网络模型中的数字XOR门网络来实现的,而“异”门是通过利用$\tanh(x)$进行反向传播来描述的,以实现梯度计算。我们使用MNIST,CIFAR-10和ImageNet进行实验,以表明插入“异”门通过训练学习量化/加密位决策,即使对于小数子1位权重也能获得高精度。因此,我们提出的方法产生更小的尺寸和更高的模型精度相比,二进制神经网络。

英文摘要:

Quantization based on the binary codes is gaining attention because each quantized bit can be directly utilized for computations without dequantization using look-up tables. Previous attempts, however, only allow for integer numbers of quantization bits, which ends up restricting the search space for compression ratio and accuracy. In this paper, we propose an encryption algorithm/architecture to compress quantized weights so as to achieve fractional numbers of bits per weight. Decryption during inference is implemented by digital XOR-gate networks added into the neural network model while XOR gates are described by utilizing $\tanh(x)$ for backward propagation to enable gradient calculations. We perform experiments using MNIST, CIFAR-10, and ImageNet to show that inserting XOR gates learns quantization/encrypted bit decisions through training and obtains high accuracy even for fractional sub 1-bit weights. As a result, our proposed method yields smaller size and higher model accuracy compared to binary neural networks.

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

↑