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

剪枝还是重训练:优化爱沙尼亚语多语言模型的词表

Prune or Retrain: Optimizing the Vocabulary of Multilingual Models for Estonian

Aleksei Dorkin, Taido Purason, Kairit Sirts

AI总结:

本文面向爱沙尼亚语比较重训练 tokenizer 与剪枝未使用 token 两种多语言编码器词表适配方法,发现剪枝不损害 NER 性能,而重训练会降低性能。

摘要:

将多语言语言模型适配到特定语言可以同时提升其效率和性能。在本研究中,我们探讨如何修改多语言编码器模型的词表,使其更适合爱沙尼亚语,并考察这一修改对其在命名实体识别(NER)任务上的下游性能的影响。调整词表的动机有两方面:一是影响计算成本的实际收益,例如缩短输入序列长度和减小模型规模;二是通过让词表适配特定语言来提升性能。我们评估了两种词表适配方法的有效性——重训练 tokenizer(分词器)以及剪枝未使用的 token——并评估它们对模型性能的影响,尤其是在持续训练之后。虽然重训练 tokenizer 降低了 NER 任务的性能,表明可能需要更长时间的嵌入调优,但我们观察到剪枝没有产生负面影响。

英文摘要:

Adapting multilingual language models to specific languages can enhance both their efficiency and performance. In this study, we explore how modifying the vocabulary of a multilingual encoder model to better suit the Estonian language affects its downstream performance on the Named Entity Recognition (NER) task. The motivations for adjusting the vocabulary are twofold: practical benefits affecting the computational cost, such as reducing the input sequence length and the model size, and performance enhancements by tailoring the vocabulary to the particular language. We evaluate the effectiveness of two vocabulary adaptation approaches -- retraining the tokenizer and pruning unused tokens -- and assess their impact on the model's performance, particularly after continual training. While retraining the tokenizer degraded the performance of the NER task, suggesting that longer embedding tuning might be needed, we observed no negative effects on pruning.

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

↑