Bailong:基于QLoRA与Zip-tie嵌入的双语迁移学习
Bailong: Bilingual Transfer Learning based on QLoRA and Zip-tie Embedding
AI总结:
本文提出Bailong,通过在Llama 2 7B上结合QLoRA与zip-tie嵌入初始化进行繁体中文二次预训练,并发布面向多轮对话的Bailong-instruct 7B及繁体中文评测基准Bailong-bench,在多项评测中取得有竞争力的表现。
摘要:
大语言模型(LLMs)已在各类自然语言处理应用中展现出卓越性能。然而,现有开源大语言模型大多主要基于英语数据进行预训练,其他语言的占比很少。多语言训练数据的不足导致这些模型在资源较少的语言上表现欠佳。此外,通过额外数据进行全参数微调来提升大语言模型在低资源语言上的性能,需要大量计算资源,这给研究机构和个人研究者带来了计算障碍。为此,研究者已提出参数高效微调和高级嵌入初始化等多种技术来应对这些挑战。在本工作中,我们将这些技术结合起来,以促进在以英语为主的开源大语言模型上进行跨语言迁移。为有效提升模型在繁体中文上的能力,我们利用QLoRA以及我们提出的zip-tie嵌入初始化方法,在Llama 2 7B上使用繁体中文数据进行了二次预训练。所得模型名为Bailong,代表基于qLOra和zip-tie embeddiNG的双语迁移学习(Bilingual trAnsfer learnIng based on qLOra and zip-tie embeddiNG)。我们发布了Bailong-instruct 7B,这是Bailong 7B经过微调并针对多轮对话场景优化的版本。鉴于繁体中文基准数据集的不足,我们进一步引入Bailong-bench,用于评估模型在繁体中文和英文任务中与人类偏好的对齐程度以及遵循指令的能力。在我们的评估中,与参数规模相近甚至更大的其他开源模型相比,Bailong-instruct 7B在Bailong-bench及其他基准数据集上表现出具有竞争力的性能。Bailong-instruct 7B和Bailong-bench已公开发布,旨在赋能社区在我们的工作基础上继续发展。
英文摘要:
Large language models (LLMs) have demonstrated exceptional performance in various NLP applications. However, the majority of existing open-source LLMs are pre-trained primarily on English data and little part of other languages. This deficiency in multilingual training data results in suboptimal performance when applied to languages with fewer available resources. Furthermore, enhancing the performance of LLMs on low-resource languages by full-parameter fine-tuning with additional data requires substantial computational resources, posing computational barriers for research organizations and individual researchers. Consequently, several techniques such as parameter-efficient tuning and advanced embedding initialization have been proposed to address these challenges. In this work, we combine them to facilitate cross-lingual transfer on English-dominated open-source LLM. To effectively enhance the model's proficiency in Traditional Chinese, we conduct secondary pre-training on Llama 2 7B with Traditional Chinese data by leveraging QLoRA and our proposed zip-tie embedding initialization. The resulting model called Bailong, which stands for Bilingual trAnsfer learnIng based on qLOra and zip-tie embeddiNG. We present Bailong-instruct 7B, a fine-tuned version of Bailong 7B optimized for multi-turn dialogue scenarios. Recognizing the inadequacy of benchmark datasets in Traditional Chinese, we further introduce Bailong-bench to assess the alignment of models with human preferences and the capability to follow instructions in both Traditional Chinese and English tasks. In our evaluation, Bailong-instruct 7B exhibits competitive performance on Bailong-bench and other benchmark datasets when compared to other open-source models of similar or even larger parameter sizes. Bailong-instruct 7B and Bailong-bench are publicly available with the aim of empowering the community to build upon our efforts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。