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

跨语言语言模型预训练中大词汇量的分配

Allocating Large Vocabulary Capacity for Cross-lingual Language Model Pre-training

Harbin Institute of Technology(哈尔滨工业大学);Microsoft Corporation(微软公司)

Bo Zheng, Li Dong, Shaohan Huang, Saksham Singhal, Wanxiang Che, Ting Liu, Xia Song, Furu Wei

摘要:

与单语模型相比,跨语言模型通常需要更有表现力的词汇表来充分表示所有语言。我们发现,许多语言是在最近的跨语言语言模型,由于有限的词汇量表示不足。为此,我们提出了一种算法VoCap来确定每种语言所需的词汇量。然而,增加词汇量会显着降低预训练速度。为了解决这些问题,我们提出了基于k-NN的目标采样来加速昂贵的softmax。我们的实验表明,使用VoCap学习的多语言词汇有利于跨语言语言模型的预训练。此外,基于k-NN的目标采样减轻了增加词汇量的副作用,同时实现了相当的性能和更快的预训练速度。代码和预训练的多语言词汇表可以在https://github.com/bozheng-hit/VoCapXLM上找到。

英文摘要:

Compared to monolingual models, cross-lingual models usually require a more expressive vocabulary to represent all languages adequately. We find that many languages are under-represented in recent cross-lingual language models due to the limited vocabulary capacity. To this end, we propose an algorithm VoCap to determine the desired vocabulary capacity of each language. However, increasing the vocabulary size significantly slows down the pre-training speed. In order to address the issues, we propose k-NN-based target sampling to accelerate the expensive softmax. Our experiments show that the multilingual vocabulary learned with VoCap benefits cross-lingual language model pre-training. Moreover, k-NN-based target sampling mitigates the side-effects of increasing the vocabulary size while achieving comparable performance and faster pre-training speed. The code and the pretrained multilingual vocabularies are available at https://github.com/bozheng-hit/VoCapXLM.

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

↑