Multilingual self-supervised speech representations improve the speech recognition of low-resource African languages with codeswitching

Tolulope Ogunremi, Christopher D Manning, Dan Jurafsky

Abstract

While many speakers of low-resource languages regularly code-switch between their languages and other regional languages or English, datasets of codeswitched speech are too small to train bespoke acoustic models from scratch or do language model rescoring. Here we propose finetuning self-supervised speech representations such as wav2vec 2.0 XLSR to recognize code-switched data. We find that finetuning self-supervised multilingual representations and augmenting them with n-gram language models trained from transcripts reduces absolute word error rates by up to 20% compared to baselines of hybrid models trained from scratch on code-switched data. Our findings suggest that in circumstances with limited training data finetuning self-supervised representations is a better performing and viable solution.

Introduction

Code-switching—the practice of alternating between two or more languages in a single conversation—is a global linguistic reality for over half the world's population. However, Automatic Speech Recognition (ASR) systems frequently fail in these contexts, particularly for low-resource African languages. The primary obstacles are the extreme scarcity of transcribed code-switched speech and the difficulty of modeling the unpredictable nature of language switching.

This research explores whether large-scale "foundation models," pre-trained on massive amounts of unlabeled multilingual audio, can overcome these data bottlenecks. By fine-tuning the wav2vec 2.0 XLSR model, the authors demonstrate a significant leap in performance for South African languages.

Methodology

The core approach shifts from training traditional hybrid models from scratch to fine-tuning a pre-trained multilingual representation. The researchers utilized wav2vec 2.0 XLSR, which was pre-trained on 53,000 hours of speech across 128 languages.

Model Architecture and Training

The model was fine-tuned on small datasets (3–5 hours per language pair) using Connectionist Temporal Classification (CTC) loss. To explore the impact of explicit language information, the researchers implemented a multi-task learning setup with a Language Identification (LID) head alongside the primary CTC head.

Model architecture featuring a Wav2vec2 encoder with multi-task heads for Language ID and CTC loss.

Decoding was performed using both a "greedy" approach and a more robust method augmented with simple n-gram (bigram and trigram) language models built via KenLM.

Data and Experimental Setup

The study focused on four South African languages frequently code-switched with English: isiZulu, isiXhosa, Sesotho, and Setswana. Two primary datasets were used:

  1. Soap Opera Corpus: Conversational, in-domain code-switched speech (3–5 hours per pair).
  2. NCHLT Speech Corpus: Formal, monolingual "read" speech (approx. 56 hours per language).

Results and Discussion

The experimental results revealed several counter-intuitive but critical insights for low-resource ASR.

The Impact of Data Domain and Multi-pair Training

A key finding was that domain relevance outweighs data volume. Adding 56 hours of monolingual read speech actually degraded performance on the casual soap opera data. Conversely, training on all four African language pairs simultaneously improved results, likely due to shared linguistic features within the Southern Bantu family.

Word Error Rate (WER) comparison across language pairs, showing the benefit of multi-pair training over monolingual augmentation.

Language Identification and Modeling

Explicit Language Identification (LID) did not improve accuracy. The model appears to learn language distinctions implicitly, and forcing a separate LID task may create competition for model capacity. Furthermore, while the raw XLSR model struggled, the addition of a simple trigram language model provided a massive boost, reducing absolute WER by up to 30% in some instances.

Conclusion

Fine-tuning multilingual self-supervised representations like XLSR, combined with simple n-gram language models, represents a new state-of-the-art for code-switched African ASR. The proposed method achieved WERs between 21.7% and 23.4%, a substantial improvement over the 43.3%–48.7% range of previous hybrid baselines. While challenges remain—such as bridging the gap between read and conversational speech—this work provides a viable path forward for speech technology in multilingual, low-resource environments.

Summary updated

BibTeX
@inproceedings{ogunremi2023multilingual,
  author = {Tolulope Ogunremi and Christopher D Manning and Dan Jurafsky},
  title = {{Multilingual self-supervised speech representations improve the speech recognition of low-resource African languages with codeswitching}},
  booktitle = {CALCS @ EMNLP},
  year = {2023},
  url = {https://openreview.net/forum?id=mtrmzEoSRk},
}
Figure