Abstract
Transcribing long-form audio requires efficient segmentation to maintain accuracy and low latency. Traditional Voice Activity Detectors (VAD) rely on simple acoustic thresholds, often leading to suboptimal segmentation. This paper presents a unified end-to-end (E2E) segmenter integrated into a two-pass cascaded encoder ASR system. By introducing a "dummy frame injection" technique, we synchronize the non-causal second-pass decoder with real-time first-pass segmentation. Our approach achieves a 2.4% relative Word Error Rate (WER) improvement and reduces median segmentation latency by 140ms on long-form YouTube content.
Introduction
Processing continuous audio streams, such as hour-long lectures or videos, necessitates breaking the input into smaller segments. This process, known as segmentation, is critical for ASR systems to manage computational load and provide timely results. Conventional systems use VADs, which are purely acoustic and lack linguistic context, often cutting off speech prematurely or delaying segmentation during background noise.
Modern high-performance ASR often employs a two-pass architecture: a causal first pass for real-time feedback and a non-causal second pass for higher accuracy using future context (e.g., a 900ms look-ahead). Integrating a neural segmenter into this setup is challenging because the second pass's look-ahead buffer creates a synchronization lag when the first pass identifies a segment boundary.
Unified Model Architecture
We propose a unified model where the first-pass decoder predicts an End-of-Segment (EOS) token using both acoustic and linguistic features. This allows the system to make "smarter" cuts based on grammatical completeness rather than just silence.
The architecture consists of a causal encoder feeding a first-pass decoder, which also serves as the segmenter. The cascaded encoder (second pass) takes features from the causal encoder and provides refined transcriptions with a fixed look-ahead lag.
Dummy Frame Injection
To eliminate the 900ms algorithmic latency introduced by the second pass's look-ahead buffer at segment boundaries, we developed "Dummy Frame Injection." When the first pass emits an EOS signal at time $T$, the system immediately populates the second pass's remaining look-ahead buffer with dummy frames.
As shown in the figure, injecting these frames allows the second-pass decoder to finalize its hypothesis without waiting for additional real audio. We found that "Last-frame" injection—repeating the final actual audio frame—outperformed zero-padding by providing a more consistent acoustic representation of the segment's end.
Experimental Results
The model was trained on 400,000 hours of diverse English audio and evaluated on the YT_LONG dataset (22.2 hours of YouTube content with a median length of 14.8 minutes).
Accuracy and Latency
The E2E segmenter yielded a 2.4% relative WER improvement in the second pass compared to a VAD baseline. More importantly, it reduced the median EOS latency by 140ms. By using dummy frames, the algorithmic latency was effectively reduced to zero, leaving only a small computational overhead (~208ms on a mobile device).
Linguistic Awareness
Qualitative analysis confirms that the E2E model leverages linguistic context to avoid premature cuts during mid-sentence pauses, a common failure mode for VADs. This improved segmentation quality leads to a healthier search lattice, evidenced by a 7.3% gain in Oracle WER.
Conclusion
Integrating E2E segmentation into a two-pass ASR framework significantly improves both transcription accuracy and user-perceived latency. The dummy frame injection technique successfully bridges the gap between causal and non-causal components. Future work will explore hardware optimizations to further reduce computational latency and evaluate the model's performance across diverse languages and acoustic environments.
Summary updated