
Conformer
Audio and speech259 ops361K params
A LibriSpeech speech recognizer with a Conformer encoder, CTC and transformer decoding, and a Transformer LM.
Audio and speech · 2,160 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
This is SpeechBrain's end-to-end speech recognition system for LibriSpeech, an English dataset. Its model card describes three linked blocks: a unigram tokenizer that turns words into subword units, a neural language model (Transformer LM), and an acoustic model made of a conformer encoder and a joint decoder with CTC plus transformer. Because of that joint decoder, decoding also incorporates the CTC probabilities.
The encoder design comes from the Conformer paper, which starts from the observation that Transformer models are good at content-based global interactions while CNNs exploit local features effectively. A Conformer block places a multi-headed self-attention module and a convolution module between two feed-forward modules. The convolution module is a pointwise convolution with a gated linear unit followed by a single 1-D depthwise convolution, and the authors found that stacking it after the self-attention module works best for speech recognition.
The paper's own models use a single-LSTM-layer decoder, whereas this system decodes with CTC and a transformer. The model card reports a word error rate of 2.01 on LibriSpeech test clean and 4.52 on test other. For its 118M parameter model, the paper reports WER of 2.1%/4.3% on LibriSpeech test/testother without a language model and 1.9%/3.9% with an external language model.
Key idea. Conformer combines convolution and self-attention in one encoder block so a speech recognizer models both local and global dependencies of an audio sequence in a parameter-efficient way.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{gulati2020conformerconvolutionaugmentedtransformerspeech,
title={Conformer: Convolution-augmented Transformer for Speech Recognition},
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},
year={2020},
eprint={2005.08100},
archivePrefix={arXiv},
primaryClass={eess.AS},
url={https://arxiv.org/abs/2005.08100},
}