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

LLaMA超越英语:语言能力迁移的实证研究

LLaMA Beyond English: An Empirical Study on Language Capability Transfer

Fudan University(复旦大学)

Jun Zhao, Zhihao Zhang, Luhui Gao, Qi Zhang, Tao Gui, Xuanjing Huang

AI总结:

本文基于LLaMA实证研究语言能力向非英语迁移,发现词汇扩展、继续预训练和指令微调等关键因素下,仅用不到1%预训练数据即可在知识对齐和回答质量上达到先进水平。

摘要:

近年来,以ChatGPT为代表的大语言模型(LLMs)取得了显著进展,在一系列复杂任务中展现出卓越的能力。然而,许多主流LLM(如LLaMA)主要在英语主导的语料库上进行预训练,这限制了它们在非英语语言中的表现。本文聚焦于如何将语言生成和指令遵循能力有效迁移到非英语语言。为回答这一问题,我们基于LLaMA开展了广泛的实证研究,累计使用超过1440个GPU小时。我们分析了词汇扩展、进一步预训练和指令微调等关键因素对迁移的影响。为准确评估模型的知识水平,我们采用了四个广泛使用的标准化测试基准:C-Eval、MMLU、AGI-Eval和GAOKAO-Bench。此外,基于LLM-Eval(一个包含17个不同类别指令任务的基准),我们从准确性、流畅性、信息量、逻辑连贯性和无害性等方面对模型的回答质量进行了全面评估。评估结果表明,在知识对齐和回答质量两方面,使用不到1%的预训练数据即可达到与最先进的迁移模型相当的性能。此外,在十三种低资源语言上的实验结果也呈现出类似的趋势。我们期望实验揭示的结论能够帮助社区开发非英语LLM。

英文摘要:

In recent times, substantial advancements have been witnessed in large language models (LLMs), exemplified by ChatGPT, showcasing remarkable proficiency across a range of complex tasks. However, many mainstream LLMs (e.g. LLaMA) are pretrained on English-dominant corpus, which limits their performance in other non-English languages. In this paper, we focus on how to effectively transfer the capabilities of language generation and following instructions to a non-English language. To answer this question, we conduct an extensive empirical investigation based on LLaMA, accumulating over 1440 GPU hours. We analyze the impact of key factors such as vocabulary extension, further pretraining, and instruction tuning on transfer. To accurately assess the model's level of knowledge, we employ four widely used standardized testing benchmarks: C-Eval, MMLU, AGI-Eval, and GAOKAO-Bench. Furthermore, a comprehensive evaluation of the model's response quality is conducted, considering aspects such as accuracy, fluency, informativeness, logical coherence, and harmlessness, based on LLM-Eval, a benchmarks consisting instruction tasks from 17 diverse categories. Our evaluation results demonstrate that comparable performance to state-of-the-art transfer models can be achieved with less than 1% of the pretraining data, both in terms of knowledge alignment and response quality. Furthermore, the experimental outcomes across the thirteen low-resource languages also exhibit similar trends. We anticipate that the conclusions revealed by the experiments will aid the community in developing non-English LLMs.

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

↑