Abstract
Attention-based models have been gaining popularity recently for their strong performance demonstrated in fields such as machine translation and automatic speech recognition. One major challenge of attention-based models is the need of access to the full sequence and the quadratically growing computational cost concerning the sequence length. These characteristics pose challenges, especially for low-latency scenarios, where the system is often required to be streaming. In this paper, we build a compact and streaming speech recognition system on top of the end-to-end neural transducer architecture with attention-based modules augmented with convolution. The proposed system equips the end-to-end models with the streaming capability and reduces the large footprint from the streaming attention-based model using augmented memory. On the LibriSpeech dataset, our proposed system achieves word error rates 2.7% on test-clean and 5.8% on test-other, to our best knowledge the lowest among streaming approaches reported so far.
Introduction
In the field of Automatic Speech Recognition (ASR), there is a significant shift from traditional hybrid systems toward end-to-end (E2E) neural architectures. Attention-based models, particularly Transformers, have established new benchmarks for accuracy due to their ability to capture global context across entire audio sequences. However, this global dependency introduces two critical hurdles for real-world applications like live captioning or voice assistants: high latency and quadratic computational complexity.
To address these, researchers at Facebook AI have developed a streaming Conformer-Transducer system. This architecture aims to provide high-accuracy, low-latency transcription by processing audio in small, manageable chunks while retaining the powerful context-awareness of attention mechanisms.
Architecture and Methods
The system is built upon the Neural Transducer (RNN-T) framework, utilizing a Conformer encoder. The Conformer is a hybrid architecture designed to leverage both the long-range modeling capabilities of Self-Attention and the local feature extraction strengths of Convolution.
A key feature of the Conformer is its "macaron-like" structure, as shown in Figure 1(b). In this design, a convolution module is sandwiched between two half-step feed-forward layers. This specific configuration has proven to be more parameter-efficient than standard Transformer blocks, allowing the model to achieve high performance with a smaller footprint.
Enabling Streaming with Augmented Memory
To transform the inherently non-streaming Conformer into a streaming model, the researchers introduced three primary innovations: Augmented Memory, Weak-Attention Suppression (WAS), and Shallow Fusion.
Augmented Memory
Instead of processing the entire audio sequence at once, the model breaks the input into fixed-size segments. To maintain context across these segments, an "augmented memory" bank is employed. This bank stores summarized embeddings from previous segments, allowing the current segment to attend to historical information without the need to re-process the entire past sequence.
As illustrated in Figure 2, the attention mechanism incorporates the current segment ($X^C$), left context ($X^L$), and right context ($X^R$), alongside the memory state from the previous step ($M(n-1)$). This ensures the model remains aware of the conversation's flow while operating on a local window.
Weak-Attention Suppression (WAS)
Speech signals are dense and highly correlated, which can sometimes dilute the focus of the attention mechanism. WAS acts as a dynamic filter that zeros out low-probability attention weights. This forces the model to concentrate on the most relevant acoustic frames, sharpening its focus and improving recognition accuracy.
Experimental Results
The proposed system was evaluated on the LibriSpeech benchmark (960 hours of English speech). The "Medium" (M) version of the model, containing approximately 28 million parameters, demonstrated exceptional efficiency and accuracy.
Key performance metrics include:
- Accuracy: The streaming Conformer (M) achieved a 2.7% WER on
test-cleanand 5.8% ontest-otherwhen paired with an external Neural Language Model (NNLM) via shallow fusion. - Latency: The system operates with a lookahead of only 320ms, making it highly suitable for real-time streaming applications.
- Efficiency: Despite its compact size, the Conformer (M) outperformed significantly larger Transformer models that often exceed 100 million parameters.
Conclusion and Future Work
This work represents a major advancement in low-latency ASR, achieving state-of-the-art results for streaming models on LibriSpeech. While the "streaming gap" between these models and their full-context, non-streaming counterparts has narrowed, it remains an area for future optimization. Additionally, future research may focus on distilling the knowledge of large external language models directly into the acoustic encoder to further reduce the total system footprint for edge deployment.
Summary updated