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

分词对 LLaMa 俄语适配的影响

Impact of Tokenization on LLaMa Russian Adaptation

Lomonosov Moscow State University(罗蒙诺索夫莫斯科国立大学)

Mikhail Tikhomirov, Daniil Chernyshev

AI总结:

本文研究 LLaMa 俄语适配中的分词瓶颈,比较三种词表替换方案,证明其可提升俄语质量与用户偏好,并显著加速微调、推理且降低内存消耗。

摘要:

最新的指令微调大型语言模型(LLM)在各类任务上表现出色,但在处理非英语输入时往往会出现性能下降。有证据表明,其原因在于预训练数据中语言代表性较低所导致的低效分词,这会妨碍模型理解非英语指令,并限制目标语言指令微调的潜力。在本研究中,我们以 LLaMa 的俄语适配为背景,考察通过词表替换来解决该问题的可能性。我们探索了三种词表适配方案,并在 Saiga 指令微调以及 Russian Super Glue 基准上的微调中测试其性能。自动评估结果表明,词表替换不仅提升了模型的俄语质量,还将微调速度加快 35%、推理速度最高加快 60%,同时降低了内存消耗。此外,针对指令微调模型的人工评估显示,采用俄语适配词表的模型所生成的答案,相比原始 Saiga-LLaMa 模型具有更高的用户偏好。

英文摘要:

Latest instruction-tuned large language models (LLM) show great results on various tasks, however, they often face performance degradation for non-English input. There is evidence that the reason lies in inefficient tokenization caused by low language representation in pre-training data which hinders the comprehension of non-English instructions, limiting the potential of target language instruction-tuning. In this work we investigate the possibility of addressing the issue with vocabulary substitution in the context of LLaMa Russian language adaptation. We explore three variants of vocabulary adaptation and test their performance on Saiga instruction-tuning and fine-tuning on Russian Super Glue benchmark. The results of automatic evaluation show that vocabulary substitution not only improves the model's quality in Russian but also accelerates fine-tuning (35%) and inference (up to 60%) while reducing memory consumption. Additional human evaluation of the instruction-tuned models demonstrates that models with Russian-adapted vocabulary generate answers with higher user preference than the original Saiga-LLaMa model.

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

↑