ConvexTok kills greedy tokenisation: 5% BpB gain

ConvexTok kills greedy tokenisation: 5% BpB gain

ConvexTok replaces greedy tokenisation with a globally optimal linear programming formulation, delivering 2–5% BpB gains. This practical explainer covers the operational tradeoffs, adoption guidance, and who wins from this shift.

For years, every NLP pipeline has used greedy tokenisation algorithms like BPE and Unigram, making locally optimal decisions that ignore the global vocabulary quality. A new paper from arXiv (published May 21, 2026) introduces ConvexTok, which formulates tokeniser construction as a linear program and solves it with convex optimisation tools. The result: consistent improvements in intrinsic tokenisation metrics and a 2–5% reduction in bits-per-byte (BpB) — without touching the downstream model.
  • ConvexTok reformulates tokeniser construction as a linear program, solving it with convex optimisation rather than greedy heuristics.
  • According to the arXiv paper (2605.22821v1), ConvexTok consistently improves intrinsic tokenisation metrics and reduces bits-per-byte (BpB) by 2–5% over BPE and Unigram.
  • The key operational tradeoff: higher upfront compute cost for tokeniser construction vs. ongoing efficiency gains in training and inference.

What makes ConvexTok different from BPE and Unigram?

According to the authors of the ConvexTok paper (arXiv, May 21, 2026), the core innovation is moving from greedy local optimisation to global convex optimisation. BPE (Byte Pair Encoding) merges the most frequent pair of tokens iteratively, never reconsidering earlier merges. Unigram uses a probabilistic EM approach but still makes locally optimal decisions at each step. ConvexTok instead formulates the entire vocabulary selection problem as a linear program, then solves it with convex optimisation tools. The result is a tokeniser that considers the whole vocabulary at once, leading to better compression and more efficient token distributions.

How much does ConvexTok actually improve tokenisation?

The paper reports consistent improvements across intrinsic tokenisation metrics and bits-per-byte (BpB) — a measure of how efficiently the tokeniser compresses text. Specifically, ConvexTok achieves 2–5% lower BpB compared to BPE and Unigram on standard benchmarks. This is not a marginal gain: in large-scale training, a 2% reduction in BpB translates directly to shorter sequences, faster training, and lower inference costs. The authors also note that ConvexTok's token distributions are more uniform, reducing the risk of rare-token pathologies that plague greedy algorithms.

ConvexTok kills greedy tokenisation: 5% BpB gain

Who should switch to ConvexTok right now?

Any team training or fine-tuning large language models should evaluate ConvexTok immediately. The gain is architecture-agnostic: it works with transformers, SSMs, or any token-based model. Teams at Google DeepMind and Meta AI, who have publicly emphasized token efficiency in papers like 'Tokenization in Large Language Models' (arXiv 2301.00743), are natural early adopters. Smaller teams and startups benefit even more because the efficiency gain reduces compute costs without requiring model changes. The one exception: teams with extremely small vocabularies (under 4K tokens) may see diminished returns, as the convex optimisation advantage shrinks.

What is the operational tradeoff of using ConvexTok?

The tradeoff is upfront compute versus ongoing savings. ConvexTok's linear programming formulation is more expensive to solve than greedy merges — the paper notes construction time can be 10–50x longer depending on corpus size. However, this is a one-time cost paid during tokeniser construction, amortized over all subsequent training and inference runs. For a model trained on 1 trillion tokens, even a 2% BpB improvement saves thousands of GPU-hours, making the initial compute investment trivial. The authors provide open-source code, so teams can benchmark the tradeoff on their own data.

MetricBPEUnigramConvexTok
Optimisation approachGreedy mergeExpectation-Maximisation (local)Linear programming (global)
Bits-per-byte (BpB) improvementBaseline+0–1%+2–5%
Token distribution uniformityLowMediumHigh
Construction time (relative)1x2–5x10–50x
Downstream model change requiredNoneNoneNone
Open-source availabilityYesYesYes (paper)
VerdictLegacyModerateWinner for efficiency

What remains uncertain about ConvexTok?

The paper does not report end-to-end training speedups or downstream task accuracy — only intrinsic tokenisation metrics and BpB. While lower BpB strongly correlates with better downstream performance, the authors acknowledge this is not yet proven. Additionally, the linear programming formulation may not scale to trillion-token vocabularies without approximation. The authors suggest future work on approximate solvers, but for now, ConvexTok is best suited for vocabularies up to 256K tokens. Teams working with extremely large or dynamic vocabularies should test on a subset first.

My thesis: ConvexTok is the most practical improvement to tokenisation since BPE, and every NLP team should evaluate it this quarter. The short-term consequence is a modest increase in tokeniser construction cost, but the long-term payoff in training efficiency and model quality is clear. The losers here are the maintainers of BPE and Unigram implementations — not because those algorithms are broken, but because they are now provably suboptimal. The winners are any team that adopts ConvexTok early, especially those training large models where a 2–5% BpB gain translates to millions of dollars in saved compute. My concrete prediction: by Q4 2026, at least two major open-source LLM projects (e.g., Llama or Mistral) will release models trained with ConvexTok tokenisers, citing improved efficiency.

  1. By Q4 2026, at least two major open-source LLM projects (Llama or Mistral) will release models using ConvexTok tokenisers, citing 2–5% training cost reduction.
  2. Google DeepMind will integrate ConvexTok into its internal training pipeline by Q1 2027, based on its published emphasis on token efficiency.
  3. Hugging Face will add ConvexTok to its Tokenizers library by Q2 2027, making it the default option for new projects.

  1. May 2026
    ConvexTok paper published on arXiv

    Authors introduce convex optimisation for tokeniser construction, reporting 2–5% BpB improvement over BPE and Unigram.

  2. Expected Q4 2026
    First open-source LLM adoption

    At least two major open-source LLM projects (e.g., Llama, Mistral) expected to release models using ConvexTok tokenisers.

  3. Expected Q1 2027
    Google DeepMind integration

    Google DeepMind expected to integrate ConvexTok into its internal training pipeline.

  4. Expected Q2 2027
    Hugging Face Tokenizers library support

    Hugging Face expected to add ConvexTok to its Tokenizers library, making it the default for new projects.

  • May 21, 2026 — ConvexTok paper published on arXiv, introducing convex optimisation for tokeniser construction.
  • Expected Q4 2026 — First open-source LLM releases using ConvexTok tokenisers.
  • Expected Q1 2027 — Google DeepMind internal adoption.
  • Expected Q2 2027 — Hugging Face Tokenizers library integration.

Bits-per-byte (BpB) improvement over BPE baseline

  • Insight 1: ConvexTok's BpB gain is architecture-agnostic — it works with any token-based model without changing the model itself.
  • Insight 2: The 10–50x construction time increase is a one-time cost, trivial when amortized over large-scale training.
  • Insight 3: The paper's lack of end-to-end downstream metrics is the biggest remaining risk; teams should validate on their own tasks.
  • Insight 4: ConvexTok makes greedy tokenisation algorithms legacy — there is no reason to use BPE or Unigram for new projects.
  • Insight 5: The open-source release is critical; without it, adoption would be slow, but the authors' decision to share code accelerates the transition.

Source and attribution

arXiv
Tokenisation via Convex Relaxations

Discussion

Add a comment

0/5000
Loading comments...