加速面向过度分词语言的多语言语言模型
Accelerating Multilingual Language Model for Excessively Tokenized Languages
AI总结:
针对非罗马字母语言被过度分词导致生成低效的问题,本文提出为预训练 LLM 定制并微调语言模型头、冻结其他参数并验证性能,实现 1.7 倍加速且保持单语任务表现。
摘要:
近期,大型语言模型(LLM)的进步显著提升了多种语言在各类任务上的表现。然而,主要在以英语为中心的语料上训练的 LLM 中的分词器,在处理非罗马字母语言时,往往会把文本过度切分成字符级或 Unicode 级 token,从而导致文本生成效率低下。我们提出了一个简单而有效的框架,用于加速此类语言的文本生成。我们的方法是:为预训练 LLM 使用一个新的语言模型头,其词汇表针对特定目标语言定制;随后对新语言模型头进行微调,并加入验证步骤,以确保模型性能得到保持。我们表明,在冻结其他模型参数的同时,这种有针对性的微调能够有效减少目标语言的 token 碎片化。大量实验证明,所提出的框架将生成速度提高到原来的 1.7 倍,同时在目标单语任务上保持了预训练多语言模型的性能。
英文摘要:
Recent advancements in large language models (LLMs) have remarkably enhanced performances on a variety of tasks in multiple languages. However, tokenizers in LLMs trained primarily on English-centric corpora often overly fragment a text into character or Unicode-level tokens in non-Roman alphabetic languages, leading to inefficient text generation. We introduce a simple yet effective framework to accelerate text generation in such languages. Our approach involves employing a new language model head with a vocabulary set tailored to a specific target language for a pre-trained LLM. This is followed by fine-tuning the new head while incorporating a verification step to ensure the model's performance is preserved. We show that this targeted fine-tuning, while freezing other model parameters, effectively reduces token fragmentation for the target language. Our extensive experiments demonstrate that the proposed framework increases the generation speed by a factor of 1.7 while maintaining the performance of pre-trained multilingual models on target monolingual tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。