NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient conformer-based speech recognition with linear attention

Shengqiang Li, Menglong Xu, Xiao-Lei Zhang

TL;DR

The Linear Attention based Conformer (LAC) reduces the computational burden of state-of-the-art speech recognition by replacing standard quadratic self-attention with a linear-complexity alternative. By also applying low-rank matrix factorization to the model's feed-forward layers, the authors achieved a 50% reduction in parameters and up to a 1.23x training speedup while maintaining performance competitive with the original Conformer.

What Problem Does This Paper Address?

The Conformer architecture has become a powerhouse in Automatic Speech Recognition (ASR) because it combines the global context-awareness of Transformers with the local feature extraction of Convolutional Neural Networks (CNNs). However, it has two major "efficiency bottlenecks":

  1. Quadratic Complexity: The standard dot-product self-attention mechanism has a computational complexity of $O(T^2)$, where $T$ is the input sequence length. As audio files get longer, memory and processing requirements explode.
  2. Parameter Bloat: The Feed-Forward Network (FFN) modules in a Conformer contain a massive number of parameters, making the models heavy and difficult to deploy on resource-constrained edge devices.

The authors aim to bridge the gap between high-accuracy "heavy" models and the need for efficient, deployable ASR systems.

Methods

The authors introduce two primary architectural innovations to create the LAC model:

  • Multi-Head Linear Self-Attention (MHLSA): Instead of calculating a massive $T \times T$ correlation matrix (the source of the $O(T^2)$ complexity), linear attention changes the order of operations. By applying a normalization function (like softmax) to the Query ($Q$) and Key ($K$) matrices independently before multiplying them with the Value ($V$) matrix, the complexity drops to $O(T)$. This makes the model significantly faster and more memory-efficient for long sequences.
  • Low-rank Feed Forward Network (LFFN): The standard FFN uses two large linear layers. The authors factorize these weight matrices into two smaller matrices with a "bottleneck" dimension ($d_{bn}$) in between. This is similar to how SqueezeNet or MobileNet use point-wise convolutions to save parameters.
  • Absolute Position Encoding: Because the linear attention mechanism doesn't rely on the explicit correlation matrix used in the original Conformer's relative position encoding, the authors switched to a simpler absolute position encoding (sine/cosine functions) to maintain efficiency.

The model is trained using a joint CTC (Connectionist Temporal Classification) and Attention objective, which helps the model converge faster and perform better during decoding.

Datasets

The model was evaluated on two widely recognized benchmarks in the ASR community:

  • AISHELL-1: A 170-hour Mandarin speech corpus.
  • LibriSpeech: A 970-hour English speech corpus derived from audiobooks.

These datasets are standard for testing how well a model handles different languages and varying levels of audio "cleanliness."

Key Insights and Ideas

  • Mathematical Equivalence for Efficiency: The "aha moment" here is that linear attention is functionally very similar to dot-product attention but avoids the $T \times T$ matrix bottleneck. It treats attention as a linear operator, which is a massive win for long-form audio.
  • The 50% Rule: The authors found that they could cut the parameter count of the FFN modules in half through factorization with only a negligible hit to accuracy. This suggests that standard Conformer FFNs are significantly over-parameterized.
  • Trade-off Optimization: The study on the bottleneck dimension ($d_{bn}$) shows a clear "sweet spot." Setting $d_{bn}$ to 100 provided the best balance between model size and Character Error Rate (CER).

Key Results

  • Parameter Efficiency: LAC uses only ~23M parameters, compared to the ~45M parameters of the standard Conformer—a 50% reduction.
  • Speed: Training was 1.23x faster on AISHELL-1 and 1.18x faster on LibriSpeech.
  • Competitive Accuracy:
    • On AISHELL-1, LAC achieved a 5.02% CER (compared to the Conformer's 4.88%).
  • On LibriSpeech (test-other), LAC achieved a 5.8% WER, outperforming other efficient models like QuartzNet and Performers-in-Conformer (PIC).
  • Superiority over other "Efficient" Models: LAC consistently outperformed seven other recently proposed efficient ASR models (like LDSA and LRT) in terms of the accuracy-to-complexity ratio.

Limitations and Future Work

  • Slight Performance Gap: While LAC is much smaller and faster, it still trails the full-sized Conformer by a small margin in accuracy (e.g., 5.02% vs 4.88% CER on AISHELL-1). For applications where every fraction of a percent matters, the full model is still king.
  • Inference Hardware: While training speedups are documented, the paper doesn't deeply explore the "Real-Time Factor" (RTF) on specific mobile or edge hardware, which would be the ultimate test for a model designed for efficiency.
  • Future Directions: The authors suggest that further tuning of the linear attention normalization functions could potentially close the remaining accuracy gap with the standard Conformer.

Summary updated

BibTeX
@inproceedings{li2021efficient,
  author = {Shengqiang Li and Menglong Xu and Xiao-Lei Zhang},
  title = {{Efficient conformer-based speech recognition with linear attention}},
  booktitle = {APSIPA ASC},
  year = {2021},
  url = {https://openreview.net/forum?id=wTd2leqwAy},
}
Figure