Extended version of ESA 2026 paper. Changes in v2: (1) an upper bound of ~0.4324 on the approximation ratio of BPE, improving the earlier 0.625, and (2) a modified proof of Claim 5, fixing an inaccuracy in v1
Byte-Pair Encoding (BPE) is a widely used method for subword tokenization, with origins in grammar-based text compression. It is employed in a variety of language processing tasks such as machine translation or large language model (LLM) pretraining, to create a token dictionary of a prescribed size. Most evaluations of BPE to date are empirical, and the reasons for its good practical performance are not well understood.
In this paper we focus on the optimization problem underlying BPE: finding a pair encoding that achieves optimal compression utility. We show that this problem is APX-complete, indicating that it is unlikely to admit a polynomial-time approximation scheme. This answers, in a stronger form, a question recently raised by Zouhar et al.
On the positive side, we show that BPE approximates the compression utility of the optimal pair encoding to a worst-case factor between $1/3$ and $(1-e^{-2})/2 \approx 0.4324$. Our results aim to explain the ongoing success of BPE and are, to our knowledge, the first rigorous guarantees on its compression utility that hold for all inputs.
Scaffold-BPE: Enhancing Byte Pair Encoding for Large Language Models with Simple and Effective Scaffold Token Removal
Beihang University(北京航空航天大学);Tsinghua University(清华大学);BNRist(北京信息科学与技术国家研究中心);Chinese Academy of Sciences(中国科学院);Beijing Institute Of Technology(北京理工大学)
From Pixels to Tokens: Byte-Pair Encoding on Quantized Visual Modalities
School of Computer Science, Peking University(北京大学计算机学院);The Chinese University of Hong Kong(香港中文大学);University of California, San Diego(加利福尼亚大学圣迭戈分校);Beijing Academy of Artificial Intelligence(北京人工智能研究院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)
Byte-token Enhanced Language Models for Temporal Point Processes Analysis
Independent Researcher(独立研究者);Southeast University(东南大学);Center for Applied Statistics and School of Statistics, Renmin University of China(应用统计中心和中国人民大学统计学院)