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.
Model Architecture
The architecture consists of a Transformer encoder and a non-autoregressive decoder.
- Encoder with Pre-Net: Aligned candidate embeddings are concatenated at each position, allowing the encoder to capture the "voting effect" or consensus among candidates.
- Duration Predictor: This module predicts the number of target tokens each source token should generate, facilitating the handling of insertions and deletions.
- 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.
- NAR Decoder: The decoder generates the final corrected sentence in parallel, ensuring low-latency inference suitable for production environments.
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