arXiv Computation and Language

Pair-Merge Tokenisation Is Hard to Approximate on Binary Strings and Strongly NP-Hard on Unary Datasets

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 AI
Nov 14

Tokenization: Hardness and Bicriteria Approximation Algorithms

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.

By Atieh Bastan, Xiaoling He, A. Pavan, N. V. Vinodchandran
arXiv Computation and Language
Nov 9

Greedy Byte-Pair Encoding Achieves at Least 0.361 of the Optimal Compression

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.

By Kundan Baliga, Aiden Xie, Aditya Byju
arXiv Computation and Language
Nov 4

Theoretical Analysis of Byte-Pair Encoding

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...

By L\'aszl\'o Kozma, Johannes Voderholzer
arXiv AI
Aug 11

Length-MAX Tokenizer for Language Models

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.

By Dong Dong, Weijie Su
arXiv Computation and Language
Nov 11

The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary

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.

By Nicklas Nidh\"ogg
arXiv AI
Sep 17

Objective vs. Search: Decomposing What Makes a Good Tokeniser

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.

By Ahmetcan Yavuz, Clara Meister, Tiago Pimentel
arXiv AI
Oct 27

Merge-Based Vocabulary Extension Stalls at the Pre-Tokenizer: An English-Preserving Repair for Nepali, Tested in Continued Pretraining

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.

By Aarjan Chaudhary (Naamche Labs)