Introduction
Non-autoregressive (NAR) automatic speech recognition (ASR) has emerged as a vital area of research for low-latency applications. Unlike traditional autoregressive models that predict tokens sequentially, NAR models like Mask-CTC predict entire sequences in parallel. However, these models often struggle with two primary issues: the rigidity of standard loss functions and the discrepancy between training and inference conditions. This paper introduces Dynamic Alignment Mask CTC, a framework designed to improve the accuracy and robustness of NAR speech recognition through two novel techniques: Aligned Cross Entropy (AXE) and Dynamic Rectification.
The Challenges of Non-Autoregressive ASR
While NAR models offer significant speed advantages, they face inherent hurdles that limit their performance compared to their slower, autoregressive counterparts:
- The Strictness of Cross Entropy (CE): Standard training relies on CE loss, which demands a perfect one-to-one alignment between the predicted sequence and the ground truth. In speech, if a model predicts the correct word but shifts its position by a single frame, CE imposes a heavy penalty. This lack of flexibility forces the model to focus on absolute positioning rather than the relative sequence of sounds.
- Training-Inference Mismatch: During training, models are typically provided with "clean" ground truth data for unmasked portions of a sequence. During real-world inference, however, the model must rely on its own initial (and potentially erroneous) predictions. This "exposure bias" makes the model fragile when encountering noise or its own mistakes in a production environment.
Proposed Methodology
The researchers propose a Conformer-based encoder-decoder architecture integrated with two key algorithmic improvements:
Aligned Cross Entropy (AXE)
To address the alignment problem, the authors introduce Aligned Cross Entropy (AXE). Instead of a rigid position-by-position match, AXE utilizes dynamic programming to find the optimal monotonic alignment between the model's predictions and the target sentence. By focusing on the relative order of tokens, AXE recognizes a correct sequence even if the timing is slightly offset, providing a more effective training signal for speech tasks.
Dynamic Rectification
To bridge the gap between training and inference, the Dynamic Rectification step is introduced. During training, the model predicts tokens for masked areas, and these predictions—including high-confidence errors—are fed back into the next training step. This teaches the decoder how to handle and "rectify" the types of mistakes it is likely to make during greedy CTC decoding in real-world use.
Architecture
The system utilizes a Conformer backbone for the encoder, which combines Convolutional Neural Networks (CNNs) for local feature extraction and Transformers for capturing global context. The decoder follows a standard Transformer architecture.
Experimental Setup
The models were evaluated using the standard Wall Street Journal (WSJ) speech corpus. The training was conducted on the si284 subset, with validation and testing performed on dev93 and eval92, respectively. Audio inputs were processed into 80-channel mel-scale filterbanks supplemented with 3-dimensional pitch features.
Key Results and Insights
The proposed "Mask + Rec + AXE" model demonstrated superior performance over existing NAR baselines:
- Accuracy: On the
eval92test set, the Conformer-based model achieved a 11.1% Word Error Rate (WER). This outperforms the baseline Mask CTC (11.7%) and other NAR methods such as Imputer (12.7%). - Efficiency: The model maintained a Real-Time Factor (RTF) of 0.04 to 0.07, meaning it can process an hour of speech in under five minutes. This is significantly faster than traditional autoregressive CTC-Attention models, which recorded RTFs as high as 5.09 in similar tests.
- Robustness: Analysis suggests that AXE provides a more "reasonable" loss value for sequences with minor temporal mismatches compared to standard CE loss, which correlates better with the Levenshtein distance.
Discussion and Future Work
While Dynamic Alignment Mask CTC represents a significant step forward, the authors identify remaining challenges. "Multimodality" issues—where phonetically similar phrases (e.g., "form or" vs. "for more") confuse the model—persist despite the improvements offered by AXE. Additionally, while the model is highly efficient during inference, the training pipeline is more complex due to the inclusion of dynamic programming and multiple rectification passes.
Future research will likely focus on testing these methods on larger, more diverse datasets like LibriSpeech and exploring their efficacy in multi-lingual or high-noise environments.
Summary updated