Skip to main content
QUICK REVIEW

[Paper Review] Precision Gating: Improving Neural Network Efficiency with Dynamic Dual-Precision Activations

Yichi Zhang, Ritchie Zhao|arXiv (Cornell University)|Feb 17, 2020
Advanced Neural Network ApplicationsComputer Science30 references16 citations
TL;DR

This paper proposes Precision Gating (PG), an end-to-end trainable dynamic dual-precision quantization method that computes most features in low precision while selectively upgrading critical features to higher precision using a differentiable gating mechanism. PG reduces computational cost by up to 4.5× with minimal accuracy loss, achieving 1.2% lower perplexity and 2.7× less compute on LSTMs, and 3.5% higher accuracy with 2.4× less compute on ImageNet compared to state-of-the-art methods.

ABSTRACT

We propose precision gating (PG), an end-to-end trainable dynamic dual-precision quantization technique for deep neural networks. PG computes most features in a low precision and only a small proportion of important features in a higher precision to preserve accuracy. The proposed approach is applicable to a variety of DNN architectures and significantly reduces the computational cost of DNN execution with almost no accuracy loss. Our experiments indicate that PG achieves excellent results on CNNs, including statically compressed mobile-friendly networks such as ShuffleNet. Compared to the state-of-the-art prediction-based quantization schemes, PG achieves the same or higher accuracy with 2.4$ imes$ less compute on ImageNet. PG furthermore applies to RNNs. Compared to 8-bit uniform quantization, PG obtains a 1.2% improvement in perplexity per word with 2.7$ imes$ computational cost reduction on LSTM on the Penn Tree Bank dataset. Code is available at: https://github.com/cornell-zhang/dnn-gating

Motivation & Objective

  • To address the inefficiency of static quantization in deep neural networks (DNNs), which assigns fixed precision regardless of input-dependent feature importance.
  • To reduce computational cost in DNN inference without sacrificing model accuracy, especially for deployment on resource-constrained edge devices.
  • To enable end-to-end trainable, input-adaptive precision assignment at the individual feature level, improving efficiency and accuracy.
  • To introduce a differentiable gating mechanism that allows back-propagation to learn which features require higher precision.
  • To demonstrate the effectiveness of PG across diverse architectures, including CNNs and RNNs, on standard benchmarks like ImageNet and Penn Tree Bank.

Proposed method

  • PG computes the main DNN layer in low precision (e.g., 3-bit) and identifies high-magnitude output features as important using a learned gating function.
  • A sparse, high-precision update is applied only to the selected important features, enabling dual-precision computation at the feature level.
  • The gating function is differentiable, allowing back-propagation to optimize which features are upgraded, ensuring end-to-end training.
  • PG integrates PACT (Parametric ReLU Activation Clipping) to handle activation outliers and reduce quantization error in low-precision regimes.
  • The update phase is implemented using a sampled dense-dense matrix multiplication (SDDMM) kernel, which efficiently exploits sparsity for speedup.
  • Sparsity is preserved during back-propagation, enabling significant computational savings in both forward and backward passes.

Experimental results

Research questions

  • RQ1Can dynamic, input-adaptive precision assignment improve DNN inference efficiency without accuracy degradation?
  • RQ2Can a differentiable gating mechanism enable end-to-end training of dual-precision DNNs with minimal overhead?
  • RQ3How does PG compare to static and prediction-based quantization methods in terms of accuracy and computational cost on CNNs and RNNs?
  • RQ4To what extent does sparsity in the update phase contribute to computational speedup on CPU and GPU architectures?
  • RQ5Can PG be effectively applied to both convolutional and recurrent networks, including mobile-friendly models like ShuffleNet and LSTMs?

Key findings

  • On ImageNet, PG achieves 3.5% higher top-1 accuracy than baseline 8-bit quantization with 2.4× less computational cost.
  • For CIFAR-10, PG improves accuracy by 0.6% and reduces compute by up to 4.5× compared to 8-bit baselines.
  • On the Penn Tree Bank dataset, PG improves perplexity per word (PPW) by 1.2% and reduces compute by 2.7× compared to 8-bit uniform quantization.
  • The SDDMM kernel implementation achieves up to 8.3× wall-clock speedup over dense GEMM on CPU, with sparsity ranging from 76% to 99% across ResNet-20 layers.
  • PG induces 6–21% higher sparsity during back-propagation than forward pass, enabling significant savings in both training and inference.
  • The method is compatible with specialized accelerators and is estimated to deliver at least 3× speedup and 5× energy efficiency gains on dedicated hardware.

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.