arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.09039cs.ITmath.IT
收藏

从信息论角度审视大语言模型分词器

An Information-Theoretic Perspective on LLM Tokenizers

Stanford University(斯坦福大学);AWS Annapurna ML(AWS安纳普尔纳机器学习)

Mete Erdogan, Abhiram Gorle, Shubham Chandak, Mert Pilanci, Tsachy Weissman

AI总结:

从信息论角度研究大语言模型分词器,揭示分词训练规模对熵分布的影响,提出压缩感知BPE变种,并分析分词器在不同领域下的鲁棒性与压缩效率的权衡。

摘要:

大语言模型(LLM)分词器充当结构化压缩器:通过将文本映射为离散的token序列,它们决定了token数量(从而影响计算和上下文使用)以及下游模型所见的统计结构。尽管其在LLM流程中扮演着核心角色,但分词、压缩效率和诱导结构之间的联系并不明确。我们实证地证明了分词器训练规模会重新分配熵:随着训练数据增长,token流在总体上变得更加多样(单个词熵更高)但上下文内却明显更具可预测性(高阶条件熵更低),这表明分词吸收了大量短程规律性,尽管这些收益在训练-测试领域不匹配时会下降。为了支撑这些观察,我们首先评估了预训练的GPT家族分词器作为黑盒压缩器在各种领域中的表现,以及跨配置(词汇量、训练规模和领域)的学得分词器。接着,我们研究分词作为通用压缩转换的方法,并引入了一种压缩感知的BPE变种。最后,我们采用通道视角并引入容量利用率指标来分析分词器行为,并概述其对下游建模的影响。综合来看,我们的结果揭示了压缩、诱导结构和领域偏移下的鲁棒性之间的各种权衡,并推动了以压缩为导向的分词器设计。

英文摘要:

Large language model (LLM) tokenizers act as structured compressors: by mapping text to discrete token sequences, they determine token count (and thus compute and context usage) and the statistical structure seen by downstream models. Despite their central role in LLM pipelines, the link between tokenization, compression efficiency and induced structure is not well understood. We empirically demonstrate that tokenizer training scale redistributes entropy: as training data grows, the token stream becomes more diverse in aggregate (higher unigram entropy) yet markedly more predictable in-context (lower higher-order conditional entropies), indicating that tokenization absorbs substantial short-range regularity although these gains degrade under train-test domain mismatch. To ground these observations, we first benchmark i) pretrained GPT-family tokenizers as black-box compressors across various domains, and ii) learned tokenizers across configurations spanning vocabulary size, training scale, and domain. Next, we study tokenization as a transform for universal compression and introduce a compression-aware BPE variant. Finally, we adopt a channel lens and introduce capacity-utilization metrics to analyze tokenizer behaviour and outline implications for downstream modeling. Put together, our results expose various trade-offs between compression, induced structure, and robustness under domain shift, and motivate principled, compression-aware tokenizer design.

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

↑