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

Conformer: Convolution-augmented Transformer for Speech Recognition

Anmol Gulati, James Qin, Chung-Cheng Chiu, Niki Parmar, Yu Zhang, Jiahui Yu, Wei Han, Shibo Wang, Zhengdong Zhang, Yonghui Wu, Ruoming Pang

Abstract

Recently Transformer and Convolution neural network (CNN) based models have shown promising results in Automatic Speech Recognition (ASR), outperforming Recurrent neural networks (RNNs). Transformer models are good at capturing content-based global interactions, while CNNs exploit local features effectively. In this work, we achieve the best of both worlds by studying how to combine convolution neural networks and transformers to model both local and global dependencies of an audio sequence in a parameter-efficient way. To this regard, we propose the convolution-augmented transformer for speech recognition, named Conformer. Conformer significantly outperforms the previous Transformer and CNN based models achieving state-of-the-art accuracies. On the widely used LibriSpeech benchmark, our model achieves WER of 2.1%/4.3% without using a language model and 1.9%/3.9% with an external language model on test/testother. We also observe competitive performance of 2.7%/6.3% with a small model of only 10M parameters.

Introduction

In Automatic Speech Recognition (ASR), two architectures have recently dominated: Transformers and CNNs. However, both have inherent "blind spots." Transformers are masters of global context; thanks to self-attention, they can relate distant parts of an audio signal. However, they struggle to pick up on fine-grained local features effectively. Conversely, CNNs are excellent at extracting local features (like specific phonetic transitions) through shared kernels, but they are "nearsighted." To capture long-distance global interactions, they require many layers or very large receptive fields, which becomes computationally expensive.

The Conformer architecture bridges this gap by "sandwiching" self-attention and convolution modules between two feed-forward layers. This design captures both global dependencies and local patterns more efficiently than either architecture could alone.

Methods: The Conformer Architecture

The core innovation is the Conformer block, which replaces the standard Transformer block. Instead of just an attention layer and a feed-forward layer, the Conformer uses a "Macaron-like" structure.

The Conformer architecture overview, showing the encoder structure and the detailed Conformer block components.

As shown in the figure above, the Conformer block consists of four modules:

  1. Feed-Forward Module (Half-step): A residual module that starts the block.
  2. Multi-Head Self-Attention (MHSA): Uses Relative Positional Encoding (from Transformer-XL), allowing the model to generalize better to different utterance lengths.
  3. Convolution Module: A specialized sandwich of pointwise convolutions, a Gated Linear Unit (GLU) activation, and a 1D Depthwise Convolution. This setup captures local correlations efficiently.
  4. Feed-Forward Module (Half-step): A second FFN module to close the "sandwich."

The overall system is a Transducer model, pairing this Conformer encoder with a simple LSTM-based decoder to predict text from audio.

Experimental Setup

The models were trained and evaluated on LibriSpeech, the standard benchmark for ASR, using 970 hours of labeled speech. An 800M word token corpus was used to train an external Language Model (LM) for decoding. Evaluation focused on the test-clean and test-other (noisy) subsets.

Key Insights and Results

Ablation studies revealed several critical design choices:

  • The "Sandwich" Matters: Using two half-step Feed-Forward Networks (FFNs) surrounding the attention and convolution modules significantly outperformed using a single large FFN.
  • Convolution is Essential: Removing the convolution sub-block caused the largest drop in performance, confirming that local modeling is critical for speech.
  • Relative Positional Embeddings: These allowed the self-attention mechanism to be more robust to the high variance in speech duration compared to absolute embeddings.
Summary of Conformer model variants (Small, Medium, Large) and their respective hyperparameters.

The Conformer set a new state-of-the-art (SOTA) on LibriSpeech. The Large model (118M parameters) achieved a Word Error Rate (WER) of 1.9% on test-clean and 3.9% on test-other with an external LM. Even without an LM, it outperformed many previous systems. Furthermore, the 10M parameter "Small" model achieved a competitive 2.7% / 6.3% WER, making it suitable for mobile applications.

Conclusion

The Conformer demonstrates that combining the global modeling of Transformers with the local modeling of CNNs leads to superior ASR performance. While the block is more complex than standard alternatives, its parameter efficiency is a significant advantage. Future work may explore more advanced decoders beyond the single-layer LSTM used here and test the architecture's robustness in multi-speaker or low-resource environments.

Summary updated

BibTeX
@inproceedings{gulati2020conformer,
  author = {Anmol Gulati and James Qin and Chung-Cheng Chiu and Niki Parmar and Yu Zhang and Jiahui Yu and Wei Han and Shibo Wang and Zhengdong Zhang and Yonghui Wu and Ruoming Pang},
  title = {{Conformer: Convolution-augmented Transformer for Speech Recognition}},
  booktitle = {Interspeech},
  year = {2020},
  url = {https://openreview.net/forum?id=QpIGutM7Eku},
}
Figure