
nemo_fastconformer_transducer
Audio and speech1,359 ops114.1M params
NVIDIA's Conformer redesign with 8x convolutional subsampling, traced as encoder, CTC, transducer and Canary variants.
Audio and speech · 1,404 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.
The encoder alone: three depth-wise convolutional subsampling layers take the frame rate from 10 ms to 80 ms before the Conformer blocks, and the output is a sequence of frame embeddings.
About this model's family
Fast Conformer is NVIDIA's redesign of the Conformer speech encoder, built to make training and inference cheaper without touching the core architecture. Conformer-based models had become the dominant end-to-end architecture for speech, combining a depth-wise convolution for local features with self-attention for global context. Their weakness is that self-attention costs grow quadratically with input length, which caps the audio a Conformer can process.
The central change is the downsampling schema: the frame rate goes from 10 ms to 80 ms through three depth-wise convolutional subsampling layers, an 8x reduction instead of Conformer's 4x. Alongside that, the filter count in the downsampling block drops to 256 and the convolutional kernel size shrinks to 9. Applied step by step to a Conformer-RNNT Large baseline, these changes raised encoder inference speed 2.8x while holding accuracy. Because CTC needs encoder output longer than the target sequence, 8x downsampling pushed the authors from character tokenization to SentencePiece byte pair encoding with 128 to 1024 tokens.
For long recordings, global attention can be swapped after training for Longformer-style limited context attention: a fixed window around each token plus a single global token that attends to and is attended by everything. That extends the audio a single A100 GPU can handle at once by 45x, from 15 minutes for Conformer to 675 minutes for Fast Conformer with limited context.
The NeMo CTC recipe configures the encoder with 18 layers and a model width of 512, using dw_striding subsampling at factor 8 and a convolution kernel of 9, then a ConvASRDecoder head. The transducer recipe uses 17 encoder layers and pairs the encoder with an RNNTDecoder prediction network and an RNNTJoint. Canary, the fourth member, is a later NVIDIA model that puts a Transformer decoder on a FastConformer encoder for multilingual ASR and speech translation. Its multitask behavior is driven by prompt tokens, with the input and output languages given as tokens around the translate token. Canary was trained on only 86K hours of speech, an order of magnitude less than Whisper and Seamless used.
Key idea. Fast Conformer swaps Conformer's 4x front-end for 8x depthwise-separable convolutional subsampling, cutting encoder multiply-adds 2.9x and running 2.8x faster while keeping word error rates competitive.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{rekesh2023fastconformerlinearlyscalable,
title={Fast Conformer with Linearly Scalable Attention for Efficient Speech Recognition},
author={Dima Rekesh and Nithin Rao Koluguri and Samuel Kriman and Somshubra Majumdar and Vahid Noroozi and He Huang and Oleksii Hrinchuk and Krishna Puvvada and Ankur Kumar and Jagadeesh Balam and Boris Ginsburg},
year={2023},
eprint={2305.05084},
archivePrefix={arXiv},
primaryClass={eess.AS},
url={https://arxiv.org/abs/2305.05084},
}