arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.07328cs.CLcs.AI

中文指令微调大型语言模型的实证研究

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

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);APUS AiLMe Lab(APUS AiLMe实验室)

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

AI总结:

本文对中文指令微调大型语言模型进行了深入实证研究,系统探讨了LLM基座、参数高效方法、指令数据类型等关键要素及思维链数据、人类价值对齐等因素的影响,并发布了与ChatGLM相当的中文LLMs。

摘要:

ChatGPT的成功验证了大型语言模型(LLMs)在通用人工智能(AGI)中的潜力。随后,LLMs的发布引发了开源社区对指令微调的兴趣,这被认为能加速ChatGPT的复制过程。然而,针对世界上使用人数最多的语言——中文的指令微调LLMs研究仍处于早期阶段。因此,本文对中文指令微调LLMs进行了深入的实证研究,可作为提供有价值发现的指南,以有效定制能更好响应中文指令的LLMs。具体而言,我们系统探讨了LLM基座、参数高效方法和指令数据类型的影响,这是指令微调的三个最重要元素。此外,我们还进行了实验研究其他因素的影响,例如思维链数据和人类价值对齐。我们希望这项实证研究能为开源中文版ChatGPT做出微薄贡献。本文将发布一个与ChatGLM相当的强大中文LLMs。代码和数据可在https://github.com/PhoebusSi/Alpaca-CoT获取。

英文摘要:

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 LLMs that is comparable to ChatGLM. The code and data are available at https://github.com/PhoebusSi/Alpaca-CoT.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑