Tokenisation is not in APX
In this paper, we prove that, unless P=NP, no polynomial-time algorithm can find a tokeniser whose objective is within any constant factor of the optimum, meaning that tokenisation is not in the APX complexity class. We prove this for direct and bottom-up tokenisation, under both a compression or unigram log-likelihood objectives, and for binary or larger alphabets. We further show that, even over unary alphabets, direct tokenisation is APX-hard, and thus admits no polynomial-time approximation scheme.
Authors
- Dennis Komm (ORCID: https://orcid.org/0000-0002-9024-1558)
- Tiago Pimentel (ORCID: https://orcid.org/0000-0002-5159-4641)
- Violeta Kastreva
- Philip Whittington
Publication Details
- Journal
- arXiv
- Published
- 2026-11-25
- DOI
- https://doi.org/10.48550/arxiv.2611.34938
- Primary Topic
- Algorithms and Data Compression
- Type
- preprint