Skip to main content
QUICK REVIEW

[Paper Review] Differentiable Joint Pruning and Quantization for Hardware Efficiency

Ying Wang, Yadong Lu|arXiv (Cornell University)|Jul 20, 2020
Advanced Neural Network ApplicationsComputer Science35 references5 citations
TL;DR

This paper proposes Differentiable Joint Pruning and Quantization (DJPQ), a unified differentiable framework that jointly optimizes structured pruning and mixed-precision quantization for hardware-efficient inference. By integrating variational information bottleneck-based pruning with differentiable quantization in a single loss, DJPQ achieves state-of-the-art BOPs reductions—53x in ResNet18 and 43x in MobileNetV2 on ImageNet—while maintaining top-1 accuracy, outperforming two-stage approaches and supporting power-of-two bit-restricted quantization with minimal accuracy loss.

ABSTRACT

We present a differentiable joint pruning and quantization (DJPQ) scheme. We frame neural network compression as a joint gradient-based optimization problem, trading off between model pruning and quantization automatically for hardware efficiency. DJPQ incorporates variational information bottleneck based structured pruning and mixed-bit precision quantization into a single differentiable loss function. In contrast to previous works which consider pruning and quantization separately, our method enables users to find the optimal trade-off between both in a single training procedure. To utilize the method for more efficient hardware inference, we extend DJPQ to integrate structured pruning with power-of-two bit-restricted quantization. We show that DJPQ significantly reduces the number of Bit-Operations (BOPs) for several networks while maintaining the top-1 accuracy of original floating-point models (e.g., 53x BOPs reduction in ResNet18 on ImageNet, 43x in MobileNetV2). Compared to the conventional two-stage approach, which optimizes pruning and quantization independently, our scheme outperforms in terms of both accuracy and BOPs. Even when considering bit-restricted quantization, DJPQ achieves larger compression ratios and better accuracy than the two-stage approach.

Motivation & Objective

  • Address the inefficiency of conventional two-stage compression pipelines that optimize pruning and quantization independently.
  • Enable holistic optimization of model sparsity and bit-precision trade-offs through a unified differentiable objective.
  • Improve hardware efficiency by supporting mixed-precision quantization with power-of-two bit-widths, which are natively efficient on most digital accelerators.
  • Reduce the need for iterative training and fine-tuning by enabling end-to-end compression in a single training procedure.
  • Maintain high model accuracy while achieving extreme compression ratios through joint optimization of pruning and quantization.

Proposed method

  • Formulate model compression as a joint differentiable optimization problem using a loss function that combines variational information bottleneck (VIB) for structured pruning and differentiable quantization (DQ) for mixed-precision.
  • Integrate VIB-based channel pruning with learnable temperature parameters to enable gradient-based sparsity control across layers.
  • Apply differentiable quantization with learnable bit-widths per layer, allowing gradient-based optimization of precision per layer.
  • Extend the framework to support power-of-two bit-restricted quantization by applying a differentiable relaxation to enforce bit-width constraints.
  • Optimize the joint objective using stochastic gradient descent, enabling end-to-end training with a single forward-backward pass.
  • Use Bit-Operations (BOPs) as a hardware-aware surrogate measure to evaluate compression efficiency and guide optimization.

Experimental results

Research questions

  • RQ1Can joint optimization of pruning and quantization via differentiable training achieve better hardware efficiency than two-stage approaches?
  • RQ2How does joint optimization affect model accuracy and BOPs reduction compared to independent pruning and quantization?
  • RQ3Can the method effectively learn mixed-precision bit-widths under practical power-of-two bit-restriction constraints?
  • RQ4What is the relationship between pruning ratio and learned bit-width distribution across layers in a network?
  • RQ5Does joint optimization lead to more efficient and accurate model compression than heuristic or fixed-bit quantization strategies?

Key findings

  • DJPQ achieves a 53x reduction in Bit-Operations (BOPs) for ResNet18 on ImageNet with only a 0.5% accuracy drop compared to the full-precision model.
  • For MobileNetV2, DJPQ reduces BOPs by 43x while maintaining top-1 accuracy within 0.75% of the original floating-point model.
  • Compared to the two-stage approach (pruning then quantization), DJPQ achieves higher accuracy (69.27% vs 68.52%) at comparable BOP reduction levels.
  • The bit-restricted variant of DJPQ (DJPQ-restrict) achieves 52x BOP reduction on ResNet18 with negligible accuracy degradation, outperforming DQ-restrict and fixed-bit baselines.
  • Layer-wise analysis shows that earlier layers are heavily pruned, while residual connections and point-wise convolutions in MobileNetV2 are assigned higher bit-widths, reflecting their sensitivity to compression.
  • The learned temperature parameters in VIB correlate with pruning intensity: lower values indicate higher pruning, and layers with no pruning have temperatures near 1, demonstrating dynamic interaction between pruning and quantization.

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.