RNN-Transducer

Also known as: RNN-T

On this page 7

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.

ComponentInputOutputCommon implementation
EncoderAcoustic feature framesFrame-level acoustic embeddingsLSTM, Conformer or Transformer
Prediction networkPrevious non-blank tokensLabel history embeddingOne or two LSTM layers, or a stateless embedding
Joint networkEncoder and prediction vectorsSoftmax over tokens plus blankFeed-forward layer with tanh
Output vocabularyTraining transcriptsWord pieces or charactersAbout 128 to 4,096 subword units
Components of an RNN-Transducer

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.

SettingTypical rangeEffect
Encoder frame rate40-80 ms per stepLower memory and faster decoding
Vocabulary size128-4,096 subwordsTrade-off between sequence length and sparsity
Pruning band width5-10 labelsMemory savings with negligible accuracy loss
Auxiliary CTC weight0.1-0.3More stable encoder training
Influential RNN-T training settings

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.

PropertyCTCRNN-TAttention encoder-decoder
Output dependencyTokens independent given audioConditioned on previous tokensConditioned on previous tokens
Native streamingYesYesNo, needs full utterance or special variants
AlignmentMonotonicMonotonicSoft, can be non-monotonic
Typical accuracyLower without external language modelHighHigh on full utterances
Training costLowHigh memory useModerate
Failure modeSpelling inconsistenciesDeletions at high latency pressureHallucinated or repeated text
End-to-end speech recognition architectures

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.

VariantKey changeMain benefit
Conformer-TransducerConformer encoder replaces LSTMHigher accuracy at similar size
Stateless prediction networkEmbedding of last one or two tokensSmaller model, faster decoding
Token-and-Duration TransducerPredicts token and frames to skipFaster inference
FastEmit regularizationRewards earlier token emissionLower emission latency
Hybrid autoregressive transducerSeparates internal language modelEasier external language model fusion
Common RNN-T variants

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.