Skip to main content
QUICK REVIEW

[Paper Review] On the efficient representation and execution of deep acoustic models

Raziel Álvarez, Rohit Prabhavalkar|arXiv (Cornell University)|Jul 15, 2016
Speech Recognition and SynthesisComputer Science19 references6 citations
TL;DR

This paper proposes a simple 8-bit integer quantization scheme for deep acoustic models that reduces memory usage and accelerates inference via optimized integer arithmetic, while introducing a quantization-aware training process that recovers most accuracy loss from quantization. Evaluated on LSTM-based speech recognition, the method achieves near-lossless performance even under noisy conditions.

ABSTRACT

In this paper we present a simple and computationally efficient quantization scheme that enables us to reduce the resolution of the parameters of a neural network from 32-bit floating point values to 8-bit integer values. The proposed quantization scheme leads to significant memory savings and enables the use of optimized hardware instructions for integer arithmetic, thus significantly reducing the cost of inference. Finally, we propose a "quantization aware" training process that applies the proposed scheme during network training and find that it allows us to recover most of the loss in accuracy introduced by quantization. We validate the proposed techniques by applying them to a long short-term memory-based acoustic model on an open-ended large vocabulary speech recognition task.

Motivation & Objective

  • To enable efficient deployment of deep acoustic models on resource-constrained mobile devices by reducing model precision without sacrificing accuracy.
  • To address the accuracy degradation caused by post-training quantization of 32-bit floating-point weights to 8-bit integers.
  • To develop a training-aware quantization method that minimizes the performance gap between full-precision and quantized models.
  • To evaluate the effectiveness of the proposed scheme on long short-term memory (LSTM)-based acoustic models in both clean and noisy speech recognition conditions.

Proposed method

  • A uniform linear quantizer maps 32-bit floating-point weights to 8-bit integers using a scale factor derived from the dynamic range of each layer’s weights.
  • Quantization is applied during inference using a simple scaling and clipping operation: $ V' = Q imes (V - V_{\text{min}}) $, where $ Q = \frac{255}{V_{\text{max}} - V_{\text{min}}} $.
  • A quantization-aware training process uses quantized weights during forward passes but updates gradients using full-precision weights, simulating quantization noise during backpropagation.
  • The method applies to all layers except the final softmax layer when using the 'quant' scheme, or to all layers in the 'quant-all' variant.
  • A scheduled projection learning rate is used for LSTM projection layers to accelerate convergence during training without requiring two-stage pre-training.
  • The approach is validated on a large-vocabulary, open-ended speech recognition task using LSTM acoustic models.

Experimental results

Research questions

  • RQ1Can 8-bit integer quantization significantly reduce memory and computation costs in deep acoustic models without substantial accuracy loss?
  • RQ2How effective is quantization-aware training in recovering accuracy lost due to post-training quantization?
  • RQ3Does the proposed quantization scheme preserve performance under noisy speech recognition conditions?
  • RQ4How does the inclusion of linear recurrent projection layers affect quantization robustness and model efficiency?
  • RQ5What training strategies, such as learning rate scheduling, improve convergence and performance when training quantized LSTM models?

Key findings

  • Post-training quantization to 8-bit integers caused up to 8.1% relative WER degradation on the noisy evaluation set and up to 5.1% on the clean set.
  • Quantization-aware training recovered 2.1% of the accuracy loss on the clean set and 4.0% on the noisy set, with some models achieving near-complete recovery.
  • Models with projection layers showed greater robustness to quantization, suffering less performance degradation than standard deep LSTM architectures.
  • The 'quant' scheme (excluding softmax from quantization) slightly outperformed 'quant-all' in terms of final WER, suggesting that high-precision output layers help maintain accuracy.
  • The scheduled projection learning rate strategy enabled faster convergence than SVD-based initialization and eliminated the need for two-stage training.
  • The proposed quantization scheme enabled significant speedups via SIMD-optimized integer arithmetic and reduced memory bandwidth, making it suitable for embedded speech recognition systems.

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.