LLM Reasoning 相关度: 7/10

From Where Words Come: Efficient Regularization of Code Tokenizers Through Source Attribution

Pavel Chizhov, Egor Bogomolov, Ivan P. Yamshchikov
arXiv: 2604.14053v1 发布: 2026-04-15 更新: 2026-04-15

AI 摘要

针对代码Tokenizer训练数据偏差问题,提出SA-BPE方法,减少低训练token数量,提升模型效率。

主要贡献

  • 提出Source-Attributed BPE (SA-BPE)方法
  • 通过修改BPE目标和引入merge skipping正则化BPE训练
  • 减少低训练token数量,提升模型效率

方法论

修改BPE目标,引入merge skipping,正则化BPE训练,从而减少过拟合和低训练token。

原文摘要

Efficiency and safety of Large Language Models (LLMs), among other factors, rely on the quality of tokenization. A good tokenizer not only improves inference speed and language understanding but also provides extra defense against jailbreak attacks and lowers the risk of hallucinations. In this work, we investigate the efficiency of code tokenization, in particular from the perspective of data source diversity. We demonstrate that code tokenizers are prone to producing unused, and thus under-trained, tokens due to the imbalance in repository and language diversity in the training data, as well as the dominance of source-specific, repetitive tokens that are often unusable in future inference. By modifying the BPE objective and introducing merge skipping, we implement different techniques under the name Source-Attributed BPE (SA-BPE) to regularize BPE training and minimize overfitting, thereby substantially reducing the number of under-trained tokens while maintaining the same inference procedure as with regular BPE. This provides an effective tool suitable for production use.

标签

代码Tokenizer BPE 正则化 数据偏差 Token优化

arXiv 分类

cs.CL