# Finitely Verifiable Segmentation: Decidability for Every Tokenizer with a Finite-State Verifier

arXiv: https://arxiv.org/abs/2610.30168 · HTML: https://mlsanity.com/paper/2610.30168/

## Key facts

- Cited by 1 papers in the map (data through 24 Nov 2026).
- Builds on 23 of its 81 references that are in the map.
- Submitted 16 Oct 2026.

## Builds on (most cited first, 23 of 23)

- [BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding](https://mlsanity.com/paper/1810.04805/) (2018)
- [Neural Machine Translation of Rare Words with Subword Units](https://mlsanity.com/paper/1508.07909/) (2015)
- [XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Models](https://mlsanity.com/paper/2411.15100/) (2024)
- [Fast WordPiece Tokenization](https://mlsanity.com/paper/2012.15524/) (2020)
- [Automata-based constraints for language model decoding](https://mlsanity.com/paper/2407.08103/) (2024)
- [Flexible and Efficient Grammar-Constrained Decoding](https://mlsanity.com/paper/2502.05111/) (2025)
- [Greed is All You Need: An Evaluation of Tokenizer Inference Methods](https://mlsanity.com/paper/2403.01289/) (2024)
- [Language Models over Canonical Byte-Pair Encodings](https://mlsanity.com/paper/2506.07956/) (2025)
- [Constructing a BPE Tokenization DFA](https://mlsanity.com/paper/2405.07671/) (2024)
- [Tokenization as Finite-State Transduction](https://mlsanity.com/paper/2410.15696/) (2024)
- [In-Place Tokenizer Expansion for Pre-trained LLMs](https://mlsanity.com/paper/2607.15232/) (2026)
- [TokTier: Exact Stateful CPU+GPU Tokenization for Agentic LLM Serving](https://mlsanity.com/paper/2607.29678/) (2026)
- [GPUTOK: GPU Accelerated Byte Level BPE Tokenization](https://mlsanity.com/paper/2603.02597/) (2026)
- [Incremental BPE Tokenization](https://mlsanity.com/paper/2605.30813/) (2026)
- [Vocabulary Customization for Efficient Domain-Specific LLM Deployment](https://mlsanity.com/paper/2509.26124/) (2025)
- [LoPT: Lossless Parallel Tokenization Acceleration for Long Context Inference of Large Language Model](https://mlsanity.com/paper/2511.04952/) (2025)
- [ReTokSync: Self-Synchronizing Tokenization Disambiguation for Generative Linguistic Steganography](https://mlsanity.com/paper/2604.25486/) (2026)
- [Certified Split Windows for Parallel Lexing: Recovering Boundaries Where No Byte Certifies](https://mlsanity.com/paper/2608.09761/) (2026)
- [Certified Panic Mode: Repair-Invariant Error Recovery for Maximal-Munch Lexing](https://mlsanity.com/paper/2609.10600/) (2026)
- [Information Flow Analysis for a Dynamically Typed Functional Language with Staged Metaprogramming](https://mlsanity.com/paper/1302.3178/) (2013)
- [Markov Chains and Unambiguous Automata](https://mlsanity.com/paper/1605.00950/) (2016)
- [Morphisms and BWT-run Sensitivity](https://mlsanity.com/paper/2504.17443/) (2025)
- [Efficient Grammar-Constrained Decoding via Parser Stack Classification](https://mlsanity.com/paper/2608.03065/) (2026)

## Built on by (most cited first, 1 of 1)

- [The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary](https://mlsanity.com/paper/2611.13061/) (2026)

## Abstract (arXiv)

A segmentation policy assigns to each byte string at most one segmentation into tokens. Call it finitely verifiable when a finite automaton over marked strings, bytes paired with boundary bits, accepts exactly the policy's own segmentations. The automaton judges a proposed segmentation and need not compute one. From a supplied verifier the paper gives constructive decisions for four questions, whether a window certifies a token boundary, whether the boundary gap is bounded, whether a mask can keep generation from dead-ending, and whether two policies are equivalent. The last three specialize limitedness, co-accessibility and the equivalence of single-valued transducers. The first refines the synchronizing cut of code theory, and two more ask whether a certified cut, or the cuts of an inventory, let each piece scan alone. The class sits strictly between the online-scannable policies and those with regular domains, and online scannability is decidable in polynomial time through Choffrut's theorem. Markings are length-preserving, so the class is exactly the rational segmentation policies, a normal form rather than a restriction. The class is closed under four pipeline operations, composition over a labeled stage, restriction to a regular schema, splitting at character-class changes, and byte-fallback union of literal policies. Each composite inherits the six decisions, and certificates transfer between stages under four laws. Under rational, unifilar, almost surely stopping finite-state sources, each mass of the weighted section is an exact rational, and so is each rate where expected length is positive. Maximal-munch lexing, canonical byte-pair encoding and two-mode WordPiece instantiate the interface, and the munch library implements all six decisions. Every theorem carries an executable check, and every reported statistic is a program's own output.
