# Tokenization: Hardness and Bicriteria Approximation Algorithms

arXiv: https://arxiv.org/abs/2611.15074 · HTML: https://mlsanity.com/paper/2611.15074/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 10 of its 44 references that are in the map.
- Submitted 11 Nov 2026.

## Builds on (most cited first, 10 of 10)

- [Neural Machine Translation of Rare Words with Subword Units](https://mlsanity.com/paper/1508.07909/) (2015)
- [Tokenization Is More Than Compression](https://mlsanity.com/paper/2402.18376/) (2024)
- [Getting the most out of your tokenizer for pre-training and domain adaptation](https://mlsanity.com/paper/2402.01035/) (2024)
- [Unpacking Tokenization: Evaluating Text Compression and its Correlation with Model Performance](https://mlsanity.com/paper/2403.06265/) (2024)
- [A Formal Perspective on Byte-Pair Encoding](https://mlsanity.com/paper/2306.16837/) (2023)
- [Theoretical Analysis of Byte-Pair Encoding](https://mlsanity.com/paper/2411.08671/) (2024)
- [Tokenisation is NP-Complete](https://mlsanity.com/paper/2412.15210/) (2024)
- [A Partition Cover Approach to Tokenization](https://mlsanity.com/paper/2501.06246/) (2025)
- [Tokenisation over Bounded Alphabets is Hard](https://mlsanity.com/paper/2511.15709/) (2025)
- [Tokenisation via Convex Relaxations](https://mlsanity.com/paper/2605.22821/) (2026)

## Abstract (arXiv)

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 primitive symbols 0 and 1 are always available, and each document must be segmented separately. Letting n denote the total corpus length and M for the maximum document length, we prove that, for every fixed varepsilon∈(0,1), Binary Tokenization problem does not have polynomial-time n1-varepsilon-approximation algorithms unless mathsfP=mathsfNP. To complement the hardness result, we give a polynomial-time (γ,γ)-bicriteria algorithm, with γ = √Mlog n: The algorithm outputs a vocabulary of size at most γ K with number of tokens at most γ rm OPTK, where rm OPTK is the optimal number of tokens under the original budget K. We also study a storage-budget variant, in which the sum of the selected substrings' lengths is bounded by B. For 2≤ B<n, we obtain an (O(log nlog B),O(log nlog B))-bicriteria approximation algorithm.
