[Paper Review] 2-bit Model Compression of Deep Convolutional Neural Network on ASIC Engine for Image Retrieval
This paper proposes a 2-bit quantization scheme for VGG-16 CNNs on an ASIC engine, enabling efficient image retrieval with minimal memory and power use. By combining hybrid bit quantization across layers and a novel region nested invariance pooling (RNIP) strategy, the method achieves floating-point-level performance on 640x480 images using only a 224x224 buffer, reducing model size from 59MB to 4MB while maintaining 86.94% mAP.
Image retrieval utilizes image descriptors to retrieve the most similar images to a given query image. Convolutional neural network (CNN) is becoming the dominant approach to extract image descriptors for image retrieval. For low-power hardware implementation of image retrieval, the drawback of CNN-based feature descriptor is that it requires hundreds of megabytes of storage. To address this problem, this paper applies deep model quantization and compression to CNN in ASIC chip for image retrieval. It is demonstrated that the CNN-based features descriptor can be extracted using as few as 2-bit weights quantization to deliver a similar performance as floating-point model for image retrieval. In addition, to implement CNN in ASIC, especially for large scale images, the limited buffer size of chips should be considered. To retrieve large scale images, we propose an improved pooling strategy, region nested invariance pooling (RNIP), which uses cropped sub-images for CNN. Testing results on chip show that integrating RNIP with the proposed 2-bit CNN model compression approach is capable of retrieving large scale images.
Motivation & Objective
- To enable low-power, low-memory hardware implementation of CNN-based image retrieval on ASIC chips.
- To reduce the storage and computational cost of CNN models without sacrificing retrieval accuracy.
- To address the challenge of limited on-chip buffer size when processing large-scale images.
- To develop a pooling strategy compatible with 2-bit quantized models for efficient large-scale image retrieval.
Proposed method
- Applies hybrid bit quantization: 12-bit fixed-point for biases, 8-bit scalar per filter, and 1–5-bit quantized masks for 3x3 convolutional filters.
- Uses a layer-wise 4-bit exponent to preserve dynamic range of weights, enabling effective 2-bit quantization.
- Employs a retraining algorithm with backpropagation to fine-tune the quantized fixed-point model, minimizing accuracy loss.
- Proposes Region Nested Invariance Pooling (RNIP), which uses multiple cropped sub-images as input to CNNs and concatenates ROIs from feature maps for pooling.
- Integrates RNIP with 2-bit quantized CNNs to allow processing of large images (e.g., 640x480) within a 224x224 buffer.
- Uses a chain of square-root, average, and max pooling in NIP and RNIP to generate 512-D descriptors.
Experimental results
Research questions
- RQ1Can a 2-bit quantized CNN achieve image retrieval performance comparable to a full-precision floating-point model on an ASIC?
- RQ2How can limited on-chip buffer size be overcome when processing large-scale images in CNN-based retrieval?
- RQ3Can a novel pooling strategy like RNIP improve feature extraction efficiency and accuracy for large images under hardware constraints?
- RQ4What is the trade-off between model compression (bit precision) and retrieval performance in hardware-optimized CNNs?
Key findings
- The 2-bit quantized VGG-16 model achieves 86.94% mAP on the INRIA Holidays dataset for 640x480 images, matching the 86.81% mAP of the floating-point model.
- The model size is reduced from 59MB (floating-point) to 4MB (2-bit fixed-point), achieving a 15.1x compression ratio.
- RNIP with 14 cropped sub-images improves mAP to 0.852 for 512-byte descriptors, outperforming standard NIP.
- Binarized descriptors (512-bit) show a 0.03 mAP drop compared to 512-byte descriptors, indicating a small performance trade-off at 1-bit precision.
- The 2-bit quantized model maintains 70.13% top-1 and 89.91% top-5 accuracy on ImageNet ILSVRC-2012, confirming robustness for classification tasks.
- Using RNIP, the 2-bit model processes 640x480 images with the same performance as full 640x480 input on a 224x224 buffer, proving feasibility for large-scale image retrieval.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.