Skip to main content
QUICK REVIEW

[Paper Review] Fast Adjustable Threshold For Uniform Neural Network Quantization (Winning solution of LPIRC-II)

Alexander Goncharenko, Andrey Denisov|arXiv (Cornell University)|Dec 19, 2018
Advanced Neural Network ApplicationsComputer Science28 references6 citations
TL;DR

This paper proposes a fast, trainable threshold adjustment method for uniform neural network quantization that significantly reduces accuracy drop during post-training quantization. By learning scale factors for quantization thresholds during a brief fine-tuning phase (up to 8 epochs), the method enables high-accuracy quantized models with minimal data and computational cost—achieving 74.8% top-1 accuracy on ImageNet with MNASNet, compared to 75.3% for the full-precision model.

ABSTRACT

Neural network quantization procedure is the necessary step for porting of neural networks to mobile devices. Quantization allows accelerating the inference, reducing memory consumption and model size. It can be performed without fine-tuning using calibration procedure (calculation of parameters necessary for quantization), or it is possible to train the network with quantization from scratch. Training with quantization from scratch on the labeled data is rather long and resource-consuming procedure. Quantization of network without fine-tuning leads to accuracy drop because of outliers which appear during the calibration. In this article we suggest to simplify the quantization procedure significantly by introducing the trained scale factors for quantization thresholds. It allows speeding up the process of quantization with fine-tuning up to 8 epochs as well as reducing the requirements to the set of train images. By our knowledge, the proposed method allowed us to get the first public available quantized version of MNAS without significant accuracy reduction - 74.8% vs 75.3% for original full-precision network. Model and code are ready for use and available at: https://github.com/agoncharenko1992/FAT-fast_adjustable_threshold.

Motivation & Objective

  • To address the accuracy degradation in post-training quantization caused by outliers during calibration.
  • To reduce the computational and data requirements for quantization fine-tuning without sacrificing model accuracy.
  • To enable efficient deployment of quantized models on mobile devices with minimal performance loss.
  • To provide a publicly available, high-accuracy quantized version of MNASNet using a simple, trainable threshold mechanism.

Proposed method

  • Introduces learnable scale factors for quantization thresholds, replacing fixed calibration-based thresholds.
  • Applies a short fine-tuning phase (up to 8 epochs) to train these scale factors using labeled data.
  • Uses uniform quantization with symmetric or asymmetric ranges, adjusting thresholds via learned parameters.
  • Employs a differentiable quantization function to enable end-to-end training of scale factors.
  • Reduces dependency on large calibration datasets by learning robust thresholds during fine-tuning.
  • Applies the method to full-precision models like MNASNet, enabling deployment-ready quantized versions.

Experimental results

Research questions

  • RQ1Can a trainable threshold mechanism reduce accuracy drop in post-training quantization without extensive fine-tuning?
  • RQ2How much fine-tuning is required to achieve high-accuracy quantized models using this method?
  • RQ3Can the method reduce data requirements for calibration while maintaining model performance?
  • RQ4What is the accuracy impact of this method on state-of-the-art models like MNASNet?
  • RQ5Is the proposed method generalizable across different neural network architectures?

Key findings

  • The method reduces the required fine-tuning to up to 8 epochs, significantly accelerating the quantization process.
  • The approach achieves 74.8% top-1 accuracy on ImageNet with MNASNet, compared to 75.3% for the full-precision model.
  • The method enables the first publicly available quantized version of MNASNet with minimal accuracy degradation.
  • The technique reduces dependency on large calibration datasets by learning robust thresholds during fine-tuning.
  • The model and code are publicly released and ready for immediate deployment on mobile devices.

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.