FastCorrect 2: Fast Error Correction on Multiple Candidates for Automatic Speech Recognition

Yichong Leng, Xu Tan, Rui Wang, Linchen Zhu, Jin Xu, Wenjie Liu, Linquan Liu, Xiang-Yang Li, Tao Qin, Edward Lin, Tie-Yan Liu

Introduction

Automatic Speech Recognition (ASR) systems, despite significant advancements, often produce transcriptions with errors. Traditional post-processing involves error correction (fixing specific tokens) or re-scoring (selecting the best candidate from a beam search list). However, most error correction models focus on the top-1 candidate, ignoring the "voting effect" present in multiple beam-search candidates. FastCorrect 2 addresses this by processing multiple candidates simultaneously using a non-autoregressive (NAR) architecture, effectively combining error correction and re-scoring into a single, high-speed pipeline.

Methodology

FastCorrect 2 introduces several innovations to leverage consensus across multiple ASR candidates.

Multiple Candidate Alignment

To handle candidates of varying lengths, the model employs a novel alignment algorithm based on edit distance and pronunciation similarity. By incorporating phoneme sequences, the algorithm ensures that tokens in the same position across candidates are either identical or phonetically similar, which is crucial for identifying common ASR errors.

Alignment process using pronunciation similarity and edit distance.

Model Architecture

The architecture consists of a Transformer encoder and a non-autoregressive decoder.

  1. Encoder with Pre-Net: Aligned candidate embeddings are concatenated at each position, allowing the encoder to capture the "voting effect" or consensus among candidates.
  2. Duration Predictor: This module predicts the number of target tokens each source token should generate, facilitating the handling of insertions and deletions.
  3. Candidate Predictor: Since the decoder processes a single adjusted sequence, this module selects the candidate most likely to yield the lowest loss as the primary input.
  4. NAR Decoder: The decoder generates the final corrected sentence in parallel, ensuring low-latency inference suitable for production environments.
The FastCorrect 2 architecture, featuring the duration and candidate predictors.

Experiments and Results

The model was evaluated on the AISHELL-1 public dataset and a large-scale internal Mandarin dataset consisting of 75,000 hours of speech.

Performance Metrics

FastCorrect 2 achieved a Word Error Rate (WER) reduction of 3.2% on the internal dataset and 2.6% on AISHELL-1 compared to the single-candidate FastCorrect baseline. Notably, it outperformed cascaded "Correction + Re-scoring" pipelines in both accuracy and speed.

Inference Speed

Due to its non-autoregressive nature, FastCorrect 2 is approximately 5x faster than autoregressive correction models. It also achieves a 3x speedup over traditional re-scoring pipelines while maintaining superior accuracy.

Discussion and Conclusion

The success of FastCorrect 2 highlights the importance of the "voting effect" in ASR error correction. By utilizing pronunciation-based alignment, the model effectively groups phonetically similar errors, providing the encoder with rich information about ASR uncertainty. While the current implementation is optimized for Mandarin, the underlying principles of multi-candidate consensus and NAR decoding offer a promising path for efficient, high-accuracy post-processing in various languages. Future work may explore more sophisticated fusion mechanisms to allow the decoder to attend to multiple candidates simultaneously.

Summary updated

BibTeX
@inproceedings{leng2021fastcorrect,
  author = {Yichong Leng and Xu Tan and Rui Wang and Linchen Zhu and Jin Xu and Wenjie Liu and Linquan Liu and Xiang-Yang Li and Tao Qin and Edward Lin and Tie-Yan Liu},
  title = {{FastCorrect 2: Fast Error Correction on Multiple Candidates for Automatic Speech Recognition}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.367},
}
Figure