NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adaptive Quantization for Deep Neural Network

Yiren Zhou, Seyed-Mohsen Moosavi-Dezfooli, Ngai-Man Cheung, Pascal Frossard

Introduction

Deploying massive deep neural networks (DNNs) on mobile and edge devices requires aggressive compression techniques like parameter quantization. While standard methods often apply a uniform bit-width across all layers, different layers exhibit varying sensitivities to quantization errors. This paper by Zhou et al. (AAAI 2018) introduces a theoretical framework to determine optimal, layer-specific bit-widths, achieving significant compression gains without sacrificing predictive accuracy.

The Quantization Problem

Deep neural networks are computationally intensive. To facilitate deployment on resource-constrained platforms, engineers use parameter quantization—storing weights as low-precision integers (e.g., 4-bit or 8-bit) instead of 32-bit floats. However, finding the optimal bit-width for each layer is a combinatorial challenge. Previous heuristics like Signal-to-Quantization-Noise Ratio (SQNR) lacked a direct theoretical link to final classification accuracy degradation.

The authors reframe quantization as injecting random noise into network weights. The objective is to minimize the total model size while keeping the accuracy drop within a predefined threshold.

The optimization objective: minimizing model size subject to an accuracy constraint.

Methodology

To solve the optimization problem efficiently, the authors proposed an analytical approach:

  1. Modeling Noise Propagation: They mathematically traced how quantization noise in individual layers propagates to the final feature map (the input to the softmax classifier).
  2. Linking Noise to Accuracy: Drawing from adversarial robustness theory, they established a bound relating quantization noise in the final feature map to the "adversarial noise" required to misclassify an input.
  3. Layer-wise Robustness Metric ($t_i$): A robustness parameter was defined for each layer, quantifying how much noise on the final feature map is generated by quantizing that specific layer.
  4. Analytical Optimization: By proving that noise effects from different layers are linear and additive under small noise assumptions, they transformed the combinatorial search into a single global optimization problem solvable analytically.

Key Insights: Linearity and Additivity

A fundamental insight of this work is that quantization noise effects are additive: quantizing layers independently is functionally equivalent to quantizing them simultaneously. Furthermore, the propagation of noise through the network remains largely linear for small perturbations.

Empirical validation of the linear relationship between weight quantization noise and output feature map noise for AlexNet and VGG-16.

The authors observed that earlier layers exhibit slightly less linear noise propagation than later layers, likely due to the cumulative effect of non-linear activations like ReLU and max-pooling.

Experimental Results

The framework was evaluated on the ImageNet (ILSVRC 2012) dataset using standard architectures including AlexNet, VGG-16, GoogLeNet, and ResNet-50.

  • Superior Compression: The adaptive method consistently outperformed uniform quantization and SQNR-based optimization.
  • Efficiency Gains: For AlexNet and VGG-16, the method achieved a 30–40% smaller model size compared to uniform quantization at the same accuracy level. For GoogLeNet and ResNet-50, the reduction was 15–20%.
  • Computational Speed: Calculating the robustness metrics is highly efficient, taking only 15 minutes for AlexNet and 6 hours for ResNet-50 on a single GPU.

Conclusion

This research provides a rigorous theoretical foundation for adaptive quantization. By linking layer-wise weight distortion to final model accuracy through noise propagation analysis, the authors enable efficient, automated optimization of DNN compression. Future work may involve combining this framework with pruning or knowledge distillation to achieve even higher compression ratios.

Summary updated

BibTeX
@inproceedings{zhou2018adaptive,
  author = {Yiren Zhou and Seyed-Mohsen Moosavi-Dezfooli and Ngai-Man Cheung and Pascal Frossard},
  title = {{Adaptive Quantization for Deep Neural Network}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11623},
}
Figure