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

单语基础模型的双语适应

Bilingual Adaptation of Monolingual Foundation Models

Cerebras Systems(瑟雷布拉斯系统公司);G42;Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
Gurpreet Gosal, Yishi Xu, Gokul Ramakrishnan, Rituraj Joshi, Avraham Sheinin, Zhiming, Chen, Biswajit Mishra, Natalia Vassilieva, Joel Hestness, Neha Sengupta, … 展开作者

Gurpreet Gosal, Yishi Xu, Gokul Ramakrishnan, Rituraj Joshi, Avraham Sheinin, Zhiming, Chen, Biswajit Mishra, Natalia Vassilieva, Joel Hestness, Neha Sengupta, Sunil Kumar Sahu, Bokang Jia, Onkar Pandit, Satheesh Katipomu, Samta Kamboj, Samujjwal Ghosh, Rahul Pal, Parvez Mullah, Soundar Doraiswamy, Mohamed El Karim Chami, Preslav Nakov

AI总结:

提出一种将单语LLM适应到另一语言的高效两阶段方法,通过扩展词汇表和双语持续预训练,在保留原语言能力的同时获得新语言能力,实现成本效益的跨语言迁移。

摘要:

我们提出了一种将单语大语言模型(LLM)适应到另一种语言的高效方法,以解决灾难性遗忘和分词器限制的挑战。本研究重点将 Llama 2 适应到阿拉伯语。我们的两阶段方法首先扩展词汇表并仅训练嵌入矩阵,随后在双语语料库上进行全模型的持续预训练。通过在阿拉伯语和英语语料库混合数据上持续预训练,该模型在保留英语能力的同时获得了阿拉伯语的能力。我们的方法在阿拉伯语上取得了显著提升,在英语上略有增强,证明了具有成本效益的跨语言迁移。我们对嵌入初始化技术、数据混合比例和学习率进行了消融研究,并发布了详细的训练配方。为了证明该方法的通用性,我们还将 Llama 3 8B 适应到阿拉伯语,将 Llama 2 13B 适应到印地语。

英文摘要:

We present an efficient method for adapting a monolingual Large Language Model (LLM) to another language, addressing challenges of catastrophic forgetting and tokenizer limitations. We focus this study on adapting Llama 2 to Arabic. Our two-stage approach begins with expanding the vocabulary and training only the embeddings matrix, followed by full model continual pre-training on a bilingual corpus. By continually pre-training on a mix of Arabic and English corpora, the model retains its proficiency in English while acquiring capabilities in Arabic. Our approach results in significant improvements in Arabic and slight enhancements in English, demonstrating cost-effective cross-lingual transfer. We perform ablations on embedding initialization techniques, data mix ratios, and learning rates and release a detailed training recipe. To demonstrate generalizability of this approach we also adapted Llama 3 8B to Arabic and Llama 2 13B to Hindi.

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

↑