Skip to main content
QUICK REVIEW

[Paper Review] Intra-layer Nonuniform Quantization for Deep Convolutional Neural Network

Fangxuan Sun, Jun Lin|arXiv (Cornell University)|Jul 10, 2016
Advanced Image and Video Retrieval TechniquesComputer Science5 citations
TL;DR

This paper proposes intra-layer nonuniform quantization schemes—Equal Distance Nonuniform Quantization (ENQ) and K-means Clustering-based Nonuniform Quantization (KNQ)—to reduce memory storage in deep convolutional neural networks (DCNNs) by exploiting activation distribution characteristics. The KNQ scheme achieves up to 50% memory reduction with minimal accuracy loss (under 2%) on VGG-16 and AlexNet, outperforming prior state-of-the-art methods.

ABSTRACT

Deep convolutional neural network (DCNN) has achieved remarkable performance on object detection and speech recognition in recent years. However, the excellent performance of a DCNN incurs high computational complexity and large memory requirement. In this paper, an equal distance nonuniform quantization (ENQ) scheme and a K-means clustering nonuniform quantization (KNQ) scheme are proposed to reduce the required memory storage when low complexity hardware or software implementations are considered. For the VGG-16 and the AlexNet, the proposed nonuniform quantization schemes reduce the number of required memory storage by approximately 50\% while achieving almost the same or even better classification accuracy compared to the state-of-the-art quantization method. Compared to the ENQ scheme, the proposed KNQ scheme provides a better tradeoff when higher accuracy is required.

Motivation & Objective

  • To reduce memory storage requirements for deep convolutional neural network (DCNN) activations in low-complexity hardware or software implementations.
  • To address the high memory footprint caused by full-precision activations in deep networks like VGG-16 and AlexNet.
  • To improve upon existing quantization schemes by enabling layer-specific, nonuniform quantization that better matches activation distribution.
  • To provide a hardware-friendly tradeoff between accuracy and memory usage through adaptive quantization per layer.
  • To demonstrate significant memory savings while maintaining or improving classification accuracy compared to state-of-the-art methods.

Proposed method

  • Proposes Equal Distance Intra-Layer Nonuniform Quantization (ENQ), which uses equal spacing between quantization levels based on activation distribution statistics per layer.
  • Introduces K-means Clustering-based Intra-Layer Nonuniform Quantization (KNQ), where cluster centroids are determined via K-means on activation values to minimize quantization error.
  • Applies layer-specific bit-width allocation based on activation distribution variance, optimizing for minimal memory usage per accuracy level.
  • Employs pre-processing techniques such as normalization or scaling to improve quantization accuracy before clustering or equal-spacing quantization.
  • Uses a TSMC 90nm CMOS implementation to evaluate hardware overhead, showing low area and critical path delay for quantization units.
  • Compares results using normalized bit count (NNB) and absolute memory size (NB) to benchmark against prior work, including cross-layer nonuniform quantization [13].

Experimental results

Research questions

  • RQ1Can intra-layer nonuniform quantization reduce memory storage for DCNN activations more effectively than cross-layer approaches?
  • RQ2Does K-means clustering-based quantization provide better accuracy and memory efficiency than equal-distance quantization for activation quantization?
  • RQ3To what extent can memory usage be reduced while maintaining high classification accuracy in VGG-16 and AlexNet?
  • RQ4How does pre-processing affect the performance of nonuniform quantization schemes in terms of accuracy and bit allocation?
  • RQ5What is the hardware complexity trade-off of KNQ compared to ENQ and prior state-of-the-art quantization methods?

Key findings

  • The KNQ scheme reduces memory storage by approximately 50% compared to the state-of-the-art method in [13], achieving 8.4 MB for VGG-16 (vs. 16.8 MB) and 0.48 MB for AlexNet (vs. 1.12 MB).
  • For VGG-16, KNQ achieves 86.58% top-5 accuracy with only 5 bits per activation, outperforming the [13] method by 0.36% in accuracy.
  • The ENQ scheme reduces memory usage by 50% compared to [13], achieving 9.5 MB for VGG-16 and 0.48 MB for AlexNet, with accuracy loss of only 1.9% compared to half-precision floating-point.
  • With pre-processing, KNQ improves VGG-16 top-5 accuracy to 86.58% using only 5 bits, and AlexNet to 78.23% using 3 bits.
  • The hardware implementation of the KNQ unit consumes 7.5 mm² area with a critical path delay of 0.65 ns, showing low overhead for embedded deployment.
  • Both ENQ and KNQ achieve less than 2% accuracy degradation compared to full-precision floating-point models on both VGG-16 and AlexNet.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.