Skip to content
AI-generated research idea🟠Medium🔬Significant ResearchNo close match found

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

several months

Compute level

Single GPU or less

Resources

Standard CPU or laptop, public text corpora (e.g., WikiText-103) for empirical validation.

Prerequisites

combinatorial optimisation, formal language theory, approximation algorithms, probabilistic generative models

Scope

build theoretical proofs and validate on synthetic corpus simulators

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.”
From the paper, Section 1, page 2. Matched against the PDF text.

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.

  1. Construct a synthetic text generator based on a hidden Markov model calibrated to the unigram and bigram frequency statistics of WikiText-103.
  2. Implement a small-scale exact integer linear programming tokeniser to compute true optimal compression on generated synthetic sequences.
  3. Analyze the merge graph of greedy BPE on the generative distribution to bound the competitive ratio as a function of the power-law exponent.
  4. 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?

No close match in 10 results

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.

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 APX

Violeta 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

Is this a good idea?

Share onXLinkedIn