[Paper Review] Transformer Transducer: A Streamable Speech Recognition Model with Transformer Encoders and RNN-T Loss
This paper introduces the Transformer Transducer, a streaming end-to-end speech recognition model that replaces RNN encoders in the RNN-T architecture with self-attention-based Transformer encoders, enabling faster training and competitive accuracy. It achieves state-of-the-art WER of 2.4% on LibriSpeech test-clean by using limited left context (10 frames) and moderate right context (2 frames), balancing latency and performance.
In this paper we present an end-to-end speech recognition model with Transformer encoders that can be used in a streaming speech recognition system. Transformer computation blocks based on self-attention are used to encode both audio and label sequences independently. The activations from both audio and label encoders are combined with a feed-forward layer to compute a probability distribution over the label space for every combination of acoustic frame position and label history. This is similar to the Recurrent Neural Network Transducer (RNN-T) model, which uses RNNs for information encoding instead of Transformer encoders. The model is trained with the RNN-T loss well-suited to streaming decoding. We present results on the LibriSpeech dataset showing that limiting the left context for self-attention in the Transformer layers makes decoding computationally tractable for streaming, with only a slight degradation in accuracy. We also show that the full attention version of our model beats the-state-of-the art accuracy on the LibriSpeech benchmarks. Our results also show that we can bridge the gap between full attention and limited attention versions of our model by attending to a limited number of future frames.
Motivation & Objective
- To develop a streamable end-to-end speech recognition model that maintains high accuracy while enabling real-time inference.
- To replace RNN-based encoders in the RNN-T framework with Transformer encoders to leverage parallelizable self-attention and faster training.
- To ensure computational tractability for streaming by limiting the self-attention context to a fixed number of past and future frames.
- To investigate the trade-off between recognition accuracy and inference latency in a Transformer-based streaming ASR system.
- To demonstrate that self-attention in both audio and label encoders can achieve state-of-the-art performance when properly constrained for streaming.
Proposed method
- Replace the RNN encoders in the RNN-T model with Transformer encoders that process audio and label sequences independently using multi-head self-attention.
- Apply causal masking to the audio encoder's self-attention to restrict attention to only past and current frames, enabling constant-time inference per frame.
- Use a fixed left context (e.g., 10 frames) and optionally a limited right context (e.g., 2 frames) to balance latency and performance.
- Train the model using the standard RNN-T loss, which marginalizes over all possible alignments between acoustic frames and label sequences.
- Apply feed-forward layers to combine audio and label encoder outputs for predicting the next label at each time step.
- Use a shared mask across all Transformer layers for efficiency, though varying masks per layer is noted as a potential future extension.

Experimental results
Research questions
- RQ1Can Transformer encoders be effectively used in a streaming RNN-T-based ASR model while maintaining low latency?
- RQ2How does limiting the self-attention context in the audio and label encoders affect recognition accuracy and inference speed?
- RQ3Can a Transformer-based model achieve state-of-the-art performance on LibriSpeech while being suitable for streaming inference?
- RQ4What is the performance gap between a full-attention Transformer Transducer and a streamable version with limited context, and can it be bridged?
- RQ5How does the number of past and future frames used in attention affect the trade-off between latency and accuracy?
Key findings
- The full-attention Transformer Transducer achieves a new state-of-the-art WER of 2.4% on LibriSpeech test-clean and 5.6% on test-other, outperforming existing models.
- Using a left context of 10 frames for the audio encoder reduces inference time complexity to constant per frame, enabling practical streaming with only a 1.2% WER increase on test-clean compared to full-attention.
- Adding 2 frames of right context per layer improves the WER from 4.2% to 3.6% on test-clean and from 11.3% to 10.0% on test-other compared to left-only models, significantly narrowing the gap to the full-attention model.
- Limiting the label encoder to only 3 previous label states yields performance comparable to using 20 states, indicating that minimal left context is sufficient for label modeling.
- The model trains significantly faster than LSTM-based RNN-T models due to the parallelizable nature of self-attention operations.
- The performance gap between the streamable model (10-frame left context) and the full-attention model can be bridged by attending to a limited number of future frames, with 6 frames of right context reducing the WER gap by 16%.

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.