[Paper Review] Attention-based Transducer for Online Speech Recognition
This paper proposes an attention-based transducer that enhances RNN-T for online speech recognition by introducing chunk-wise attention in the joint network and self-attention in the encoder, achieving 1.7x faster training and 10.6% relative WER reduction over baseline RNN-T on 500-hour data, with 5.5% relative WER improvement over Kaldi’s TDNN-f system on 10K hours of data.
Recent studies reveal the potential of recurrent neural network transducer (RNN-T) for end-to-end (E2E) speech recognition. Among some most popular E2E systems including RNN-T, Attention Encoder-Decoder (AED), and Connectionist Temporal Classification (CTC), RNN-T has some clear advantages given that it supports streaming recognition and does not have frame-independency assumption. Although significant progresses have been made for RNN-T research, it is still facing performance challenges in terms of training speed and accuracy. We propose attention-based transducer with modification over RNN-T in two aspects. First, we introduce chunk-wise attention in the joint network. Second, self-attention is introduced in the encoder. Our proposed model outperforms RNN-T for both training speed and accuracy. For training, we achieves over 1.7x speedup. With 500 hours LAIX non-native English training data, attention-based transducer yields ~10.6% WER reduction over baseline RNN-T. Trained with full set of over 10K hours data, our final system achieves ~5.5% WER reduction over that trained with the best Kaldi TDNN-f recipe. After 8-bit weight quantization without WER degradation, RTF and latency drop to 0.34~0.36 and 268~409 milliseconds respectively on a single CPU core of a production server.
Motivation & Objective
- Address the label imbalance issue in RNN-T training, where blank symbols dominate due to long input sequences and short output sequences.
- Improve training speed of RNN-T, which is slower than AED and CTC due to high memory and computational cost of the forward-backward algorithm.
- Reduce latency and memory usage in RNN-T by shrinking the alignment grid size through chunk-wise attention in the joint network.
- Enhance contextual modeling in the encoder using self-attention to improve recognition accuracy without sacrificing streaming capability.
- Achieve state-of-the-art performance on large-scale L2 English speech data while maintaining low latency suitable for production deployment.
Proposed method
- Introduce chunk-wise attention in the joint network, where the prediction network attends on fixed-size chunks of encoder outputs instead of full sequences, reducing grid size and computational cost.
- Apply self-attention in the encoder to model long-range dependencies and improve contextual representation, enhancing recognition accuracy.
- Use sub-sampling in the encoder to reduce time resolution and further mitigate label imbalance between output units and blank symbols.
- Train the model using a large mini-batch by leveraging the reduced grid size from chunk-wise attention, enabling faster training convergence.
- Pre-train the encoder with a LAS model to improve initial representation learning before fine-tuning the full attention-based transducer.
- Apply 8-bit weight quantization via TFLite to reduce model size and accelerate inference, achieving low latency on a single CPU core.
Experimental results
Research questions
- RQ1Can chunk-wise attention in the joint network reduce the size of the alignment grid and thus improve training efficiency in RNN-T?
- RQ2Does introducing self-attention in the encoder improve recognition accuracy in RNN-T without increasing latency?
- RQ3To what extent can chunk-wise attention and sub-sampling alleviate the label imbalance issue between output units and blank symbols in RNN-T?
- RQ4Can the proposed attention-based transducer achieve better WER than conventional RNN-T and Kaldi’s TDNN-f system on large-scale L2 English speech data?
- RQ5What is the trade-off between latency, RTF, and WER when using different context lengths and chunk widths in streaming inference?
Key findings
- The attention-based transducer achieves over 1.7x training speedup compared to baseline RNN-T due to reduced grid size and larger mini-batch usage enabled by chunk-wise attention.
- On 500-hour LAIX L2 English data, the model reduces WER by 10.6% relative to baseline RNN-T and 14.4% relative to LAS.
- With 10,000+ hours of training data, the final system achieves 5.5% relative WER reduction over Kaldi’s TDNN-f system, which uses a hybrid approach with a 3-gram LM.
- After 8-bit weight quantization, the model maintains WER performance while achieving RTF of 0.34–0.36 and latency of 268–409 ms on a single CPU core.
- Latency is reduced to 300 ms with a small context length (τ=2), demonstrating low-latency inference suitable for real-time deployment.
- The model reduces deletion errors by about 30% compared to baseline RNN-T, indicating improved handling of label imbalance through chunk-wise attention.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.