NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Developing and Utilizing a Large-Scale Cantonese Dataset for Multi-Tasking in Large Language Models

Jiyue Jiang, Alfred Kar Yin Truong, Yanyu Chen, Qinghang Bao, Sheng Wang, Pengan Chen, Jiuming Wang, Lingpeng Kong, Yu Li, Chuan Wu

Abstract: High-quality data resources play a crucial role in learning large language models (LLMs), particularly for low-resource languages like Cantonese. Despite having more than 85 million native speakers, Cantonese is still considered a low-resource language in the field of natural language processing (NLP) due to factors such as the dominance of Mandarin, lack of cohesion within the Cantonese-speaking community, diversity in character encoding and input methods, and the tendency of overseas Cantonese speakers to prefer using English. In addition, rich colloquial vocabulary of Cantonese, English loanwords, and code-switching characteristics add to the complexity of corpus collection and processing. To address these challenges, we collect Cantonese texts from a variety of sources, including open source corpora, Hong Kong-specific forums, Wikipedia, and Common Crawl data. We conduct rigorous data processing through language filtering, quality filtering, content filtering, and de-duplication steps, successfully constructing a high-quality Cantonese corpus of over 2 billion tokens for training large language models. We further refined the model through supervised fine-tuning (SFT) on curated Cantonese tasks, enhancing its ability to handle specific applications. Upon completion of the training, the model achieves state-of-the-art (SOTA) performance on four Cantonese benchmarks. After training on our dataset, the model also exhibits improved performance on other mainstream language tasks.

Introduction

Despite its global speaker base, Cantonese remains classified as a "low-resource" language in the NLP landscape. This classification stems from a significant disparity between formal written Chinese and colloquial spoken Cantonese, as well as the frequent use of English code-switching. Existing datasets are often too small to capture the language's idiomatic richness. To bridge this gap, researchers developed YueData, a 2-billion-token corpus, and YueTung-7b, a model specifically optimized for Cantonese reasoning and multi-tasking.

The YueData Pipeline

Building a high-quality Cantonese corpus required a multi-stage pipeline designed to transform raw web scrapes into a gold-standard training set. The process began with targeting authentic, colloquial sources such as LIHKG (a popular Hong Kong forum), OpenRice (restaurant reviews), and archived news media.

Overview of the YueTung training and evaluation pipeline, illustrating data collection, processing, and model fine-tuning stages.

As shown in the pipeline above, the data underwent stringent filtering:

  1. Language Identification: Using Fast-langid to isolate Cantonese text.
  2. Heuristic Screening: Applying "Gopher-style" rules to remove low-quality text based on symbol-to-word ratios and formatting density.
  3. Deduplication: Utilizing MinHash and Locality Sensitive Hashing (LSH) to eliminate redundant content.
  4. Supervised Fine-Tuning (SFT): Curating 1.29 billion tokens of instruction-tuning data, including high-quality translations of Chinese datasets into Cantonese.

Technical Innovations in Training

To handle the inherent noise of web-scraped data, the researchers modified the AdamW optimizer by decreasing the $\beta_2$ parameter. This adjustment allows the model to adapt more quickly to recent gradients, effectively minimizing the influence of noisy outliers during the continuous pre-training of the Qwen-2.5-7b base model.

Results and the "Linguistic Dividend"

YueTung-7b achieved state-of-the-art (SOTA) performance across four Cantonese-specific benchmarks: Yue-TruthfulQA, Yue-GSM8K (mathematics), Yue-ARC-C (science), and Yue-MMLU (general knowledge). Notably, on Yue-GSM8K, the model reached an accuracy of 84.65% (0-shot), a significant improvement over the base model's 63.84%.

Performance comparison of YueTung-7b against baseline and state-of-the-art models across Cantonese, English, and Chinese benchmarks.

A key finding of this research is the "Linguistic Dividend": intensive training on high-quality Cantonese data actually boosted performance on English and Standard Chinese tasks. For instance, on English-TruthfulQA (0-shot), the model's performance jumped from 9.46% to 37.41%. This suggests that high-quality data in a low-resource language can provide unique reasoning patterns that enhance a model's overall intelligence across all its known languages.

Conclusion and Future Directions

While YueTung-7b sets a new standard for Cantonese LLMs, challenges remain regarding regional dialectal variations (e.g., differences between Hong Kong and Guangzhou Cantonese) and the evolving nature of slang. Future work will focus on expanding the dataset to include more diverse regional dialects and improving the handling of complex, mixed-mode code-switching sentences.

Summary updated

BibTeX
@inproceedings{jiang2025developing,
  author = {Jiyue Jiang and Alfred Kar Yin Truong and Yanyu Chen and Qinghang Bao and Sheng Wang and Pengan Chen and Jiuming Wang and Lingpeng Kong and Yu Li and Chuan Wu},
  title = {{Developing and Utilizing a Large-Scale Cantonese Dataset for Multi-Tasking in Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=DXDHctt8cc},
}
Figure