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

An Empirical Study of Instruction-tuning Large Language Models in Chinese

Qingyi Si, Tong Wang, Zheng Lin, Xu Zhang, Yanan Cao, Weiping Wang

Abstract

The success of ChatGPT validates the potential of large language models (LLMs) in artificial general intelligence (AGI). Subsequently, the release of LLMs has sparked the open-source community’s interest in instruction-tuning, which is deemed to accelerate ChatGPT’s replication process. However, research on instruction-tuning LLMs in Chinese, the world’s most spoken language, is still in its early stages. Therefore, this paper makes an in-depth empirical study of instruction-tuning LLMs in Chinese, which can serve as a cookbook that provides valuable findings for effectively customizing LLMs that can better respond to Chinese instructions. Specifically, we systematically explore the impact of LLM bases, parameter-efficient methods, instruction data types, which are the three most important elements for instruction-tuning. Besides, we also conduct experiment to study the impact of other factors, e.g., chain-of-thought data and human-value alignment. We hope that this empirical study can make a modest contribution to the open Chinese version of ChatGPT. This paper will release a powerful Chinese LLM that is comparable to ChatGLM.

Introduction

The emergence of ChatGPT and the subsequent release of open-source models like LLaMA have revolutionized the field of Artificial Intelligence. However, much of the foundational research and high-quality instruction data have been predominantly English-centric. For the Chinese-speaking world, replicating this success is not a straightforward task. Challenges include the limited Chinese exposure of popular base models and a lack of systematic understanding regarding which tuning strategies and data types yield the best results for Chinese linguistic nuances.

This study, presented at EMNLP 2023, addresses these gaps by providing a comprehensive "cookbook" for instruction-tuning LLMs in Chinese. By conducting a massive "grid search" over base models, parameter-efficient tuning methods, and diverse datasets, the authors offer actionable insights for developing robust Chinese language models.

Methodology: The Instruction-tuning Triplet

The researchers frame the optimization of LLMs as finding the best Instruction-tuning Triplet (m, p, d), where:

  • Model Base (m): The study compares LLaMA, Bloom, and MOSS to determine which architecture provides the strongest foundation for Chinese.
  • Parameter-efficient method (p): Given the high cost of full fine-tuning, the authors evaluate several PEFT methods, including LoRA, AdaLoRA, prompt tuning, p-tuning, prefix tuning, and various adapter variants like SadapterP and SadapterH.
  • Dataset (d): A wide array of Chinese instruction sets are tested, ranging from human-generated chats (ShareGPT-zh) to GPT-distilled instructions (Alpaca-GPT4 and Belle).

To evaluate these models, two primary benchmarks are used: Belle-eval, which tests general instruction-following capabilities across 1,000 diverse instructions, and MMCU, a benchmark of 11,845 multiple-choice questions designed to test professional knowledge in fields such as medicine, law, and education.

Optimizing Parameter-Efficient Tuning

A critical component of the methodology is identifying the most effective PEFT method. While LoRA is widely considered the industry standard, the authors' experiments revealed interesting variations in convergence and final performance across different techniques.

Loss curves of various parameter-efficient tuning methods.

As shown in the loss curves, methods like SadapterH (a sequential adapter) demonstrated superior convergence characteristics, often leading to better final model performance than more common methods.

Key Insights and Results

Pre-training is the Foundation

The study's most significant finding is that the quality and composition of the pre-training data are more important than the model's specific architecture. For Chinese tasks, Bloom consistently outperformed LLaMA. This is attributed to Bloom’s pre-training corpus, ROOTS, which contains 261B tokens of Chinese data—a stark contrast to LLaMA's English-heavy training set.

Performance comparison of different base models before and after instruction tuning on Belle-eval and MMCU.

The results in the figure above illustrate that Bloom-based models start with a higher baseline and achieve greater gains after instruction tuning compared to LLaMA or MOSS-base.

Quality Over Quantity in Data

Another crucial insight is that high-quality, distilled data is more effective than massive, unrefined datasets. The Alpaca-GPT4 dataset, containing only 49,000 samples, produced results comparable to or even better than the Belle dataset, which is over 30 times larger (1.54 million samples). This underscores the importance of data cleaning and using high-quality teacher models like GPT-4 for distillation.

Reasoning and Alignment

The authors also explored the impact of specialized data:

  • Chain-of-Thought (CoT): Adding CoT data significantly improved performance on reasoning-heavy tasks like Math and Coding.
  • Human-Value Alignment: While essential for safety and reducing toxicity, aligning the model with human values resulted in a slight performance dip on standard benchmarks, highlighting the ongoing challenge of balancing helpfulness with harmlessness.

Conclusion

This empirical study provides a clear roadmap for effectively customizing LLMs for the Chinese language. By selecting the right base model (like Bloom) and utilizing high-quality instruction data, researchers can develop models that rival established leaders like ChatGLM while remaining computationally efficient through PEFT methods. The authors' optimized model achieved a score of 63.1 on Belle-eval, nearly matching ChatGLM's 63.4, despite having far fewer trainable parameters. This work serves as a vital contribution to the open-source Chinese AI community.

Summary updated

BibTeX
@inproceedings{si2023empirical,
  author = {Qingyi Si and Tong Wang and Zheng Lin and Xu Zhang and Yanan Cao and Weiping Wang},
  title = {{An Empirical Study of Instruction-tuning Large Language Models in Chinese}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=aQXtp9wg72},
}
Figure