Exploiting Low-Resource Code-Switching Data to Mandarin-English Speech Recognition Systems

Hou-An Lin, Chia-Ping ChenROCLING 2021

Introduction

Code-switching (CS)—the practice of alternating between two or more languages within a single conversation—is a prevalent linguistic phenomenon in multilingual societies. For Automatic Speech Recognition (ASR) systems, CS presents a significant challenge due to the mixing of distinct phonetic patterns and vocabularies. The primary obstacle in developing robust CS-ASR systems is the "low-resource" problem: while massive monolingual datasets exist, high-quality, natural code-switching data is scarce and expensive to collect. This research explores strategies to maximize the utility of limited CS data for Mandarin-English speech recognition.

Methodology

The core of the proposed system is an End-to-End (E2E) Transformer architecture. To address the data scarcity and the complexities of language switching, several key components were integrated:

Multi-task Learning with Language Identification (LID)

The model is trained to simultaneously perform speech recognition and language identification. By predicting the language (Mandarin or English) at each step, the encoder is forced to learn more discriminative features that characterize the specific phonetics of each language. This auxiliary task acts as a regularizer, helping the model distinguish between tonal Mandarin and non-tonal English structures.

The proposed E2E Transformer architecture with an integrated Language Identification (LID) classifier for multi-task learning.

Joint Decoding and Block Processing

The system employs a joint decoding strategy that combines scores from the Transformer's attention mechanism (Sequence-to-Sequence), a Connectionist Temporal Classification (CTC) module, and an external Language Model (LM). Furthermore, the model utilizes contextual block processing, which handles audio in discrete segments rather than global attention. This approach is not only computationally efficient but also facilitates streaming ASR applications.

Visualization of the block-based decoding process across different encoder frames, showing the progression of character predictions.

Data Strategy

The researchers leveraged a two-stage training process to overcome the lack of CS data:

  1. Pre-training: The model was first trained on a large-scale monolingual Mandarin corpus (~221.84 hours), including datasets like AISHELL-1, AISHELL-2, and NER-Trs-Vol1. This provided a robust acoustic foundation.
  2. Fine-tuning: The pre-trained model was then fine-tuned on a specialized "Course" dataset derived from online educational videos. This target dataset consists of only 3.03 hours of training data where instructors naturally switch between Mandarin and English.

Results

The effectiveness of these strategies was measured using the Character Error Rate (CER). The results demonstrate a clear cumulative benefit from each component:

Model Configuration CER (%)
Baseline Transformer 28.7%
Transformer + LID 27.8%
Transformer + LM 27.3%
Transformer + LID + LM 26.5%
Transfer Learning (Pre-trained) + LM 23.9%

The most significant improvement came from transfer learning, which reduced the CER from 28.7% to 23.9%, a relative error reduction of approximately 16.7%. This highlights that a strong monolingual foundation is crucial when target domain data is extremely limited.

Conclusion

This study demonstrates that effective Mandarin-English code-switching ASR can be achieved even with very limited specialized data. By combining multi-task learning (LID), transfer learning from large monolingual corpora, and joint decoding with language models, the system significantly improved recognition accuracy. Future work will focus on scaling the CS data, adapting language models to technical vocabularies, and increasing the granularity of the LID component to handle rapid word-level switching.

Summary updated

BibTeX
@inproceedings{lin2021exploiting,
  author = {Hou-An Lin and Chia-Ping Chen},
  title = {{Exploiting Low-Resource Code-Switching Data to Mandarin-English Speech Recognition Systems}},
  booktitle = {ROCLING},
  year = {2021},
}
Figure