TL;DR
This paper introduces a lightweight text-manipulation algorithm that improves the quality of streaming speech recognition (ASR) by roughly 10% without increasing latency. By intelligently merging the fast-but-imperfect outputs of a "causal" model with the delayed-but-accurate outputs of a "cascaded" model, the authors bridge the quality gap in real-time transcripts without requiring any model retraining.
What Problem Does This Paper Address?
Streaming ASR systems face a fundamental trade-off between latency and accuracy. To give users immediate feedback (e.g., in live captioning or voice assistants), systems use "causal" models that only look at past audio. However, these models are often less accurate than "batch" models that can look at the entire sentence (right-context) to resolve ambiguities.
Modern architectures often use a two-stage "cascaded" approach: a small causal model generates "partial results" (what you see while speaking), and a larger model provides a "final result" once you stop. The problem is that the partial results remain low-quality until the very end, leading to a jarring jump in accuracy when the final result finally arrives. Furthermore, if the two models disagree significantly, the text might "flicker" or change abruptly, hurting the user experience.
Methods
The authors propose a Partial Rewriting algorithm that acts as a post-processing layer. It doesn't change the models themselves; instead, it merges their text streams in real-time.
The core technique is a modified Levenshtein alignment. Standard Levenshtein distance calculates the edits needed to turn one string into another. In this case, the algorithm aligns the high-quality (but delayed) cascaded transcript with the low-quality (but current) causal transcript.
Key technical innovations include:
- Variable Reference Length: Because the cascaded model is delayed (by about 900ms in their tests), it has processed less audio than the causal model. The algorithm "sweeps" the last row of the alignment matrix to find the best cut-off point, ignoring the "missing" tokens in the cascaded stream that haven't been processed yet.
- Composite Transcripts: The final output is a hybrid: the prefix comes from the cascaded model (high accuracy), and the suffix comes from the causal model (low latency).
- Efficiency Optimizations: To keep the algorithm linear rather than quadratic, they "crop" the sequences to only align the most recent $M$ tokens. They also use a "hysteresis" mechanism—if the two models disagree too much (high edit distance), the system falls back to the last stable transcript to prevent erratic flickering.
Datasets
The models were trained on 400,000 hours of multidomain data. Evaluation was performed across five diverse test sets to ensure robustness:
- Dictation: Long-form messages.
- Voice Search: Short web queries.
- TTS Audiobook: Long-form audio synthesized from text.
- Librispeech: A standard public ASR benchmark.
- Telephony: Real-world phone conversation data.
Key Insights and Ideas
- Decoupling Quality from Architecture: The biggest "aha" moment is that you don't need to tie model architectures together at training time to get the benefits of both. This algorithm works with any multi-stage ASR system.
- The Flickering Paradox: Improving partial quality requires changing words the user has already seen (which is the definition of flickering). However, the authors found that by correcting errors earlier in the stream, the "final" jump to the end-of-utterance result is much smaller, leading to a lower total flickering rate.
- Resource Efficiency: The algorithm is incredibly cheap. Running in less than 0.1ms on a mobile device (Pixel 6a), it adds virtually zero overhead to the power or memory budget.
Key Results
- Quality Gain: Partial Word Error Rate (PWER) improved by at least 10% across most test sets (and up to 19% for audiobooks).
- Zero Latency Hit: The change in partial latency was less than 10ms, which is imperceptible to human users.
- Smoother Transitions: While mid-sentence flickering increased slightly, the transition to the final result saw a massive stability improvement (e.g., a 96% reduction in transition flickering for audiobooks). This makes the ASR feel more "certain" as it converges on the final transcript.
Limitations and Future Work
The authors note that the cascaded model, while generally better, can occasionally perform worse than the causal model. Their current hysteresis logic helps, but it isn't perfect.
Looking forward, they suggest this rewriting capability allows for a more aggressive allocation of model weights. If the rewriting algorithm can fix the causal model's mistakes so effectively, researchers could potentially make the causal model even smaller and faster, shifting more parameters to the cascaded stage to maximize final accuracy without worrying about the initial partial quality. They also plan to extend this to systems with three or more stages.
Summary updated