Skip to main content
QUICK REVIEW

[Paper Review] Efficient Bitwidth Search for Practical Mixed Precision Neural Network

Yuhang Li, Wei Wang|arXiv (Cornell University)|Mar 17, 2020
Advanced Neural Network ApplicationsComputer Science33 references14 citations
TL;DR

This paper proposes Efficient Bitwidth Search (EBS) and Binary Decomposition (BD) to enable efficient, practical mixed-precision quantization in neural networks. EBS uses a shared meta-weight tensor and differentiable soft routing to jointly optimize bitwidths across layers with O(1) memory and computation, while BD enables efficient mixed-precision convolution on standard hardware. The method achieves state-of-the-art accuracy with 3.26x FLOPs reduction on ImageNet, outperforming uniform-precision baselines and prior mixed-precision approaches.

ABSTRACT

Network quantization has rapidly become one of the most widely used methods to compress and accelerate deep neural networks. Recent efforts propose to quantize weights and activations from different layers with different precision to improve the overall performance. However, it is challenging to find the optimal bitwidth (i.e., precision) for weights and activations of each layer efficiently. Meanwhile, it is yet unclear how to perform convolution for weights and activations of different precision efficiently on generic hardware platforms. To resolve these two issues, in this paper, we first propose an Efficient Bitwidth Search (EBS) algorithm, which reuses the meta weights for different quantization bitwidth and thus the strength for each candidate precision can be optimized directly w.r.t the objective without superfluous copies, reducing both the memory and computational cost significantly. Second, we propose a binary decomposition algorithm that converts weights and activations of different precision into binary matrices to make the mixed precision convolution efficient and practical. Experiment results on CIFAR10 and ImageNet datasets demonstrate our mixed precision QNN outperforms the handcrafted uniform bitwidth counterparts and other mixed precision techniques.

Motivation & Objective

  • To address the high computational and memory cost of existing gradient-based mixed-precision bitwidth search methods.
  • To enable efficient mixed-precision convolution on generic hardware platforms that do not natively support heterogeneous precision operations.
  • To automatically discover optimal, layer-specific bitwidths for weights and activations that maximize accuracy while minimizing FLOPs.
  • To reduce the search cost of mixed-precision quantization to near-uniform-precision levels without sacrificing performance.

Proposed method

  • EBS reuses a single meta-weight tensor across all candidate bitwidths, reducing memory cost from O(N) to O(1) compared to maintaining separate weights for each bitwidth.
  • It employs a differentiable soft routing mechanism using softmax to dynamically select the most effective bitwidth per layer during training.
  • Instead of performing separate convolutions for each bitwidth pair, EBS computes a weighted sum of quantized weights and activations across all bitwidths, reducing computation from O(N²) to O(1).
  • The method formulates bitwidth selection as a differentiable search problem, enabling end-to-end optimization via gradient descent.
  • Binary Decomposition (BD) decomposes mixed-precision tensors into a binary matrix and a scalar coefficient, enabling efficient mixed-precision convolution on standard hardware.
  • BD allows the use of native binary and low-precision instructions (e.g., INT4, INT8) to accelerate inference without requiring specialized hardware.

Experimental results

Research questions

  • RQ1Can we reduce the memory and computational cost of differentiable bitwidth search in mixed-precision neural networks to near-uniform-precision levels?
  • RQ2How can we efficiently perform convolution between weights and activations of different bitwidths on general-purpose hardware platforms?
  • RQ3Can a differentiable, parameter-efficient search method discover better bitwidth allocations than handcrafted or rule-based schemes?
  • RQ4Does the proposed method achieve higher accuracy or better FLOPs efficiency than existing uniform-precision and mixed-precision baselines?

Key findings

  • EBS-Det achieves 71.1% top-1 accuracy on ImageNet with only 558M FLOPs, outperforming the full-precision ResNet-18 (70.4%) and surpassing state-of-the-art 5-bit PACT models by 1.8% in accuracy with lower FLOPs.
  • EBS-Sto achieves 70.0% top-1 accuracy with 564M FLOPs, matching or exceeding 5-bit and 4-bit uniform-precision baselines while reducing FLOPs by up to 3.26x.
  • EBS reduces GPU memory usage by over 90% and training time by over 50% compared to DNAS, enabling search with batch size 128 where DNAS fails due to OOM.
  • The method discovers a non-uniform bitwidth distribution—most weights are 1-bit, while activations are typically 3–4 bits—confirming that higher precision is needed for activations.
  • With label refinery enhancement, EBS-Det achieves 70.3% top-1 accuracy with only 369M FLOPs, outperforming DNAS by 1.6% while using 4.93x fewer FLOPs.
  • Binary Decomposition enables efficient mixed-precision inference on standard hardware by leveraging native low-precision instructions, making the approach practical for deployment.

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.