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,Holy Lovenia,Samuel Cahyawijaya,Genta Indra Winata,Lintang Sutawika,Jan Christian Blaise Cruz,Yin Lin Tan,Long Phan,Rowena Garcia,Thamar Solorio,Alham Fikri Aji
2023-09-13
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? 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.
Computation and Language,Artificial Intelligence
What problem does this paper attempt to address?
The paper aims to explore the capability of multilingual large language models (LLMs) in generating code-mixed text. Specifically, the researchers evaluate whether these models can generate code-mixed data for Southeast Asian languages in a zero-shot prompting scenario and analyze the performance of different models on this task. The study finds that while some models, such as ChatGPT, excel in generating specific types of code-mixed text, most publicly available multilingual models (e.g., BLOOMZ and Flan-T5-XXL) have limited ability to generate truly code-mixed data. Additionally, the research points out that existing multilingual models face numerous issues when generating code-mixed data, including grammatical errors, semantic inaccuracies, and the introduction of unspecified languages. Therefore, the authors recommend against using current LLMs to generate synthetic code-mixed data without thorough human review.