Skip to main content
QUICK REVIEW

[Paper Review] BitPruning: Learning Bitlengths for Aggressive and Accurate Quantization

Miloš Nikolić, Ghouthi Boukli Hacene|arXiv (Cornell University)|Feb 8, 2020
Advanced Neural Network ApplicationsComputer Science36 references15 citations
TL;DR

BitPruning introduces a differentiable regularization method that jointly learns optimal per-layer bitlengths for deep neural networks during training, enabling aggressive quantization with minimal accuracy loss. It achieves average bitlengths of 4.13, 3.76, and 4.36 bits on AlexNet, ResNet18, and MobileNet V2 respectively on ImageNet, while maintaining accuracy within 0.5%–2.0% of the full-precision baseline.

ABSTRACT

Neural networks have demonstrably achieved state-of-the art accuracy using low-bitlength integer quantization, yielding both execution time and energy benefits on existing hardware designs that support short bitlengths. However, the question of finding the minimum bitlength for a desired accuracy remains open. We introduce a training method for minimizing inference bitlength at any granularity while maintaining accuracy. Namely, we propose a regularizer that penalizes large bitlength representations throughout the architecture and show how it can be modified to minimize other quantifiable criteria, such as number of operations or memory footprint. We demonstrate that our method learns thrifty representations while maintaining accuracy. With ImageNet, the method produces an average per layer bitlength of 4.13, 3.76 and 4.36 bits on AlexNet, ResNet18 and MobileNet V2 respectively, remaining within 2.0%, 0.5% and 0.5% of the base TOP-1 accuracy.

Motivation & Objective

  • To address the challenge of finding the minimal bitlength per layer that maintains model accuracy in low-precision inference.
  • To enable end-to-end learning of heterogeneous bitlengths across layers, rather than relying on fixed or hand-tuned bitwidths.
  • To minimize not only bitlength but also quantifiable criteria such as memory footprint and computational workload through a flexible regularizer.
  • To support efficient deployment on existing and specialized hardware by learning bitwidths that align with hardware-optimized datatypes.
  • To reduce energy consumption and improve inference efficiency without requiring retraining for each bitwidth choice.

Proposed method

  • A differentiable regularizer is introduced that penalizes large bitlength representations across the network, encouraging the model to learn minimal yet accurate bitwidths per layer.
  • The regularizer is weighted and can be tuned to prioritize minimizing bitlength, memory footprint, or computational operations.
  • The method is applied during standard backpropagation, allowing end-to-end training with joint optimization of weights and bitlengths.
  • Bitlengths are differentiable through a straight-through estimator, enabling gradient flow despite discrete choices.
  • The approach supports arbitrary granularity, including per-layer, per-kernel, or per-tensor bitwidth assignment.
  • The method can be adapted to optimize for different hardware constraints by modifying the regularizer's coefficients.

Experimental results

Research questions

  • RQ1Can a deep learning model learn per-layer bitlengths that minimize bitwidth while maintaining high accuracy?
  • RQ2How does the proposed regularizer compare to post-training or hand-crafted bitwidth selection in terms of accuracy and efficiency?
  • RQ3Can the method be extended to minimize other hardware-aware metrics such as memory footprint or FLOPs?
  • RQ4What is the trade-off between training cost and inference efficiency when using learned bitwidths?
  • RQ5Does the method generalize across different network architectures and datasets?

Key findings

  • On ImageNet, BitPruning achieves an average bitlength of 4.13 bits for AlexNet, 3.76 for ResNet18, and 4.36 for MobileNet V2, with accuracy losses of 2.0%, 0.5%, and 0.5% respectively compared to the full-precision baseline.
  • On CIFAR-10, the method achieves average bitlengths of 3.92 and 2.17 bits for AlexNet and ResNet18, respectively, with accuracy within 0.9% of the baseline.
  • The method reduces memory footprint by 10%–24% and computation workload by 4%–8% on CIFAR-10 for AlexNet and ResNet18, demonstrating efficiency gains.
  • The training cost is higher, requiring 180 epochs (2× baseline) and 4.6×–5.4× more time to reach baseline accuracy, but this is justified by inference gains.
  • The method supports end-to-end quantization, including first and last layers, enabling full model quantization without architectural modifications.
  • The regularizer can be reweighted to optimize for memory or compute, making it adaptable to diverse hardware targets.

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.