TST: Time-Sparse Transducer for Automatic Speech Recognition

Xiaohui Zhang, Mangui Liang, Zhengkun Tian, Jiangyan Yi, Jianhua Tao · DOI

Introduction

Recurrent Neural Network Transducers (RNN-T) have emerged as a dominant architecture for Automatic Speech Recognition (ASR), particularly in streaming applications. Unlike traditional Connectionist Temporal Classification (CTC) models, RNN-T effectively models the joint probability of acoustic and linguistic sequences. However, this power comes at a significant computational cost. The decoding process in RNN-T involves a massive grid calculation across every acoustic frame and output label, leading to high memory consumption and latency. This "grid problem" poses a substantial barrier to deploying high-quality ASR on resource-constrained edge devices like smartphones and smart home assistants.

To address these challenges, this paper introduces the Time-Sparse Transducer (TST), a novel architecture designed to enhance the efficiency of RNN-T models by intelligently compressing the time resolution of acoustic features without sacrificing accuracy.

Methodology: The Time-Sparse Block

The core innovation of the TST is the integration of a Time-Sparse Block between the acoustic encoder and the joint network (decoder). This block reduces the number of time steps processed by the decoder through a two-stage process:

1. Sliding Window Decomposition

Instead of passing every hidden state from the encoder directly to the decoder, the TST employs a sliding window mechanism. By defining a specific window length and stride, the model groups consecutive hidden states into intermediate representations. This effectively downsamples the temporal resolution, significantly reducing the size of the decoding grid and the resulting memory footprint.

2. Weighted Average Combination

To prevent the loss of critical acoustic information during temporal compression, the TST utilizes a weighted average to combine frames within each window. The researchers explored three distinct strategies for this combination:

  • Absolute Average (AE): A baseline approach using a simple mathematical mean of the frames.
  • Learnable Coefficients (LC): A method where weights for each frame in the window are learned during the training process.
  • Self-Attention Mechanism (SA): A dynamic approach where the model calculates weights based on the relevance of each frame to the overall signal.

The Self-Attention (SA) strategy proved most effective, acting as an information filter that preserves dense acoustic cues while suppressing noise, thereby maintaining high recognition accuracy even at high compression rates.

Experimental Setup

The TST architecture was evaluated using the AISHELL-1 dataset, a widely recognized Mandarin speech corpus.

  • Input Features: The model utilized 80-dimension Mel-filter Bank (FBank) coefficients supplemented by 3-dimension pitch features.
  • Modeling Units: The output vocabulary consisted of 4234 characters, including standard special tokens (<PAD>, <UNK>, <BOS>, <EOS>).
  • Hardware Efficiency: Performance was measured based on Character Error Rate (CER), Real-Time Factor (RTF), and GPU memory utilization to assess its suitability for both server and edge environments.

Results and Discussion

The experimental results demonstrate that the TST significantly outperforms standard RNN-T models in terms of efficiency and speed.

Efficiency and Speed Gains

Using the Self-Attention mechanism, the TST achieved a Real-Time Factor (RTF) of 0.061, representing a 50% reduction compared to the baseline RNN-T's RTF of 0.122. In extreme scenarios, reducing the time resolution to 1/10th of the original resulted in an RTF that was only 16.54% of the baseline, albeit with a manageable 4.94% increase in CER. Additionally, GPU memory utilization dropped from 9.0% to 7.1%.

Soft Compression vs. Hard Downsampling

A key finding of the study is the superiority of "soft" compression over traditional "hard" downsampling (simply skipping frames). While hard downsampling led to a catastrophic 36% increase in error rates in baseline tests, TST’s attention-based compression kept error rate increases under 5% even at 10x resolution reduction.

Architecture Versatility

The TST mechanism is architecture-agnostic and was tested across various decoder types, including Transformer-based, State-less, and RNN-based decoders. Notably, when paired with a Transformer decoder, the TST not only doubled the processing speed but also improved accuracy, reducing the CER from 7.979% to 7.744%.

Conclusion

The Time-Sparse Transducer offers a robust solution to the computational bottlenecks of RNN-T models. By intelligently compressing temporal data through a Time-Sparse Block, TST enables faster inference and lower memory usage, making high-performance ASR more viable for edge deployment. Future research will focus on testing the TST's generalizability across diverse languages and more complex acoustic environments, as well as investigating automated methods for optimizing window hyperparameters.

Summary updated

BibTeX
@inproceedings{zhang2023tst,
  author = {Xiaohui Zhang and Mangui Liang and Zhengkun Tian and Jiangyan Yi and Jianhua Tao},
  title = {{TST: Time-Sparse Transducer for Automatic Speech Recognition}},
  booktitle = {CICAI},
  year = {2023},
  doi = {10.1007/978-981-99-9119-8\_7},
}
Figure