TL;DR
This paper introduces the "Deep Sparse Conformer," a novel architecture for automatic speech recognition (ASR) that significantly improves efficiency and accuracy by making the Conformer model deeper and its attention mechanism sparser. By combining a probabilistic sparse attention with a deep normalization strategy, they achieve state-of-the-art results on the Japanese CSJ-500h dataset, even with models up to 100 layers deep.
What Problem Does This Paper Address?
Automatic Speech Recognition (ASR) systems have seen remarkable progress with Transformer-based architectures like the Conformer. Conformers excel by combining the global context-capturing ability of self-attention with the local feature extraction of convolutional neural networks. However, a key limitation of the standard Conformer is the quadratic complexity ($O(L^2)$) of its self-attention mechanism with respect to sequence length ($L$). This makes processing long audio sequences computationally expensive and memory-intensive. Furthermore, while deeper models generally offer better performance, training very deep Transformer variants can be unstable. This paper aims to address these challenges by developing a more efficient and deeper Conformer architecture capable of handling long sequences without prohibitive computational costs and ensuring stable training for these deeper models.
Methods
The authors propose two main innovations to the standard Conformer architecture:
- Sparse Attention: They adapt the "ProbSparse" self-attention mechanism, which reduces the $O(L^2)$ complexity to $O(L \log L)$. Instead of every query attending to every key, ProbSparse uses a probabilistic approach to identify the most important query-key pairs, significantly reducing computation. This is achieved by defining a query importance measure and selecting only the top-u (where u is proportional to $\log L$) query vectors for similarity computation.
- Deep Normalization: To enable stable training of extremely deep Conformer models (up to 100 layers), they adopt the "DeepNorm" strategy, inspired by DeepNet. This involves scaling the input tensor by a factor $\alpha$ before adding it back in residual connections. This scaling helps to control and bound the model's updates, preventing instability during training.
The proposed architecture, termed "Deep Sparse Conformer" (DSC), integrates these sparse attention and deep normalization techniques into the Conformer's encoder blocks.
Datasets
The primary dataset used for training and evaluation in this paper is the Japanese "Corpus of Spontaneous Japanese" (CSJ-500h), which contains 500 hours of labeled speech. They also mention using sentencepiece-bpe for text segmentation and a vocabulary size of 4,096. For feature extraction, they use 80-dimension FBank features with specific windowing and stride parameters, and apply SpecAugment for data augmentation.
Key Insights and Ideas
- Deeper is (still) better, but needs careful handling: The paper demonstrates that significantly increasing the depth of Conformer models (up to 100 layers) can lead to improved accuracy, but this requires specialized techniques like DeepNorm for stable training.
- Sparsity is key for efficiency: The ProbSparse attention mechanism is crucial for making these deeper models computationally feasible, especially for long sequences, by reducing the quadratic complexity of standard self-attention.
- DeepNorm enables extreme depth: The DeepNorm strategy proves effective in stabilizing the training of hundreds of layers, a feat that would be challenging with standard normalization techniques.
- Ensembling still provides gains: Even with highly optimized individual models, ensembling multiple DSC variants further boosts performance, indicating that different model configurations capture complementary information.
Key Results
- Accuracy Improvement: The DSC-12en model, with the same parameter count as the standard Conformer-S, achieved absolute CER improvements of 1.45%, 0.62%, and 0.79% on the three test sets of the CSJ-500h dataset.
- Efficiency Gains: The DSC-12en model also showed a 20% reduction in training time and a 1.23x faster inference speed compared to the standard Conformer-S.
- Deep Models Performance: Training models with up to 100 encoder layers was successful using DeepNorm.
- Ensemble Performance: An ensemble of five DSC variants achieved the best CERs on the CSJ-500h dataset: 4.16%, 2.84%, and 3.20% on the three evaluation sets.
Limitations and Future Work
- Training Time for Deep Models: While DeepNorm enables training of very deep models, the training time increases significantly with depth (e.g., DSC-100en took 16.5 times longer than DSC-12en).
- Marginal Gains with Extreme Depth: The accuracy improvements from adding extremely deep layers (e.g., from 50 to 100) were marginal, suggesting diminishing returns.
- Future Work: The authors suggest exploring the use of Deep Sparse Conformer blocks in self-supervised speech pre-training and fine-tuning.
Summary updated