Most modern language models rely on Byte-Pair Encoding (BPE) or similar subword algorithms to break text into manageable chunks. While effective, these methods suffer from a hidden structural inefficiency: they populate the model's vocabulary with "scaffold tokens"—intermediate fragments that exist only to build longer words but are rarely used as standalone units.
Recent research has shifted toward identifying and pruning these redundant units to create more compact, semantically dense vocabularies that improve both training efficiency and inference speed.
The Scaffold Token Problem
In a standard BPE merge process, the algorithm iteratively combines the most frequent adjacent pairs of characters or subwords. For example, to learn the word "unbelievable," the algorithm might first merge u and n to get un, then b and e to get be, and so on.
As Haoran Lian and colleagues point out in Scaffold-BPE, many of these intermediate steps (like unbeliev) end up in the final vocabulary even if they almost never appear independently in the actual text. These "scaffold tokens" occupy valuable slots in the embedding matrix, yet because they are rare, the model struggles to learn meaningful representations for them. This "vocabulary bloat" forces the model to manage a massive parameter space where a significant portion of the entries provide negligible semantic utility.
From Frequency to Utility
The core limitation of traditional tokenization is its reliance on local frequency as a proxy for importance. Jia Peng Lim and the team behind GreedTok argue that tokenization should instead be framed as an optimization problem: finding the best set of substrings to cover a corpus. By selecting tokens based on their global utility for compression rather than their history as merge candidates, they avoid wasting dictionary slots on intermediate sequences that do not contribute to the final representation.
Similarly, Bart van Merriënboer and Yoshua Bengio explored multiscale sequence modeling using a learned dictionary that includes a pruning mechanism. By discarding infrequent tokens that have been superseded by longer sequences, they ensure the vocabulary remains compact and focused on the most informative units.
Pruning and Trimming the Vocabulary
If a model has already been trained, can we fix its inefficient vocabulary? Several researchers have proposed "post-processing" or "knockout" strategies to clean up existing tokenizers:
- Morphological Pruning: Thomas Bauwens introduced BPE-knockout, which uses morphological data to identify and remove subwords that cross linguistic boundaries (like
th+ein "the"). Removing these "nonsensical" merges improves downstream performance by aligning tokens with actual meaning. - Leaf-Based Pruning: In Teaching Old Tokenizers New Words, Pavel Chizhov and others suggest pruning "leaf" tokens—those that do not serve as building blocks for any longer subwords—to reduce vocabulary size without breaking the internal merge hierarchy of the tokenizer.
- Speculative Trimming: For inference optimization, Sudhanshu Agrawal developed VOCABTRIM, which prunes the vocabulary of small "drafter" models used in speculative decoding. By restricting these models to only the most frequent tokens, they achieve significant speedups on edge devices.
Beyond Word Boundaries
Another source of redundancy is the "pre-tokenization barrier"—the practice of splitting text by whitespace before subword merging begins. This often results in "vocabulary degeneracy," where the same word is stored multiple times (e.g., " apple" and "apple"). Edward Gow-Smith demonstrated in Alternative Treatment of Spaces that eliminating these space-dependent overlaps makes much better use of a model's capacity.
Taking this further, Chris Tanner and colleagues introduced BoundlessBPE, which allows merges to cross whitespace. This creates "superwords" (like of_the), which increases compression and creates a more uniform token distribution. Similarly, Chandra Khatri used this "superword" concept in the IndicSuperTokenizer to drastically reduce fragmentation in Indian languages, leading to a 44% improvement in inference throughput.
Why It Works: Semantic Density
The intuition behind all these methods is semantic density. A standard BPE vocabulary is "diluted" by fragments that the model rarely sees and cannot easily learn. By pruning scaffolds and merging redundant variations, researchers are forcing the model to spend its "parameter budget" on tokens that appear frequently and carry clear meaning. As Woojin Chung and Jeonghoon Kim found in their analysis of frequency imbalance, the performance of a language model is driven primarily by its ability to represent the most frequent tokens; by clearing out the "scaffold noise," we allow the model to focus its capacity where it matters most.