CLAIDec 5, 2023

Impact of Tokenization on LLaMa Russian Adaptation

arXiv:2312.02598v111 citationsh-index: 32023 Ivannikov Ispras Open Conference (ISPRAS)
Originality Incremental advance
AI Analysis

This addresses the problem of inefficient tokenization limiting non-English LLM performance for Russian language users, representing an incremental improvement with specific gains.

The study tackled performance degradation of instruction-tuned LLMs for non-English input by investigating vocabulary substitution for LLaMa Russian adaptation, finding that it improved Russian quality, accelerated fine-tuning by 35% and inference up to 60%, and increased user preference in human evaluation.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes