Introduction
Standard sequence-to-sequence (Seq2Seq) models, such as Transformers, typically operate in an "offline" mode, requiring the complete audio signal before generating a transcription or translation. While effective for batch processing, this latency is prohibitive for real-time applications like live captioning or simultaneous interpretation.
Transitioning these models to a streaming context introduces two primary challenges: instability (flicker), where early hypotheses change as more context arrives, and train-test mismatch, where models trained on full sentences "hallucinate" endings when presented with truncated audio chunks. This paper proposes a framework to transform standard Transformers into high-performance, low-latency streaming engines.
Methodology
The authors introduce a three-pronged approach to enable streaming without sacrificing significant accuracy:
1. Unidirectional Encoder
Standard self-attention mechanisms look at the entire sequence simultaneously. The authors modify the encoder to be unidirectional, attending only to current and previous audio frames. This architectural change allows for the reuse of previous computations, eliminating the $O(n^2)$ re-computation cost typically associated with Transformers in incremental settings.
2. Partial Hypothesis Selection (Local Agreement)
To mitigate the "flicker" effect, the system must decide when a partial hypothesis is stable enough to display. The authors evaluated several strategies, including fixed-length deletions (Hold-n) and fixed-rate waiting (Wait-k). However, the most effective method was Local Agreement.
In this strategy, the system compares the output of the current audio chunk with that of the previous chunk. It only "commits" to the words that both outputs agree on (the Longest Common Prefix). This dynamic thresholding adapts to varying speech speeds more effectively than static methods.
3. Adaptation to Partial Inputs
To prevent the model from "fantasizing" sentence endings based on incomplete data, the researchers fine-tuned the model on a mixture of full and partial sequences (ranging from 10% to 40% of the original length). This adaptation step teaches the model to handle truncated context gracefully rather than attempting to predict the remainder of the utterance prematurely.
Experimental Results
The framework was evaluated using the How2 dataset, which contains 300 hours of instructional videos. For Automatic Speech Recognition (ASR), the model achieved an 83% reduction in latency (down to 0.8 seconds) with only a 1% absolute increase in Word Error Rate (WER) compared to the offline baseline.
As shown in the performance curves, the Local Agreement strategy consistently provides a superior trade-off between latency and accuracy compared to simpler heuristics. In Speech Translation (ST) tasks, the system reduced latency by 84% (0.7 seconds) with a minimal loss of 2.4 BLEU points.
Conclusion and Future Work
By combining architectural constraints, a robust commitment strategy, and targeted fine-tuning, this research demonstrates that standard Seq2Seq models can be successfully adapted for real-time use. The Local Agreement strategy proves particularly vital for maintaining a stable user experience. Future research directions include exploring adaptive chunk sizes, where the model itself determines the optimal moment to process a segment based on the information density of the audio signal.
Summary updated