Minimum latency training of sequence transducers for streaming end-to-end speech recognition

Yusuke Shinohara, Shinji Watanabe

Introduction

Streaming end-to-end (E2E) speech recognition is critical for real-time applications such as live captioning and voice assistants. In these systems, the goal is to transcribe audio as it is spoken. However, sequence transducer models, such as the Conformer-Transducer, often exhibit a delay between the acoustic realization of a word and its corresponding text emission. This latency occurs because models naturally "wait" for more future context to improve prediction accuracy, creating a fundamental tension between speed and recognition quality.

The Latency-Accuracy Trade-off

Existing solutions to mitigate delay in streaming Automatic Speech Recognition (ASR) include Alignment-Restricted Training and FastEmit. Alignment-Restricted Training prunes late paths in the alignment lattice to force earlier emissions, while FastEmit boosts label gradients uniformly to encourage the model to emit tokens sooner. However, these methods are often "latency-unaware"; they do not explicitly measure the actual delay during training. This lack of precision often results in a significant drop in Word Error Rate (WER) as the model is forced to make premature decisions without a principled understanding of the timing.

Proposed Method: Minimum Latency Training (MLT)

Researchers from Yahoo Japan and Carnegie Mellon University have proposed Minimum Latency Training (MLT), a method that treats latency as a differentiable objective within the training loop. Unlike previous heuristic approaches, MLT makes latency a first-class citizen in the optimization process.

1. Expected Latency Calculation

MLT defines latency based on an alignment lattice—a grid representing the possible paths between audio frames ($t$) and text tokens ($u$). By comparing the model's current path to a "gold standard" reference alignment (typically generated by an HMM-hybrid model), the delay $d(t, u)$ can be quantified at every point. Using the forward-backward algorithm, the authors calculate the expected delay ($\bar{d}$) across all possible paths in the lattice.

2. Augmented Loss Function

The standard transducer loss ($\mathcal{L}_{trans}$) is modified by adding a regularization term for this expected latency: $$\mathcal{L}_{MLT} = \mathcal{L}_{trans} + \lambda_{MLT} \bar{d}$$ The hyper-parameter $\lambda_{MLT}$ allows practitioners to tune the trade-off, prioritizing either speed or recognition accuracy depending on the application requirements.

3. Lattice-Aware Gradient Dynamics

Mathematically, MLT results in a dynamic adjustment of gradients. If a path is determined to be "late" relative to the reference, its gradient is discounted; if it is "early," it is boosted. This effectively "pushes" the model’s probability mass toward the upper-left of the alignment lattice, which represents emitting labels earlier in time. Unlike FastEmit, which applies a uniform boost, MLT is aware of the specific delay at every coordinate in the lattice.

Experimental Evaluation

The efficacy of MLT was evaluated using the Wall Street Journal (WSJ) dataset (approx. 81 hours of training data). The architecture used was a Causal Conformer-Transducer, designed to utilize only past and present audio frames to ensure real-time compatibility.

Performance was measured using:

  • WER: Word Error Rate on the eval92 set.
  • PR90: The 90th percentile of latency across the test set, representing the delay for the majority of utterances.

Results

The experimental results demonstrate that MLT significantly outperforms existing latency reduction techniques in the low-latency regime.

Method WER (eval92) Latency (PR90)
Baseline (No reduction) 12.1% 220 ms
Alignment-Restricted 12.6% 110 ms
FastEmit 12.7% 67 ms
Minimum Latency Training 12.8% 27 ms

While the baseline model had a PR90 latency of 220ms, MLT reduced this to just 27ms—an 87% reduction. Crucially, this was achieved with a WER of 12.8%, which is nearly identical to the 12.7% WER of FastEmit, despite FastEmit having more than double the latency (67ms).

Conclusion and Future Work

Minimum Latency Training provides a mathematically principled way to optimize streaming ASR models for speed without sacrificing significant accuracy. By utilizing the forward-backward variables to calculate expected delay, MLT allows the model to learn exactly where it is being too slow and adjust accordingly.

However, some limitations remain. MLT currently requires a reference alignment to define "zero delay," adding a step to the training pipeline. Additionally, while successful on the WSJ dataset, future research is needed to determine how this method scales to massive, multi-thousand-hour industrial datasets where reference alignments may be more difficult to manage. Nonetheless, MLT represents a significant advancement in achieving near-instantaneous speech-to-text emission.

Summary updated

BibTeX
@inproceedings{shinohara2022minimum,
  author = {Yusuke Shinohara and Shinji Watanabe},
  title = {{Minimum latency training of sequence transducers for streaming end-to-end speech recognition}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-10989},
}
Figure