[Paper Review] Efficient conformer: Progressive downsampling and grouped attention for automatic speech recognition
This paper proposes Efficient Conformer, an optimized ASR architecture that combines progressive downsampling and grouped attention to reduce computational complexity. By applying grouped attention to reduce self-attention complexity from O(n²d) to O(n²d/g), and using strided multi-head attention for global downsampling, the model achieves 29% faster inference and 36% faster training than the standard Conformer, while maintaining competitive WERs of 2.7%/6.7% on LibriSpeech test-clean/test-other with a 13M parameter model.
The recently proposed Conformer architecture has shown state-of-the-art performances in Automatic Speech Recognition by combining convolution with attention to model both local and global dependencies. In this paper, we study how to reduce the Conformer architecture complexity with a limited computing budget, leading to a more efficient architecture design that we call Efficient Conformer. We introduce progressive downsampling to the Conformer encoder and propose a novel attention mechanism named grouped attention, allowing us to reduce attention complexity from $O(n^{2}d)$ to $O(n^{2}d / g)$ for sequence length $n$, hidden dimension $d$ and group size parameter $g$. We also experiment the use of strided multi-head self-attention as a global downsampling operation. Our experiments are performed on the LibriSpeech dataset with CTC and RNN-Transducer losses. We show that within the same computing budget, the proposed architecture achieves better performances with faster training and decoding compared to the Conformer. Our 13M parameters CTC model achieves competitive WERs of 3.6%/9.0% without using a language model and 2.7%/6.7% with an external n-gram language model on the test-clean/test-other sets while being 29% faster than our CTC Conformer baseline at inference and 36% faster to train.
Motivation & Objective
- To reduce the computational complexity of the Conformer architecture for efficient deployment in resource-constrained environments.
- To address the computation asymmetry in attention layers caused by long sequence lengths in early encoder stages.
- To maintain high ASR performance while reducing model inference and training time under a limited GPU budget (4x RTX 2080 Ti).
- To explore efficient attention mechanisms that scale well with sequence length and reduce memory usage.
- To evaluate the effectiveness of progressive downsampling and attention variants on LibriSpeech using CTC and RNN-Transducer losses.
Proposed method
- Introduces progressive downsampling in the Conformer encoder, reducing sequence length by a factor of 8 across three stages.
- Proposes grouped attention, which reduces self-attention complexity from O(n²d) to O(n²d/g) by grouping adjacent time steps along the feature dimension.
- Applies strided multi-head self-attention as a global downsampling operation, replacing convolutional downsampling in some configurations.
- Uses grouped attention in earlier encoder stages where sequence length is longest to mitigate computation bottlenecks.
- Employs ablation studies to evaluate group size, attention window size, and attention variants on accuracy and efficiency.
- Trains models on LibriSpeech with CTC and RNN-Transducer objectives under a 4-GPU training budget.
Experimental results
Research questions
- RQ1Can progressive downsampling effectively reduce computational cost in a Conformer-based ASR model without sacrificing recognition accuracy?
- RQ2How does grouped attention reduce self-attention complexity while preserving performance in long-sequence contexts?
- RQ3Does replacing convolutional downsampling with strided multi-head self-attention yield comparable or better performance with reduced latency?
- RQ4What is the optimal group size for grouped attention across encoder stages in terms of speed-accuracy trade-offs?
- RQ5How do local attention and grouped attention compare in terms of inference speed and recognition performance?
Key findings
- The 13M parameter Efficient Conformer CTC model achieves 2.7% WER on LibriSpeech test-clean and 6.7% on test-other with an external n-gram language model, matching state-of-the-art performance.
- The model reduces inference time by 29% and training time by 36% compared to the standard Conformer baseline under the same 4-GPU budget.
- Applying grouped attention in the first stage alone yields a 21% inference speedup and 35% faster training with no performance drop.
- Using grouped attention in all three stages increases inference speed by 29% and training by 41%, but results in a slight WER increase (3.56% on test-other) due to reduced attention context.
- Local attention with a 175-window performs similarly to full attention but is slower due to sequence padding overhead, highlighting the efficiency advantage of grouped attention.
- Grouped attention outperforms local attention in memory efficiency and inference speed, especially for long sequences, due to better handling of sequence partitioning and reduced computation overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.