mlsanityData to 7 Oct 2026

Tokenization as Finite-State Transduction

arXiv 2410.15696 ↗First posted 21 Oct 2024cs.CL cs.FLcited by 5

Not on the map. Why?

Abstract (arXiv)

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 efficiently encode all possible tokenizations of a regular language. We then constructively show that Byte-Pair Encoding (BPE) and MaxMatch (WordPiece), two popular tokenization schemes, fit within this framework. For BPE, this is particularly surprising given its resemblance to context-free grammar and the fact that it does not tokenize strings from left to right. An application of this is to guided generation, where the outputs of a language model are constrained to match some pattern. Here, patterns are encoded at the character level, which creates a mismatch between the constraints and the model's subword vocabulary. While past work has focused only on constraining outputs without regard to the underlying tokenization algorithm, our framework allows for simultaneously constraining the model outputs to match a specified pattern while also adhering to the underlying tokenizer's canonical tokenization.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 14 of its 34 references that are in the map. First posted on arXiv 21 Oct 2024.

Builds on

14 of 34 references.

References · 14

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2016Pointer Sentinel Mixture Modelscited by 2,992
  5. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  6. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
  7. 2021Between words and characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLPcited by 130
  8. 2020Fast WordPiece Tokenizationcited by 85
  9. 2024Automata-based constraints for language model decodingcited by 49
  10. 2023A Formal Perspective on Byte-Pair Encodingcited by 35
  11. 2024Toward a Theory of Tokenization in LLMscited by 28
  12. 2024Where is the signal in tokenization space?cited by 21
2 more
  1. 2024The Foundations of Tokenization: Statistical and Computational Concernscited by 20
  2. 2024Distributional Properties of Subword Regularizationcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 4.

5 papers.