[Paper Review] Efficient conformer-based speech recognition with linear attention
This paper proposes Linear Attention-based Conformer (LAC), a lightweight, efficient speech recognition model that replaces the quadratic-complexity self-attention in conformer with multi-head linear self-attention (MHLSA), reducing computational cost to linear time while maintaining performance. It further applies low-rank factorization to the feed-forward network, cutting parameters by ~50% with minimal accuracy drop. LAC achieves competitive WER of 2.1% on LibriSpeech dev-clean and 2.3% on test-other, with 50% fewer parameters and 1.23x faster training than conformer.
Recently, conformer-based end-to-end automatic speech recognition, which outperforms recurrent neural network based ones, has received much attention. Although the parallel computing of conformer is more efficient than recurrent neural networks, the computational complexity of its dot-product self-attention is quadratic with respect to the length of the input feature. To reduce the computational complexity of the self-attention layer, we propose multi-head linear self-attention for the self-attention layer, which reduces its computational complexity to linear order. In addition, we propose to factorize the feed forward module of the conformer by low-rank matrix factorization, which successfully reduces the number of the parameters by approximate 50% with little performance loss. The proposed model, named linear attention based conformer (LAC), can be trained and inferenced jointly with the connectionist temporal classification objective, which further improves the performance of LAC. To evaluate the effectiveness of LAC, we conduct experiments on the AISHELL-1 and LibriSpeech corpora. Results show that the proposed LAC achieves better performance than 7 recently proposed speech recognition models, and is competitive with the state-of-the-art conformer. Meanwhile, the proposed LAC has a number of parameters of only 50% over the conformer with faster training speed than the latter.
Motivation & Objective
- To reduce the quadratic computational complexity of conformer's self-attention mechanism in end-to-end speech recognition.
- To decrease model size and training cost without significant performance degradation.
- To improve efficiency and scalability of conformer-based ASR systems for low-resource or real-time deployment.
- To explore the effectiveness of multi-head linear self-attention and low-rank factorization in sequence modeling for speech recognition.
Proposed method
- Proposes multi-head linear self-attention (MHLSA), a linear-complexity alternative to dot-product self-attention, avoiding correlation matrix computation.
- Applies low-rank matrix factorization to the feed-forward network in both encoder and decoder, reducing parameter count by ~50%.
- Integrates connectionist temporal classification (CTC) loss during joint training and inference to enhance ASR performance.
- Uses a CNN frontend with subsampling to reduce sequence length, followed by stacked LAC encoders and decoders.
- Employs relative positional encoding in the MHLSA module to preserve sequence order information.
- Trains and decodes the model jointly with CTC to improve alignment and robustness.
Experimental results
Research questions
- RQ1Can multi-head linear self-attention effectively replace dot-product self-attention in conformer with linear complexity and comparable performance?
- RQ2To what extent can low-rank factorization reduce model parameters in conformer without degrading ASR accuracy?
- RQ3Does joint CTC training improve the performance of the linear-attention-based conformer model?
- RQ4How does the proposed LAC model compare in accuracy, speed, and parameter efficiency to state-of-the-art conformer and other recent ASR models?
Key findings
- LAC achieves a character error rate (CER) of 5.02% on AISHELL-1 test set, outperforming 7 recent models and approaching conformer's 4.88%.
- On LibriSpeech, LAC achieves a WER of 2.1% on dev-clean and 2.3% on test-other, matching the performance of the full conformer model.
- The model has only 22.83M parameters on AISHELL-1 and 23.47M on LibriSpeech, reducing parameter count by approximately 50% compared to conformer.
- LAC trains 1.23x faster on AISHELL-1 and 1.18x faster on LibriSpeech than the original conformer, due to linear attention and reduced parameter count.
- Ablation studies confirm that MHLSA maintains performance while reducing complexity from O(T²) to O(T), and low-rank factorization cuts parameters by ~50% with minimal accuracy loss.
- The bottleneck dimension (d_bn) of 100 provides the best trade-off between model size and performance on AISHELL-1, with CER of 4.73% on dev and 5.02% on test.
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.