This paper, authored by researchers at Facebook AI, presents a series of architectural improvements to the Emformer—a popular "streaming" transformer model used for real-time speech recognition. By cleverly adapting non-causal convolutions for streaming and introducing "talking-heads" attention and a simplified memory scheme, the authors achieved significant accuracy gains (up to 14.5% relative improvement) without sacrificing the low latency required for live applications.
TL;DR
The researchers improved streaming speech recognition by adapting "non-causal" convolutions—which usually require looking into the future—to work within a real-time, block-based framework. Combined with a more communicative attention mechanism and a simplified history-compression scheme, their "Advanced Emformer" delivers significantly better accuracy on voice assistant and dictation tasks with minimal impact on processing speed.
What Problem Does This Paper Address?
Automatic Speech Recognition (ASR) models generally fall into two categories: offline (processing a whole recording at once) and streaming (processing audio as it is spoken). Streaming is much harder because the model cannot "see" the future; it only has access to the current audio and a small "lookahead" window.
While the Conformer architecture (which uses convolutions) is the current gold standard for offline ASR, adapting it for streaming is tricky. Most streaming models use "causal" convolutions that only look at the past, but this ignores valuable information in the lookahead buffer. Furthermore, existing streaming models often suffer from slow training speeds because they process audio blocks sequentially rather than in parallel.
Methods
The authors introduce three key enhancements to the Emformer baseline:
- Streaming Non-Causal Convolution: Typically, non-causal convolutions are avoided in streaming because they "leak" future information. The authors solve this by splitting the input into a "center block" (current audio) and a "right context" (lookahead). They apply the same convolution to both but use a specific padding technique—using the end of the center block to pad the lookahead—to ensure consistency and prevent "leaks" during training.
- Talking-Heads Attention: Standard multi-head attention processes different "heads" (sub-sections of the data) independently. "Talking-heads" attention adds lightweight linear projections that allow these heads to share information before and after the attention calculation, leading to better representation learning.
- Context Compression: To give the model a "memory" of what was said earlier in a long sentence, Emformer uses an augmented memory bank. The authors simplified this by using linear interpolation to compress an entire block of audio features into a single memory slot. This removes the need for complex, step-by-step memory updates, allowing the model to be trained much faster in parallel on GPUs.
Datasets
The models were trained on a massive, industrial-scale dataset:
- Assistant Scenario: ~18.3K hours of voice assistant commands and simulated conversations, plus 4K hours of synthetic (TTS) data for names and numbers.
- Open Domain Dictation: 18K hours of human-transcribed video and a staggering 2 million hours of unlabeled video transcribed by a high-quality teacher model (semi-supervised learning).
- Evaluation: Tested on internal "assi" (assistant), "call" (calling), and "dict" (dictation) datasets.
Key Insights and Ideas
- Lookahead is Essential: The results confirm that even a tiny amount of future context (just 80ms) provides a massive boost in accuracy compared to purely causal models.
- Parallelism via Compression: By simplifying how memory is stored (Context Compression), the researchers bypassed the "auto-regression" bottleneck that usually makes streaming models slow to train. This allows them to leverage the full power of modern GPUs.
- Capacity Matters: The "talking-heads" and compression tricks provided the biggest gains on the smaller 32M parameter model. On the larger 73M parameter model, the gains were more modest, suggesting these techniques are excellent for squeezing more performance out of "budget" models intended for mobile devices.
Key Results
The "Advanced Emformer" was compared against a standard Emformer baseline:
- Accuracy: On the 32M parameter model, the proposed methods reduced the Word Error Rate (WER) by 5.1% on dictation, 14.5% on general assistant queries, and 8.4% on calling scenarios.
- Latency: These gains were achieved while maintaining a Speech Perceived Latency (SPL) of around 600ms, which is well within the requirements for a responsive voice assistant.
- Training Efficiency: The non-causal convolution approach maintained the high training speeds of the baseline Emformer, unlike other sequential block-processing methods.
Limitations and Future Work
The authors noted that for their largest model (73M parameters), the lightweight optimizations (talking-heads and context compression) resulted in "on par" performance rather than a major leap. This suggests that as models get larger, they may already be capturing the information these techniques aim to provide.
Future work might involve exploring different compression functions beyond linear interpolation or investigating how these streaming techniques scale to even larger, multi-billion parameter models.
Summary updated