Skip to main content
QUICK REVIEW

[Paper Review] On the Compression of Recurrent Neural Networks with an Application to LVCSR acoustic modeling for Embedded Speech Recognition

Rohit Prabhavalkar, Ouais Alsharif|arXiv (Cornell University)|Mar 25, 2016
Speech Recognition and SynthesisComputer Science27 references43 citations
TL;DR

This paper proposes a joint singular value decomposition (SVD)-based compression technique for recurrent neural networks (RNNs), specifically targeting Long Short-Term Memory (LSTM) acoustic models in embedded speech recognition. By jointly factorizing both recurrent and inter-layer weight matrices, the method reduces model size to one-third of the original with negligible accuracy loss, achieving a 3.1M-parameter model at 12.9% WER, only 0.5% worse than the baseline.

ABSTRACT

We study the problem of compressing recurrent neural networks (RNNs). In particular, we focus on the compression of RNN acoustic models, which are motivated by the goal of building compact and accurate speech recognition systems which can be run efficiently on mobile devices. In this work, we present a technique for general recurrent model compression that jointly compresses both recurrent and non-recurrent inter-layer weight matrices. We find that the proposed technique allows us to reduce the size of our Long Short-Term Memory (LSTM) acoustic model to a third of its original size with negligible loss in accuracy.

Motivation & Objective

  • To address the challenge of deploying large, accurate RNN acoustic models on memory- and compute-constrained mobile devices.
  • To reduce model size and computational cost without significant accuracy degradation for on-device speech recognition.
  • To generalize existing matrix factorization techniques by jointly compressing both recurrent and non-recurrent weight matrices in RNNs.
  • To evaluate the effectiveness of SVD-based compression on LSTM acoustic models in a real-world embedded ASR setting.
  • To enable efficient, real-time speech recognition on mobile devices through model compression and quantization.

Proposed method

  • The method applies truncated singular value decomposition (SVD) to both recurrent weight matrices $W^{l}_{h}$ and inter-layer weight matrices $W^{l-1}_{x}$ in each RNN layer.
  • For each layer, the rank $r^{l}$ of the projection matrix is determined by retaining a fraction $\tau$ of the explained variance in the SVD of $W^{l}_{h}$, using equation (7).
  • The compressed model is fine-tuned using connectionist temporal classification (CTC) and sequence minimum Bayes risk (sMBR) criteria on in-domain data.
  • The approach generalizes prior work by Xue et al. [8] to jointly compress recurrent and inter-layer weights, rather than treating them separately.
  • The technique is applied to LSTM acoustic models trained on a large-scale, multi-style dictation dataset from Google traffic.
  • Model compression is combined with weight quantization to further reduce memory and computational requirements for embedded deployment.

Experimental results

Research questions

  • RQ1Can joint SVD-based compression of both recurrent and inter-layer weight matrices in RNNs significantly reduce model size with minimal accuracy loss?
  • RQ2How does the choice of explained variance threshold $\tau$ affect the trade-off between model compression and recognition accuracy?
  • RQ3Can the proposed compression technique enable real-time, on-device speech recognition on mobile hardware?
  • RQ4Does the joint compression of recurrent and non-recurrent weights outperform separate compression of individual weight matrices?
  • RQ5What is the performance degradation when compressing an LSTM acoustic model to one-third of its original size?

Key findings

  • The model can be compressed to one-third of its original size (from 9.7M to 3.1M parameters) with only a 0.5% increase in word error rate (WER), from 12.4% to 12.9%.
  • At $\tau = 0.6$, the model achieves a 3.1M-parameter size with 12.9% WER, representing a 3.1M-parameter reduction and 67% size reduction from the baseline.
  • For $\tau \geq 0.7$, the WER remains within 0.3% of the baseline, indicating negligible accuracy loss at moderate compression levels.
  • Performance degrades significantly for $\tau \leq 0.5$, with WER rising to 13.2% at $\tau = 0.5$, indicating a sharp drop in model fidelity.
  • The method outperforms equal-rank compression schemes, as the variance-based rank selection per layer leads to better performance under the same parameter budget.
  • The compressed model runs many times faster than real-time on recent mobile devices when combined with weight quantization, enabling practical on-device deployment.

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.