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

跨分词迁移与跨语言词汇表迁移:面向低资源自然语言处理的大语言模型语言适配

Trans-Tokenization and Cross-lingual Vocabulary Transfers: Language Adaptation of LLMs for Low-Resource NLP

Ghent University(根特大学);imec;KU Leuven(鲁汶大学);BeCode asbl;Internet and Data Science Lab (IDLab)(互联网与数据科学实验室(IDLab));AI & Data Bootcamp Ghent 2024(2024年根特人工智能与数据训练营)

François Remy, Pieter Delobelle, Hayastan Avetisyan, Alfiya Khabibullina, Miryam de Lhoneux, Thomas Demeester

AI总结:

本文提出跨分词迁移策略,通过源语言语义相似分词嵌入的加权平均初始化目标语言嵌入,实现高资源大语言模型向低资源语言的适配,并以Tweeties和Hydra系列模型验证其在多语言下游任务及零样本鞑靼语机器翻译中的有效性。

摘要:

低资源和中等资源语言的单语语言模型发展仍然受到高质量训练数据难以获取的阻碍。在本研究中,我们提出了一种新颖的跨语言词汇表迁移策略,称为跨分词迁移(trans-tokenization),旨在应对这一挑战并实现更高效的语言适配。我们的方法重点是将一个高资源单语大语言模型适配到一个未见过的目标语言,具体做法是利用源语言中语义相似的分词嵌入的加权平均来初始化目标语言的分词嵌入。为此,我们利用了一个同时覆盖源语言和目标语言的翻译资源。我们通过Tweeties这一系列跨分词迁移大语言模型验证了我们的方法,并展示了它们在一小组多样化语言的各种下游任务上具有竞争力的性能。此外,我们引入了Hydra大语言模型,即具有多个可切换语言建模头和嵌入表的模型,进一步扩展了我们跨分词迁移策略的能力。通过基于多语言模型TowerInstruct设计一个Hydra大语言模型,我们以零样本方式开发了一个最先进的鞑靼语机器翻译模型,完全绕过了对高质量平行数据的需求。这一突破对于像鞑靼语这样的低资源语言尤为重要,因为高质量平行数据很难获得。通过降低训练高质量模型所需的数据和时间要求,我们的跨分词迁移策略使得能够为更广泛的语言开发大语言模型,尤其是那些资源有限的语言。我们希望我们的工作能够激发跨语言词汇表迁移领域的进一步研究和合作,并为全球范围内语言能力的增强做出贡献。

英文摘要:

The development of monolingual language models for low and mid-resource languages continues to be hindered by the difficulty in sourcing high-quality training data. In this study, we present a novel cross-lingual vocabulary transfer strategy, trans-tokenization, designed to tackle this challenge and enable more efficient language adaptation. Our approach focuses on adapting a high-resource monolingual LLM to an unseen target language by initializing the token embeddings of the target language using a weighted average of semantically similar token embeddings from the source language. For this, we leverage a translation resource covering both the source and target languages. We validate our method with the Tweeties, a series of trans-tokenized LLMs, and demonstrate their competitive performance on various downstream tasks across a small but diverse set of languages. Additionally, we introduce Hydra LLMs, models with multiple swappable language modeling heads and embedding tables, which further extend the capabilities of our trans-tokenization strategy. By designing a Hydra LLM based on the multilingual model TowerInstruct, we developed a state-of-the-art machine translation model for Tatar, in a zero-shot manner, completely bypassing the need for high-quality parallel data. This breakthrough is particularly significant for low-resource languages like Tatar, where high-quality parallel data is hard to come by. By lowering the data and time requirements for training high-quality models, our trans-tokenization strategy allows for the development of LLMs for a wider range of languages, especially those with limited resources. We hope that our work will inspire further research and collaboration in the field of cross-lingual vocabulary transfer and contribute to the empowerment of languages on a global scale.

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

↑