Answers are grounded in this paper and cite their sources.
Finite-state transducers efficiently represent popular tokenization methods, suggesting improvements for language models.
Tokenization is the first step in modern neural language model pipelines where an input text is converted to a sequence of subword tokens. We introduce from first principles a finite-state transduction framework which can encode all possible tokenizations of a regular language. We then constructively show that Byte-Pair Encoding (BPE) and MaxMatch (WordPiece), two popular tokenization schemes, are also efficiently representable by simple finite-state transducers. For BPE, this is particularly surprising given that it does not tokenize strings from left to right and requires a notion of priority. We also discuss an application of subword-level pattern promotion to guided generation, where the outputs of a language model are constrained to match a specified pattern, and how tokenization-aware promotion offers a theoretical benefit to modeling.
No takes yet. Share an insight, caveat, or question.
Cognetta et al. (2025) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: