Skip to main content
QUICK REVIEW

[Paper Review] Discovering Low-Precision Networks Close to Full-Precision Networks for Efficient Embedded Inference

Jeffrey L. McKinstry, Steven K. Esser|arXiv (Cornell University)|Sep 11, 2018
Advanced Neural Network ApplicationsComputer Science28 references46 citations
TL;DR

The paper demonstrates 8-bit and 4-bit quantized networks (weights and activations) that match or exceed full-precision ImageNet baselines by fine-tuning pretrained models with activation range calibration, longer training for 4-bit cases, and noise-aware SGD techniques.

ABSTRACT

To realize the promise of ubiquitous embedded deep network inference, it is essential to seek limits of energy and area efficiency. To this end, low-precision networks offer tremendous promise because both energy and area scale down quadratically with the reduction in precision. Here we demonstrate ResNet-18, -34, -50, -152, Inception-v3, Densenet-161, and VGG-16bn networks on the ImageNet classification benchmark that, at 8-bit precision exceed the accuracy of the full-precision baseline networks after one epoch of finetuning, thereby leveraging the availability of pretrained models. We also demonstrate ResNet-18, -34, -50, -152, Densenet-161, and VGG-16bn 4-bit models that match the accuracy of the full-precision baseline networks -- the highest scores to date. Surprisingly, the weights of the low-precision networks are very close (in cosine similarity) to the weights of the corresponding baseline networks, making training from scratch unnecessary. We find that gradient noise due to quantization during training increases with reduced precision, and seek ways to overcome this noise. The number of iterations required by SGD to achieve a given training error is related to the square of (a) the distance of the initial solution from the final plus (b) the maximum variance of the gradient estimates. Therefore, we (a) reduce solution distance by starting with pretrained fp32 precision baseline networks and fine-tuning, and (b) combat gradient noise introduced by quantization by training longer and reducing learning rates. Sensitivity analysis indicates that these simple techniques, coupled with proper activation function range calibration to take full advantage of the limited precision, are sufficient to discover low-precision networks, if they exist, close to fp32 precision baseline networks. The results herein provide evidence that 4-bits suffice for classification.

Motivation & Objective

  • Motivate energy- and area-efficient embedded inference via low-precision networks.
  • Show that 8-bit networks can exceed FP32 baselines after minimal fine-tuning.
  • Show that 4-bit networks can match FP32 baselines across several architectures.
  • Provide evidence that pretrained high-precision weights remain close to their low-precision counterparts after quantization.
  • Analyze gradient noise due to quantization and propose mitigation strategies through fine-tuning and calibration.

Proposed method

  • Quantize pretrained FP32 networks to 8-bit and 4-bit fixed-point representations for weights and activations.
  • Calibrate activation ranges per layer using a lightweight forward pass on unquantized models.
  • Fine-tune quantized networks starting from pretrained weights (FAQ: Fine-tuning After Quantization).
  • Use fixed-point quantizers Q_{b,l} with per-layer l calibration and 8/4-bit constraints for weights/activations.
  • Apply straight-through estimator to backpropagate through quantization during training.
  • For 4-bit networks, extend training to 110 epochs with learning-rate scheduling and adjusted weight decay to reduce gradient noise.

Experimental results

Research questions

  • RQ1Can pretrained high-precision networks, when quantized to 8-bit or 4-bit, be fine-tuned to match or exceed their full-precision accuracy on ImageNet?
  • RQ2How does quantization-induced gradient noise affect training, and what simple strategies (e.g., larger batches, longer training, learning-rate schedules) mitigate it?
  • RQ3Do 4-bit networks exist that achieve parity with full-precision baselines across multiple architectures?
  • RQ4Is the final low-precision solution located near the original high-precision initialization, suggesting training from scratch is unnecessary?
  • RQ5Does the FAQ approach generalize to other datasets beyond ImageNet (e.g., CIFAR-10)?

Key findings

  • 8-bit networks exceed their full-precision baselines after one epoch of fine-tuning on several architectures.
  • 4-bit networks match the accuracy of full-precision baselines on ResNet-18, ResNet-34, ResNet-50, ResNet-152, DenseNet-161, and VGG-16bn.
  • Quantization introduces gradient noise that grows as precision decreases, impacting fine-tuning, especially at 4-bit.
  • Starting from pretrained FP32 networks and fine-tuning (FAQ) helps locate near-optimal low-precision solutions near the high-precision initialization.
  • Longer fine-tuning (110 epochs) and larger batch sizes improve 4-bit performance; calibrated activation ranges are crucial (e.g., first/last layer kept 8-bit).
  • Cosine similarity analyses show that 4-bit weights after FAQ remain highly similar to the initial FP32 weights, indicating solutions lie close to the high-precision region.

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.