# Conformer (2020)

> Self-attention for the whole utterance plus convolution for the fine detail, in one block that became the standard speech encoder.

Page: https://mralbu.github.io/ai-datasets/p/conformer

## Key facts

- Title: Conformer: Convolution-augmented Transformer for Speech Recognition
- Authors: Anmol Gulati, James Qin, Chung-Cheng Chiu, Niki Parmar, Yu Zhang, Jiahui Yu, Wei Han, Shibo Wang, Zhengdong Zhang, Yonghui Wu, Ruoming Pang
- Venue: Interspeech 2020
- Category: Audio
- Paper: https://www.alphaxiv.org/abs/2005.08100

## Why it matters

Recurrent encoders were slow to train and pure Transformers missed local acoustic detail. The Conformer block fixed both in a few lines, set the LibriSpeech record, and became the default encoder in production and open-source speech recognizers.

## The idea

Self-attention sees the whole utterance but is weak at local patterns; convolutions are the reverse. Each Conformer block puts a self-attention module and a convolution module between two half-step feed-forward layers, so the encoder models both global context and local acoustics.

## The result

2.1% / 4.3% word error rate on LibriSpeech test-clean / test-other without a language model and 1.9% / 3.9% with one; a 10M-parameter version reached 2.7% / 6.3%.

## The data

- [LibriSpeech (2015)](https://mralbu.github.io/ai-datasets/d/librispeech.md): About 1,000 hours of read English audiobooks with transcripts.

## Builds on

- [Transformer (2017)](https://mralbu.github.io/ai-datasets/p/transformer.md)

## Part of

- [Speech recognition](https://mralbu.github.io/ai-datasets/t/speech-recognition.md) (step 2 of 5)
