Faster Superword Tokenization
Not on the map. Why?
Abstract (arXiv)
Byte Pair Encoding (BPE) is a widely used tokenization algorithm, whose tokens cannot extend across pre-tokenization boundaries, functionally limiting it to representing at most full words. The BoundlessBPE and SuperBPE algorithms extend and improve BPE by relaxing this limitation and allowing the formation of superwords, which are combinations of pretokens that form phrases. However, previous implementations were impractical to train: for example, BoundlessBPE took 4.7 CPU days to train on 1GB of data. We show that supermerge candidates, two or more consecutive pretokens eligible to form a supermerge, can be aggregated by frequency much like regular pretokens. This avoids keeping full documents in memory, as the original implementations of BoundlessBPE and SuperBPE required, leading to a significant training speedup. We present a two-phase formulation of BoundlessBPE that separates first-phase learning of regular merges from second-phase learning of supermerges, producing identical results to the original implementation. We also show a near-equivalence between two-phase BoundlessBPE and SuperBPE, with the difference being that a manually selected hyperparameter used in SuperBPE can be automatically determined in the second phase of BoundlessBPE. These changes enable a much faster implementation, allowing training on that same 1GB of data in 603 and 593 seconds for BoundlessBPE and SuperBPE, respectively, a more than 600x increase in speed. For each of BoundlessBPE, SuperBPE, and BPE, we open-source both a reference Python implementation and a fast Rust implementation.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 13 of its 19 references that are in the map. First posted on arXiv 6 Apr 2026.
Builds on
13 of 19 references.
References · 13
- 2015Improving Neural Machine Translation Models with Monolingual Datacited by 784
- 2023CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languagescited by 172
- 2024Byte Latent Transformer: Patches Scale Better Than Tokenscited by 137
- 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMscited by 112
- 2023The MiniPile Challenge for Data-Efficient Language Modelscited by 74
- 2023Tokenization and the Noiseless Channelcited by 58
- 2025Boundless Byte Pair Encoding: Breaking the Pre-tokenization Barriercited by 31
- 2024BPE Gets Picky: Efficient Vocabulary Refinement During Tokenizer Trainingcited by 30
- 2025How Much is Enough? The Diminishing Returns of Tokenization Training Datacited by 15
- 2025BPE Stays on SCRIPT: Structured Encoding for Robust Multilingual Pretokenizationcited by 11
- 2024Improbable Bigrams Expose Vulnerabilities of Incomplete Tokens in Byte-Level Tokenizerscited by 7
- 2025Entropy-Driven Pre-Tokenization for Byte-Pair Encodingcited by 6
Built on by
Citing papers per year: 2026: 1.
1 paper.