Skip to main content
QUICK REVIEW

[Paper Review] Same, Same But Different - Recovering Neural Network Quantization Error Through Weight Factorization

Eldad Meller, Alexander M. Finkel’stein|arXiv (Cornell University)|Feb 5, 2019
Advanced Neural Network ApplicationsComputer Science28 citations
TL;DR

This paper proposes a pre-processing method that leverages inversely proportional weight factorization to reduce neural network quantization error by equalizing channel dynamic ranges across layers. By amplifying low-activity channels and compensating via inverse scaling in the next layer, the method significantly reduces quantization-induced degradation—achieving state-of-the-art results on MobileNets with 8-bit quantization, even without quantization-aware training or retraining.

ABSTRACT

Quantization of neural networks has become common practice, driven by the need for efficient implementations of deep neural networks on embedded devices. In this paper, we exploit an oft-overlooked degree of freedom in most networks - for a given layer, individual output channels can be scaled by any factor provided that the corresponding weights of the next layer are inversely scaled. Therefore, a given network has many factorizations which change the weights of the network without changing its function. We present a conceptually simple and easy to implement method that uses this property and show that proper factorizations significantly decrease the degradation caused by quantization. We show improvement on a wide variety of networks and achieve state-of-the-art degradation results for MobileNets. While our focus is on quantization, this type of factorization is applicable to other domains such as network-pruning, neural nets regularization and network interpretability.

Motivation & Objective

  • To address the performance degradation caused by low-precision quantization in deep neural networks deployed on edge devices.
  • To exploit an overlooked degree of freedom in neural network weight factorization—wherein weights can be re-scaled across channels without altering network function.
  • To reduce quantization noise by equalizing the dynamic range of output channels within each layer, minimizing the impact of dominant channels on noise distribution.
  • To enable rapid, efficient deployment of quantized models without requiring retraining or access to original datasets.

Proposed method

  • Proposes inversely proportional weight factorization: for any layer, scaling output channels by a factor C while inversely scaling the corresponding weights in the next layer preserves network function.
  • Introduces a greedy, layer-wise equalization algorithm that amplifies low-activity channels to match the dynamic range of the dominant (highest-activity) channel.
  • Employs a two-step equalization process: first, one-step equalization amplifies channels below the dominant range; second, it allows attenuation (up to 30%) to avoid distorting full-precision performance.
  • Applies knowledge distillation with only 1000 unlabeled images to fine-tune biases and correct distribution shifts caused by quantization-induced weight distribution shifts.
  • Uses a channel-wise scaling strategy that maintains compatibility with standard 8-bit integer quantization and avoids the hardware and storage overhead of per-channel quantization.
  • Integrates equalization as a pre-processing step prior to quantization, making it compatible with existing quantization pipelines and enabling immediate deployment.

Experimental results

Research questions

  • RQ1Can equivalent weight factorizations be used to reduce quantization-induced degradation without retraining or access to training data?
  • RQ2Does equalizing the dynamic range of output channels within a layer improve robustness to weight and activation quantization noise?
  • RQ3How effective is a greedy, layer-wise equalization strategy in reducing post-quantization accuracy loss across diverse network architectures?
  • RQ4Can equalization achieve state-of-the-art performance on quantized models like MobileNet without requiring quantization-aware training or per-channel quantization?
  • RQ5What is the impact of weight and activation quantization noise on different layers, and can this be leveraged to optimize equalization?

Key findings

  • One-step equalization reduced MobileNet V1-1.0 accuracy degradation from 7.89% to 3.2% under 8-bit quantization, and to 1.3% with two-step equalization.
  • For MobileNet V2-1.4, degradation dropped from 8.06% to 0.55% using two-step equalization with bias fine-tuning, achieving state-of-the-art results.
  • The method achieved competitive performance on ResNet-V1-152 and Inception-V3 with degradation of 0.62% and 0.05% respectively, under 8-bit quantization.
  • The approach is fully compatible with existing quantization schemes and enables rapid deployment of quantized models without retraining.
  • Knowledge distillation with only 1000 unlabeled images effectively corrected distribution shifts from quantization, preserving full-precision accuracy.
  • The method outperforms existing approaches by avoiding per-channel quantization overhead while achieving superior or comparable results with minimal computational cost.

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.