arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.16174cs.LGcs.AIcs.CV
收藏

像素嵌入:具有可微查找表的完全量化卷积神经网络

Pixel Embedding: Fully Quantized Convolutional Neural Network with Differentiable Lookup Table

LeapMind Inc.(LeapMind公司);Woven by Toyota, Inc.(丰田旗下Woven公司);Mirai Hoshu K.K.(Mirai Hoshu株式会社)

Hiroyuki Tokunaga, Joel Nicholls, Daria Vazhenina, Atsunori Kanemura

AI总结:

提出像素嵌入方法,通过可微查找表将输入像素替换为低比特向量,实现完全量化神经网络,在ImageNet和CIFAR-100上显著降低量化误差并加速推理。

摘要:

通过将网络权重和激活值量化到低比特位宽,我们可以获得硬件友好且节能的网络。然而,现有的利用直通估计器和分段常数函数的量化技术面临着如何用低比特值表示原本高比特输入数据的问题。为了完全量化深度神经网络,我们提出了像素嵌入,它通过使用查找表将每个浮点值输入像素替换为一个量化值向量。像素的查找表或低比特表示是可微的,并且可以通过反向传播进行训练。这种将输入替换为向量的做法类似于自然语言处理领域中的词嵌入。在ImageNet和CIFAR-100上的实验表明,像素嵌入将量化第一层浮点数导致的ImageNet数据集top-5误差差距降至仅1%,并将量化第一层和最后一层导致的CIFAR-100数据集top-1误差差距降至略高于1%。通过推理时间测量进一步证明了像素嵌入的有用性,与浮点精度第一层相比,其实现了超过1.7倍的加速。

英文摘要:

By quantizing network weights and activations to low bitwidth, we can obtain hardware-friendly and energy-efficient networks. However, existing quantization techniques utilizing the straight-through estimator and piecewise constant functions face the issue of how to represent originally high-bit input data with low-bit values. To fully quantize deep neural networks, we propose pixel embedding, which replaces each float-valued input pixel with a vector of quantized values by using a lookup table. The lookup table or low-bit representation of pixels is differentiable and trainable by backpropagation. Such replacement of inputs with vectors is similar to word embedding in the natural language processing field. Experiments on ImageNet and CIFAR-100 show that pixel embedding reduces the top-5 error gap caused by quantizing the floating points at the first layer to only 1% for the ImageNet dataset, and the top-1 error gap caused by quantizing first and last layers to slightly over 1% for the CIFAR-100 dataset. The usefulness of pixel embedding is further demonstrated by inference time measurements, which demonstrate over 1.7 times speedup compared to floating point precision first layer.

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

↑