Skip to main content
QUICK REVIEW

[Paper Review] Efficient Sequence Transduction by Jointly Predicting Tokens and Durations

Xu H, Fei Jia|arXiv (Cornell University)|Apr 13, 2023
Speech Recognition and SynthesisComputer Science6 citations
TL;DR

This paper proposes the Token-and-Duration Transducer (TDT), a novel sequence-to-sequence architecture that jointly predicts tokens and their durations during inference, enabling frame-skipping for faster decoding. TDT achieves up to 2.82× faster inference and improved accuracy over conventional RNN-Transducers across speech recognition, speech translation, and intent classification tasks, while also showing greater robustness to repeated token sequences.

ABSTRACT

This paper introduces a novel Token-and-Duration Transducer (TDT) architecture for sequence-to-sequence tasks. TDT extends conventional RNN-Transducer architectures by jointly predicting both a token and its duration, i.e. the number of input frames covered by the emitted token. This is achieved by using a joint network with two outputs which are independently normalized to generate distributions over tokens and durations. During inference, TDT models can skip input frames guided by the predicted duration output, which makes them significantly faster than conventional Transducers which process the encoder output frame by frame. TDT models achieve both better accuracy and significantly faster inference than conventional Transducers on different sequence transduction tasks. TDT models for Speech Recognition achieve better accuracy and up to 2.82X faster inference than conventional Transducers. TDT models for Speech Translation achieve an absolute gain of over 1 BLEU on the MUST-C test compared with conventional Transducers, and its inference is 2.27X faster. In Speech Intent Classification and Slot Filling tasks, TDT models improve the intent accuracy by up to over 1% (absolute) over conventional Transducers, while running up to 1.28X faster. Our implementation of the TDT model will be open-sourced with the NeMo (https://github.com/NVIDIA/NeMo) toolkit.

Motivation & Objective

  • To address the high computational cost of autoregressive decoding in conventional RNN-Transducers by enabling frame-skipping during inference.
  • To improve model robustness to repeated token sequences, a known failure mode in standard RNN-Transducers.
  • To develop a differentiable training framework for joint token and duration prediction with analytical gradient computation.
  • To demonstrate consistent gains in both accuracy and inference speed across multiple sequence transduction tasks.

Proposed method

  • TDT extends the standard RNN-Transducer with a joint network that outputs separate distributions for tokens and durations, both independently normalized.
  • During inference, the predicted duration determines how many input frames to skip, reducing the number of decoding steps.
  • The forward-backward algorithm is extended to compute gradients for both token and duration predictions, enabling end-to-end training.
  • The method leverages function-merging techniques to compute gradients of pre-softmax logits for token prediction, improving training stability.
  • The model uses a shared encoder and decoder with a joint network that takes encoded acoustic features and hidden decoder states as input.
  • The duration prediction is modeled as a discrete distribution over frame counts, enabling the model to learn optimal skip patterns.

Experimental results

Research questions

  • RQ1Can joint prediction of tokens and durations improve inference speed in sequence transduction models without sacrificing accuracy?
  • RQ2Does the ability to skip frames during decoding reduce computational cost while maintaining or improving model performance?
  • RQ3How does the TDT architecture perform on speech recognition, speech translation, and spoken language understanding tasks compared to conventional RNN-Transducers?
  • RQ4To what extent does TDT mitigate the performance degradation caused by repeated token sequences in speech input?
  • RQ5Can the joint training of token and duration heads be effectively optimized with analytical gradient computation?

Key findings

  • TDT models achieve up to 2.82× faster inference than conventional RNN-Transducers in automatic speech recognition, with improved accuracy.
  • On the MUST-C speech translation benchmark, TDT models achieve an absolute BLEU gain of over 1 point and run 2.27× faster than standard Transducers.
  • For speech intent classification and slot filling, TDT improves intent accuracy by up to 1.28 percentage points and runs up to 1.28× faster.
  • TDT models show significantly improved robustness to repeated token sequences, reducing WER from 59.95% (RNN-T) to 5.78% on a synthetic dataset with repeated digits.
  • The TDT model's joint training framework enables stable optimization with analytical gradients for both token and duration heads.
  • The implementation of TDT will be open-sourced in the NeMo toolkit, facilitating adoption and further research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.