Skip to main content
QUICK REVIEW

[Paper Review] Differentiable Fine-grained Quantization for Deep Neural Network Compression

Hsin-Pai Cheng, Yuanjun Huang|arXiv (Cornell University)|Oct 20, 2018
Advanced Neural Network ApplicationsComputer Science10 references11 citations
TL;DR

This paper proposes a differentiable, fine-grained quantization method that relaxes discrete bitwidth choices to a continuous space, enabling gradient-based optimization for mixed-precision quantization in deep neural networks. By jointly optimizing layer-specific bitwidths and network weights, the approach achieves up to 30× compression with minimal accuracy drop—outperforming fixed-precision baselines like 8-bit and binary quantization under the same compression rate.

ABSTRACT

Neural networks have shown great performance in cognitive tasks. When deploying network models on mobile devices with limited resources, weight quantization has been widely adopted. Binary quantization obtains the highest compression but usually results in big accuracy drop. In practice, 8-bit or 16-bit quantization is often used aiming at maintaining the same accuracy as the original 32-bit precision. We observe different layers have different accuracy sensitivity of quantization. Thus judiciously selecting different precision for different layers/structures can potentially produce more efficient models compared to traditional quantization methods by striking a better balance between accuracy and compression rate. In this work, we propose a fine-grained quantization approach for deep neural network compression by relaxing the search space of quantization bitwidth from discrete to a continuous domain. The proposed approach applies gradient descend based optimization to generate a mixed-precision quantization scheme that outperforms the accuracy of traditional quantization methods under the same compression rate.

Motivation & Objective

  • To address the inefficiency of fixed-precision quantization in balancing model compression and accuracy on resource-constrained devices.
  • To explore whether layer-specific bitwidth selection can improve the accuracy-compression trade-off compared to uniform quantization.
  • To develop a differentiable search mechanism that enables end-to-end optimization of mixed-precision quantization schemes.
  • To achieve higher compression rates than traditional 8-bit or binary quantization while maintaining or improving model accuracy.
  • To enable efficient, scalable quantization that is orthogonal to existing techniques like weight pruning.

Proposed method

  • Relaxes discrete quantization bitwidth choices (e.g., binary, 8-bit) to a continuous domain using a Softmax-based relaxation, allowing gradient-based optimization.
  • Models the quantization choice per layer as a learnable parameter vector α, where each element represents the probability of selecting a specific bitwidth.
  • Uses a bi-level optimization framework: minimize model size G(α) subject to a validation loss constraint L_val(w*, α) ≤ θ, where w* is the optimal training weight for a given α.
  • Applies Lagrangian relaxation and an approximate algorithm to solve the constrained optimization problem, with alternating updates to α and w via gradient descent.
  • Employs a differentiable relaxation of the quantization operation to allow backpropagation through the quantization process, enabling joint optimization of bitwidths and network weights.
  • After optimization, the final model is retrained and fine-tuned using the learned mixed-precision scheme for inference.

Experimental results

Research questions

  • RQ1Can relaxing discrete quantization bitwidths to a continuous domain improve the accuracy-compression trade-off in deep neural networks?
  • RQ2Does layer-wise mixed-precision quantization, where different layers use different bitwidths, outperform uniform quantization at the same compression rate?
  • RQ3Can gradient-based optimization effectively search for optimal mixed-precision configurations without relying on discrete search heuristics?
  • RQ4How does the proposed method compare to fixed-precision baselines (e.g., 8-bit, binary) in terms of compression rate and accuracy?
  • RQ5To what extent can the method be combined with other compression techniques like weight pruning?

Key findings

  • On MNIST, the method achieved 28× compression with only 0.46% accuracy drop (98.20% accuracy), outperforming 8-bit (98.48%) and binary (96.34%) baselines at higher compression.
  • On CIFAR-10 with VGG-16, the method achieved 30× compression with 83.06% accuracy, surpassing binary quantization (81.56%) at nearly identical compression rates.
  • The proposed method achieved a 1.5% accuracy gain over binary quantization while maintaining a compression rate close to 32×.
  • Memory consumption was drastically reduced, especially in middle layers, as shown in Figure 2, where the mixed-precision model is significantly narrower than the full-precision VGG-16.
  • The method is orthogonal to weight pruning and can be combined with state-of-the-art pruning techniques to achieve up to 900× overall compression.
  • The approach generalizes across architectures and is not limited to CNNs, with potential extension to RNNs and LSTMs.

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.