Average-Case Approximation Guarantees for Subword Tokenisation under Power-Law Distributions
Develop average-case approximation algorithms and theoretical guarantees for subword tokenisation by modelling natural language text via power-law Markovian string generators.
Time
Compute level
Resources
Prerequisites
Scope
The Gap
The inapproximability proofs in Section 3 and Section 4 construct highly pathological strings with rigid periodic markers and encoded graph walks that force extreme gaps. These worst-case constructions do not reflect natural language text distributions, which exhibit power-law n-gram frequencies and hierarchical syntactic structures where standard heuristic tokenisers like BPE perform within 1% of optimal compression.
“Future work should explore what makes natural language so much easier to tokenise than our worst-case constructions, and explore data-specific algorithmic guarantees.”
Limitation
The hardness results hold exclusively for adversarial worst-case instances and fail to explain why greedy heuristic tokenisers achieve near-optimal empirical performance on natural language corpora.
Proposed Solution
Establish beyond-worst-case and average-case approximation analyses by formalizing tokenisation over stochastic string generation models that satisfy Mandelbrot-Zipfian word distributions and bounded conditional entropy. Prove parameterized approximation bounds or average-case polynomial-time approximation ratios for greedy BPE and direct tokenisation on text sequences drawn from bounded-memory Markov chains or probabilistic context-free grammars.
The paper’s authors list this direction as future work, so they may already be pursuing it.
Why This Matters
Could bridge the gap between theoretical hardness and practical effectiveness, providing formal performance bounds for tokenisers deployed in production language models.
How to Get Started
How to test it: Evaluate whether bounding string repetition entropy guarantees an explicit (1 + epsilon) approximation factor for greedy BPE on synthetic corpus generators compared against exact ILP or LP relaxation baselines, stopping if worst-case lower bounds cannot be breached even under strict Zipfian assumptions.
- Construct a synthetic text generator based on a hidden Markov model calibrated to the unigram and bigram frequency statistics of WikiText-103.
- Implement a small-scale exact integer linear programming tokeniser to compute true optimal compression on generated synthetic sequences.
- Analyze the merge graph of greedy BPE on the generative distribution to bound the competitive ratio as a function of the power-law exponent.
- Formulate sufficient distributional conditions on prefix overlap under which BPE merges achieve a constant-factor approximation.
Suggested by AI. Adapt it to your setup.
Has This Been Done?
Works like Toward a Theory of Tokenization in LLMs and Unpacking Tokenization explore compression and tokenization properties empirically, but none of the listed papers analyze average-case approximation guarantees or stochastic string generation models under power-law distributions. Consequently, the specific theoretical approximation bounds proposed remain unaddressed.
- Toward a Theory of Tokenization in LLMs · 2024 · 67 citations
- Unpacking Tokenization: Evaluating Text Compression and its Correlation with Model Performance · 2024 · 105 citations
We searched OpenAlex and arXiv for “tokenization average case approximation power law algorithms” and “Average-Case Approximation Guarantees for Subword Tokenisation under Power-Law Distributions” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
Tokenisation is not in APXVioleta Kastreva, Philip Whittington, Dennis Komm +1 more · 2026
This paper investigates the theoretical limits of subword tokenisation algorithms used in language models, proving that binary direct and bottom-up tokenisation are not in the APX complexity class under either compression or unigram log-likelihood objectives. The authors also establish that even unary direct tokenisation is APX-hard, ruling out unconditional polynomial-time constant-factor approximation algorithms or PTAS schemes unless P = NP. Consequently, any meaningful performance guarantees for practical subword tokenisers must depend on domain-specific or dataset-specific structural properties rather than universal worst-case bounds.
Related Ideas
- Optimizing Parameter Efficiency via Language-Specific TokenizationFlavors of Moonshine: Tiny Specialized ASR Models for Edge Devices🟡Fairly easy
- Formal Claim-to-Proof Consistency Verification for Detecting Mathematical Overclaims in Scientific ProseK2-Horizon: A Frontier Fleet of Open Source Language Models🟠Medium
- Grammar-Constrained Decoding for Structured DocTagsSmolDocling: An ultra-compact vision-language model for end-to-end multi-modal document conversion🟡Fairly easy
- Hybrid Anchor-Token Mechanism for Long-Form StabilityQwen3-TTS Technical Report🟠Medium
- Semantic-Aware Variable-Rate TokenizationNextFlow: Unified Sequential Modeling Activates Multimodal Understanding and Generation🔴Hard