Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languages

Zheng-Xin Yong, Ruochen Zhang, Jessica Zosa Forde, Skyler Wang, Arjun Subramonian +10 more
3/23/2023
88 citations
cs.CLcs.AI

No official code found. Best implementation: pnnbao97/sea-g2p (117 stars, Rust, Apache-2.0, Rust, last commit 2026-03-29).

Abstract

While code-mixing is a common linguistic practice in many parts of the world, collecting high-quality and low-cost code-mixed data remains a challenge for natural language processing (NLP) research. The recent proliferation of Large Language Models (LLMs) compels one to ask: how capable are these systems in generating code-mixed data?

Show full abstract

In this paper, we explore prompting multilingual LLMs in a zero-shot manner to generate code-mixed data for seven languages in South East Asia (SEA), namely Indonesian, Malay, Chinese, Tagalog, Vietnamese, Tamil, and Singlish. We find that publicly available multilingual instruction-tuned models such as BLOOMZ and Flan-T5-XXL are incapable of producing texts with phrases or clauses from different languages. ChatGPT exhibits inconsistent capabilities in generating code-mixed texts, wherein its performance varies depending on the prompt template and language pairing. For instance, ChatGPT generates fluent and natural Singlish texts (an English-based creole spoken in Singapore), but for English-Tamil language pair, the system mostly produces grammatically incorrect or semantically meaningless utterances. Furthermore, it may erroneously introduce languages not specified in the prompt. Based on our investigation, existing multilingual LLMs exhibit a wide range of proficiency in code-mixed data generation for SEA languages. As such, we advise against using LLMs in this context without extensive human checks.

View on arXivView PDF

Code Implementations(1)

pnnbao97/sea-g2pCommunity70%
RustApache-2.0

Fast multilingual text-to-phoneme converter for South East Asian languages.

11725Rust, PythonMar 9, 20268 months agoApache-2.0
g2pttsvietnamese

Similar Papers

Cite this paper

@article{yong2023prompting,
  title  = {Prompting Multilingual Large Language Models to Generate Code-Mixed Texts: The Case of South East Asian Languages},
  author = {Zheng-Xin Yong and Ruochen Zhang and Jessica Zosa Forde and Skyler Wang and Arjun Subramonian and Holy Lovenia and Samuel Cahyawijaya and Genta Indra Winata and Lintang Sutawika and Jan Christian Blaise Cruz and Yin Lin Tan and Long Phan and Rowena Garcia and Thamar Solorio and Alham Fikri Aji},
  year   = {2023},
  eprint = {2303.13592},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.13592v4}
}

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/2303.13592.svg)](https://codeofpaper.com/paper/2303.13592)

Discussion