Tokenisation over Bounded Alphabets is Hard
arXiv:2511. 15709v2 Announce Type: replace-cross Abstract: Recent works have shown that tokenisation is NP-complete.
arXiv:2611. 13568v1 Announce Type: cross Abstract: Tokenisers such as Byte-Pair Encoding (BPE) shorten text by repeatedly merging an adjacent pair of symbols into a new one; fewer tokens mean less computation.
arXiv:2511. 15709v2 Announce Type: replace-cross Abstract: Recent works have shown that tokenisation is NP-complete.
arXiv:2611. 15074v1 Announce Type: cross Abstract: We study Binary Tokenization: given a corpus of binary strings over $\{0,1\}$ and a vocabulary budget $K$, select at most $K$ substrings (called vocabulary) to minimize the total number of tokens needed to represent the corpus.
The paper proves that the greedy Byte‑Pair Encoding (BPE) algorithm achieves at least 0.361 of the optimal string‑length reduction for any string, budget, and tie‑breaking rule, improving the previously known one‑third bound. It explains why the one‑third barrier is tight under the pair‑packing relaxation and shows how the greedy method can often shift optimal merge points to maintain performance. The authors also compute the exact worst‑case ratio for two merges, bound it for three, and identify a key inequality that would resolve the remaining gap.
arXiv:2411.08671v2 Announce Type: replace-cross Abstract: Byte-Pair Encoding (BPE) is a widely used method for subword tokenization, with origins in grammar-based text compression. It is employed in...
arXiv:2610.19139v1 Announce Type: cross Abstract: Tokenization is an essential preprocessing step in almost all large language models (LLMs). One of the most popular frameworks is BPE tokenization, w...
arXiv:2609.35869v1 Announce Type: new Abstract: Pre-tokenisation restricts which text fragments can become prediction units, but its compression cost is obscured when tokenisers are compared only und...
arXiv:2508. 04796v3 Announce Type: replace-cross Abstract: Tokenization is the first -- and often least scrutinized -- step of most NLP pipelines.
arXiv:2511. 20849v2 Announce Type: replace-cross Abstract: We introduce a new tokenizer for language models that minimizes the average tokens per character, thereby reducing the number of tokens needed to represent text during training and to generate text during inference.
The paper formalizes the left‑ripple effect of byte‑pair encoding (BPE), answering how far a string prepended on the left can alter tokenization for any dictionary. It introduces radius certificates derived from two automaton runs to compute the origin radius in polynomial time, characterizes when this radius is infinite, and shows that a finite radius guarantees dense cuts in every window. The authors also provide a streaming tokenizer that emits stable tokens after each symbol, decide boundedness of edit distance for all dictionaries, and analyze specific models such as GPT‑2 and Llama 3.
The paper introduces two new tokenisation algorithms—BottomUpLL and TopDownComp—to systematically explore the 2x2 design space defined by optimisation objective (compression vs. log‑likelihood) and search procedure (bottom‑up merging vs. top‑down pruning). Experiments across model sizes, vocabularies, and domains show that the search procedure, rather than the objective, consistently yields lower bits‑per‑byte, while no clear pattern emerges on the BLiMP benchmark. These findings clarify how tokeniser design choices influence language‑model performance and provide guidance for constructing tokenisers more principledly.
arXiv:2608. 00837v1 Announce Type: cross Abstract: Byte Pair Encoding (BPE) is widely used for subword tokenization, but standard BPE exposes every learned merge token to the downstream model, including tokens that mainly serve as intermediate construction units and rarely appear in the final encoded corpus.
The paper identifies a tokenization flaw in popular open LLMs (Llama‑3, Qwen‑3) that splits Nepali words at every Devanagari vowel sign, causing a 2.6–5.8× token overhead compared to English. The authors propose a minimal edit to the pre‑tokenizer’s regex that preserves token IDs for non‑combining text and, with 32,000 new merges, reduces Nepali tokens to 1.01× that of English—about 54% fewer tokens than standard extensions. In continued pretraining experiments on Llama‑3.2‑1B and Qwen‑3‑0.6B, the repaired tokenizer achieved lower held‑out Nepali bits‑per‑byte than the original, though the impact on generation latency and quality remains untested.