过度分词Transformer:词汇量通常值得扩展
Over-Tokenized Transformer: Vocabulary is Generally Worth Scaling
AI总结:
本文提出过度分词Transformer框架,通过解耦输入输出词汇表并扩展输入词汇以利用多gram词元,发现词汇表大小与训练损失呈对数线性关系,实现与两倍规模基线相当的性能且无额外成本。
摘要:
分词是大语言模型(LLM)的基本组成部分,然而其对模型扩展和性能的影响尚未被充分探索。在本文中,我们引入了过度分词Transformer(Over-Tokenized Transformers),一种新颖的框架,将输入和输出词汇表解耦以提升语言建模性能。具体而言,我们的方法扩展输入词汇表以利用多gram词元。通过大量实验,我们发现了输入词汇表大小与训练损失之间的对数线性关系,表明更大的输入词汇表持续提升模型性能,无论模型大小如何。使用大的输入词汇表,我们实现了与两倍规模基线相当的性能,且无额外成本。我们的发现凸显了分词在扩展定律中的重要性,并为分词器设计提供了实用见解,为更高效、更强大的LLM铺平了道路。
英文摘要:
Tokenization is a fundamental component of large language models (LLMs), yet its influence on model scaling and performance is not fully explored. In this paper, we introduce Over-Tokenized Transformers, a novel framework that decouples input and output vocabularies to improve language modeling performance. Specifically, our approach scales up input vocabularies to leverage multi-gram tokens. Through extensive experiments, we uncover a log-linear relationship between input vocabulary size and training loss, demonstrating that larger input vocabularies consistently enhance model performance, regardless of model size. Using a large input vocabulary, we achieve performance comparable to double-sized baselines with no additional cost. Our findings highlight the importance of tokenization in scaling laws and provide practical insight for tokenizer design, paving the way for more efficient and powerful LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。