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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tokunaga, Hiroyuki, Nicholls, Joel, Vazhenina, Daria, Kanemura, Atsunori
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914882502262784
author Tokunaga, Hiroyuki
Nicholls, Joel
Vazhenina, Daria
Kanemura, Atsunori
author_facet Tokunaga, Hiroyuki
Nicholls, Joel
Vazhenina, Daria
Kanemura, Atsunori
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2407_16174
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Pixel Embedding: Fully Quantized Convolutional Neural Network with Differentiable Lookup Table
Tokunaga, Hiroyuki
Nicholls, Joel
Vazhenina, Daria
Kanemura, Atsunori
Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
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.
title Pixel Embedding: Fully Quantized Convolutional Neural Network with Differentiable Lookup Table
topic Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2407.16174