Abstract
This paper introduces the Block-based Attention Mask Decoder (AMD), a hybrid decoding architecture for Automatic Speech Recognition (ASR). AMD bridges the gap between slow, accurate autoregressive (AR) decoding and fast, less-accurate non-autoregressive (NAR) decoding. By processing output tokens in parallel "blocks" while maintaining sequential context, the system achieves up to a 1.73x speedup over standard Conformer models on LibriSpeech benchmarks without sacrificing accuracy.
Introduction
State-of-the-art Automatic Speech Recognition (ASR) systems, like the Conformer, typically rely on Autoregressive (AR) decoders. These decoders predict one character or word at a time, using the previous prediction to inform the next. While accurate, this is computationally slow because it cannot be parallelized.
On the other hand, Non-autoregressive (NAR) decoders attempt to predict all tokens at once. While much faster, they often struggle with accuracy because they lack the "monotonic" constraint of speech—the understanding that sounds follow a strict linear order. The authors sought a "best of both worlds" solution: a decoder that is parallel enough to be fast, but sequential enough to stay accurate.
Architecture: The Tripartite Decoder
The authors propose a tripartite decoder architecture consisting of three modules: a standard Connectionist Temporal Classification (CTC) module, an AR Decoder, and the new Block-based Attention Mask Decoder (AMD).
Key technical innovations include:
- Mixed-Size Training: During training, the model is exposed to various block sizes to learn different levels of context and parallelization.
- One-Pass Beam Search: A specialized algorithm dynamically fuses probabilities from the CTC, AR, and AMD modules in a single pass, avoiding the latency of multi-pass re-scoring.
- Cold Start Strategy: The system can use a "block size of 1" (purely autoregressive) for the first few tokens to establish solid context before switching to larger parallel blocks.
The Block-based Attention Mask Decoder (AMD)
The core innovation is the AMD module's approach to parallelism. Instead of choosing between serial (AR) and fully parallel (NAR) methods, AMD groups tokens into blocks.
Within a block, tokens are predicted simultaneously using attention masks. Between blocks, the model maintains a traditional left-to-right history context. This satisfies hardware requirements for parallel computation while satisfying the language model's need for sequential history. This approach also produces "sparser" search lattices, meaning the model is more confident in its top choices, allowing the beam search to find the correct path faster.
Experimental Results
The models were evaluated on the LibriSpeech corpus (100hr and 960hr sets), with larger models further enhanced by WavLM self-supervised learning features.
- Speed: The tripartite decoder achieved a maximum decoding speedup of 1.73x compared to the standard CTC+AR baseline.
- Accuracy: At this maximum speedup, there was no statistically significant increase in Word Error Rate (WER). On WavLM-enhanced models, the system maintained a 1.44x speedup without losing accuracy.
- Efficiency Gains: When operating at equivalent Real-Time Factors (RTF), the AMD system provided absolute WER reductions of up to 0.7% (a 5.3% relative improvement) over the baseline, suggesting the multi-angle view (CTC + AR + AMD) is more robust than AR alone.
Conclusion and Future Work
The Block-based Attention Mask Decoder successfully balances the trade-off between decoding speed and recognition accuracy. Future research will focus on refining the beam search algorithm to prevent "premature pruning"—where the algorithm discards correct hypotheses too early—and enhancing the diversity of the top hypotheses generated by the system.
Summary updated