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

大语言模型训练的 Tokenizer 选择:无关紧要还是至关重要?

Tokenizer Choice For LLM Training: Negligible or Crucial?

Fraunhofer IAIS(弗劳恩霍夫智能分析与信息系统研究所);Lamarr Institute(拉玛尔研究所);TU-Dresden(德累斯顿工业大学);FZ Jülich(于利希研究中心);DFKI(德国人工智能研究中心);Aleph Alpha(阿莱夫阿尔法公司)
Mehdi Ali, Michael Fromm, Klaudia Thellmann, Richard Rutmann, Max Lübbering, Johannes Leveling, Katrin Klug, Jan Ebert, Niclas Doll, Jasper Schulze Buschhoff, C… 展开作者

Mehdi Ali, Michael Fromm, Klaudia Thellmann, Richard Rutmann, Max Lübbering, Johannes Leveling, Katrin Klug, Jan Ebert, Niclas Doll, Jasper Schulze Buschhoff, Charvi Jain, Alexander Arno Weber, Lena Jurkschat, Hammam Abdelwahab, Chelsea John, Pedro Ortiz Suarez, Malte Ostendorff, Samuel Weinbach, Rafet Sifa, Stefan Kesselheim, Nicolas Flores-Herr

AI总结:

本研究通过训练26亿参数的24个单语和多语LLM,发现tokenizer选择显著影响下游性能与训练成本,且常见评估指标不可靠,多语tokenizer需三倍词汇量,英语中心tokenizer导致性能下降和高达68%的额外成本。

摘要:

大型语言模型(LLM)近期取得的成功主要归因于训练数据集构成的策划、模型架构和数据集规模的扩展以及预训练目标的进步,而 tokenizer 的影响则成为盲区。为了揭示这一未被充分探索的领域,我们通过训练 24 个单语和多语 LLM(参数规模为 26 亿),并消融不同的 tokenizer 算法和参数化方式,对 tokenizer 选择对 LLM 下游性能的影响进行了全面研究。我们的研究表明,tokenizer 的选择能显著影响模型的下游性能和训练成本。特别是,我们发现常见的 tokenizer 评估指标 fertility 和 parity 并不总能预测模型的下游性能,这使得这些指标作为模型下游性能的代理指标存在疑问。此外,我们表明,在五种最常用的欧洲语言上训练的多语 tokenizer 所需的词汇表大小相比英语需要增加三倍。虽然过去在训练多语 LLM 时曾使用以英语为中心的 tokenizer,但我们发现这种方法会导致严重的下游性能下降,并且由于 tokenization 词汇表的低效,额外训练成本高达 68%。

英文摘要:

The recent success of Large Language Models (LLMs) has been predominantly driven by curating the training dataset composition, scaling of model architectures and dataset sizes and advancements in pretraining objectives, leaving tokenizer influence as a blind spot. Shedding light on this underexplored area, we conduct a comprehensive study on the influence of tokenizer choice on LLM downstream performance by training 24 mono- and multilingual LLMs at a 2.6B parameter scale, ablating different tokenizer algorithms and parameterizations. Our studies highlight that the tokenizer choice can significantly impact the model's downstream performance and training costs. In particular, we find that the common tokenizer evaluation metrics fertility and parity are not always predictive of model downstream performance, rendering these metrics a questionable proxy for the model's downstream performance. Furthermore, we show that multilingual tokenizers trained on the five most frequent European languages require vocabulary size increases of factor three in comparison to English. While English-centric tokenizers have been applied to the training of multi-lingual LLMs in the past, we find that this approach results in a severe downstream performance degradation and additional training costs of up to 68%, due to an inefficient tokenization vocabulary.

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

↑