From Where Words Come: Efficient Regularization of Code Tokenizers Through Source Attribution
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 29 references that are in the map. First posted on arXiv 15 Apr 2026.
Builds on
13 of 29 references.
References · 13
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 195
- 2023Do All Languages Cost the Same? Tokenization in the Era of Commercial Language Modelscited by 192
- 2025SuperBPE: Space Travel for Language Modelscited by 63
- 2025Boundless Byte Pair Encoding: Breaking the Pre-tokenization Barriercited by 32
- 2024BPE Gets Picky: Efficient Vocabulary Refinement During Tokenizer Trainingcited by 31
- 2025Common Corpus: The Largest Collection of Ethical Data for LLM Pre-Trainingcited by 20
- 2025Parity-Aware Byte-Pair Encoding: Improving Cross-lingual Fairness in Tokenizationcited by 20
1 more
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023Traces of Memorisation in Large Language Models for Code
- 2025The Art of Breaking Words: Rethinking Multilingual Tokenizer Design
- 2024Jailbreak Antidote: Runtime Safety-Utility Balance via Sparse Representation Adjustment in Large Language Models
- 2026Unlearning What Matters: Token-Level Attribution for Precise Language Model Unlearning
- 2025Length-MAX Tokenizer for Language Models
- 2025Binary BPE: A Family of Cross-Platform Tokenizers for Binary Analysis
- 2024Jailbreaking Large Language Models Through Alignment Vulnerabilities in Out-of-Distribution Settings
- 2025Broken-Token: Filtering Obfuscated Prompts by Counting Characters-Per-Token