Skip to main content
QUICK REVIEW

[Paper Review] Transformer Transducer: One Model Unifying Streaming and Non-streaming Speech Recognition

Anshuman Tripathi, Jaeyoung Kim|arXiv (Cornell University)|Oct 7, 2020
Speech Recognition and SynthesisComputer Science11 references30 citations
TL;DR

Presents Transformer Transducer architecture with variable right-context layers to support both streaming (low latency) and non-streaming (high accuracy) speech recognition within a single model, using Y-model parallel decoding and constrained alignment training to balance latency and accuracy.

ABSTRACT

In this paper we present a Transformer-Transducer model architecture and a training technique to unify streaming and non-streaming speech recognition models into one model. The model is composed of a stack of transformer layers for audio encoding with no lookahead or right context and an additional stack of transformer layers on top trained with variable right context. In inference time, the context length for the variable context layers can be changed to trade off the latency and the accuracy of the model. We also show that we can run this model in a Y-model architecture with the top layers running in parallel in low latency and high latency modes. This allows us to have streaming speech recognition results with limited latency and delayed speech recognition results with large improvements in accuracy (20% relative improvement for voice-search task). We show that with limited right context (1-2 seconds of audio) and small additional latency (50-100 milliseconds) at the end of decoding, we can achieve similar accuracy with models using unlimited audio right context. We also present optimizations for audio and label encoders to speed up the inference in streaming and non-streaming speech decoding.

Motivation & Objective

  • Motivate a single end-to-end model that handles both streaming and non-streaming ASR tasks.
  • Develop training techniques to allow variable right-context in Transformer layers.
  • Introduce Y-model architecture for efficient parallel low- and high-latency decoding.
  • Provide inference optimizations for streaming and non-streaming deployments.
  • Evaluate latency-accuracy trade-offs and constrained alignment to reduce delay.

Proposed method

  • Propose Transformer Transducer with an audio encoder based on Transformer layers and a label encoder, jointly trained with RNN-T loss.
  • Introduce variable right-context training where the right context length is sampled per layer to enable flexible inference.
  • Present the Y-model architecture with penultimate layers trained with variable context enabling parallel low- and high-latency decoding.
  • Apply constrained alignment training to mask high-delay alignment paths in RNN-T loss based on a reference full-attention model.
  • Discuss inference optimizations including streaming vs. non-streaming encoder implementations and label encoder caching for speed.
  • Evaluate decoding configurations and optimize for latency and accuracy using limited right-context lookahead (e.g., 2.4 seconds).

Experimental results

Research questions

  • RQ1Can a single end-to-end Transformer-based model support both streaming (low latency) and non-streaming (high accuracy) ASR modes without separate models?
  • RQ2Does variable right-context training enable effective switching between low and high latency decoding modes with minimal retraining?
  • RQ3What are the latency-accuracy trade-offs when using limited right context for streaming versus full right context for final results?
  • RQ4Can constrained alignment training reduce word-alignment delay without sacrificing overall WER?
  • RQ5What inference optimizations most effectively accelerate streaming and non-streaming decoding for Transformer Transducer?

Key findings

  • A single Transformer Transducer model can support both low-latency streaming and high-accuracy non-streaming decoding modes.
  • Y-model architecture enables parallel decoding with different right-context lookaheads, achieving near full-context accuracy with limited lookahead (2.4 seconds).
  • Limited right context (2.4s) can approach unlimited context accuracy while maintaining small end-of-decoding latency.
  • Constrained alignment training significantly reduces word-alignment delay (e.g., from ~767 ms to ~119 ms in Y-model2 low-latency configuration) with mixed effects on WER depending on mode.
  • Label encoder design (small context transformer or bigram embedding) and caching substantially speed up decoding with minimal WER impact.
  • Inference optimizations (batch steps, query slicing, and streaming vs. non-streaming encoding) yield substantial speedups on TPU and CPU.

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.