Improved Conformer-based End-to-End Speech Recognition Using Neural Architecture Search

Yukun Liu, Ta Li, Pengyuan Zhang, Yonghong YanarXiv 2021

Abstract

The Conformer architecture, which integrates Transformers and Convolutions, represents the state-of-the-art in Automatic Speech Recognition (ASR). However, standard implementations typically rely on stacking identical blocks, which may be sub-optimal. This work applies Neural Architecture Search (NAS) to discover heterogeneous Conformer structures. By employing Differentiable Architecture Search (DARTS) with a novel Dynamic Search Schedule (DSS), the authors identify architectures that optimize local and global modeling across different layers. Experimental results on the AISHELL-1 corpus demonstrate that the searched models achieve a 7.5% Character Error Rate (CER), an 11% relative improvement over the baseline, with high search efficiency.

Introduction

In the domain of Automatic Speech Recognition (ASR), the Conformer model has emerged as a dominant architecture due to its ability to capture both global dependencies via self-attention and local features via convolutions. Despite its success, the design of Conformer-based models often follows a rigid pattern: human experts manually tune a single block structure and then stack it $N$ times.

This approach assumes that the optimal operations for feature extraction are uniform across all depths of the network. However, intuition suggests that early layers might benefit from different kernel sizes or attention mechanisms compared to deeper layers. While Neural Architecture Search (NAS) offers a path to automate this design, traditional methods like Reinforcement Learning are computationally prohibitive. This paper addresses these challenges by proposing an efficient NAS framework tailored for the Conformer backbone.

Methodology

The proposed framework utilizes a search space specifically designed around the "sandwich" structure of the Conformer block.

Conformer-based Search Space

The search space focuses on three primary components within each block:

  • Multi-Head Self-Attention (MHSA): Choosing between 4, 8, or 16 heads.
  • Convolution: Selecting from various kernel sizes (7, 11, 15) and dilation factors (1, 2).
  • Feed-Forward Network (FFN): Adjusting hidden dimensions (256, 512, 1024).
The Conformer architecture and the proposed NAS search space.

DARTS with Dynamic Search Schedule (DSS)

To navigate this search space efficiently, the authors employ Differentiable Architecture Search (DARTS). DARTS relaxes the discrete search space into a continuous one, allowing for gradient-based optimization of architecture parameters ($\alpha$) alongside model weights ($\omega$).

A common failure mode in DARTS is the premature convergence of architecture parameters before the weights are sufficiently trained. To mitigate this, the authors introduce a Dynamic Search Schedule (DSS). DSS implements a warm-up phase and ensures that $\alpha$ is only updated when the weight updates satisfy a specific stability criterion, leading to more robust and higher-performing final architectures.

Experimental Setup

The models were evaluated on the AISHELL-1 Mandarin speech corpus, which includes 150 hours of training data. Input features consisted of 80-dimensional Mel-filterbanks supplemented with pitch features. SpecAugment was applied during training to enhance generalization. The search was conducted on a 4-block Conformer backbone.

Results and Discussion

The search process revealed several key architectural insights:

  1. Heterogeneity: The optimal models were non-uniform. Different layers utilized different kernel sizes and attention head counts.
  2. Receptive Field Expansion: The algorithm tended to select larger convolution kernels for deeper layers, confirming that the network naturally seeks broader temporal contexts as information flows upward.
  3. FFN Capacity: The search consistently favored the largest FFN hidden dimension (1024), indicating that feed-forward capacity is critical for performance.

Performance Comparison

The final architecture discovered via DARTS with DSS significantly outperformed the human-designed baseline and other search methods.

Comparison of Character Error Rate (CER) and model size across different methods on AISHELL-1.

As shown in the results, the proposed method achieved a 7.5% CER on the test set, a substantial improvement over the 8.3% baseline. Notably, this gain was achieved without increasing the model size (~28.9M parameters) and with a search cost of only 23.2 GPU hours, making it far more efficient than random search (322 hours).

Conclusion

This research demonstrates that NAS can effectively optimize state-of-the-art ASR models like the Conformer. By introducing the Dynamic Search Schedule, the authors stabilized the DARTS process, leading to the discovery of high-performing, heterogeneous architectures. Future work will focus on expanding the search to include model depth and testing the portability of these architectures across larger, multi-lingual datasets.

Summary updated

BibTeX
@misc{liu2021improved,
  author = {Yukun Liu and Ta Li and Pengyuan Zhang and Yonghong Yan},
  title = {{Improved Conformer-based End-to-End Speech Recognition Using Neural Architecture Search}},
  year = {2021},
  eprint = {2104.05390},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.05390},
}
Figure