Abstract
The Conformer architecture has become a standard in Automatic Speech Recognition (ASR) due to its ability to capture both local and global dependencies. However, its quadratic complexity relative to input length poses significant computational challenges for long-form audio. This paper introduces the Learnable Multiplicative absolute position Embedding based Conformer (LMEC), which replaces standard softmax self-attention with a novel Learnable Multiplicative Linear Attention (LMLA) mechanism. By integrating a learnable multiplicative absolute position embedding (LM-APE) and Gated Linear Units (GLU), LMEC achieves superior accuracy on the LibriSpeech benchmark while significantly reducing inference latency.
Introduction
Automatic Speech Recognition (ASR) has seen dramatic improvements with the advent of the Conformer, which interleaves convolution and self-attention layers. Despite its success, the $O(N^2)$ complexity of the self-attention mechanism remains a bottleneck for processing long sequences. While linear attention variants have been proposed to achieve $O(N)$ complexity, they often struggle to incorporate effective position information, which is critical for speech signals.
The LMEC approach addresses these limitations by redesigning the Conformer block with efficiency and positional awareness in mind. By decoupling positional information from the attention score calculation, LMEC enables the use of linear-time inference strategies without the performance degradation typically seen in simplified attention models.
The Bottleneck in Conformer ASR
Standard Conformers rely on Softmax Self-Attention and Relative Position Encoding (RPE). RPE is effective because it models the distance between frames, but it is mathematically incompatible with the "kernel trick" used in linear attention. Linear attention avoids computing the full $N \times N$ attention matrix, whereas RPE typically requires adding a bias term to that very matrix. Previous solutions, such as cosFormer, attempted to bridge this gap using complex trigonometric re-weighting, which introduced its own computational overhead.
The LMEC Architecture
The proposed LMEC block introduces several key innovations to the standard Conformer structure:
- Learnable Multiplicative Linear Attention (LMLA): LMEC utilizes a kernelized linear attention mechanism. Through empirical testing, the authors found that using the ELU activation function ($\psi(x) = ELU(x) + 1$) as a kernel provided the most stable convergence and highest performance for ASR tasks.
- Learnable Multiplicative Absolute Position Embedding (LM-APE): Instead of complex relative positioning, LMEC applies a learnable vector $R_j$ directly to the Key ($K$) matrix via element-wise multiplication. This captures essential positional cues while maintaining the mathematical properties required for linear-time complexity.
- Gated Linear Units (GLU): The traditional Feed-Forward Network (FFN) is replaced with GLUs. This gating mechanism allows the model to selectively filter information, enhancing representational power without a significant increase in parameters.
Experimental Results
The LMEC model was evaluated on the LibriSpeech 1000-hour dataset. Results demonstrate that LMEC not only matches but exceeds the performance of the baseline Conformer and other linear attention models like cosFormer.
As shown in the table above, LMEC1 (Ours) achieved a WER of 3.17% on the "test-clean" set with attention rescoring, outperforming the Conformer1 baseline of 3.31%. Furthermore, LMEC demonstrates significant speed advantages. By utilizing a "Right Product" strategy ($Q(K^TV)$) during inference, the attention module achieves a 33% speedup for sequences of 2000 frames compared to standard implementations.
Conclusion
LMEC represents a significant step forward in making high-performance ASR models more efficient. By rethinking how positional information is integrated into linear attention, the authors have removed a major barrier to scaling Conformers for long-form audio. Future work may involve extending these linear attention mechanisms to the decoder or exploring more advanced gating functions to further optimize the architecture for real-time applications.
Summary updated