E2E Segmenter: Joint Segmenting and Decoding for Long-Form ASR

W. Ronny Huang, Shuo-Yiin Chang, David Rybach, Tara N. Sainath, Rohit Prabhavalkar, Cal Peyser, Zhiyun Lu, Cyril Allauzen

Abstract

Processing long-form audio remains a significant challenge for End-to-End (E2E) Automatic Speech Recognition (ASR) systems. Conventional approaches rely on independent Voice Activity Detectors (VAD) to segment audio based on silence, often leading to semantic fragmentation and increased latency. We present the E2E Segmenter, a system that integrates segmentation into the ASR model by utilizing a dual-joint RNN-T architecture. This approach allows the model to make segmentation decisions based on both acoustic features and linguistic context. Our results demonstrate a relative Word Error Rate (WER) improvement of up to 8.5% and a latency reduction of 250ms on YouTube captioning tasks.

1. Introduction

The transcription of long-form audio—such as lectures, podcasts, or long-form video content—requires breaking the continuous stream into manageable segments for processing. Historically, this has been the role of the Voice Activity Detector (VAD). However, VADs operate primarily on acoustic energy, making them "meaning-blind." They often trigger segments during mid-sentence pauses, which prevents the ASR model from utilizing full linguistic context, leading to errors that cannot be corrected post-segmentation. Furthermore, VADs typically require a substantial silence buffer (e.g., 1.2 seconds) to confirm the end of an utterance, introducing significant latency in real-time applications.

2. The E2E Segmenter Architecture

To address these limitations, the E2E Segmenter moves the segmentation decision inside the ASR model, specifically a Conformer RNN-T.

2.1 Dual-Joint Architecture

A standard RNN-T model uses a joint layer to combine acoustic features from the encoder and text features from the predictor to output a probability distribution over the vocabulary. While one might simply add an end-of-segment (<eos>) token to the existing vocabulary, research indicates this can degrade recognition accuracy. The E2E Segmenter instead employs a Dual-Joint Architecture. It introduces a second, independent joint layer dedicated solely to predicting the <eos> token. This decoupling ensures that the segmentation task does not interfere with the primary task of word prediction while still allowing both tasks to share the underlying encoder and predictor features.

2.2 Weak Supervision and Semantic Heuristics

Training a segmenter is challenging because "ground truth" segmentation is rarely available. The authors utilized a weak supervision strategy to label a massive dataset. Labels were generated based on:

  • Acoustic Cues: Identifying silences of 1.2 seconds or longer.
  • Semantic "Safe Zones": To prevent premature cuts, the system was trained to avoid inserting segments after filler words (e.g., "um," "uh") or lengthened words (e.g., "heyyy"), even if followed by a pause. These signals indicate that the speaker's thought is likely incomplete.

2.3 Latency Optimization with FastEmit

To minimize the delay between the end of speech and the emission of the <eos> token, the researchers applied FastEmit regularization. FastEmit encourages the model to emit tokens as soon as sufficient context is available, effectively reducing the "wait time" traditionally associated with silence-based segmentation.

3. Experimental Setup

The model was trained on an extensive internal Google dataset comprising approximately 300 million utterances (roughly 400,000 hours) across Search, YouTube, and Telephony domains. Evaluation was conducted on two specific YouTube benchmarks:

  • YT_LONG: Videos between 15 and 30 minutes in length.
  • YT_SHORT: Videos between 6 and 7 minutes in length.

4. Results and Discussion

The E2E Segmenter demonstrated significant improvements over a state-of-the-art VAD-based baseline:

  • Accuracy: The model achieved a 6.1% relative WER improvement on long-form videos and an 8.5% improvement on shorter videos. This suggests that semantic-aware segmentation helps maintain the integrity of linguistic context.
  • Latency: Median end-of-segment latency was reduced by 130ms to 250ms, a critical gain for real-time captioning.
  • Computational Efficiency: By intelligently clearing the beam search state at the end of each segment, the E2E Segmenter maintained high accuracy without increasing the computational load (state count) compared to traditional methods.

5. Conclusion

The E2E Segmenter represents a shift from heuristic-based audio chopping to context-aware neural segmentation. By integrating the "when to stop" decision into the ASR model's joint layers, the system achieves better accuracy and lower latency. Future work will focus on optimizing the interaction between the segmenter and frame-filtering techniques used in resource-constrained environments to ensure that power-saving measures do not compromise segmentation performance.

Summary updated

BibTeX
@inproceedings{huang2022e,
  author = {W. Ronny Huang and Shuo-Yiin Chang and David Rybach and Tara N. Sainath and Rohit Prabhavalkar and Cal Peyser and Zhiyun Lu and Cyril Allauzen},
  title = {{E2E Segmenter: Joint Segmenting and Decoding for Long-Form ASR}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-38},
}
Figure