arXiv:2610.26225cs.CLOct 2026

Manuscript Offprint

arXiv:2610.26225

Rethinking BPE: Merge Selection as Model Selection

Vijini Liyanage, François Yvon

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Subword tokenization methods such as BytePair Encoding (BPE) are a core component of modern language models; yet, tokenizer capacity remains typically determined by a fixed merge budget, chosen heuristically. Since larger vocabularies increase memory usage and computational cost, selecting compact and effective token inventories is essential for efficient language modeling. We study the optimization of a BPE merge budget as a statistical model selection problem and investigate information-theoretic criteria for computing optimal merge sets directly from corpus statistics. To further improve the merge selection in limited data conditions, we augment the BPE training corpora with synthetic texts generated from the original data, providing estimates for the unigram and bigram distributions. Experiments across multiple corpora and downstream tasks show that using a principled vocabulary selection technique reduces model size, with little degradation in performance. We further observe that synthetic data can yield better tokenizers, especially in low-resource settings.

1 Introduction

Modern language models rely on subword tokenization to represent text efficiently. Methods such as Byte-Pair Encoding (BPE) (Gage, 1994; Sennrich et al., 2016) construct vocabularies by iteratively merging frequent symbol pairs, balancing vocabulary size and sequence length. Since tokenization defines the units processed by a model, it affects compression efficiency, computational cost, and downstream performance. However, tokenizer design remains largely heuristic: most systems fix the number of BPE merges in advance, typically ranging from tens to hundreds of thousands depending on the model and linguistic coverage (Brown et al., 2020; Touvron et al., 2023; Bai et al., 2023). These choices are rarely principled and are often inherited from prior work or selected through parameter search.

The number of merges controls tokenization granularity and the tradeoff between vocabulary size and sequence length (Kudo, 2018). Too few merges create fragmented representations and long sequences, while too many produce large vocabularies capturing spurious or domain-specific patterns. This tradeoff affects efficiency, as longer sequences increase transformer attention costs, whereas large vocabularies increase embedding and decoding overhead.

In this work, we investigate principled BPE merge selection from corpus statistics. We formulate merge selection as a model selection problem and explore information-theoretic criteria including AIC (Akaike, 1974), BIC (Schwarz, 1978), and MDL (Rissanen, 1978; Grünwald, 2007), alongside entropy-based filtering methods. To improve estimation under limited data, we augment adaptation corpora with synthetic text generated from the original data, improving unigram and bigram coverage while reducing sparsity.

Our contributions are as follows: (a) we formulate BPE merge selection as a model selection problem rather than relying on predefined values; (b) we evaluate several statistical and information-theoretic model selection criteria; (c) we propose synthetic text augmentation to improve the estimation of token distributions, particularly in low-resource settings; (d) we provide empirical analyses showing how different selection criteria affect merge inventories, compression efficiency and downstream performance.