Code-Switched Text Synthesis in Unseen Language Pairs

I-Hung Hsu, Avik Ray, Shubham Garg, Nanyun Peng, Jing Huang
5/26/2023
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Existing efforts on text synthesis for code-switching mostly require training on code-switched texts in the target language pairs, limiting the deployment of the models to cases lacking code-switched data. In this work, we study the problem of synthesizing code-switched texts for language pairs absent from the training data. We introduce GLOSS, a model built on top of a pre-trained multilingual machine translation model (PMMTM) with an additional code-switching module. This module, either an adapter or extra prefixes, learns code-switching patterns from code-switched data during training, while the primary component of GLOSS, i.e., the PMMTM, is frozen. The design of only adjusting the code-switching module prevents our model from overfitting to the constrained training data for code-switching. Hence, GLOSS exhibits the ability to generalize and synthesize code-switched texts across a broader spectrum of language pairs. Additionally, we develop a self-training algorithm on target language pairs further to enhance the reliability of GLOSS. Automatic evaluations on four language pairs show that GLOSS achieves at least 55% relative BLEU and METEOR scores improvements compared to strong baselines. Human evaluations on two language pairs further validate the success of GLOSS.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hsu2023codeswitched,
  title  = {Code-Switched Text Synthesis in Unseen Language Pairs},
  author = {I-Hung Hsu and Avik Ray and Shubham Garg and Nanyun Peng and Jing Huang},
  year   = {2023},
  eprint = {2305.16724},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.16724v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.16724.svg)](https://codeofpaper.com/paper/2305.16724)

Discussion