Mask CTC: Non-Autoregressive End-to-End ASR with CTC and Mask Predict

Yosuke Higuchi, Shinji Watanabe, Nanxin Chen, Tetsuji Ogawa, Tetsunori Kobayashi

Introduction

Automatic Speech Recognition (ASR) has traditionally relied on autoregressive (AR) models, which generate text tokens sequentially. While highly accurate, this approach is computationally expensive and slow. Non-autoregressive (NAR) models, such as those using Connectionist Temporal Classification (CTC), offer a faster alternative by generating all tokens in parallel. However, CTC-based models often suffer from a "conditional independence" assumption, leading to spelling errors, and they frequently struggle with predicting the correct output sequence length.

Mask CTC addresses these challenges by combining the speed of CTC with the refinement capabilities of a Transformer decoder using a masked language modeling approach. It achieves near-state-of-the-art results with up to a 100x speedup during inference.

Methods

Mask CTC utilizes a Transformer encoder-decoder architecture trained with a joint objective: a CTC loss and a Conditional Masked Language Model (CMLM) loss.

The Mask CTC architecture uses a CTC-based initial pass followed by iterative refinement via a Transformer decoder.

The inference process consists of several key steps:

  1. Greedy CTC Initialization: A single forward pass through the CTC layer generates an initial sequence. This step inherently determines the sequence length, bypassing the length prediction issues common in other NAR frameworks.
  2. Confidence-Based Masking: The model evaluates the probability scores of the generated tokens. Tokens falling below a certain confidence threshold are replaced with a <MASK> token.
  3. Iterative Refinement: The Transformer decoder takes the partially masked sequence and the encoder's audio features to predict the missing tokens. Unlike AR models, the decoder leverages bidirectional context, allowing it to correct errors based on both preceding and succeeding high-confidence tokens.
  4. Easy-First Decoding: This refinement can be applied iteratively. The model fills in the most certain masks first, gradually improving the entire sequence in a fixed number of steps (e.g., 1, 5, or 10), independent of the total sentence length.

Key Results

The researchers evaluated Mask CTC across three languages: English (WSJ), Japanese (CSJ), and Italian (Voxforge). Mask CTC demonstrates a significant improvement over vanilla CTC while maintaining a massive speed advantage over AR models.

Performance comparison on the WSJ dataset, showing Word Error Rate (WER) and Real-Time Factor (RTF).

On the WSJ dataset, Mask CTC reduced the Word Error Rate (WER) from 17.9% (standard CTC) to 12.1% (with 10 iterations). This performance closely approaches the 11.3% WER of the much slower AR model. Crucially, in terms of inference speed, Mask CTC achieved a Real-Time Factor (RTF) as low as 0.04 to 0.07, compared to 4.62 for the AR model with beam search—representing a ~66x to 116x speedup depending on the configuration.

In Japanese (CSJ), Mask CTC matched or even slightly outperformed AR models in Character Error Rate (CER) on several benchmarks, highlighting its effectiveness for languages with large character sets.

Key Insights

  • CTC as a Structural Anchor: Using CTC to provide both an initial hypothesis and a fixed sequence length solves the primary hurdles of NAR ASR.
  • Bidirectional Context: The ability of the decoder to look at the entire sequence simultaneously allows for more robust error correction than unidirectional AR models.
  • Efficiency: Even a single refinement iteration provides a substantial accuracy boost over raw CTC, proving that the speed-accuracy gap in NAR models is rapidly closing.

Limitations and Future Work

Despite its successes, Mask CTC is constrained by the initial CTC pass; it cannot easily correct insertion or deletion errors because the sequence length is fixed at the start. Future research may explore integrating external pre-trained language models like BERT or adapting the framework for larger token units like subwords to further enhance performance.

Summary updated

BibTeX
@inproceedings{higuchi2020mask,
  author = {Yosuke Higuchi and Shinji Watanabe and Nanxin Chen and Tetsuji Ogawa and Tetsunori Kobayashi},
  title = {{Mask CTC: Non-Autoregressive End-to-End ASR with CTC and Mask Predict}},
  booktitle = {Interspeech},
  year = {2020},
  doi = {10.21437/interspeech.2020-2404},
}
Figure