Minimum Word Error Training For Non-Autoregressive Transformer-Based Code-Switching ASR

Yizhou Peng, Jicheng Zhang, Haihua Xu, Hao Huang, EngSiong ChngICASSP 2021 · DOI

TL;DR

This paper tackles the challenge of improving non-autoregressive (NAT) Automatic Speech Recognition (ASR) for code-switching scenarios, where speakers mix languages within an utterance. They introduce novel masking strategies and, crucially, adapt the Minimum Word Error (MWE) training criterion to NAT models, achieving consistent performance gains over standard cross-entropy training.

What Problem Does This Paper Address?

End-to-end ASR systems have become dominant, with autoregressive (AR) models currently achieving state-of-the-art performance. However, non-autoregressive (NAT) models, which predict all output tokens independently, offer significant speed advantages during inference. While NATs are theoretically well-suited for code-switching due to their independence property, they historically underperform AR models. This gap is particularly pronounced in code-switching ASR, where the rapid shifts between languages pose a significant challenge for models trained on monolingual data. The authors aim to bridge this performance gap by enhancing NAT models for code-switching ASR.

Methods

The paper proposes several enhancements to a CTC-mask-based NAT framework for code-switching ASR:

  • Diversified Masking Strategies: To improve the NAT baseline, they explore various masking techniques that specifically target code-switching points within an utterance. These include masking the first or second token of a code-switch pair (F-Mask, S-Mask), or language-specific masking (M-Mask for Mandarin, E-Mask for English).
  • Enforced CMLM Learning: They introduce a modification to the Conditional Masked Language Model (CMLM) training objective. Instead of just predicting masked tokens from observed ones, they also perform the reverse: predicting observed tokens from masked ones. This "C-Mask" method is shown to accelerate training convergence and improve accuracy.
  • Minimum Word Error (MWE) Training: The core contribution is adapting the MWE criterion for NAT ASR. Unlike cross-entropy (CE) training, which optimizes token-level probabilities, MWE directly minimizes the Word Error Rate (WER), the standard ASR evaluation metric. A key challenge here is generating a diverse set of "N-best" hypotheses to approximate the true output space for calculating the MWE loss. They explore two methods for generating these hypotheses: "Output-Nbest" (generating N-best lists from the masked subspace) and "Input-Nbest" (generating N-best lists by masking the CTC output). The final training objective is an interpolation of CE and MWE losses.

Datasets

The experiments are conducted on the SEAME corpus, a challenging English-Mandarin code-switching dataset comprising approximately 110 hours of spontaneous speech collected from Singapore and Malaysia. The corpus is divided into training, validation, and two test sets: evalman (Mandarin-dominated) and evalsge (English-dominated).

Key Insights and Ideas

  • MWE is a better fit for ASR evaluation: The paper highlights that CE training, while standard, is not directly aligned with the ASR evaluation metric (WER). MWE training, by directly optimizing for lower word errors, offers a more principled approach.
  • Code-switching points are critical: The effectiveness of targeted masking strategies at code-switching points suggests that these transitions are particularly difficult for NAT models and require specific attention during training.
  • Generating N-best hypotheses for MWE is non-trivial: Adapting MWE to NAT requires careful consideration of how to generate a representative set of hypotheses, as the independent output nature of NAT differs from AR models. The exploration of "Input-Nbest" and "Output-Nbest" demonstrates this challenge.
  • NAT can be significantly boosted: The paper shows that with appropriate techniques, NAT models can achieve performance closer to AR models, while retaining their speed advantage.

Key Results

  • Improved Baseline: The proposed code-switching-based masking methods (F-Mask, M-Mask, E-Mask, etc.) yield improved baseline performance for the NAT model compared to a general random masking (R-Mask) approach.
  • MWE Training Gains: The MWE training criterion, when applied to the best NAT baseline, consistently improves performance over CE-trained models. For example, on the evalsge test set, the NAT+MWE (Input-Nbest) model achieves 27.29% MER, compared to 27.34% for the NAT+CE (Output-Nbest) baseline. While the absolute gains might seem small, they represent a reduction in word errors.
  • Speed Advantage: The NAT models achieve a Real-Time Factor (RTF) of 0.05, which is over 10x faster than the autoregressive Transformer (AT) model's RTF of 0.68.
  • Code-Switching Point Performance: Table 3 indicates that NAT models still struggle more with code-switching points compared to AT models, suggesting room for further improvement in this specific aspect.

Limitations and Future Work

  • Gap with AR Models: Despite improvements, the proposed NAT methods still exhibit a performance gap in terms of MER compared to the state-of-the-art autoregressive Transformer (AT) models.
  • N-best Generation Mismatch: The authors acknowledge that the N-best hypothesis generation methods used for MWE training might be slightly mismatched with the masking strategies employed during decoding. This could potentially compromise performance.
  • Future Directions: The authors plan to explore more sophisticated N-best list generation methods to further improve MER reduction. They also aim to investigate more advanced techniques to address the specific challenges of code-switching points within the NAT framework.

Summary updated

BibTeX
@inproceedings{peng2021minimum,
  author = {Yizhou Peng and Jicheng Zhang and Haihua Xu and Hao Huang and EngSiong Chng},
  title = {{Minimum Word Error Training For Non-Autoregressive Transformer-Based Code-Switching ASR}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  doi = {10.48550/arxiv.2110.03573},
}
Figure