Learning to Recognize Code-switched Speech Without Forgetting Monolingual Speech Recognition

Sanket Shah, Basil Abraham, Gurunath Reddy M, Sunayana Sitaram, Vikas JoshiarXiv 2020

Introduction

In multilingual societies, speakers frequently engage in code-switching—the practice of alternating between two or more languages within a single conversation or even a single sentence (e.g., "Hinglish" or "Tanglish"). While Automatic Speech Recognition (ASR) has improved significantly for single languages, code-switched speech presents unique challenges: a lack of transcribed data, a massive combined vocabulary, and phonetic similarities between languages that can confuse models.

A critical hurdle identified by researchers is catastrophic forgetting. When a high-performing monolingual ASR model is fine-tuned on code-switched data, its performance on the original monolingual language often degrades significantly. Since code-switched and monolingual speech usually co-occur in the same environment, a robust model should ideally handle both without compromise. This paper introduces a regularization approach using Kullback-Leibler (KL) divergence and the "Learning Without Forgetting" (LWF) framework to improve code-switched performance while preserving monolingual accuracy.

Methodology

The authors employ an end-to-end architecture consisting of two Convolutional Neural Network (CNN) layers followed by five bidirectional long short-term memory (BLSTM) layers, trained using Connectionist Temporal Classification (CTC) loss. To combat forgetting during adaptation, they explore two main strategies:

1. Regularization via KL Divergence

When fine-tuning on code-switched data, a penalty term is added to the loss function. This term, based on KL divergence, measures the difference between the new model's output distribution and the original monolingual model's distribution. Minimizing this difference forces the model to retain its prior knowledge of monolingual speech patterns.

2. Learning Without Forgetting (LWF)

LWF is a three-step adaptation strategy particularly useful when original monolingual training data is unavailable—a common scenario in industry due to data privacy or storage constraints.

The three-step LWF adaptation strategy: Initial Step, Warmup, and Fine-tuning.
  • Initial Step: The original model generates "soft labels" for the new code-switched data.
  • Warmup: New task-specific layers (e.g., a new Softmax layer) are added and trained while the rest of the model remains frozen.
  • Fine-tuning: All layers are unfrozen and the entire network is trained jointly on the new task using both ground-truth labels and the soft labels from the original model.

Experimental Setup

The study focuses on three Indian languages paired with English: Tamil (TA), Telugu (TE), and Gujarati (GU).

  • Monolingual Data: 170–241 hours per language.
  • Code-switched Data: 177–243 hours per language pair.
  • Metric: The Code Mixing Index (CMI) was used to quantify language mixing. Telugu-English was found to be the most heavily mixed, while Gujarati-English was the least.

Key Results and Insights

The researchers measured performance using Word Error Rate (WER), where lower values indicate better performance.

Regularization Success

Using "Scaled KLD" regularization, the team achieved significant improvements. For Tamil, the monolingual WER improved from 50.03% (standard fine-tuning) to 48.38%, while the code-switched WER dropped from 55.68% to 53.63%.

WER results for different regularization parameters and Scaled KLD across test sets.

LWF vs. Fine-tuning

In Telugu-English experiments, the LWF approach achieved a monolingual WER of 45.70%, outperforming standard fine-tuning (46.43%) and nearly matching the performance of a "pooled" model that had access to all data simultaneously.

Key Observations

  • Fine-tuning Trade-offs: Simple fine-tuning consistently improves code-switched WER but causes significant regression in monolingual performance.
  • Data Pooling: While training on a pooled dataset of both monolingual and code-switched speech is a strong baseline, it requires simultaneous access to all data, which is not always feasible.
  • Optimal Exposure: Interestingly, fine-tuning on only 25% of available code-switched data often yielded better monolingual accuracy than using 100%, suggesting that over-exposure to the new task accelerates forgetting.

Conclusion and Future Work

The LWF framework and KL divergence regularization effectively mitigate catastrophic forgetting in code-switched ASR. Future research will explore task-specific BLSTM layers and adversarial training to create language-agnostic internal representations. The authors also emphasize the importance of reporting monolingual test results in code-switching research to ensure overall model robustness.

Summary updated

BibTeX
@misc{shah2020learning,
  author = {Sanket Shah and Basil Abraham and Gurunath Reddy M and Sunayana Sitaram and Vikas Joshi},
  title = {{Learning to Recognize Code-switched Speech Without Forgetting Monolingual Speech Recognition}},
  year = {2020},
  eprint = {2006.00782},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.00782},
}
Figure