arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14481cs.CL
收藏

FOCUS:面向多语言模型单语特化的有效嵌入初始化方法

FOCUS: Effective Embedding Initialization for Monolingual Specialization of Multilingual Models

Hasso Plattner Institute / University of Potsdam(哈索·普拉特纳研究所/波茨坦大学)

Konstantin Dobler, Gerard de Melo

AI总结:

本文提出 FOCUS 方法,利用 Sparsemax 将新分词器中的 token 表示为源词表与目标词表重叠 token 的组合,从而为多语言模型单语特化提供有效嵌入初始化,并在语言建模及 NLI、QA、NER 等任务上优于随机初始化和已有方法。

摘要:

使用在高资源语言上预训练的模型权重作为热启动,可以减少为其他语言(尤其是低资源语言)获取高质量语言模型所需的数据和计算量。然而,如果我们希望使用一个针对目标语言特化的新分词器,就无法直接迁移源模型的嵌入矩阵。在本文中,我们提出 FOCUS——基于 Sparsemax 的快速重叠 Token 组合方法,这是一种新颖的嵌入初始化方法,能够根据源模型嵌入矩阵中的信息,为新分词器有效地初始化嵌入矩阵。FOCUS 将新添加的 token 表示为源词表与目标词表重叠部分中 token 的组合。重叠 token 的选择基于辅助静态 token 嵌入空间中的语义相似度。我们将研究重点放在使用多语言模型 XLM-R 作为源模型上,并通过实验表明,FOCUS 在语言建模以及一系列下游任务(NLI、QA 和 NER)上优于随机初始化和先前的工作。

英文摘要:

Using model weights pretrained on a high-resource language as a warm start can reduce the need for data and compute to obtain high-quality language models for other, especially low-resource, languages. However, if we want to use a new tokenizer specialized for the target language, we cannot transfer the source model's embedding matrix. In this paper, we propose FOCUS - Fast Overlapping Token Combinations Using Sparsemax, a novel embedding initialization method that initializes the embedding matrix effectively for a new tokenizer based on information in the source model's embedding matrix. FOCUS represents newly added tokens as combinations of tokens in the overlap of the source and target vocabularies. The overlapping tokens are selected based on semantic similarity in an auxiliary static token embedding space. We focus our study on using the multilingual XLM-R as a source model and empirically show that FOCUS outperforms random initialization and previous work in language modeling and on a range of downstream tasks (NLI, QA, and NER).

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

↑