Theoretical Analysis of Byte-Pair Encoding
Not on the map. Why?
Abstract (arXiv)
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 0.333 and 0.625. 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.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 6 of its 36 references that are in the map. First posted on arXiv 13 Nov 2024.
Builds on
6 of 36 references.
References · 6
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2021Between words and characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLPcited by 130
- 2023Tokenizer Choice For LLM Training: Negligible or Crucial?cited by 105
- 2024Tokenization Is More Than Compressioncited by 87
- 2023A Formal Perspective on Byte-Pair Encodingcited by 35
Built on by
Citing papers per year: 2024: 2; 2025: 8; 2026: 5.
15 papers.
Sort:
By area:
- 2025Causal Estimation of Tokenisation Biascited by 16
- 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentivescited by 13
- 2024Evaluating Tokenizer Performance of Large Language Models Across Official Indian Languagescited by 10
- 2024Tokenisation is NP-Completecited by 10
- 2025Unified Multimodal Understanding via Byte-Pair Visual Encodingcited by 9
- 2025A Partition Cover Approach to Tokenizationcited by 5
- 2025Tokenisation over Bounded Alphabets is Hardcited by 5
- 2026Tokenisation via Convex Relaxationscited by 4
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devicescited by 1
- 2026Skill Reuse as Compression in Agentic RLcited by 1
- 2025KunlunBaize: LLM with Multi-Scale Convolution and Multi-Token Prediction Under TransformerX Frameworkcited by 0
- 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-servicecited by 0
- 2026Objective vs. Search: Decomposing What Makes a Good Tokeniser16 Sep 2026
- 2026Skill Reuse as Compression in Agentic RL29 May 2026
- 2026Tokenisation via Convex Relaxations21 May 2026
- 2026Understanding Secret Leakage Risks in Code LLMs: A Tokenization Perspective20 Apr 2026
- 2026A Multi-head-based architecture for effective morphological tagging in Russian with open dictionary3 Apr 2026
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devices10 Dec 2025
- 2025Tokenisation over Bounded Alphabets is Hard19 Nov 2025
- 2025Unified Multimodal Understanding via Byte-Pair Visual Encoding30 Jun 2025
- 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-service6 Jun 2025
- 2025Causal Estimation of Tokenisation Bias3 Jun 2025
- 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentives27 May 2025
- 2025KunlunBaize: LLM with Multi-Scale Convolution and Multi-Token Prediction Under TransformerX Framework27 Feb 2025
3 more
- 2025A Partition Cover Approach to Tokenization8 Jan 2025
- 2024Tokenisation is NP-Complete19 Dec 2024
- 2024Evaluating Tokenizer Performance of Large Language Models Across Official Indian Languages19 Nov 2024
- 2026Skill Reuse as Compression in Agentic RLcited by 1
- 2026Skill Reuse as Compression in Agentic RL29 May 2026
- 2025Causal Estimation of Tokenisation Biascited by 16
- 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentivescited by 13
- 2024Evaluating Tokenizer Performance of Large Language Models Across Official Indian Languagescited by 10
- 2024Tokenisation is NP-Completecited by 10
- 2025A Partition Cover Approach to Tokenizationcited by 5
- 2025Tokenisation over Bounded Alphabets is Hardcited by 5
- 2026Tokenisation via Convex Relaxationscited by 4
- 2025KunlunBaize: LLM with Multi-Scale Convolution and Multi-Token Prediction Under TransformerX Frameworkcited by 0
- 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-servicecited by 0
- 2026A Multi-head-based architecture for effective morphological tagging in Russian with open dictionarycited by 0
- 2026Understanding Secret Leakage Risks in Code LLMs: A Tokenization Perspectivecited by 0
- 2026Objective vs. Search: Decomposing What Makes a Good Tokenisercited by 0
- 2026Objective vs. Search: Decomposing What Makes a Good Tokeniser16 Sep 2026
- 2026Tokenisation via Convex Relaxations21 May 2026
- 2026Understanding Secret Leakage Risks in Code LLMs: A Tokenization Perspective20 Apr 2026
- 2026A Multi-head-based architecture for effective morphological tagging in Russian with open dictionary3 Apr 2026
- 2025Tokenisation over Bounded Alphabets is Hard19 Nov 2025
- 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-service6 Jun 2025
- 2025Causal Estimation of Tokenisation Bias3 Jun 2025
- 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentives27 May 2025
- 2025KunlunBaize: LLM with Multi-Scale Convolution and Multi-Token Prediction Under TransformerX Framework27 Feb 2025
- 2025A Partition Cover Approach to Tokenization8 Jan 2025
- 2024Tokenisation is NP-Complete19 Dec 2024
- 2024Evaluating Tokenizer Performance of Large Language Models Across Official Indian Languages19 Nov 2024