The RNN-Transducer (RNN-T) is an end-to-end sequence transduction model that maps a stream of acoustic frames to a sequence of output tokens while learning the alignment between them, and it is the dominant architecture for streaming speech recognition in speech & language AI. It combines an audio encoder, a label-conditioned prediction network and a joint network that decides at every step whether to emit a token or advance to the next frame.
Proposed by Alex Graves in 2012 and adopted at scale for on-device recognition from about 2019, the RNN-T solves a limitation of connectionist temporal classification (CTC): it removes the assumption that output tokens are conditionally independent, so the model learns an internal language model while still producing text incrementally as speech arrives.
How the RNN-Transducer architecture works
An RNN-T has three trainable components. The encoder, also called the transcription network, converts acoustic features such as log mel spectrogram frames into high-level representations. The prediction network reads the previously emitted non-blank tokens and produces a representation of the text history, much like a small autoregressive language model. The joint network combines one encoder vector and one prediction vector and outputs a probability distribution over the vocabulary plus a special blank symbol.
Decoding walks across a two-dimensional time-by-label lattice. Emitting the blank moves to the next audio frame, while emitting a real token keeps the frame and updates the prediction network. Because several tokens can be emitted for one frame, the RNN-T handles outputs longer than the input, which CTC cannot.
| Component | Input | Output | Common implementation |
|---|---|---|---|
| Encoder | Acoustic feature frames | Frame-level acoustic embeddings | LSTM, Conformer or Transformer |
| Prediction network | Previous non-blank tokens | Label history embedding | One or two LSTM layers, or a stateless embedding |
| Joint network | Encoder and prediction vectors | Softmax over tokens plus blank | Feed-forward layer with tanh |
| Output vocabulary | Training transcripts | Word pieces or characters | About 128 to 4,096 subword units |
Training with the transducer loss
The RNN-T is trained by maximizing the total probability of all valid alignments between the audio and the reference transcript. A forward-backward algorithm over the lattice computes this sum efficiently, so the training data need only paired audio and text, with no frame-level alignment.
The main engineering challenge is memory. The joint network output is a four-dimensional tensor of batch, frames, labels and vocabulary size, which can exceed GPU memory for long utterances. Practitioners address this with function merging, pruned RNN-T loss that evaluates only a narrow band of the lattice, and encoder frame-rate reduction to 40-80 ms per output step.
Training recipes also differ from those of classic hybrid systems in their data handling. Strong RNN-T models usually rely on SpecAugment masking of time and frequency bands, speed perturbation and thousands of hours of transcribed speech. With smaller corpora, initializing the encoder from a CTC-trained or self-supervised model and the prediction network from a text-only language model shortens convergence and reduces overfitting noticeably.
The table below lists the training settings that most strongly influence the final model.
| Setting | Typical range | Effect |
|---|---|---|
| Encoder frame rate | 40-80 ms per step | Lower memory and faster decoding |
| Vocabulary size | 128-4,096 subwords | Trade-off between sequence length and sparsity |
| Pruning band width | 5-10 labels | Memory savings with negligible accuracy loss |
| Auxiliary CTC weight | 0.1-0.3 | More stable encoder training |
RNN-T compared with CTC and attention models
RNN-T sits between CTC and attention-based encoder-decoder models in its trade-off between accuracy and streaming ability. The comparison below summarizes the practical differences.
| Property | CTC | RNN-T | Attention encoder-decoder |
|---|---|---|---|
| Output dependency | Tokens independent given audio | Conditioned on previous tokens | Conditioned on previous tokens |
| Native streaming | Yes | Yes | No, needs full utterance or special variants |
| Alignment | Monotonic | Monotonic | Soft, can be non-monotonic |
| Typical accuracy | Lower without external language model | High | High on full utterances |
| Training cost | Low | High memory use | Moderate |
| Failure mode | Spelling inconsistencies | Deletions at high latency pressure | Hallucinated or repeated text |
Many production systems now use hybrid training, adding an auxiliary CTC loss to the encoder or a second-pass attention decoder that rescores RNN-T hypotheses once the utterance ends.
Decoding, latency and model variants
At inference time RNN-T systems use greedy decoding for minimal compute or beam search with a beam of 4 to 8 for better accuracy. Latency depends mostly on the encoder look-ahead: a strictly causal encoder emits text almost immediately, while limited right context of a few hundred milliseconds improves accuracy at the cost of delay.
Researchers have produced several variants that change the prediction network, the encoder or the loss, each targeting a specific deployment constraint.
| Variant | Key change | Main benefit |
|---|---|---|
| Conformer-Transducer | Conformer encoder replaces LSTM | Higher accuracy at similar size |
| Stateless prediction network | Embedding of last one or two tokens | Smaller model, faster decoding |
| Token-and-Duration Transducer | Predicts token and frames to skip | Faster inference |
| FastEmit regularization | Rewards earlier token emission | Lower emission latency |
| Hybrid autoregressive transducer | Separates internal language model | Easier external language model fusion |
Deployment considerations and limitations
RNN-T is favored for on-device and real-time recognition because it streams naturally and its decoding cost grows linearly with audio length. A quantized model of roughly 80 to 120 million parameters can run on a modern smartphone, removing network round trips and keeping audio on the device.
- Emission delay: the model may learn to wait for more audio before emitting tokens; FastEmit or alignment constraints reduce this.
- Weak rare-word handling: names and domain terms need contextual biasing or shallow fusion with an external language model.
- Internal language model bias: the prediction network absorbs training-text statistics, which can hurt accuracy in a new domain.
- Training memory: full-lattice loss is expensive; pruned or function-merged implementations are effectively mandatory for long audio.
Accuracy is reported as word error rate, and a fair comparison with other systems must state the latency budget, because tighter streaming limits typically raise errors by a measurable margin.
Put simply
An RNN-Transducer is a speech recognizer that writes while it listens. It does not wait for the speaker to finish. At every moment it makes one small decision: write the next word piece now, or listen a little longer.
It also remembers what it has already written. That memory helps it choose words that fit together. The result is fast, accurate live captions that can even run on a phone without an internet connection.
In practice
A hospital deploys a dictation assistant on tablets used by physicians during ward rounds. Network access is unreliable and patient audio must stay on the device, so the team chooses a Conformer-Transducer with about 100 million parameters, quantized to 8-bit integers.
The encoder uses 320 ms of look-ahead, which keeps text appearing about half a second behind speech. The team adds contextual biasing with a list of 5,000 drug names and ward-specific terms. On internal test recordings the word error rate falls from 11 percent to 7 percent after biasing, and physicians accept the system because corrections can be made while the patient is still in the room.