Skip to main content
QUICK REVIEW

[Paper Review] Near-Lossless Post-Training Quantization of Deep Neural Networks via a Piecewise Linear Approximation

Jun Fang, Ali Shafiee|arXiv (Cornell University)|Jan 31, 2020
Advanced Neural Network ApplicationsComputer Science5 references10 citations
TL;DR

This paper proposes Piecewise Linear Quantization (PWLQ), a post-training quantization method that improves accuracy at low bit-widths by dividing tensor value ranges into non-overlapping regions with equal quantization levels. By optimizing breakpoints to minimize quantization error, PWLQ achieves state-of-the-art performance in image classification, semantic segmentation, and object detection with minimal computational overhead.

ABSTRACT

Quantization plays an important role in the energy-efficient deployment of deep neural networks on resource-limited devices. Post-training quantization is highly desirable since it does not require retraining or access to the full training dataset. The well-established uniform scheme for post-training quantization achieves satisfactory results by converting neural networks from full-precision to 8-bit fixed-point integers. However, it suffers from significant performance degradation when quantizing to lower bit-widths. In this paper, we propose a piecewise linear quantization (PWLQ) scheme to enable accurate approximation for tensor values that have bell-shaped distributions with long tails. Our approach breaks the entire quantization range into non-overlapping regions for each tensor, with each region being assigned an equal number of quantization levels. Optimal breakpoints that divide the entire range are found by minimizing the quantization error. Compared to state-of-the-art post-training quantization methods, experimental results show that our proposed method achieves superior performance on image classification, semantic segmentation, and object detection with minor overhead.

Motivation & Objective

  • Address the performance degradation of uniform post-training quantization at low bit-widths (e.g., 4-bit or lower).
  • Enable accurate quantization for tensors with bell-shaped distributions and long tails, which are poorly handled by uniform schemes.
  • Develop a post-training quantization method that avoids retraining and full dataset access while maintaining high model accuracy.
  • Minimize quantization error through optimal breakpoint placement in non-uniform, piecewise linear regions per tensor.
  • Achieve superior performance across diverse vision tasks—image classification, semantic segmentation, and object detection—compared to existing post-training methods.

Proposed method

  • Divide the full range of each tensor’s values into non-overlapping regions based on the data distribution.
  • Assign an equal number of quantization levels to each region, enabling piecewise linear approximation of the tensor values.
  • Optimize breakpoints between regions by minimizing the quantization error using a differentiable approximation of the error function.
  • Apply the quantization scheme during inference without requiring retraining or access to the original training data.
  • Use a piecewise linear function to map full-precision values to low-bit integers, with breakpoints dynamically determined per tensor.
  • Balance quantization accuracy and computational cost by limiting the number of regions and using efficient optimization techniques.

Experimental results

Research questions

  • RQ1Can a piecewise linear quantization scheme outperform uniform quantization at low bit-widths for deep neural networks?
  • RQ2How does the proposed method handle tensors with non-uniform, bell-shaped distributions and long tails?
  • RQ3To what extent does the method reduce quantization error compared to state-of-the-art post-training quantization techniques?
  • RQ4What is the trade-off between quantization accuracy and computational overhead in the proposed framework?
  • RQ5Does the method maintain high performance across diverse computer vision tasks such as image classification, semantic segmentation, and object detection?

Key findings

  • PWLQ achieves superior accuracy compared to state-of-the-art post-training quantization methods on image classification, semantic segmentation, and object detection benchmarks.
  • The method significantly reduces quantization error by adapting to the distribution of tensor values through optimized, non-uniform breakpoints.
  • PWLQ maintains high model performance even at low bit-widths, such as 4-bit or lower, where uniform quantization typically suffers from severe accuracy drops.
  • The approach incurs only minor computational overhead, making it practical for deployment on resource-limited devices.
  • The piecewise linear approximation effectively captures long-tailed distributions common in deep neural network activations.
  • The method does not require retraining or access to the full training dataset, preserving the advantages of post-training 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.