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

降低低资源语言的分词溢价

Reducing Tokenization Premiums for Low-Resource Languages

Stony Brook University(石桥大学)

Geoffrey Churchill, Steven Skiena

AI总结:

本文提出通过后处理添加token词汇来降低低资源语言的分词溢价,验证了该方法在12种语言上的有效性。

摘要:

与英语相比,低资源语言在现代语言模型中面临显著的分词溢价,这意味着通常需要比英语句子多几倍的token来编码。这种分词溢价导致了API和能源成本的增加以及这些语言的有效上下文窗口的减少。在本文中,我们分析了十种流行语言模型的分词器,以更好地理解其设计和每种语言的分词溢价。我们还提出了一种机制,通过在预训练模型中后处理添加token词汇,将多token字符合并为单个token,以减少分词溢价。我们将这种方法应用于12种低资源语言,证明在运行Llama 3.2 1B模型时,原始和压缩输入的最后隐藏状态往往相似。

英文摘要:

Relative to English, low-resource languages suffer from substantial tokenization premiums in modern LMs, meaning that it generally requires several times as many tokens to encode a sentence in a low-resource language than to encode the analogous sentence in English. This tokenization premium results in increased API and energy costs and reduced effective context windows for these languages. In this paper we analyze the tokenizers of ten popular LMs to better understand their designs and per-language tokenization premiums. We also propose a mechanism to reduce tokenization premiums in pre-trained models, by post-hoc additions to the token vocabulary that coalesce multi-token characters into single tokens. We apply this methodology to 12 low-resource languages, demonstrating that the original and compressed inputs often have similar last hidden states when run through the Llama 3.2 1B model.

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

↑