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

基于分裂树的Tokenization(ToaST)

Tokenization with Split Trees

Craig W. Schmidt, Michael Krumdick, Adam Wiemerslage, Seth Ebner, Varshini Reddy, Yuval Pinter, Chris Tanner

AI总结:

提出ToaST方法,通过递归推理过程直接优化压缩,使用整数规划选择词汇表,在英文文本上相比BPE、WordPiece和UnigramLM减少超过11%的token数量,并提升Renyi效率和语言模型性能。

摘要:

我们引入了基于分裂树的Tokenization(ToaST),一种子词分词方法,通过新的递归推理过程直接优化压缩。ToaST使用预计算的字节n-gram计数,独立于任何词汇表,贪婪地将每个预分词分裂成完全二叉树。给定词汇表后,推理递归地遍历每个分裂树,并在每条路径上发出第一个在词汇表中的节点。词汇表选择被形式化为一个整数规划(IP),在此推理过程下最小化所有分裂树的总token数。线性规划(LP)松弛在实践中接近整数解,产生可证明接近最优的词汇表,训练时间经验上与分裂树数量呈二次方关系。在英文文本上,当词汇表大小为40,960及以上时,与BPE、WordPiece和UnigramLM相比,ToaST将token数量减少了超过11%,从而减少了使用该分词器的模型的推理token数,因此扩展了有效上下文长度。ToaST还比这些基线方法更少使用常见的单字节token,导致Renyi效率显著提高。在训练15亿参数语言模型的实验中,ToaST获得了最高的CORE分数,比基线方法高出2.6%至7.6%,其中两个基线具有显著性,并在22个单独任务中的13个上取得了最佳成绩。

英文摘要:

We introduce Tokenization with Split Trees (ToaST), a subword tokenization method that directly optimizes compression under a new recursive inference procedure. ToaST greedily splits each pretoken into a full binary tree using precomputed byte n-gram counts, independent of any vocabulary. Given a vocabulary, inference recursively descends each split tree and emits the first in-vocabulary node reached on each path. Vocabulary selection is formulated as an Integer Program (IP) that minimizes the total token count over all split trees under this inference procedure. The Linear Programming (LP) relaxation is near-integral in practice, yielding provably near-optimal vocabularies, with training time empirically scaling quadratically in the number of split trees. On English text, ToaST reduces token counts by more than 11% compared to BPE, WordPiece, and UnigramLM at vocabulary sizes of 40,960 and above, reducing the number of inference tokens for models using this tokenizer, thus extending the effective context length. ToaST also uses common single-byte tokens less frequently than these baselines, leading to a substantial improvement in Renyi efficiency. In experiments training 1.5B parameter language models, ToaST achieves the highest CORE score, outperforming baselines by 2.6%--7.6%, with significance for two of three, and scoring best on 13 of 22 individual tasks.

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

↑