cs.CLNov 25, 2026

Tokenisation is not in APX

Authors: Violeta Kastreva, Philip Whittington, Dennis Komm, Tiago Pimentel

Organizations: Department of Computer Science, ETH Zürich

Abstract

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.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Pair-Merge Tokenisation Is Hard to Approximate on Binary Strings and Strongly NP-Hard on Unary Datasets

    Nov 10, 2026Kundan Baliga, Aiden Xie, Aditya ByjuTokenizationByte-Pair Encoding

  2. Tokenization: Hardness and Bicriteria Approximation Algorithms

    Nov 11, 2026Atieh Bastan, Xiaoling He, A. Pavan +1TokenizationApproximation Algorithms

  3. Tokenisation via Convex Relaxations

    May 21, 2026Jan Tempus, Philip Whittington, Craig W. Schmidt +2Token EfficiencyLinear Programming