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

显著性-增益配对编码用于LLMs:一种基于统计的替代子词合并方法

Significance-Gain Pair Encoding for LLMs: A Statistical Alternative to Frequency-Based Subword Merging

Department of Science, Technology & Mathematics(科学、技术与数学系)

Azam Nouri

AI总结:

本文提出Significance-Gain BPE,通过统计方法改进子词合并,提升LLM的预测效率和压缩性能,实验显示在WikiText-103上验证了其有效性。

摘要:

子词分词是现代语言模型的关键设计选择,包括大语言模型(LLMs)在内的模型广泛使用字节和字符级BPE作为基准。标准BPE通过原始配对频率选择合并,虽然有利于压缩,但可能混淆真实的邻接凝聚力与高频配对。本文引入Significance-Gain BPE,一种可直接替换的合并标准,通过独立性空假设下的z统计量衡量凝聚力,并结合显式的压缩感知增益项。Significance-Gain BPE在WikiText-103(原始)字符切片上使用小型因果Transformer语言模型进行评估,报告了依赖于令牌的困惑度和与分词无关的每字符位(BPC)指标。在代表性操作点上,Significance-Gain BPE将验证和测试困惑度分别降低13%和12%,并提高验证和测试BPC约0.9至1.0个百分点。词汇量扫描进一步显示,在最接近压缩的比较中,BPC更低,表明基于统计的合并选择可以提高预测效率,每单位原始文本在多种压缩范围内。

英文摘要:

Subword tokenization is a key design choice for modern language models, including large language models (LLMs), with byte- and character-level BPE serving as a widely used baseline. Standard BPE selects merges by raw pair frequency, which favors compression but can conflate true adjacency cohesion with pairs that are frequent due to high marginal counts. This paper introduces Significance-Gain BPE, a drop-in alternative merge criterion that measures cohesion via a z-statistic under an independence null model and combines it with an explicit compression-aware gain term. Significance-Gain BPE is evaluated on WikiText-103 (raw) character slices using a small causal Transformer language model, reporting both token-dependent perplexity and the tokenizer-invariant metric bits per character (BPC). At a representative operating point, Significance-Gain BPE reduces validation and test perplexity by 13% and 12%, respectively, and improves validation and test BPC by about 0.9 to 1.0%. A vocabulary-size sweep further shows lower BPC in most closest-compression comparisons, suggesting that statistically grounded merge selection can improve predictive efficiency per unit of raw text across a range of compression regimes.

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

↑