Introduction
Automatic Speech Recognition (ASR) systems have reached high levels of accuracy, yet the remaining error margin is difficult to eliminate. Post-processing error correction (EC) models are often used to refine outputs, but they frequently suffer from over-correction—mistakenly "fixing" correct words and thereby increasing the Word Error Rate (WER).
Existing EC methods generally fall into two categories:
- Implicit Detection: Models rely on standard attention mechanisms to identify errors, which often lacks a clear signal for training.
- Explicit Detection: Models attempt to categorize specific error types (e.g., insertion, substitution). However, errors in this detection phase inevitably lead to failures in correction.
SoftCorrect introduces a "middle way" by implementing a soft error detection mechanism that identifies the presence of an error without requiring upfront categorization, providing the decoder with greater flexibility.
Methods
The SoftCorrect architecture is divided into an Error Detector (Encoder) and a Focused Error Corrector (Decoder).
Multi-Candidate Voting
SoftCorrect utilizes the $N$-best hypotheses from an ASR beam search. These hypotheses are aligned to a uniform length and fed into the encoder. This consensus-based approach allows the model to "vote" on token correctness, leveraging the variance between different hypotheses to pinpoint likely errors.
Anti-Copy Language Modeling
To prevent the encoder from simply copying input tokens—a common pitfall since most tokens are correct—the researchers introduced an anti-copy LM loss. By incorporating a special GT (Ground Truth) token into the vocabulary, the loss function penalizes the model for copying incorrect input tokens while encouraging the prediction of the correct token.
Constrained CTC Loss
The decoder employs a constrained Connectionist Temporal Classification (CTC) loss. Unlike standard CTC, this version treats tokens identified as "correct" by the detector as fixed anchors. Only tokens flagged as "incorrect" are expanded to allow for substitutions or insertions. This constraint focuses the decoder's computational effort solely on problematic segments, improving both accuracy and efficiency.
Experimental Setup
SoftCorrect was evaluated on two major Mandarin ASR benchmarks:
- AISHELL-1: A 170-hour Mandarin speech corpus.
- Aidatatang_200zh: A 200-hour Mandarin speech corpus.
Additionally, the models underwent pseudo-pretraining using 400M unpaired text data to enhance their linguistic capabilities.
Key Results
SoftCorrect demonstrated superior performance in both accuracy and inference speed compared to established baselines.
- Accuracy: The model achieved a 26.1% Character Error Rate Reduction (CERR) on AISHELL-1 and a 9.4% CERR on Aidatatang. It consistently outperformed both autoregressive (AR) and non-autoregressive (NAR) baselines.
- Efficiency: Due to its NAR architecture and constrained search space, SoftCorrect is highly efficient. It achieved a 7x speedup over the Rescoring + FastCorrect baseline, with an average latency of 17ms per sentence on a V100 GPU.
- Ablation Study: The anti-copy loss was found to be critical; removing it caused the CERR on AISHELL-1 to drop from 26.09% to 21.94%, highlighting its role in preventing trivial copying.
Conclusion
SoftCorrect proves that "soft" detection is more robust than "hard" classification for ASR error correction. By anchoring the decoder to correct tokens and leveraging $N$-best hypothesis consensus, the model avoids cascading errors and maintains high real-time performance. Future work may explore tighter end-to-end integration with ASR models and adaptation for word-based languages like English.
Summary updated