Frame Stacking and Retaining for Recurrent Neural Network Acoustic Model

Jun Zhang, Xu Tian, Jun Zhang 0066, Zejun Ma, Yi He, Juan WeiarXiv 2017 · arXiv

Introduction

In Automatic Speech Recognition (ASR), "frame stacking" is a common technique used to improve the efficiency of end-to-end models like Connectionist Temporal Classification (CTC). By grouping multiple consecutive audio frames into a single "super frame," the sequence length is reduced, leading to significant speedups in both training and inference.

However, conventional acoustic models—which integrate Recurrent Neural Networks (RNNs) with Hidden Markov Models (HMMs)—face a compatibility hurdle. These systems typically utilize a Weighted Finite State Transducer (WFST) decoder that requires a high-resolution frame rate (e.g., one prediction every 10ms). Stacking frames reduces the output rate, which would normally necessitate a complex and labor-intensive rebuilding of the entire decoding graph. This paper introduces a "frame retaining" technique that bridges this gap, allowing conventional RNN-HMM systems to leverage the benefits of frame stacking without modifying the decoder.

Methodology: Stacking and Retaining

The authors propose a two-stage approach to optimize the acoustic model pipeline:

  1. Non-overlapping Frame Stacking: During training, $N$ successive frames are concatenated into a single super frame. For an LSTM-based model, this reduces the number of time steps processed by a factor of $N$, resulting in a nearly linear reduction in training time.
  2. Frame Retaining: To maintain compatibility with the existing HMM decoder during inference, the network's output—the probability distribution over phonetic states—is "retained" or replicated $N$ times.
The Frame Stacking and Retaining pipeline illustrates how super frames are processed and then replicated to match the original decoder input rate.

This "multiplexing" trick exploits the fact that speech signals are relatively stationary over short intervals (20-30ms). By predicting once for a block of time and stretching that prediction, the system can use the original high-resolution decoding graph without any performance degradation.

Experimental Setup

The proposed method was evaluated on the Shenma Voice Search dataset, a massive real-world Mandarin corpus consisting of 17,000 hours of anonymous search queries. The dataset presents diverse challenges, including low signal-to-noise ratios, background noise, and various dialects. The architecture employed was a 4-layer unidirectional LSTM trained using Cross-Entropy (CE) followed by state-level Minimum Bayes Risk (sMBR) discriminative training.

Key Results

The experimental results demonstrate that the Frame Stacking and Retaining (FSR) method provides substantial efficiency gains while maintaining or even slightly improving accuracy.

Performance comparison across different stacking factors (FS) and retaining factors (FR), showing the impact on Character Error Rate (CER) and Real Time Factor (RTF).

As shown in the table above, the "sweet spot" for this system was found at $N=3$ (FS=3, FR=3). At this setting, the Real Time Factor (RTF) was reduced by 41% (from 0.41 to 0.24), and the Character Error Rate (CER) improved slightly from 3.89% to 3.81%.

The authors also highlighted the necessity of the retaining step. In experiments where the stacking factor was 3 but the retaining factor was 1 (meaning the output was not replicated), the CER spiked to 19.64%. This confirms that the retaining mechanism is essential for the HMM decoder to function correctly with reduced-rate neural network outputs.

Conclusion

The Frame Stacking and Retaining technique offers a practical way to accelerate conventional RNN acoustic models. By achieving a linear speedup in training and a 41% reduction in decoding time without sacrificing accuracy, it provides a compelling alternative to more complex model redesigns. While the study focused on unidirectional LSTMs for real-time applications, future work could explore the limits of temporal compression and the interaction of this method with bidirectional architectures.

Summary updated

BibTeX
@misc{zhang2017frame,
  author = {Jun Zhang and Xu Tian and Jun Zhang and Zejun Ma and Yi He and Juan Wei},
  title = {{Frame Stacking and Retaining for Recurrent Neural Network Acoustic Model}},
  year = {2017},
  eprint = {1705.05992},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.05992},
}
Figure