Code-Switching Language Modeling with Bilingual Word Embeddings: A Case Study for Egyptian Arabic-English

Injy Hamed, Moritz Zhu, Mohamed Elmahdy, Slim Abdennadher, Ngoc Thang VuSPECOM 2019 · OpenReview

TL;DR

This paper tackles the challenge of building language models for code-switched (CS) speech, specifically for Egyptian Arabic-English, where data is scarce. They propose a novel method for learning bilingual word embeddings using only monolingual and a small amount of CS data, which significantly improves language modeling performance compared to existing methods.

What Problem Does This Paper Address?

Code-switching, the mixing of languages within a conversation, is a common phenomenon in multilingual communities, particularly in Egypt with Arabic and English. This mixing poses a significant challenge for Natural Language Processing (NLP) tasks, especially language modeling (LM), which is crucial for applications like Automatic Speech Recognition (ASR). The primary hurdle is the scarcity of code-switched data, leading to data sparsity issues that degrade LM performance. Existing approaches often rely on extensive cross-lingual resources like parallel corpora or bilingual lexicons, which are not readily available for many low-resource language pairs like Egyptian Arabic-English. This paper aims to bridge this gap by developing effective bilingual word embeddings that can improve CS LM with minimal supervision.

Methods

The authors explore several state-of-the-art bilingual word embedding techniques, categorizing them by their reliance on cross-lingual supervision:

  • Supervised Approaches: These methods require varying degrees of parallel data (word-aligned or sentence-aligned) or bilingual lexicons. Examples include BiCVM (using sentence-aligned data), BiSkip (using word alignments), and BiCCA (using bilingual lexicons).
  • Proposed Approach (Bi-CS): The core innovation is a simple yet effective method that learns bilingual word representations without any parallel data. It leverages monolingual data from both languages and a small amount of code-switched data. This CS data acts as a "glue" to bring the monolingual embeddings closer in a shared vector space. The Bi-CS model is trained using Skip-gram and CBOW architectures.

The paper also proposes an extension, BiCCAonBiSkip, which combines BiCCA and BiSkip to leverage the strengths of both.

For language modeling, they use TheanoLM (TLM) and adapt its architecture to incorporate pre-trained bilingual word embeddings by initializing an embedding layer with these embeddings and then fine-tuning them along with the rest of the network.

Datasets

  • CS Data for LM Evaluation: An extended version of the Egyptian Arabic speech transcriptions from a previous work [15]. This corpus contains 14,191 Arabic and 7,758 English words, with a significant portion (66.3%) being code-switched sentences.
  • Resources for Bilingual Embeddings Training:
    • Social Media Data: Text gathered from Facebook pages related to Egypt and tweets from Twitter (location restricted to Cairo). This corpus comprises 1,521,818 monolingual Arabic, 270,741 monolingual English, and 123,445 code-switched sentences.
  • Parallel Data: Egyptian Arabic-English aligned sentences from the LDC's BBN Arabic-Dialect/English Parallel Text [37] (38,154 sentences).
  • Bilingual Lexicon: Egyptian Arabic-English translation pairs from the Lisaan Masy dictionary.
  • Thesaurus: An Egyptian Arabic-English thesaurus from the Lisaan Masry dictionary used for intrinsic evaluation.

Key Insights and Ideas

  • CS Data as a Bridge: The paper demonstrates that even a small amount of code-switched data can be highly effective in bridging the gap between monolingual embeddings, enabling better bilingual representations.
  • Unsupervised Advantage: The proposed Bi-CS method, which requires no parallel data or lexicons, surprisingly outperforms models that rely on richer cross-lingual supervision, highlighting the power of leveraging available CS data.
  • Task-Dependent Performance: Different bilingual embedding models exhibit varying performance across tasks (language modeling vs. concept categorization), suggesting that the "best" model is context-dependent.
  • Word Embeddings Fuse Senses: The paper acknowledges that standard word embeddings fuse multiple word senses into a single representation, hinting at future work to incorporate sense-specific embeddings.

Key Results

  • Language Modeling Improvement: All bilingual word embeddings significantly improved the language modeling perplexity (PPL) compared to a baseline LM with randomly initialized embeddings.
  • Bi-CS Superiority: The proposed Bi-CS approach achieved the best results, yielding a 33.5% relative improvement in perplexity on the test set in the first experiment.
  • Intrinsic Evaluation: Bi-CS also performed well on intrinsic evaluations (concept categorization), demonstrating its effectiveness in creating high-quality bilingual word representations.
  • Experiment 2: A second experiment, using only social media CS text for training, confirmed the effectiveness of bilingual embeddings, with Bi-CS again showing the lowest PPL (22.4% relative improvement).

Limitations and Future Work

  • Limitations:
    • The paper notes that standard word embeddings fuse multiple word senses, which might limit performance on tasks sensitive to word ambiguity.
  • The second experiment, while confirming effectiveness, showed very high PPLs due to testing on speech text while training on social media text, indicating a domain mismatch.
  • Future Work:
    • Investigate incorporating different word senses into the embeddings to improve performance on semantic tasks.
  • Explore the effectiveness of bilingual word embeddings for language modeling in the context of automatic speech recognition (ASR).

Summary updated

BibTeX
@misc{hamed2019code,
  author = {Injy Hamed and Moritz Zhu and Mohamed Elmahdy and Slim Abdennadher and Ngoc Thang Vu},
  title = {{Code-Switching Language Modeling with Bilingual Word Embeddings: A Case Study for Egyptian Arabic-English}},
  year = {2019},
  eprint = {1909.10892},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.10892},
}
Figure