Theoretical Analysis of Byte-Pair Encoding
Read the original on arXiv Computation and Language →The Flow has not summarised this story yet — read it at arXiv Computation and Language.
The Flow has not summarised this story yet — read it at arXiv Computation and Language.
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:2508. 04796v3 Announce Type: replace-cross Abstract: Tokenization is the first -- and often least scrutinized -- step of most NLP pipelines.
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...
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.
The paper introduces CFGzip, an offline token space compression technique that reduces the search space for context-free grammar (CFG) decoding engines. By compressing the token vocabulary, CFGzip achieves up to 75‑fold latency reductions during batched inference, bringing overhead on the hardest grammars down to roughly 1.2–2×. This enables scalable constrained decoding for complex CFGs that were previously impractical due to high computational costs.
arXiv:2605.01188v3 Announce Type: replace Abstract: Scaling laws enable the optimal selection of data amount and language model size, yet the impact of the data unit, the token, on this relationship...