Tokenisation is not in APX
Fundamental theoretical limitation for tokenization algorithms with implications for LLM training efficiency.
AI Summary
Researchers prove tokenization is not in APX complexity class, showing no polynomial-time algorithm can find a tokenizer within constant factor of optimum.
Excerpt
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
