Skip to main content
QUICK REVIEW

[Paper Review] Quantization and Training of Low Bit-Width Convolutional Neural Networks for Object Detection

Penghang Yin, Shuai Zhang|arXiv (Cornell University)|Dec 19, 2016
Advanced Neural Network ApplicationsComputer Science15 references15 citations
TL;DR

This paper proposes LBW-Net, an optimization-based method for training low bit-width (e.g., 6-bit) convolutional neural networks with weights quantized to zero or powers of two. By solving the least-squares quantization problem exactly for 2-bit networks and using a semi-analytical thresholding scheme with a single adjustable parameter for higher bit-widths, LBW-Net achieves nearly lossless accuracy on PASCAL VOC object detection while enabling over 4× faster inference and significant memory/energy savings.

ABSTRACT

We present LBW-Net, an efficient optimization based method for quantization and training of the low bit-width convolutional neural networks (CNNs). Specifically, we quantize the weights to zero or powers of two by minimizing the Euclidean distance between full-precision weights and quantized weights during backpropagation. We characterize the combinatorial nature of the low bit-width quantization problem. For 2-bit (ternary) CNNs, the quantization of $N$ weights can be done by an exact formula in $O(N\log N)$ complexity. When the bit-width is three and above, we further propose a semi-analytical thresholding scheme with a single free parameter for quantization that is computationally inexpensive. The free parameter is further determined by network retraining and object detection tests. LBW-Net has several desirable advantages over full-precision CNNs, including considerable memory savings, energy efficiency, and faster deployment. Our experiments on PASCAL VOC dataset show that compared with its 32-bit floating-point counterpart, the performance of the 6-bit LBW-Net is nearly lossless in the object detection tasks, and can even do better in some real world visual scenes, while empirically enjoying more than 4$ imes$ faster deployment.

Motivation & Objective

  • To address the challenge of deploying large, high-precision CNNs on resource-constrained devices such as mobile phones.
  • To develop an efficient, exact, and scalable quantization method for low bit-width CNNs that preserves model accuracy.
  • To minimize the accuracy drop caused by weight quantization while maximizing computational efficiency and memory savings.
  • To determine optimal quantization parameters through network retraining and object detection performance, rather than solely on least-squares error.

Proposed method

  • The method quantizes full-precision weights to zero or powers of two by minimizing the Euclidean distance between full-precision and quantized weights during backpropagation.
  • For 2-bit (ternary) networks, the optimal quantization is computed exactly in O(N log N) time using a sorting-based approach.
  • For bit-widths ≥3, a semi-analytical thresholding scheme is introduced with a single free parameter μ to define quantization levels.
  • The scaling factor s is analytically derived from μ and the distribution of sorted weight magnitudes in each layer.
  • The parameter μ is tuned via network retraining and object detection performance evaluation, not by approximation error alone.
  • A variant of projected stochastic gradient descent is used for retraining, with an additional low-cost thresholding step per training iteration to enforce quantization.

Experimental results

Research questions

  • RQ1Can an exact solution to the low bit-width quantization problem be derived in the least-squares sense for full-precision weights?
  • RQ2How can the combinatorial complexity of higher bit-width quantization (≥3 bits) be effectively managed for large-scale CNNs?
  • RQ3What is the optimal value of the free parameter μ in the semi-analytical quantization scheme for achieving high detection accuracy?
  • RQ4To what extent can low bit-width networks (e.g., 6-bit) match the performance of full-precision models in object detection tasks?
  • RQ5Does quantized inference with zero or powers-of-two weights significantly improve deployment speed and efficiency?

Key findings

  • The 6-bit LBW-Net achieves object detection performance within 1% of its 32-bit floating-point counterpart on the PASCAL VOC dataset.
  • For 2-bit networks, the exact quantization solution is computable in O(N log N) time, enabling efficient optimization.
  • The optimal parameter μ for bit-widths ≥4 is empirically found to be μ = (3/4) × ||W^f||_∞, which prioritizes accurate encoding of large-magnitude weights.
  • LBW-Net enables over 4× faster deployment compared to full-precision models, due to replacement of floating-point multiplications with bit shifts.
  • In real-world visual scenes, the 6-bit LBW-Net even outperforms the full-precision model, indicating robustness to complex features.
  • The method supports training from scratch or with partial warm start, and retraining is effective in absorbing quantization-induced errors.

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.