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

如何用0.01GB的目标语言文本有效扩展LLM的词汇?

How Can We Effectively Expand the Vocabulary of LLMs with 0.01GB of Target Language Text?

University of Sheffield, United Kingdom(英国谢菲尔德大学);University of Exeter, United Kingdom(英国埃克塞特大学);The Alan Turing Institute, United Kingdom(英国艾伦·图灵研究所);Federal University of Rio Grande do Norte, Brazil(巴西里奥格兰德杜纳伊联邦大学)

Atsuki Yamaguchi, Aline Villavicencio, Nikolaos Aletras

AI总结:

本文提出了一种在低资源条件下通过少量目标语言文本扩展LLM词汇的方法,以提升推理速度并保持下游任务性能。

摘要:

大型语言模型(LLM)在许多非英语语言中展现出了显著的能力。然而,当生成非英语文本时,LLM需要更多的推理步骤,因为它们依赖于以英语为中心的分词器和词汇,导致非英语使用者的使用成本更高。使用目标语言的词汇进行扩展是一种广泛使用的跨语言词汇适应方法,以解决这个问题。尽管在推理速度提升方面效果显著,但以往关于词汇扩展的研究都集中在高资源设置上,假设可以访问大量目标语言数据来有效初始化新令牌的嵌入并适应LLM到目标语言。然而,低资源设置下的词汇扩展尚未被探索。在本文中,我们通过考虑嵌入初始化方法和持续预训练策略,研究低资源设置下的词汇扩展。通过在类型学上多样的语言、任务和模型上进行广泛的实验,我们建立了一套策略,以实现更快的推理,同时努力保持与基线相竞争的下游性能。这仅需30K个句子(约0.01GB文本数据)即可实现。

英文摘要:

Large language models (LLMs) have shown remarkable capabilities in many languages beyond English. Yet, LLMs require more inference steps when generating non-English text due to their reliance on English-centric tokenizers and vocabulary, resulting in higher usage costs to non-English speakers. Vocabulary expansion with target language tokens is a widely used cross-lingual vocabulary adaptation approach to remedy this issue. Despite its effectiveness in inference speedup, previous work on vocabulary expansion has focused on high-resource settings assuming access to a substantial amount of target language data to effectively initialize the embeddings of the new tokens and adapt the LLM to the target language. However, vocabulary expansion in low-resource settings has yet to be explored. In this article, we investigate vocabulary expansion in low-resource settings by considering embedding initialization methods and continual pre-training strategies. Through extensive experiments across typologically diverse languages, tasks and models, we establish a set of strategies to perform vocabulary expansion for faster inference, while striving to maintain competitive downstream performance to baselines. This is achieved with only 30K sentences ($\sim$0.01GB text data) from the target language.

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

↑