Abstract
Modern streaming automatic speech recognition (ASR) relies heavily on the RNN-Transducer (RNN-T) architecture. However, the standard RNN-T processes audio frame-by-frame, leading to significant computational overhead and a susceptibility to repetition errors. This paper introduces the Token-and-Duration Transducer (TDT), a novel architecture that jointly predicts tokens and their corresponding durations. By allowing the model to skip redundant audio frames during inference, TDT achieves up to a 2.82x speedup while maintaining or improving accuracy across ASR, speech translation, and intent classification tasks.
Introduction
The RNN-Transducer (RNN-T) has become a cornerstone of real-time speech processing. Despite its success, the architecture suffers from a fundamental efficiency bottleneck: it evaluates every single time step to decide whether to emit a token or a "blank" symbol. This fine-grained processing is computationally expensive, especially during silences or steady-state phonetic segments. Furthermore, standard RNN-Ts are prone to "repetition errors," where the model enters a loop, repeating tokens because the decoder state does not advance quickly enough relative to the acoustic input.
To address these limitations, we propose the Token-and-Duration Transducer (TDT). TDT extends the transducer framework by teaching the model to predict not just what was said, but how long it lasted in terms of input frames.
The Token-and-Duration Transducer (TDT)
The core innovation of TDT lies in the joint network, where acoustic features from the encoder and text features from the prediction network are combined.
Joint Prediction and Frame Skipping
Unlike a standard transducer that outputs a single probability distribution over the vocabulary, the TDT joint network utilizes two output heads. One head predicts the token from the vocabulary, while the second head predicts its duration—the number of input frames the token covers. During inference, if the model predicts a duration of $k$ frames, the decoding algorithm immediately jumps forward $k$ frames in the audio sequence. This mechanism allows the model to bypass redundant computations in stable or silent regions of the signal.
Training and Optimization
Integrating duration prediction requires significant changes to the training pipeline:
- Modified Loss Function: The standard forward-backward algorithm used for RNN-T training cannot accommodate multi-frame transitions. We derived a new analytical solution for the gradients to support these jumps across the probability lattice.
- Logit Under-normalization: To prevent the model from defaulting to a safe duration of 1, we employ a training technique called under-normalization. This encourages the model to confidently predict longer durations, thereby maximizing the potential inference speedup.
Experimental Evaluation
We evaluated TDT across a diverse set of tasks and languages to demonstrate its versatility and robustness.
Performance and Accuracy
- Automatic Speech Recognition: On English LibriSpeech and German Multilingual LibriSpeech (MLS), TDT achieved inference speedups of 2.19x and 2.82x, respectively.
- Speech Translation: Using the MUST-C V2 English-to-German dataset, TDT achieved a 2.27x speedup and improved translation quality by over 1.0 BLEU point.
- Spoken Language Understanding (SLU): On the SLURP dataset, TDT improved intent classification accuracy by 1% absolute while significantly reducing latency.
Robustness to Repetition and Noise
One of the most significant advantages of TDT is its handling of repetitive text. In synthetic tests involving repeated digits, TDT reduced the Word Error Rate (WER) by over 10x compared to standard RNN-T baselines. By explicitly modeling the duration of a token, the model is less likely to get stuck in the infinite loops that often plague traditional transducers. Additionally, TDT models showed improved robustness to background noise, suggesting that duration prediction helps the model develop a stronger internal representation of speech rhythm.
Comparison to Multi-blank Transducers
TDT represents an evolution over "Multi-blank Transducers," which can only skip frames when emitting a "blank" symbol. TDT is more flexible because it can skip frames for any token in the vocabulary, leading to superior efficiency gains and better alignment between the audio and the generated text.
Conclusion and Future Work
The Token-and-Duration Transducer provides a highly efficient alternative to standard RNN-Ts, offering massive speedups and improved accuracy across multiple domains. While TDT is highly optimized for greedy decoding, implementing efficient Beam Search remains a challenge due to the expanded search space of tokens and durations. Future research will focus on developing pruning methods to make TDT-based beam search viable for production environments. TDT is currently available as part of the NVIDIA NeMo toolkit.
Summary updated