Skip to main content
QUICK REVIEW

[Paper Review] Recurrent Neural Networks With Limited Numerical Precision

J. C. Ott, Zhouhan Lin|arXiv (Cornell University)|Aug 24, 2016
Neural Networks and ApplicationsComputer Science15 references50 citations
TL;DR

This paper investigates low-precision weight quantization in recurrent neural networks (RNNs) during training, evaluating stochastic and deterministic binarization, ternarization, pow2-ternarization, and a novel exponential quantization method. It finds that ternarization and its variants significantly outperform binarization, achieving comparable or better accuracy than full-precision models on speech and language tasks, enabling efficient deployment on low-power hardware.

ABSTRACT

Recurrent Neural Networks (RNNs) produce state-of-art performance on many machine learning tasks but their demand on resources in terms of memory and computational power are often high. Therefore, there is a great interest in optimizing the computations performed with these models especially when considering development of specialized low-power hardware for deep networks. One way of reducing the computational needs is to limit the numerical precision of the network weights and biases. This has led to different proposed rounding methods which have been applied so far to only Convolutional Neural Networks and Fully-Connected Networks. This paper addresses the question of how to best reduce weight precision during training in the case of RNNs. We present results from the use of different stochastic and deterministic reduced precision training methods applied to three major RNN types which are then tested on several datasets. The results show that the weight binarization methods do not work with the RNNs. However, the stochastic and deterministic ternarization, and pow2-ternarization methods gave rise to low-precision RNNs that produce similar and even higher accuracy on certain datasets therefore providing a path towards training more efficient implementations of RNNs in specialized hardware.

Motivation & Objective

  • To investigate whether low-precision weight quantization techniques—previously used in feedforward and convolutional networks—can be successfully applied during training in RNNs.
  • To evaluate the impact of reduced numerical precision on the performance of three major RNN architectures: vanilla RNNs, GRUs, and LSTMs.
  • To determine which quantization methods (binarization, ternarization, pow2-ternarization, exponential quantization) yield stable and accurate training in RNNs.
  • To enable efficient deployment of RNNs on low-power embedded hardware by minimizing memory and computational requirements through precision reduction.
  • To provide open-source code for the proposed quantization methods to support reproducibility and further research in quantized RNN training.

Proposed method

  • Applies four weight quantization methods: stochastic and deterministic binarization (BinaryConnect), ternarization (TernaryConnect), pow2-ternarization, and a novel exponential quantization method.
  • Maintains full-precision copies of weights and biases during training to accumulate gradients, while using low-precision versions for forward and backward passes.
  • Uses stochastic sampling for low-precision weight generation in stochastic variants, and thresholding for deterministic versions.
  • Employs standard RNN architectures (vanilla RNN, GRU, LSTM) with standard training protocols (Adam optimizer, Glorot initialization) on benchmark datasets.
  • Evaluates performance using standard metrics: word error rate (WER) for speech recognition, cross-entropy and BPC for language modeling.
  • Introduces exponential quantization as a new method that maps real-valued weights to a set of discrete values based on exponential scaling, improving stability in RNNs.

Experimental results

Research questions

  • RQ1Can stochastic and deterministic weight binarization be successfully applied during training in RNNs without significant performance degradation?
  • RQ2Do ternarization and pow2-ternarization methods yield stable and accurate training in RNNs, particularly on large-scale datasets?
  • RQ3Why does binarization fail in RNNs while ternarization succeeds, and what role does weight variance play in this difference?
  • RQ4Can low-precision RNNs achieve performance comparable or superior to full-precision baselines, especially in overfitting regimes?
  • RQ5How does the choice of quantization levels (e.g., -1,0,1 vs. -0.5,0,0.5) affect the convergence and accuracy of RNNs?

Key findings

  • Binarization fails in RNNs, as stochastic binarization leads to unstable training and poor convergence, especially in GRUs and LSTMs.
  • Ternarization and its variants (pow2-ternarization, exponential quantization) achieve comparable or better accuracy than full-precision baselines on the TIDIGITS and PTB datasets.
  • On the WSJ speech recognition dataset, the pow2-ternarized LSTM model achieved a word error rate (WER) of 10.49% after 87 epochs, outperforming the full-precision baseline (11.16%) after 60 epochs.
  • The stochastic ternarization method on TIDIGITS achieved a top-1 accuracy of 98.23%, nearly matching the full-precision baseline and surpassing the full-precision baseline in BPC on the PTB dataset by 0.133 BPC.
  • The success of ternarization is attributed to reduced variance in weighted sums compared to binarization, which is especially critical in RNNs due to repeated weight usage over time.
  • Exponential quantization showed strong performance, particularly in the TIDIGITS experiments, suggesting it as a promising alternative for RNN 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.