Skip to content

Tokenisation is not in APX

Violeta Kastreva, Philip Whittington, Dennis Komm, Tiago Pimentel

cs.CL

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.

Create a lesson

Metadata

Categories
cs.CL, cs.LG