arXiv Computation and Language

The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary

The paper formalizes the left‑ripple effect of byte‑pair encoding (BPE), answering how far a string prepended on the left can alter tokenization for any dictionary. It introduces radius certificates derived from two automaton runs to compute the origin radius in polynomial time, characterizes when this radius is infinite, and shows that a finite radius guarantees dense cuts in every window. The authors also provide a streaming tokenizer that emits stable tokens after each symbol, decide boundedness of edit distance for all dictionaries, and analyze specific models such as GPT‑2 and Llama 3.

arXiv Computation and Language
Oct 23

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

The paper introduces the notion of finitely verifiable segmentation, where a finite automaton accepts exactly the segmentations produced by a given policy. It proves that several key decision problems—such as boundary certification, bounded gaps, mask completable generation, and policy equivalence—become decidable for this class, which lies strictly between online‑scannable and regular‑domain policies. The class is closed under common pipeline operations and supports practical implementations like maximal‑munch lexing and WordPiece, with all results accompanied by executable checks.

By Nicklas Nidh\"ogg
arXiv AI
Nov 14

Tokenization: Hardness and Bicriteria Approximation Algorithms

arXiv:2611. 15074v1 Announce Type: cross Abstract: We study Binary Tokenization: given a corpus of binary strings over $\{0,1\}$ and a vocabulary budget $K$, select at most $K$ substrings (called vocabulary) to minimize the total number of tokens needed to represent the corpus.

By Atieh Bastan, Xiaoling He, A. Pavan, N. V. Vinodchandran
arXiv Machine Learning
Jun 25

Space-Efficient Language Generation in the Limit

arXiv:2606. 25777v1 Announce Type: cross Abstract: We initiate a resource-aware theory of \textit{language generation in the limit} under the minimal constraint of space efficiency.

By Nicolas Flammarion, Chirag Pabbaraju, Hristo Papazov, Miltiadis Stouras, Ola Svensson
arXiv Machine Learning
Jul 28

Hallucination Rates in Language Generation

arXiv:2607. 23361v1 Announce Type: cross Abstract: Language generation in the limit is an elegant model introduced by Kleinberg and Mullainathan [KM24] to formally study language generation by an algorithm that learns solely based on example strings.

By Debmalya Panigrahi, Fan Wei, Ian Zhang
arXiv AI
Jun 9

Polynomial Context-Truncation Sensitivity in Autoregressive Language Models: Sequential Wyner-Ziv Bounds for KV Cache Compression

arXiv:2605. 25085v2 Announce Type: replace-cross Abstract: We study the rate-distortion limits of online KV cache compression in autoregressive language models, formulating it as sequential Wyner-Ziv source coding on the filtration induced by the model, with the next-step query as decoder side information.

By Munsik Kim
arXiv AI
Oct 9

Language Modeling is Monotone Compression

The paper investigates the relationship between large language models (LLMs) and compression, showing that LLMs, modeled as next‑token predictors, are equivalent to monotone (order‑preserving) compression algorithms with an error gap of at most 2. It further proves that this monotonicity is necessary for the equivalence only if cryptographic one‑way functions exist, and derives a cryptographic corollary linking next‑bit pseudoentropy to monotone incompressibility.

By Noam Mazor, Andrew Morgan, Rafael Pass