The Price of Token Boundaries: Compression Certificates and Prediction

arXiv cs.AI Papers

Summary

This paper quantifies the compression cost of pre-tokenisation boundary rules by bounding minimum token counts from both sides, certifying that regex boundaries increase optimal token counts by 28.3–36.8% on English Wikipedia, and showing that compression-optimal token dictionaries do not necessarily improve language-model prediction quality.

arXiv:2609.35869v1 Announce Type: new Abstract: Pre-tokenisation restricts which text fragments can become prediction units, but its compression cost is obscured when tokenisers are compared only under the same boundaries. We measure this cost by bounding the minimum token count from both sides, with and without a regular-expression boundary rule. Nonnegative prices on token occurrences yield a lower bound through shortest paths and vocabulary-budget selection; maximising over all prices recovers the linear programming relaxation, and an independent integer checker certifies the reported values. On English Wikipedia, boundaries increase the optimal token count by 28.3--36.8\%. Byte pair encoding lies 2.1\% above the constrained lower bound, but 10.9\% above the unrestricted bound. Compression and prediction favour different dictionaries: at 85M non-embedding parameters and matched training-token budgets, unrestricted fitting yields higher mean held-out bits per byte under a common unrestricted decoder in all 12 languages in the paired study and 11 of 12 under independent tuning and evaluation. To study intermediate boundary policies, we introduce boundary licences, which limit the vocabulary entries permitted to cross cuts and admit the same form of certificate. On separate English and Chinese fitting corpora, licensing 10\% of the vocabulary budget recovers 85.2\% and 100.0\% of the achieved token-count reduction from removing all cuts. These results quantify the compression cost of boundaries while separating it from the prediction quality of the resulting token units.
Original Article
View Cached Full Text

Cached at: 09/30/26, 09:37 AM

# The Price of Token Boundaries:Compression Certificates and Prediction
Source: [https://arxiv.org/html/2609.35869](https://arxiv.org/html/2609.35869)
Yuhao DU, Shunian ChenThe Chinese University of Hong Kong, ShenzhenShenzhen Loop Area Instituteyuhaodu1@link\.cuhk\.edu\.cn

###### Abstract

Pre\-tokenisation restricts which text fragments can become prediction units, but its compression cost is obscured when tokenisers are compared only under the same boundaries\. We measure this cost by bounding the minimum token count from both sides, with and without a regular\-expression boundary rule\. Non\-negative prices on token occurrences yield a lower bound through shortest paths and vocabulary\-budget selection; maximising over all prices recovers the linear\-programming relaxation, and an independent integer checker certifies the reported values\. On English Wikipedia, boundaries increase the optimal token count by28\.328\.3–36\.8%36\.8\\%\. Byte pair encoding lies2\.1%2\.1\\%above the constrained lower bound, but10\.9%10\.9\\%above the unrestricted bound\. Compression and prediction favour different dictionaries: at8585M non\-embedding parameters and matched training\-token budgets, unrestricted fitting yields higher mean held\-out bits per byte under a common unrestricted decoder in all1212languages in the paired study and1111of1212under independent tuning and evaluation\. To study intermediate boundary policies, we introduce*boundary licences*, which limit the vocabulary entries permitted to cross cuts and admit the same form of certificate\. On separate English and Chinese fitting corpora, licensing10%10\\%of the vocabulary budget recovers85\.2%85\.2\\%and100\.0%100\.0\\%of the achieved token\-count reduction from removing all cuts\. These results quantify the compression cost of boundaries while separating it from the prediction quality of the resulting token units\.

## 1Introduction

Tokenisers split text into the pieces a language model \(LM\) predicts over\. A regular expression \(regex\) first divides text into pieces; vocabulary training then selects recurring substrings within those pieces\. Preventing a token from spanning a word boundary can increase the number of prediction steps\. It may also preserve useful prediction units\. These two effects are usually assessed separately: compression methods seek shorter sequences, while language\-model experiments compare the quality of the resulting token streams\. We ask what the boundary constraint costs at the compression optimum, and what is gained by keeping it during vocabulary training \(Figure[1](https://arxiv.org/html/2609.35869#S1.F1)\)\.

Figure 1:A compression advantage need not improve prediction\.\(a\) A cut removes crossing candidate occurrences; a licence lets a token cross it\. \(b\) English compression optima, enclosed by feasible vocabularies and integer\-checked lower bounds \(K=32768K\{=\}32768,L=16L\{=\}16, Wikipedia\); the value axis is broken\. Squares mark BPE’s achieved compression \(4\.5514\.551and5\.6975\.697bytes per token\); the annotated tax interval is28\.328\.3–36\.8%36\.8\\%\. \(c\) English test bit rates from three paired LM seeds; the value axis is broken\. Both arms use unrestricted Viterbi encoding, with dictionaries fitted with or without regex boundaries\. The unrestricted fitted dictionary has higher bit rate in each seed\. In panels \(b\) and \(c\), blue marks the regex\-constrained arm and gold the unrestricted arm\. Compression certificates and test losses refer to their respective evaluation corpora\.A useful puzzle motivates the first question\. ConvexTok and JOLT\([Tempus et al\., 2026](https://arxiv.org/html/2609.35869#bib.bib2);[Singh et al\., 2026](https://arxiv.org/html/2609.35869#bib.bib3)\)report that byte pair encoding \(BPE\) is close to a compression lower bound under pre\-tokenisation \(minimum\-count for ConvexTok, greedy longest\-match for JOLT\)\. SuperBPE and BoundlessBPE\([Liu et al\., 2025](https://arxiv.org/html/2609.35869#bib.bib4);[Schmidt et al\., 2025](https://arxiv.org/html/2609.35869#bib.bib5)\)nevertheless obtain substantially shorter sequences by relaxing token boundaries\. The observations concern different optima\. A certificate inside the regex\-constrained feasible set cannot bound the cost of the constraint itself\. Measuring that cost requires a certificate that also covers unrestricted documents, where the number of candidate occurrences grows as corpus bytes times maximum token length\.

We obtain such a certificate by assigning a non\-negative price to each candidate occurrence\. The lower bound is a shortest\-path cost minus the largestKKaggregate token bids, whereKKis the vocabulary budget\. This specialises classical Lagrangian relaxation\([Geoffrion, 1974](https://arxiv.org/html/2609.35869#bib.bib23);[Fisher, 1981](https://arxiv.org/html/2609.35869#bib.bib24)\)to a computation that needs no general\-purpose linear\-programming \(LP\) solver\. Prices may be optimised approximately; validity is checked separately in integer arithmetic\. A feasible vocabulary supplies the other end of the interval, so the cost of pre\-tokenisation can be measured independently of whether BPE or our vocabulary search reaches the optimum\.

In a paired1212\-language study, unrestricted fitted dictionaries compress better but have higher mean test bits per byte in every language\. A replication with independent tuning and evaluation seeds retains this direction in1111of1212languages\. This extends the evidence that minimum token count is an incomplete objective for language modelling\([Schmidt et al\., 2024](https://arxiv.org/html/2609.35869#bib.bib7);[Meister, 2026](https://arxiv.org/html/2609.35869#bib.bib30)\)\. Appendix[E](https://arxiv.org/html/2609.35869#A5)gives an extended discussion of related work and scope\.

Vocabulary content, token frequencies and effective byte context change together in this comparison\. Boundary licences control a complementary quantity: the number of vocabulary entries permitted across regex cuts\. Their endpoints reproduce the constrained and unrestricted optimisation problems, and their certificate measures the compression available at intermediate budgets\.

#### Contributions\.

Wecertify the costof boundaries with an exact numerical checker and two\-sided optimal\-tax intervals \(§[3](https://arxiv.org/html/2609.35869#S3)–[4](https://arxiv.org/html/2609.35869#S4)\);measure prediction differencesusing held\-out test comparisons with an explicit vocabulary and decoder protocol \(§[5](https://arxiv.org/html/2609.35869#S5)\); andcontrol boundary permissionswith a boundary\-licence formulation and measured compression frontiers \(§[6](https://arxiv.org/html/2609.35869#S6)\)\.

## 2Related work

#### Vocabulary optimisation\.

BPE and Unigram optimise merge\-frequency and likelihood objectives, respectively\([Gage, 1994](https://arxiv.org/html/2609.35869#bib.bib13);[Sennrich et al\., 2016](https://arxiv.org/html/2609.35869#bib.bib12);[Kudo, 2018](https://arxiv.org/html/2609.35869#bib.bib14);[Kudo and Richardson, 2018](https://arxiv.org/html/2609.35869#bib.bib21)\)\. BytePiece\([Su, 2023](https://arxiv.org/html/2609.35869#bib.bib1)\)trains byte\-level Unigram vocabularies with a byte n\-gram model and decodes by maximising summed token log probabilities\. ConvexTok\([Tempus et al\., 2026](https://arxiv.org/html/2609.35869#bib.bib2)\)formulates vocabulary selection and minimum\-count segmentation as a linear programme; JOLT\([Singh et al\., 2026](https://arxiv.org/html/2609.35869#bib.bib3)\)incorporates greedy\-inference consistency\. We share ConvexTok’s vocabulary\-selection relaxation\. Our contribution is a price certificate that evaluates it without a general\-purpose solver on unrestricted document graphs\. Its optimisation and numerical verification are separate computations\. The decomposition separates shortest\-path segmentation from vocabulary\-budget selection\.

#### Boundary relaxation and prediction\.

SuperBPE and BoundlessBPE construct vocabularies that span conventional boundaries\([Liu et al\., 2025](https://arxiv.org/html/2609.35869#bib.bib4);[Schmidt et al\., 2025](https://arxiv.org/html/2609.35869#bib.bib5)\)\. Our tax interval instead bounds the compression cost of the boundary rule independently of a vocabulary\-construction heuristic\. PathPiece\([Schmidt et al\., 2024](https://arxiv.org/html/2609.35869#bib.bib7)\)and TokEval\([Meister, 2026](https://arxiv.org/html/2609.35869#bib.bib30)\)show why intrinsic compression must be assessed alongside language\-model quality\. We connect these questions by certifying compression optima, comparing prediction under explicit decoder protocols, and formulating a budget on crossing permissions\.

## 3The occurrence\-price certificate

### 3\.1Vocabulary selection and boundary constraints

LetΣ\\Sigmabe the alphabet of256256bytes and let a corpus containB\>0B\>0bytes in documents𝒟=\{b\(n\)\}n=1Ndoc\\mathcal\{D\}=\\\{b^\{\(n\)\}\\\}\_\{n=1\}^\{N\_\{\\mathrm\{doc\}\}\}\. The candidate set𝒞\\mathcal\{C\}consists of all distinct corpus substrings of lengths22throughLL, whereL≥2L\\geq 2\. A vocabulary contains all256256bytes and at mostK≥1K\\geq 1additional entries\. Withseg⁡\(b,V\)\\mathrm\{seg\}\(b;V\)denoting the minimum number of tokens fromVVwhose concatenation isbb, define

OPT⁡\(K\)=min⁡∑nS⊆𝒞,\|S\|≤K⁡seg⁡\(b\(n\),Σ∪S\)\.\\mathrm\{OPT\}\(K\)=\\min\_\{S\\subseteq\\mathcal\{C\},\\,\|S\|\\leq K\}\\sum\_\{n\}\\mathrm\{seg\}\(b^\{\(n\)\};\\Sigma\\cup S\)\.\(1\)Every document defines a candidate directed acyclic graphGnG\_\{n\}on byte positions, containing byte edges and all candidate occurrences legal under the chosen cut regime\. A vocabularySSmakes usable the byte edges and longer edges whose strings belong toSS\. Minimum\-count encoding is a shortest path in this usable subgraph\. Other inference rules can produce more tokens, so a lower bound on \([1](https://arxiv.org/html/2609.35869#S3.E1)\) also bounds their achievable token counts\.

A pre\-tokeniserπ\\pideletes occurrences that cross its cuts, preserving byte edges and document boundaries\. In a cut regime, occurrence sets contain only surviving edges; candidate types with no surviving occurrence are omitted\. HenceOPTπ​\(K\)≥OPT∅​\(K\)\\mathrm\{OPT\}\_\{\\pi\}\(K\)\\geq\\mathrm\{OPT\}\_\{\\varnothing\}\(K\)\. We call

τπ​\(K\)=OPTπ​\(K\)OPT∅​\(K\)−1\\tau\_\{\\pi\}\(K\)=\\frac\{\\mathrm\{OPT\}\_\{\\pi\}\(K\)\}\{\\mathrm\{OPT\}\_\{\\varnothing\}\(K\)\}\-1\(2\)the*optimal pre\-tokenisation tax*\. This compares two optima; the ratio of two trained vocabularies is a different measurement of achieved compression\.

### 3\.2Prices and the certified bound

The difficulty is that selecting one vocabulary entry enables all of its occurrences, possibly in many documents\. Prices temporarily separate these decisions: each path pays for the occurrences it uses, while vocabulary selection collects their aggregate bids\. Subtracting the largest admissible collection of bids makes the separation conservative\.

Writexex\_\{e\}for edge use andyty\_\{t\}for vocabulary inclusion\. For edgeee, lett⁡\(e\)t\(e\)denote its byte string andE⁡\(t\)E\(t\)the occurrences of stringtt\. WithAnA\_\{n\}the document incidence matrix anddnd\_\{n\}a unit source\-to\-sink demand,An​x\(n\)=dnA\_\{n\}x^\{\(n\)\}=d\_\{n\}enforces a unit flow\. The equivalent integer programme is

min⁡∑ex,y∈\{0,1\}⁡xes\.t\.An​x\(n\)=dn,xe≤yt⁡\(e\),∑tyt≤K\.\\min\_\{x,y\\in\\\{0,1\\\}\}\\sum\_\{e\}x\_\{e\}\\quad\\text\{s\.t\.\}\\quad A\_\{n\}x^\{\(n\)\}=d\_\{n\},\\qquad x\_\{e\}\\leq y\_\{t\(e\)\},\\qquad\\sum\_\{t\}y\_\{t\}\\leq K\.\(3\)Vocabulary variables index multibyte strings only, and the linking constraint applies only to multibyte edges; byte edges are always available\. Relax it using pricesλe≥0\\lambda\_\{e\}\\geq 0, and define the bid for tokenttbyΛt=∑e∈E⁡\(t\)λe\\Lambda\_\{t\}=\\sum\_\{e\\in E\(t\)\}\\lambda\_\{e\}\. WriteSPn​\(1\+λ\)\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)for the shortest\-path cost in the complete candidate graphGnG\_\{n\}with cost1\+λe1\+\\lambda\_\{e\}on multibyte edges and cost11on byte edges\.

###### Theorem 1\(Price certificate\)\.

For any non\-negative occurrence prices,

OPT⁡\(K\)≥CK​\(λ\):=∑nSPn​\(1\+λ\)−∑i=1KΛ\(i\)\.\\boxed\{\\quad\\mathrm\{OPT\}\(K\)\\ \\geq\\ C\_\{K\}\(\\lambda\):=\\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)\-\\sum\_\{i=1\}^\{K\}\\Lambda\_\{\(i\)\}\.\\quad\}\(4\)The bids are sorted in decreasing order and padded with zeros as necessary\.

To see the bound directly, take any feasible vocabulary and segmentation\. The priced shortest path costs no more than this segmentation’s token count plus the prices of its used occurrences\. Those prices sum to at most the bids of the vocabulary’sKKentries, and therefore to at most the top\-KKbid sum\. Subtraction gives \([4](https://arxiv.org/html/2609.35869#S3.E4)\)\. The proof does not require optimised prices\.

###### Theorem 2\(LP tightness of the price family\)\.

The maximum ofCK​\(λ\)C\_\{K\}\(\\lambda\)over allλ≥0\\lambda\\geq 0equals the optimum of \([3](https://arxiv.org/html/2609.35869#S3.E3)\) relaxed tox≥0x\\geq 0,y∈\[0,1\]y\\in\[0,1\]\.

Thus the full price family loses nothing relative to the LP\. A finite optimiser can stop short of that maximum, and the LP can lie below the integer optimum\. Appendix[A\.1](https://arxiv.org/html/2609.35869#A1.SS1)gives the explicit LP dual and sufficient conditions for integer equality\.

#### Scalable price optimisation\.

Settingλe=θ/nt⁡\(e\)\\lambda\_\{e\}=\\theta/n\_\{t\(e\)\}, wherent=\|E⁡\(t\)\|n\_\{t\}=\|E\(t\)\|, gives an inexpensive initialisation:

###### Corollary 3\(Uniform bids\)\.

Forθ≥0\\theta\\geq 0,OPT⁡\(K\)≥∑nSPn​\(1\+θ/nt\)−K​θ\\mathrm\{OPT\}\(K\)\\geq\\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\theta/n\_\{t\}\)\-K\\theta\.

We optimise individual occurrence prices for a selected active set and assign every remaining candidate a bid no larger than theKK\-th largest bid in the active set\. Those candidates remain in the shortest\-path graph\. This restricts the price family while retaining a bound for the full vocabulary class \(Proposition[9](https://arxiv.org/html/2609.35869#Thmtheorem9)\)\. A suffix\-array index supportsO⁡\(B​L\)O\(BL\)evaluation\. Our system,SlotPrice\(Algorithm[1](https://arxiv.org/html/2609.35869#alg1)\), combines projected price ascent with vocabulary additions, swaps and ruin\-and\-recreate proposals; complete vocabularies are rescored before acceptance\. Only accepted improvements change the upper bound \(Appendix[B\.3](https://arxiv.org/html/2609.35869#A2.SS3)\); Appendix[B\.8](https://arxiv.org/html/2609.35869#A2.SS8)separates the effects of the optimisation components\.

### 3\.3From a formula to conservative reported numbers

An independent checker converts saved prices into non\-negative multiples of2−322^\{\-32\}, recomputes token bids exactly, and evaluates every shortest path with checked integer arithmetic\. Background prices are integer quotients whose total bid is no larger than the active threshold\. The resulting rational number is itself a valid dual value; its validity does not depend on a floating\-point error estimate or optimiser convergence\. The checker validates candidate identities and occurrence counts, rejects overflow, and records input hashes \(Appendices[A\.2](https://arxiv.org/html/2609.35869#A1.SS2)and[B\.4](https://arxiv.org/html/2609.35869#A2.SS4)\)\.

Combining a positive integer lower boundLjL\_\{j\}with a feasible token countUjU\_\{j\}in each regimej∈\{π,∅\}j\\in\\\{\\pi,\\varnothing\\\}yields

max⁡\{0,LπU∅−1\}≤τπ​\(K\)≤UπL∅−1\.\\max\\\!\\left\\\{0,\\frac\{L\_\{\\pi\}\}\{U\_\{\\varnothing\}\}\-1\\right\\\}\\ \\leq\\ \\tau\_\{\\pi\}\(K\)\\ \\leq\\ \\frac\{U\_\{\\pi\}\}\{L\_\{\\varnothing\}\}\-1\.\(5\)Reported endpoints are rounded outwards\. These are deterministic optimisation intervals, not sampling confidence intervals \(Appendix[A\.3](https://arxiv.org/html/2609.35869#A1.SS3)\)\.

## 4The certified cost of pre\-tokenisation

#### Protocol\.

How much compression does the boundary rule exclude, independently of the vocabulary learner? The main compression study uses the 20231101 Wikipedia snapshot in twelve languages, with approximately4242MB per language,K=32768K=32768non\-byte entries andL=16L=16bytes\. The o200k\-style regex\([OpenAI, 2024](https://arxiv.org/html/2609.35869#bib.bib19)\)and unrestricted regime preserve the same document boundaries\. BPE supplies the standard merge baseline, Unigram supplies a likelihood\-based objective, and Two\-stage BPE tests boundary relaxation during merge training\. Each baseline receives the same corpus, length cap and vocabulary budget\. All reported compression scores use minimum\-count decoding of the released byte vocabulary under the specified cuts\. The Two\-stage BPE baseline is our merge curriculum; the official released SuperBPE vocabulary is evaluated separately in the large\-vocabulary LM study\. Appendices[B\.1](https://arxiv.org/html/2609.35869#A2.SS1)and[B\.2](https://arxiv.org/html/2609.35869#A2.SS2)specify corpus preparation and baseline construction\.

Table 1:Removing cuts changes the compression optimum\.Bytes per token \(higher is better\), with token\-count gap to the integer\-checked lower bound in parentheses \(%\), rounded upwards\. The italic row is a conservative upper ceiling on achievable bytes per token, rounded upwards\. Two\-stage BPE uses an unconstrained merge curriculum and has no regex\-constrained entry \(–\)\. Unigram optimizes likelihood, a different objective from minimum token count\. English and Chinese Wikipedia,K=32768K=32768,L=16L=16, approximately4242MB per language; all methods use minimum\-count encoding under the indicated cuts\.
#### A large cost hidden by a small constrained gap\.

English BPE lies2\.1%2\.1\\%above the regex\-constrained token\-count lower bound\. Removing the cuts raises this gap to10\.9%10\.9\\%\(Table[1](https://arxiv.org/html/2609.35869#S4.T1)\)\. The boundary constraint is therefore essential to the near\-optimality comparison: proximity to the constrained bound says little about the unrestricted optimum\.SlotPriceimproves on unrestricted BPE by4\.39%4\.39\\%in achieved token count\.

The English optimal tax lies in\[28\.3,36\.8\]%\[28\.3,36\.8\]\\%; Chinese yields\[9\.8,11\.0\]%\[9\.8,11\.0\]\\%\. These intervals use a lower bound from one regime and a feasible vocabulary from the other, as in \([5](https://arxiv.org/html/2609.35869#S3.E5)\)\. They quantify the cost of the boundary constraint without treating an achieved vocabulary ratio as the optimum\.

Figure 2:Compression cost and test prediction cost across languages\.\(a\) Certified intervals for the optimal regex tax on Wikipedia; open circles show the corresponding achieved vocabulary ratios\. \(b\) Paired test\-bit\-rate difference between unrestricted and regex\-trainedSlotPricedictionaries after within\-seed rate selection, with unadjusted95%95\\%paired\-ttintervals over three seeds per language; filled markers are Holm\-significant at0\.050\.05\. Blue marks the compression measurements of panel \(a\); gold marks the prediction contrast of panel \(b\)\. The panels use their respective corpora and protocols; rows align the language\-specific measurements from the two studies\. Languages share one ordering, sorted by the certified lower endpoint of the panel\-\(a\) interval\. The two costs rank the languages differently: Vietnamese pairs the highest certified tax with a prediction penalty below the panel median, while Arabic pairs the largest prediction penalty with a certified tax below the panel median \(Tables[3](https://arxiv.org/html/2609.35869#A2.T3)and[10](https://arxiv.org/html/2609.35869#A3.T10)\)\.
#### Language variation\.

The achieved pre\-tokenisation tax ranges from10\.1%10\.1\\%to56\.2%56\.2\\%across the panel\. Figure[2](https://arxiv.org/html/2609.35869#S4.F2)shows each language’s optimisation interval\. In the unrestricted regime,SlotPriceuses fewer tokens than both BPE and the local Two\-stage baseline in all twelve languages\. Appendix[B\.5](https://arxiv.org/html/2609.35869#A2.SS5)gives the complete scores \(Table[3](https://arxiv.org/html/2609.35869#A2.T3)\)\.

#### Budgets, regexes and deployed tokenisers\.

We next vary the vocabulary budget and boundary rule to test the scope of the headline result\. In the vocabulary\-budget sweep, the achieved tax and both endpoints of its certified interval increase across the tested budgets in English and Chinese, reaching\[53\.6,61\.3\]%\[53\.6,61\.3\]\\%in English \(achieved54\.5%54\.5\\%\) and\[14\.4,15\.7\]%\[14\.4,15\.7\]\\%in Chinese \(achieved14\.7%14\.7\\%\) at the largest budget, while the English constrained BPE gap narrows from9\.8%9\.8\\%to1\.3%1\.3\\%\(Table[5](https://arxiv.org/html/2609.35869#A2.T5)\)\. Replacing the boundary regex by the other deployed pre\-tokenisers of Table[6](https://arxiv.org/html/2609.35869#A2.T6)leaves overlapping tax intervals within\[25\.3,37\.0\]%\[25\.3,37\.0\]\\%on this corpus\. Appendix[B\.7](https://arxiv.org/html/2609.35869#A2.SS7)also reports the achieved compression of released vocabularies under their native and minimum\-count decoders \(Table[7](https://arxiv.org/html/2609.35869#A2.T7)\)\.

#### What limits the interval?

Small\-instance comparisons distinguish certificate optimisation from relaxation error\. On1414small instances, occurrence\-price optimisation reaches99\.5999\.59–99\.99%99\.99\\%of the LP objective\. Available integer solves separate the LP–IP gap from vocabulary\-search error \(Table[4](https://arxiv.org/html/2609.35869#A2.T4); Appendix[B\.6](https://arxiv.org/html/2609.35869#A2.SS6)\)\. A large primal–dual gap can reflect incomplete price optimisation, a suboptimal vocabulary, or a gap between the LP and integer optima\. The interval remains valid; its width measures the compression uncertainty left by these three sources\.

## 5Prediction at matched training budgets

The compression certificate measures sequence length\. We next ask whether the additional vocabulary freedom improves prediction\. The primary comparison changes vocabulary construction while holding the LM\-stream decoder fixed:SlotPriceπis fitted with regex boundaries andSlotPricewithout them, then both encode complete documents by unrestricted minimum\-count Viterbi decoding\. The contrast measures prediction from the resulting dictionaries under a common decoder\. Appendix[C\.1](https://arxiv.org/html/2609.35869#A3.SS1)records decoder protocols and differences in vocabulary\-search effort\.

#### A held\-out test comparison in twelve languages\.

For each language, the two arms share an8585M non\-embedding\-parameter Transformer, a padded vocabulary of33,15233\{,\}152entries, a20482048\-token context, an optimiser, a schedule, and0\.6290\.629G training tokens\. Rates are selected separately for each arm and seed on a balanced validation grid\. We evaluate the selected runs on held\-out test text and pair them over three training seeds\. Bits per byte uses the exact byte lengths of the scored target tokens \(Appendix[C\.2](https://arxiv.org/html/2609.35869#A3.SS2)\)\.

The unrestricted fitted dictionaries have higher mean test bits per byte in all1212languages \(Appendix[C](https://arxiv.org/html/2609.35869#A3), Table[10](https://arxiv.org/html/2609.35869#A3.T10)\)\. The relative increases range from0\.93%0\.93\\%to17\.31%17\.31\\%, with an equal\-language mean of9\.25%9\.25\\%\(95%95\\%language\-bootstrap interval, conditional on observed language means,6\.546\.54–11\.92%11\.92\\%\)\. A one\-sided sign test givesp=0\.00024p=0\.00024under independent language\-level signs\. Across the separate Wikipedia and language\-model corpora, the achieved tax and test penalty have Spearman rank correlation\+0\.22\+0\.22\(permutationp=0\.49p=0\.49\), a descriptive comparison across the twelve languages\.

Effects vary across languages and seeds; Holm\-corrected paired tests resolve22of the1212contrasts\. Here, rates are selected within each evaluation seed\. The following comparison uses disjoint tuning and evaluation seeds \(Appendix[F\.1](https://arxiv.org/html/2609.35869#A6.SS1)\)\.

#### Independent tuning and evaluation\.

Does the contrast persist when learning\-rate selection uses different seeds from evaluation? We select rates using22tuning seeds and compare the selected configurations on33independent evaluation seeds per language, retaining the same model geometry and629,145,600629\{,\}145\{,\}600training\-token budget\. Both dictionaries use unrestricted Viterbi decoding\. Training windows share sampled raw\-byte start positions; evaluation scores a common raw\-byte interval under each decoder\. Appendix[F\.1](https://arxiv.org/html/2609.35869#A6.SS1)gives the selection and context protocols\.

Table[2](https://arxiv.org/html/2609.35869#S5.T2)reports independent token blocks, byte\-capped histories, and sliding token contexts\. With20482048\-token blocks, unrestricted fitting increases mean test bits per byte in1111of1212languages, with an equal\-language mean of6\.99%6\.99\\%\. Capping the available history at10241024raw bytes retains the same direction in1111languages and a mean of6\.70%6\.70\\%\. Thai has small negative mean contrasts in both modes, with Holm\-adjustedpp\-values above0\.050\.05\. The positive cross\-language mean persists under independent rate selection and the common byte\-history cap\. History capping controls evaluation context; training\-byte exposure and vocabulary content differ between arms\.

Table 2:Independent tuning preserves the average prediction penalty\.Relative test bits\-per\-byte change \(%\) from the regex\-fitted to the unrestricted dictionary; positive values favor the regex\-fitted dictionary\. Entries are paired means±\\pmstandard deviations over three evaluation seeds, disjoint from the two tuning seeds\.†\\daggermarks a two\-sided paired test passing Holm correction over twelve languages within the indicated evaluation mode \(α=0\.05\\alpha=0\.05\)\.
#### Scale and training allocation\.

Does the prediction penalty persist when model size and training budget increase together? Across the measured EnglishD=20​ND\{=\}20Nladder \(20 training tokens per non\-embedding parameter\), theSlotPricepenalty against BPE falls from\+18\.32%\+18\.32\\%at2424M to\+2\.65%\+2\.65\\%at387387M \(Appendix[C\.3](https://arxiv.org/html/2609.35869#A3.SS3.SSS0.Px1)\)\. Figure[4](https://arxiv.org/html/2609.35869#A3.F4)varies model size at a fixed token budget; Figure[5](https://arxiv.org/html/2609.35869#A3.F5)tracks learning against token and estimated byte exposure\. Table[11](https://arxiv.org/html/2609.35869#A3.T11)summarises scale and training\-allocation comparisons \(Appendix[C\.3](https://arxiv.org/html/2609.35869#A3.SS3)\)\. At996996M non\-embedding parameters,K=200K=200k andD=20​ND=20N, locally trained Two\-stage BPE and the released SuperBPE vocabulary have penalties of2\.87%2\.87\\%and0\.72%0\.72\\%against native BPE with regex boundaries\. These broader comparisons use different decoder protocols; theSlotPrice/SlotPriceπpair isolates dictionary differences under a common decoder\.

#### Byte exposure and linguistic evaluation\.

Can training\-byte exposure account for the downstream deficit? In a separate387387M control, the mean deficit on the Benchmark of Linguistic Minimal Pairs \(BLiMP;[Warstadt et al\., 2020](https://arxiv.org/html/2609.35869#bib.bib32)\) is larger under matched bytes than under matched tokens \(−4\.5\-4\.5versus−3\.6\-3\.6points\); the difference in budget response remains unresolved with22seeds per cell \(Appendix[C\.4](https://arxiv.org/html/2609.35869#A3.SS4)\)\. Figure[6](https://arxiv.org/html/2609.35869#A3.F6)breaks down the8585M and996996M contrasts by linguistic field and phenomenon\. At1\.881\.88B, the English BLiMP comparisons use22checkpoints per arm; their descriptive bands do not resolve whether attenuation continues\. Together, these controls establish the trade\-off in the measured settings while leaving its scaling and linguistic mechanism open\.

## 6Boundary licences

#### A nested family of boundary permissions\.

Boundary licences measure how compression changes as crossing permissions expand, with the global vocabulary budget and candidate universe held fixed\.

LetVVcontain at mostKKmultibyte strings and letW⊆VW\\subseteq Vcontain at mostqq*crossing\-licensed*strings\. An occurrence wholly within a pretoken may use any string inVV; an occurrence crossing one or more cuts must use a string inWW\. All byte tokens remain available without charge\. The licence belongs to a string, while legality is checked at each occurrence: a type can appear both within a pretoken and across a cut\. Thusqqcounts licensed types, irrespective of how often they cross\.

WriteOPTπ,q​\(K\)\\mathrm\{OPT\}\_\{\\pi,q\}\(K\)for the minimum token count under this rule\. The feasible sets expand withqq, with exact endpoints

OPTπ,0​\(K\)=OPTπ​\(K\),OPTπ,K​\(K\)=OPT∅​\(K\)\.\\mathrm\{OPT\}\_\{\\pi,0\}\(K\)=\\mathrm\{OPT\}\_\{\\pi\}\(K\),\\qquad\\mathrm\{OPT\}\_\{\\pi,K\}\(K\)=\\mathrm\{OPT\}\_\{\\varnothing\}\(K\)\.\(6\)In this family, the occurrence rule is enforced when scoring fitting and held\-out compression\. Section[5](https://arxiv.org/html/2609.35869#S5)uses a separate fitted\-dictionary comparison with unrestricted Viterbi decoding\.

#### A certificate for intermediate budgets\.

The certificate extends without assigning a string to a single boundary class\. For non\-negative occurrence prices, letAtA\_\{t\}andBtB\_\{t\}be the total prices on within\-pretoken and crossing occurrences of stringtt, respectively\. Replace the top\-KKterm by

HK,q​\(A,B\)=maxW⊆V,\|V\|≤K,\|W\|≤q⁡\(∑t∈VAt\+∑t∈WBt\)\.H\_\{K,q\}\(A,B\)=\\max\_\{W\\subseteq V,\\,\|V\|\\leq K,\\,\|W\|\\leq q\}\\left\(\\sum\_\{t\\in V\}A\_\{t\}\+\\sum\_\{t\\in W\}B\_\{t\}\\right\)\.\(7\)Then∑nSPn​\(1\+λ\)−HK,q​\(A,B\)\\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)\-H\_\{K,q\}\(A,B\)is a lower bound onOPTπ,q​\(K\)\\mathrm\{OPT\}\_\{\\pi,q\}\(K\)\.

To evaluate the support exactly, pad with zero\-bid types to obtainm≥Km\\geq Kcandidates and sort them by decreasingBtB\_\{t\}\. In an optimal vocabulary, theqqlicences can be assigned to its firstqqselected types in this order\. A splitppseparates them from theK−qK\-qunlicensed selections, giving

HK,q\(A,B\)=maxq≤p≤m−K\+q\{TopSumq\(A\+B;1:p\)\+TopSumK−q\(A;p\+1:m\)\}\.H\_\{K,q\}\(A,B\)=\\max\_\{q\\leq p\\leq m\-K\+q\}\\left\\\{\\operatorname\{TopSum\}\_\{q\}\(A\+B;1\{:\}p\)\+\\operatorname\{TopSum\}\_\{K\-q\}\(A;p\+1\{:\}m\)\\right\\\}\.\(8\)HereTopSumr⁡\(v,I\)\\operatorname\{TopSum\}\_\{r\}\(v;I\)sums therrlargest entries indexed byII, withTopSum0=0\\operatorname\{TopSum\}\_\{0\}=0\. Prefix and suffix heap passes evaluate all splits inO⁡\(m​log⁡\(K\+1\)\)O\(m\\log\(K\+1\)\)time after sorting\. Appendix[A\.4](https://arxiv.org/html/2609.35869#A1.SS4)proves the formula and relates the resulting certificate to the joint LP relaxation\.

#### Measured compression frontiers\.

How much of the endpoint gain requires only a small licence budget? The English and Chinese compression experiments testq=⌊f​K⌋q=\\lfloor fK\\rfloorforf∈\{0,0\.02,0\.05,0\.1,0\.25,1\}f\\in\\\{0,0\.02,0\.05,0\.1,0\.25,1\\\}\. Each point exports its vocabulary, licences, full candidate graph and dyadic certificate witness\. Figure[3](https://arxiv.org/html/2609.35869#S6.F3)distinguishes achieved endpoint recovery from certified bounds on optimal recovery on the fitting corpus\. Disjoint held\-out records provide compression and token diagnostics\.

Figure 3:Small licence budgets recover most of the achieved endpoint gain\.Compression recovery as the boundary\-licence budget grows, atK=32,768K=32\{,\}768multibyte slots andL=16L=16; the fitting corpora contain 8,434,722 English and 8,415,699 Chinese bytes\. \(a\) English\. \(b\) Chinese\. Solid curves: achieved share of the endpoint token\-count reduction, comparing exported occurrence\-aware vocabularies\. Dashed curves and shaded wedge: certified lower bound on the recovered share of the*optimal*endpoint gain \(Equation[13](https://arxiv.org/html/2609.35869#A1.E13)\); at every interior budget the certified upper bound is100%100\\%\. Recovery is exactly0%0\\%atq=0q=0and100%100\\%atq=Kq=Kby definition\. These are optimisation bounds, not sampling uncertainty\. The highlighted column marks the10%10\\%licence budget\. Tested budgets are equally spaced for display; connecting lines do not interpolate certificates\.For English, achieved fitting compression rises from4\.754\.75to6\.246\.24bytes per token across the endpoints\. The10%10\\%licence budget recovers85\.2%85\.2\\%of this achieved token\-count reduction\. Its certified share of the optimal endpoint gain lies in\[50\.5,100\.0\]%\[50\.5,100\.0\]\\%\. For Chinese, achieved fitting compression rises from4\.844\.84to5\.225\.22bytes per token across the endpoints\. The10%10\\%licence budget recovers100\.0%100\.0\\%of this achieved token\-count reduction\. Its certified share of the optimal endpoint gain lies in\[38\.7,100\.0\]%\[38\.7,100\.0\]\\%\. Chinese licence use saturates: offeredq=8,192q=8\{,\}192, the fit takes only3,2763\{,\}276licences, with held\-out compression unchanged from the10%10\\%rung \(4\.8284\.828bytes per token\)\. At a2%2\\%licence budget, the achieved count is below the zero\-licence certified lower bound in both languages, proving an improvement over every zero\-licence vocabulary in this model on these fitting corpora\. Figure[3](https://arxiv.org/html/2609.35869#S6.F3)plots both series; Tables[12](https://arxiv.org/html/2609.35869#A4.T12)and[13](https://arxiv.org/html/2609.35869#A4.T13)report the per\-budget diagnostics and the certified recovery intervals\.

#### A cut\-placement control\.

Does preserving piece lengths also preserve the compression cost of a boundary rule? A separateK=8,192K=8\{,\}192cut\-placement control preserves each document’s cut count and Unicode\-character piece\-length multiset while permuting their order\. At zero licences, the relative change in optimal token count from regex to random cuts is enclosed by independent certificates\. For English, the optimal token\-count change is\[47\.1,53\.5\]%\[47\.1,53\.5\]\\%\. For Chinese, the optimal token\-count change is\[3\.9,6\.5\]%\[3\.9,6\.5\]\\%\. Thus cut placement affects optimal compression even when the cut count and Unicode\-character piece\-length multiset are fixed\. Table[14](https://arxiv.org/html/2609.35869#A4.T14)gives the complete budget grid\. At full licences both cut sets define the same true optimum\.

The full protocols, held\-out compression and token diagnostics appear in Appendix[D](https://arxiv.org/html/2609.35869#A4)\.

## 7Discussion

The certificate and the language\-model comparisons answer complementary questions\. The first establishes how much compression a boundary rule excludes at fixed corpus, length cap and vocabulary budget\. The second compares prediction from the resulting fitted dictionaries\. A small optimisation gap inside a constrained problem cannot settle either the cost of that constraint or its value for prediction\. This distinction explains why near\-optimal constrained BPE and substantial gains from boundary relaxation can coexist\.

Boundary licences expose a further design choice: permissions can be allocated to selected string types while legality remains occurrence\-specific\. The measured frontier places much of the achieved compression gain at small licence budgets, making intermediate policies concrete candidates for future language\-model evaluation\. Compression certificates quantify the available sequence\-length reduction; prediction measurements determine which reductions are useful\.

## 8Conclusion

Occurrence pricing certifies the compression cost of pre\-tokenisation without requiring an exact vocabulary search\. The resulting intervals expose a substantial boundary cost that constrained optimality comparisons conceal\. The multilingual comparisons favour regex\-constrained fitting in most languages, including under independent tuning and evaluation, showing why sequence length alone is insufficient to choose prediction units\. Boundary licences extend the certificate to intermediate policies and quantify how much compression they recover\.

## Limitations

The certificates apply to specified finite corpora, vocabulary budgets and maximum token lengths\. Certification on other text domains requires their corresponding corpora\. The cut\-placement control preserves character\-length multisets while allowing byte\-length variation\. Language\-model results concern the measured architectures, training budgets and decoder protocols, with three seeds per language limiting precision within each language\. Token matching fixes training\-token allocation while byte exposure and context span vary jointly; the measured contrast combines these changes with vocabulary content\. Vocabulary\-search effort also differs between regimes; matching this effort would further separate the fitting constraint from the quality of its optimisation\. The largest reported model has1\.881\.88B non\-embedding parameters\. Extending the prediction analysis to larger models and to intermediate licence budgets remains future work\.

## Reproducibility statement

The supplementary package provides per\-seed test measurements, compression endpoints and a self\-contained script that reconstructs their reported summary statistics\. Appendices[A](https://arxiv.org/html/2609.35869#A1),[B](https://arxiv.org/html/2609.35869#A2),[C](https://arxiv.org/html/2609.35869#A3)and[D](https://arxiv.org/html/2609.35869#A4)give proofs and protocols\. Appendix[F](https://arxiv.org/html/2609.35869#A6)gives the reconstruction commands and Appendix[F\.1](https://arxiv.org/html/2609.35869#A6.SS1)documents the independent tuning/evaluation replication\.

## AI statement

Generative AI assisted code development, manuscript writing, mathematical and reference checks, the authors reviewed and verified all AI\-assisted work\.

## References

- K\. Bostrom and G\. DurrettByte pair encoding is suboptimal for language model pretraining\.InFindings of the Association for Computational Linguistics: EMNLP 2020,pp\. 4617–4624\.External Links:[Document](https://dx.doi.org/10.18653/v1/2020.findings-emnlp.414),[Link](https://aclanthology.org/2020.findings-emnlp.414/)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px1.p1.1)\.
- Cognettaet al\.\(2024\)M\. Cognetta, V\. Zouhar, S\. Moon, and N\. OkazakiTwo counterexamples to tokenization and the noiseless channel\.InProceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation \(LREC\-COLING 2024\),pp\. 16897–16906\.External Links:[Link](https://aclanthology.org/2024.lrec-main.1469/)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px4.p1.1)\.
- Cornuéjolset al\.\(1977\)G\. Cornuéjols, M\. L\. Fisher, and G\. L\. NemhauserLocation of bank accounts to optimize float: an analytic study of exact and approximate algorithms\.Management Science23\(8\),pp\. 789–810\.External Links:[Document](https://dx.doi.org/10.1287/mnsc.23.8.789)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px2.p1.1)\.
- Erdoganet al\.\(2026\)M\. Erdogan, A\. Gorle, S\. Chandak, M\. Pilanci, and T\. WeissmanAn information\-theoretic perspective on LLM tokenizers\.arXiv preprint arXiv:2601\.09039\.External Links:[Link](https://arxiv.org/abs/2601.09039)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px4.p1.1)\.
- Erlenkotter \(1978\)D\. ErlenkotterA dual\-based procedure for uncapacitated facility location\.Operations Research26\(6\),pp\. 992–1009\.External Links:[Document](https://dx.doi.org/10.1287/opre.26.6.992)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px2.p1.1)\.
- Fisher \(1981\)M\. L\. FisherThe lagrangian relaxation method for solving integer programming problems\.Management Science27\(1\),pp\. 1–18\.External Links:[Document](https://dx.doi.org/10.1287/mnsc.27.1.1)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px2.p1.1),[§1](https://arxiv.org/html/2609.35869#S1.p3.1)\.
- Gage \(1994\)P\. GageA new algorithm for data compression\.C Users Journal12\(2\)\.External Links:[Link](https://jacobfilipp.com/DrDobbs/articles/CUJ/1994/9402/gage/gage.htm)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px1.p1.1)\.
- Gallé \(2019\)M\. GalléInvestigating the effectiveness of BPE: the power of shorter sequences\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing \(EMNLP\-IJCNLP\),pp\. 1375–1381\.External Links:[Document](https://dx.doi.org/10.18653/v1/D19-1141),[Link](https://aclanthology.org/D19-1141/)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px1.p1.1)\.
- Geoffrion \(1974\)A\. M\. GeoffrionLagrangean relaxation for integer programming\.InApproaches to Integer Programming,M\. L\. Balinski \(Ed\.\),Mathematical Programming Studies, Vol\.2,pp\. 82–114\.External Links:[Document](https://dx.doi.org/10.1007/BFb0120690)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px2.p1.1),[§1](https://arxiv.org/html/2609.35869#S1.p3.1)\.
- Held and Karp \(1970\)M\. Held and R\. M\. KarpThe traveling\-salesman problem and minimum spanning trees\.Operations Research18\(6\),pp\. 1138–1162\.External Links:[Document](https://dx.doi.org/10.1287/opre.18.6.1138)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px2.p1.1)\.
- Huet al\.\(2025\)Y\. Hu, F\. Liang, D\. Zhao, J\. Geuter, V\. Reddy, C\. W\. Schmidt, and C\. TannerEntropy\-driven pre\-tokenization for byte\-pair encoding\.InTokenization Workshop at ICML \(TokShop\),External Links:[Link](https://openreview.net/forum?id=1hcu9Vq4Or)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px3.p1.1)\.
- Huangfu and Hall \(2018\)Q\. Huangfu and J\. A\. J\. HallParallelizing the dual revised simplex method\.Mathematical Programming Computation10\(1\),pp\. 119–142\.External Links:[Document](https://dx.doi.org/10.1007/s12532-017-0130-5)Cited by:[Table 4](https://arxiv.org/html/2609.35869#A2.T4)\.
- Kudo and Richardson \(2018\)T\. Kudo and J\. RichardsonSentencePiece: a simple and language independent subword tokenizer and detokenizer for neural text processing\.InProceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations,pp\. 66–71\.External Links:[Document](https://dx.doi.org/10.18653/v1/D18-2012),[Link](https://aclanthology.org/D18-2012/)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px1.p1.1)\.
- Kudo \(2018\)T\. KudoSubword regularization: improving neural network translation models with multiple subword candidates\.InProceedings of the 56th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 66–75\.External Links:[Document](https://dx.doi.org/10.18653/v1/P18-1007),[Link](https://aclanthology.org/P18-1007/)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px1.p1.1)\.
- Liuet al\.\(2025\)A\. Liu, J\. Hayase, V\. Hofmann, S\. Oh, N\. A\. Smith, and Y\. ChoiSuperBPE: space travel for language models\.InSecond Conference on Language Modeling \(COLM\),External Links:[Link](https://openreview.net/forum?id=lcDRvffeNP)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px3.p1.1),[§1](https://arxiv.org/html/2609.35869#S1.p2.1),[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px2.p1.1)\.
- Meister \(2026\)C\. MeisterTokEval: a tokenizer analysis suite\.InThird Conference on Language Modeling \(COLM\),External Links:[Link](https://arxiv.org/abs/2608.18062)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px4.p1.1),[§1](https://arxiv.org/html/2609.35869#S1.p4.1),[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px2.p1.1)\.
- OpenAI \(2024\)OpenAITiktoken:o200k\_baseencoding\.Note:Accessed 2026\-09\-19External Links:[Link](https://github.com/openai/tiktoken)Cited by:[§4](https://arxiv.org/html/2609.35869#S4.SS0.SSS0.Px1.p1.1)\.
- Pagnoniet al\.\(2025\)A\. Pagnoni, R\. Pasunuru, P\. Rodriguez, J\. Nguyen, B\. Muller, M\. Li, C\. Zhou, L\. Yu, J\. Weston, L\. Zettlemoyer, G\. Ghosh, M\. Lewis, A\. Holtzman, and S\. IyerByte latent transformer: patches scale better than tokens\.InProceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 9238–9258\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.acl-long.453),[Link](https://aclanthology.org/2025.acl-long.453/)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px4.p1.1)\.
- Penedoet al\.\(2024\)G\. Penedo, H\. Kydlíček, L\. Ben Allal, A\. Lozhkov, M\. Mitchell, C\. Raffel, L\. Von Werra, and T\. WolfThe FineWeb datasets: decanting the web for the finest text data at scale\.InAdvances in Neural Information Processing Systems,Vol\.37\.External Links:[Document](https://dx.doi.org/10.52202/079017-0970),[Link](https://proceedings.neurips.cc/paper_files/paper/2024/hash/370df50ccfdf8bde18f8f9c2d9151bda-Abstract-Datasets_and_Benchmarks_Track.html)Cited by:[§C\.2](https://arxiv.org/html/2609.35869#A3.SS2.p1.1)\.
- Penedoet al\.\(2025\)G\. Penedo, H\. Kydlíček, V\. Sabolčec, B\. Messmer, N\. Foroutan, A\. H\. Kargaran, C\. Raffel, M\. Jaggi, L\. Von Werra, and T\. WolfFineWeb2: one pipeline to scale them all — adapting pre\-training data processing to every language\.arXiv preprint arXiv:2506\.20920\.External Links:[Link](https://arxiv.org/abs/2506.20920)Cited by:[§C\.2](https://arxiv.org/html/2609.35869#A3.SS2.p1.1)\.
- Schmidtet al\.\(2025\)C\. W\. Schmidt, V\. Reddy, C\. Tanner, and Y\. PinterBoundless byte pair encoding: breaking the pre\-tokenization barrier\.InSecond Conference on Language Modeling \(COLM\),External Links:[Link](https://openreview.net/forum?id=oPAjXGV8qQ)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px3.p1.1),[§1](https://arxiv.org/html/2609.35869#S1.p2.1),[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px2.p1.1)\.
- Schmidtet al\.\(2024\)C\. W\. Schmidt, V\. Reddy, H\. Zhang, A\. Alameddine, O\. Uzan, Y\. Pinter, and C\. TannerTokenization is more than compression\.InProceedings of the 2024 Conference on Empirical Methods in Natural Language Processing,pp\. 678–702\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.emnlp-main.40),[Link](https://aclanthology.org/2024.emnlp-main.40/)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px4.p1.1),[§1](https://arxiv.org/html/2609.35869#S1.p4.1),[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px2.p1.1)\.
- Schmidtet al\.\(2026\)C\. W\. Schmidt, C\. Tanner, and Y\. PinterFaster superword tokenization\.InThird Conference on Language Modeling \(COLM\),External Links:[Link](https://arxiv.org/abs/2604.05192)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px3.p1.1)\.
- Sennrichet al\.\(2016\)R\. Sennrich, B\. Haddow, and A\. BirchNeural machine translation of rare words with subword units\.InProceedings of the 54th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 1715–1725\.External Links:[Document](https://dx.doi.org/10.18653/v1/P16-1162),[Link](https://aclanthology.org/P16-1162/)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px1.p1.1)\.
- Singhet al\.\(2026\)A\. Singh, D\. Mody, G\. Al Shdaifat, H\. Alshamy, A\. Wiemerslage, V\. Reddy, and C\. W\. SchmidtJoint optimization for greedy longest\-match tokenization\.arXiv preprint arXiv:2607\.23362\.External Links:[Link](https://arxiv.org/abs/2607.23362)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px1.p1.1),[§1](https://arxiv.org/html/2609.35869#S1.p2.1),[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px1.p1.1)\.
- Su \(2023\)J\. SuBytePiece: a more pure and effective tokenizer\.Note:[https://github\.com/bojone/bytepiece](https://github.com/bojone/bytepiece)Cited by:[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px1.p1.1)\.
- Tempuset al\.\(2026\)J\. Tempus, P\. Whittington, C\. W\. Schmidt, D\. Komm, and T\. PimentelTokenisation via convex relaxations\.arXiv preprint arXiv:2605\.22821\.External Links:[Link](https://arxiv.org/abs/2605.22821)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px1.p1.1),[§1](https://arxiv.org/html/2609.35869#S1.p2.1),[§2](https://arxiv.org/html/2609.35869#S2.SS0.SSS0.Px1.p1.1)\.
- Wanget al\.\(2024\)J\. Wang, T\. Gangavarapu, J\. N\. Yan, and A\. M\. RushMambaByte: token\-free selective state space model\.InFirst Conference on Language Modeling \(COLM\),External Links:[Link](https://openreview.net/forum?id=X1xNsuKssb)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px4.p1.1)\.
- Warstadtet al\.\(2020\)A\. Warstadt, A\. Parrish, H\. Liu, A\. Mohananey, W\. Peng, S\. Wang, and S\. R\. BowmanBLiMP: the benchmark of linguistic minimal pairs for English\.Transactions of the Association for Computational Linguistics8,pp\. 377–392\.External Links:[Document](https://dx.doi.org/10.1162/tacl%5Fa%5F00321),[Link](https://aclanthology.org/2020.tacl-1.25/)Cited by:[§C\.4](https://arxiv.org/html/2609.35869#A3.SS4.p1.1),[§5](https://arxiv.org/html/2609.35869#S5.SS0.SSS0.Px4.p1.1)\.
- Yuet al\.\(2023\)L\. Yu, D\. Simig, C\. Flaherty, A\. Aghajanyan, L\. Zettlemoyer, and M\. LewisMEGABYTE: predicting million\-byte sequences with multiscale transformers\.InAdvances in Neural Information Processing Systems,Vol\.36\.External Links:[Document](https://dx.doi.org/10.52202/075280-3447),[Link](https://papers.neurips.cc/paper_files/paper/2023/hash/f8f78f8043f35890181a824e53a57134-Abstract-Conference.html)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px4.p1.1)\.
- Yuet al\.\(2025\)Y\. Yu, Z\. Dai, Z\. Wang, W\. Wang, R\. Chen, and J\. PeiOpenCSG Chinese corpus: a series of high\-quality Chinese datasets for LLM training\.arXiv preprint arXiv:2501\.08197\.External Links:[Link](https://arxiv.org/abs/2501.08197)Cited by:[§C\.2](https://arxiv.org/html/2609.35869#A3.SS2.p1.1)\.
- Zouharet al\.\(2023\)V\. Zouhar, C\. Meister, J\. L\. Gastaldi, L\. Du, M\. Sachan, and R\. CotterellTokenization and the noiseless channel\.InProceedings of the 61st Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 5184–5207\.External Links:[Document](https://dx.doi.org/10.18653/v1/2023.acl-long.284),[Link](https://aclanthology.org/2023.acl-long.284/)Cited by:[Appendix E](https://arxiv.org/html/2609.35869#A5.SS0.SSS0.Px4.p1.1)\.

## Appendix AProofs and numerical certification

Throughout, the corpus is nonempty,𝒞\\mathcal\{C\}andGnG\_\{n\}are defined in §[3](https://arxiv.org/html/2609.35869#S3), andK≥1K\\geq 1is an integer\. In a cut regime,E⁡\(t\)E\(t\)contains only surviving occurrences\. For the cardinality\-constrained problem, types with no surviving occurrence are omitted without changing the optimum, sont=\|E⁡\(t\)\|\>0n\_\{t\}=\|E\(t\)\|\>0\. WriteΛt=∑e∈E⁡\(t\)λe\\Lambda\_\{t\}=\\sum\_\{e\\in E\(t\)\}\\lambda\_\{e\}and order the bids asΛ\(1\)≥Λ\(2\)≥⋯\\Lambda\_\{\(1\)\}\\geq\\Lambda\_\{\(2\)\}\\geq\\cdots, padding with zeros beyond\|𝒞\|\|\\mathcal\{C\}\|\. Setλe=0\\lambda\_\{e\}=0on byte edges\. For a chosen shortest\-path segmentation,mtm\_\{t\}counts the used occurrences ofttandρt=mt/nt\\rho\_\{t\}=m\_\{t\}/n\_\{t\}\.

### A\.1Vocabulary selection and price duality

#### Integer formulation\.

###### Proposition 4\.

val⁡\(IP\)=OPT⁡\(K\)\\mathrm\{val\}\(\\mathrm\{IP\}\)=\\mathrm\{OPT\}\(K\)for the program \([3](https://arxiv.org/html/2609.35869#S3.E3)\)\.

###### Proof\.

\(≤\\leq\) LetS⋆S^\{\\star\}attain \([1](https://arxiv.org/html/2609.35869#S3.E1)\)\. Sety=𝟏S⋆y=\\mathbf\{1\}\_\{S^\{\\star\}\}and letx\(n\)x^\{\(n\)\}be the indicator of a shortest→\|b\(n\)\|0\\\!\\to\\\!\|b^\{\(n\)\}\|path inGnG\_\{n\}restricted to edges usable underS⋆S^\{\\star\}; byte edges ensure that such a path exists\. The pair\(x,y\)\(x,y\)is feasible and has objective∑nseg⁡\(b\(n\),Σ∪S⋆\)=OPT⁡\(K\)\\sum\_\{n\}\\mathrm\{seg\}\(b^\{\(n\)\};\\Sigma\\cup S^\{\\star\}\)=\\mathrm\{OPT\}\(K\)\.

\(≥\\geq\) Let\(x,y\)\(x,y\)be feasible and integral and putS=\{t:yt=1\}S=\\\{t:y\_\{t\}=1\\\}, so\|S\|≤K\|S\|\\leq K\. The support of a0/10/1unit flow is a single directed path plus circulations, and a DAG has no directed cycles, so the flow is a single directed path; the linking constraints force every token edge on that path to havet⁡\(e\)∈St\(e\)\\in S\. Hence the path is a valid segmentation ofb\(n\)b^\{\(n\)\}overΣ∪S\\Sigma\\cup S, its length is at leastseg⁡\(b\(n\),Σ∪S\)\\mathrm\{seg\}\(b^\{\(n\)\};\\Sigma\\cup S\), and summing overnngives a value at least that of \([1](https://arxiv.org/html/2609.35869#S3.E1)\) atSS, hence at leastOPT⁡\(K\)\\mathrm\{OPT\}\(K\)\. ∎

#### The LP and its dual\.

Let \(LP\) be \([3](https://arxiv.org/html/2609.35869#S3.E3)\) withx≥0x\\geq 0andy∈\[0,1\]y\\in\[0,1\]\(the constraintx≤1x\\leq 1is implied by unit flow on a DAG and may be dropped\)\. Assigning free potentialsϕin\\phi^\{n\}\_\{i\}to the flow equalities,λe≥0\\lambda\_\{e\}\\geq 0toxe≤yt⁡\(e\)x\_\{e\}\\leq y\_\{t\(e\)\},θ≥0\\theta\\geq 0to∑tyt≤K\\sum\_\{t\}y\_\{t\}\\leq Kandwt≥0w\_\{t\}\\geq 0toyt≤1y\_\{t\}\\leq 1, the dual of \(LP\) is

\(D\)maxλ,θ,w≥0,ϕ​free\\displaystyle\\text\{\(D\)\}\\qquad\\max\_\{\\lambda,\\theta,w\\,\\geq\\,0,\\ \\phi\\text\{ free\}\}∑n\(ϕ\|b\(n\)\|n−ϕ0n\)−K​θ−∑t∈𝒞wt\\displaystyle\\sum\_\{n\}\\left\(\\phi^\{n\}\_\{\|b^\{\(n\)\}\|\}\-\\phi^\{n\}\_\{0\}\\right\)\\;\-\\;K\\theta\\;\-\\;\\sum\_\{t\\in\\mathcal\{C\}\}w\_\{t\}\(9\)s\.t\.\\displaystyle\\text\{s\.t\.\}ϕjn−ϕin≤1\+λefor every token edge​e=\(i,j\)∈Gn,\\displaystyle\\phi^\{n\}\_\{j\}\-\\phi^\{n\}\_\{i\}\\,\\leq\\,1\+\\lambda\_\{e\}\\quad\\text\{for every token edge \}e=\(i,j\)\\in G\_\{n\},ϕi\+1n−ϕin≤1for every byte edge,\\displaystyle\\phi^\{n\}\_\{i\+1\}\-\\phi^\{n\}\_\{i\}\\,\\leq\\,1\\quad\\text\{for every byte edge\},Λt≤θ\+wtfor every​t∈𝒞\.\\displaystyle\\Lambda\_\{t\}\\,\\leq\\,\\theta\+w\_\{t\}\\quad\\text\{for every \}t\\in\\mathcal\{C\}\.For an \(LP\)\-feasible\(x,y\)\(x,y\)and a \(D\)\-feasible\(ϕ,λ,θ,w\)\(\\phi,\\lambda,\\theta,w\), the first two constraints of \([9](https://arxiv.org/html/2609.35869#A1.E9)\) readϕj⁡\(e\)−ϕi⁡\(e\)−λe≤1\\phi\_\{j\(e\)\}\-\\phi\_\{i\(e\)\}\-\\lambda\_\{e\}\\leq 1for every edge, andx≥0x\\geq 0, so

∑exe≥∑e\(ϕj⁡\(e\)−ϕi⁡\(e\)\)​xe−∑eλe​xe=∑n\(ϕ\|b\(n\)\|n−ϕ0n\)−∑eλe​xe,\\sum\_\{e\}x\_\{e\}\\ \\geq\\ \\sum\_\{e\}\\left\(\\phi\_\{j\(e\)\}\-\\phi\_\{i\(e\)\}\\right\)x\_\{e\}\-\\sum\_\{e\}\\lambda\_\{e\}x\_\{e\}\\ =\\ \\sum\_\{n\}\\left\(\\phi^\{n\}\_\{\|b^\{\(n\)\}\|\}\-\\phi^\{n\}\_\{0\}\\right\)\-\\sum\_\{e\}\\lambda\_\{e\}x\_\{e\},\(10\)the last step by flow conservation:x\(n\)x^\{\(n\)\}carries one unit from node00to node\|b\(n\)\|\|b^\{\(n\)\}\|, so the telescoping sum of potential differences isϕ\|b\(n\)\|n−ϕ0n\\phi^\{n\}\_\{\|b^\{\(n\)\}\|\}\-\\phi^\{n\}\_\{0\}\. For the remaining term,

∑eλe​xe=∑t∈𝒞∑e∈E⁡\(t\)λe​xe≤∑tΛt​yt≤∑t\(θ\+wt\)​yt≤K​θ\+∑twt,\\sum\_\{e\}\\lambda\_\{e\}x\_\{e\}=\\sum\_\{t\\in\\mathcal\{C\}\}\\sum\_\{e\\in E\(t\)\}\\lambda\_\{e\}x\_\{e\}\\ \\leq\\ \\sum\_\{t\}\\Lambda\_\{t\}y\_\{t\}\\ \\leq\\ \\sum\_\{t\}\(\\theta\+w\_\{t\}\)y\_\{t\}\\ \\leq\\ K\\theta\+\\sum\_\{t\}w\_\{t\},\(11\)usingxe≤yt⁡\(e\)x\_\{e\}\\leq y\_\{t\(e\)\}withλ≥0\\lambda\\geq 0, thenΛt≤θ\+wt\\Lambda\_\{t\}\\leq\\theta\+w\_\{t\}withy≥0y\\geq 0, then∑tyt≤K\\sum\_\{t\}y\_\{t\}\\leq Kwithθ≥0\\theta\\geq 0andyt≤1y\_\{t\}\\leq 1withw≥0w\\geq 0\. Combining \([10](https://arxiv.org/html/2609.35869#A1.E10)\) and \([11](https://arxiv.org/html/2609.35869#A1.E11)\) givesval⁡\(D\)≤val⁡\(LP\)\\mathrm\{val\}\(\\mathrm\{D\}\)\\leq\\mathrm\{val\}\(\\mathrm\{LP\}\)\.

#### Price certificate \(Theorem[1](https://arxiv.org/html/2609.35869#Thmtheorem1)\)\.

###### Proof\.

Fixλ≥0\\lambda\\geq 0and construct a \(D\)\-feasible point explicitly\. Letϕin\\phi^\{n\}\_\{i\}be the length of a shortest→i0\\\!\\to\\\!ipath inGnG\_\{n\}under costs11on byte edges and1\+λe1\+\\lambda\_\{e\}on token edges \(all token edges present\), soϕ0n=0\\phi^\{n\}\_\{0\}=0,ϕ\|b\(n\)\|n=SPn​\(1\+λ\)\\phi^\{n\}\_\{\|b^\{\(n\)\}\|\}=\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\), and the two potential constraints of \([9](https://arxiv.org/html/2609.35869#A1.E9)\) hold by definition of a shortest\-path distance\. Putθ:=Λ\(K\)\\theta:=\\Lambda\_\{\(K\)\}andwt:=max⁡\(0,Λt−θ\)w\_\{t\}:=\\max\(0,\\Lambda\_\{t\}\-\\theta\); thenλ,θ,w≥0\\lambda,\\theta,w\\geq 0andΛt≤θ\+wt\\Lambda\_\{t\}\\leq\\theta\+w\_\{t\}for everytt, so the point is feasible\. Its objective is

∑nSPn​\(1\+λ\)−K​Λ\(K\)−∑tmax⁡\(0,Λt−Λ\(K\)\)=∑nSPn​\(1\+λ\)−∑i=1KΛ\(i\),\\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)\-K\\Lambda\_\{\(K\)\}\-\\sum\_\{t\}\\max\(0,\\Lambda\_\{t\}\-\\Lambda\_\{\(K\)\}\)=\\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)\-\\sum\_\{i=1\}^\{K\}\\Lambda\_\{\(i\)\},because withr:=\|\{t:Λt\>Λ\(K\)\}\|≤K−1r:=\|\\\{t:\\Lambda\_\{t\}\>\\Lambda\_\{\(K\)\}\\\}\|\\leq K\-1we haveK​Λ\(K\)\+∑i≤r\(Λ\(i\)−Λ\(K\)\)=∑i≤rΛ\(i\)\+\(K−r\)​Λ\(K\)=∑i≤KΛ\(i\)K\\Lambda\_\{\(K\)\}\+\\sum\_\{i\\leq r\}\(\\Lambda\_\{\(i\)\}\-\\Lambda\_\{\(K\)\}\)=\\sum\_\{i\\leq r\}\\Lambda\_\{\(i\)\}\+\(K\-r\)\\Lambda\_\{\(K\)\}=\\sum\_\{i\\leq K\}\\Lambda\_\{\(i\)\}, the last equality because ranksr\+1,…,Kr\{\+\}1,\\dots,Kall carry the valueΛ\(K\)\\Lambda\_\{\(K\)\}\. Weak duality for \([9](https://arxiv.org/html/2609.35869#A1.E9)\) andval⁡\(LP\)≤val⁡\(IP\)=OPT⁡\(K\)\\mathrm\{val\}\(\\mathrm\{LP\}\)\\leq\\mathrm\{val\}\(\\mathrm\{IP\}\)=\\mathrm\{OPT\}\(K\)\(Proposition[4](https://arxiv.org/html/2609.35869#Thmtheorem4)\) give \([4](https://arxiv.org/html/2609.35869#S3.E4)\)\. ∎

For later use, eliminating the potentials andwwat fixed\(λ,θ\)\(\\lambda,\\theta\)gives

ℒ⁡\(λ,θ\)=∑nSPn​\(1\+λ\)−K​θ−∑t∈𝒞max⁡\(0,Λt−θ\)\.\\mathcal\{L\}\(\\lambda,\\theta\)=\\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)\-K\\theta\-\\sum\_\{t\\in\\mathcal\{C\}\}\\max\(0,\\Lambda\_\{t\}\-\\theta\)\.\(12\)

#### LP tightness of the price family \(Theorem[2](https://arxiv.org/html/2609.35869#Thmtheorem2)\)\.

###### Proof\.

At fixed\(λ,θ\)\(\\lambda,\\theta\), maximising the dual objective \([9](https://arxiv.org/html/2609.35869#A1.E9)\) over the potentials gives the shortest\-path value∑nSPn​\(1\+λ\)\\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)\. The optimal upper\-bound multipliers arewt=max⁡\(0,Λt−θ\)w\_\{t\}=\\max\(0,\\Lambda\_\{t\}\-\\theta\)\. Consequently,

maxϕ,w:\(D\)​feasibleobj\(ϕ,λ,θ,w\)=ℒ\(λ,θ\)\.\\max\_\{\\phi,w:\\,\\mathrm\{\(D\)\}\\text\{ feasible\}\}\\mathrm\{obj\}\(\\phi,\\lambda,\\theta,w\)=\\mathcal\{L\}\(\\lambda,\\theta\)\.The primal LP is feasible by the byte\-only segmentation and has non\-negative objective\. LP strong duality therefore givesmaxλ,θ≥0⁡ℒ⁡\(λ,θ\)=val⁡\(LP\)\\max\_\{\\lambda,\\theta\\geq 0\}\\mathcal\{L\}\(\\lambda,\\theta\)=\\mathrm\{val\}\(\\mathrm\{LP\}\), with the maximum attained\. Maximising overθ\\thetaas in Remark[5](https://arxiv.org/html/2609.35869#Thmtheorem5)gives the equivalent occurrence\-price formulationmaxλ≥0⁡CK​\(λ\)=val⁡\(LP\)\\max\_\{\\lambda\\geq 0\}C\_\{K\}\(\\lambda\)=\\mathrm\{val\}\(\\mathrm\{LP\}\), whereCKC\_\{K\}is the right\-hand side of \([4](https://arxiv.org/html/2609.35869#S3.E4)\)\. ∎

#### Integer equality\.

###### Corollary 7\(Self\-certifying exactness\)\.

AssumeK≤\|𝒞\|K\\leq\|\\mathcal\{C\}\|\. Suppose a shortest\-path segmentation atλ≥0\\lambda\\geq 0and a setS⋆S^\{\\star\}ofKKlargest bids satisfymt=ntm\_\{t\}=n\_\{t\}onS⋆S^\{\\star\}andmt=0m\_\{t\}=0outside it\. ThenS⋆S^\{\\star\}is an optimal vocabulary and

CK​\(λ\)=val⁡\(LP\)=OPT⁡\(K\)=UB,C\_\{K\}\(\\lambda\)=\\mathrm\{val\}\(\\mathrm\{LP\}\)=\\mathrm\{OPT\}\(K\)=\\mathrm\{UB\},whereUB\\mathrm\{UB\}is the token count of that segmentation\.

###### Proof\.

The segmentation is feasible forΣ∪S⋆\\Sigma\\cup S^\{\\star\}, soOPT⁡\(K\)≤UB\\mathrm\{OPT\}\(K\)\\leq\\mathrm\{UB\}\. It uses every occurrence of each selected candidate and no other token edges; hence

∑nSPn​\(1\+λ\)=UB\+∑t∈S⋆Λt=UB\+∑i≤KΛ\(i\)\.\\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)=\\mathrm\{UB\}\+\\sum\_\{t\\in S^\{\\star\}\}\\Lambda\_\{t\}=\\mathrm\{UB\}\+\\sum\_\{i\\leq K\}\\Lambda\_\{\(i\)\}\.ThusCK​\(λ\)=UBC\_\{K\}\(\\lambda\)=\\mathrm\{UB\}, andCK​\(λ\)≤val⁡\(LP\)≤OPT⁡\(K\)≤UBC\_\{K\}\(\\lambda\)\\leq\\mathrm\{val\}\(\\mathrm\{LP\}\)\\leq\\mathrm\{OPT\}\(K\)\\leq\\mathrm\{UB\}forces equality throughout\. Occurrence prices need not be constant within a candidate\. ∎

### A\.2Restricted pricing and exact verification

#### Restricted price families\.

###### Lemma 8\(Restriction\)\.

\([4](https://arxiv.org/html/2609.35869#S3.E4)\) holds for*every*λ≥0\\lambda\\geq 0with no further conditions\. In particular it holds when coordinates ofλ\\lambdaare tied to one another, fixed to constants, or optimised over any subset — restricting the price family can only weaken the bound, never invalidate it\. Likewise∑i≤KΛ\(i\)\\sum\_\{i\\leq K\}\\Lambda\_\{\(i\)\}must be the sum of theKKlargest bids*of the multiset over𝒞\\mathcal\{C\}*: if several distinct candidates share a price they contribute one term each\.

#### Uniform prices \(Corollary[3](https://arxiv.org/html/2609.35869#Thmtheorem3)\)\.

###### Proof\.

Setλe=θ/nt⁡\(e\)\\lambda\_\{e\}=\\theta/n\_\{t\(e\)\}\. Every candidate has bidθ\\theta, so forK≤\|𝒞\|K\\leq\|\\mathcal\{C\}\|the top\-KKsum isK​θK\\theta\. Each path has cost\|P\|\+θ​∑e∈P∩tok1/nt⁡\(e\)\|P\|\+\\theta\\sum\_\{e\\in P\\cap\\mathrm\{tok\}\}1/n\_\{t\(e\)\}, affine inθ\\theta\. Its minimum over paths, minusK​θK\\theta, is therefore concave and piecewise linear\. WhenK\>\|𝒞\|K\>\|\\mathcal\{C\}\|, subtractingK​θK\\thetagives a weaker but still valid bound\.

At a differentiability point, the derivative of this one\-dimensional bound is∑tρt−K\\sum\_\{t\}\\rho\_\{t\}\-K\. An interior differentiable maximiser therefore satisfies∑tρt=K\\sum\_\{t\}\\rho\_\{t\}=K; at an interior kink, the left and right derivatives bracket zero\. A maximiser atθ=0\\theta=0instead requires only a nonpositive right derivative\. Thus usage fractions express the marginal response to a common slot price; they need not sum toKKfor an individual segmentation selected at a kink\. ∎

#### Background pricing\.

###### Proposition 9\(Background pricing\)\.

Let𝒜⊆𝒞\\mathcal\{A\}\\subseteq\\mathcal\{C\}with\|𝒜\|≥K\|\\mathcal\{A\}\|\\geq Kbe any active set, chooseΛt≥0\\Lambda\_\{t\}\\geq 0freely fort∈𝒜t\\in\\mathcal\{A\}, putθ:=\\theta:=theKK\-th largest bid over𝒜\\mathcal\{A\}, and setΛt:=θ\\Lambda\_\{t\}:=\\thetafor everyt∈𝒞∖𝒜t\\in\\mathcal\{C\}\\setminus\\mathcal\{A\}\(ties resolved in favour of𝒜\\mathcal\{A\}\)\. Then a set ofKKlargest bids of the full multiset lies in𝒜\\mathcal\{A\}, and \([4](https://arxiv.org/html/2609.35869#S3.E4)\) holds with the sum taken over𝒜\\mathcal\{A\}only\.

###### Proof\.

Everyt∉𝒜t\\notin\\mathcal\{A\}hasΛt=θ\\Lambda\_\{t\}=\\thetaand, by the choice ofθ\\thetaas theKK\-th largest bid over𝒜\\mathcal\{A\}, at leastKKmembers of𝒜\\mathcal\{A\}haveΛt≥θ\\Lambda\_\{t\}\\geq\\theta\. A set ofKKlargest bids of the multiset over𝒞\\mathcal\{C\}may therefore be chosen inside𝒜\\mathcal\{A\}, so∑i≤KΛ\(i\)=∑t∈𝒯Λt\\sum\_\{i\\leq K\}\\Lambda\_\{\(i\)\}=\\sum\_\{t\\in\\mathcal\{T\}\}\\Lambda\_\{t\}for some𝒯⊆𝒜\\mathcal\{T\}\\subseteq\\mathcal\{A\}with\|𝒯\|=K\|\\mathcal\{T\}\|=K, and Theorem[1](https://arxiv.org/html/2609.35869#Thmtheorem1)applies verbatim\. SettingΛt=θ\\Lambda\_\{t\}=\\thetafort∉𝒜t\\notin\\mathcal\{A\}is realised in the shortest\-path pass by pricing each occurrence of such attatθ/nt\\theta/n\_\{t\}, which is legal for anyλ≥0\\lambda\\geq 0by Lemma[8](https://arxiv.org/html/2609.35869#Thmtheorem8)\. ∎

#### Exact verification\.

###### Lemma 11\(Certificate checking\)\.

Given\(λ,K\)\(\\lambda,K\)and the corpus, the right\-hand side of \([4](https://arxiv.org/html/2609.35869#S3.E4)\) is computable by one shortest\-path pass per document plus a top\-KKselection, inO⁡\(B​L\+\|𝒞\|\)O\(BL\+\|\\mathcal\{C\}\|\)time, provided the corpus, edge indexing and prices are specified\. Validity requires onlyλ≥0\\lambda\\geq 0; checking does not require the optimisation trajectory\.

###### Proposition 12\(Exact numerical certificate\)\.

Fix an integer scaleQ\>0Q\>0and an active set𝒜⊆𝒞\\mathcal\{A\}\\subseteq\\mathcal\{C\}\. Give each active occurrence a non\-negative integer priceaea\_\{e\}, and form the exact bidsΛ^t=∑e∈E⁡\(t\)ae\\widehat\{\\Lambda\}\_\{t\}=\\sum\_\{e\\in E\(t\)\}a\_\{e\}fort∈𝒜t\\in\\mathcal\{A\}\. LetTTbe their top\-KKsum, padding with zeros\. Seth=Λ^\(K\)h=\\widehat\{\\Lambda\}\_\{\(K\)\}whenK<\|𝒜\|K<\|\\mathcal\{A\}\|, andh=0h=0otherwise\. Give each inactive occurrence the integer priceae=⌊h/nt⁡\(e\)⌋a\_\{e\}=\\lfloor h/n\_\{t\(e\)\}\\rfloor\. IfDintD\_\{\\rm int\}is the sum of shortest\-path costs with byte costQQand token\-edge costQ\+aeQ\+a\_\{e\}, then

Dint−TQ≤val⁡\(LP\)≤OPT⁡\(K\),⌈Dint−TQ⌉≤OPT⁡\(K\)\.\\frac\{D\_\{\\rm int\}\-T\}\{Q\}\\ \\leq\\ \\mathrm\{val\}\(\\mathrm\{LP\}\)\\ \\leq\\ \\mathrm\{OPT\}\(K\),\\qquad\\left\\lceil\\frac\{D\_\{\\rm int\}\-T\}\{Q\}\\right\\rceil\\ \\leq\\ \\mathrm\{OPT\}\(K\)\.

###### Proof\.

The rational pricesλe=ae/Q\\lambda\_\{e\}=a\_\{e\}/Qare non\-negative\. Each inactive candidate has total integer bidnt​⌊h/nt⌋≤hn\_\{t\}\\lfloor h/n\_\{t\}\\rfloor\\leq h\. WhenK<\|𝒜\|K<\|\\mathcal\{A\}\|, at leastKKactive bids are at leasthh; otherwise all inactive bids are zero\. ThusTTis the top\-KKsum over the full candidate set, including every distinct hapax\. Scaling all edge costs byQQshows that\(Dint−T\)/Q\(D\_\{\\rm int\}\-T\)/Qis exactly the certificate of Theorem[1](https://arxiv.org/html/2609.35869#Thmtheorem1)\. Its LP bound follows from the explicit dual construction\. The final inequality uses thatOPT⁡\(K\)\\mathrm\{OPT\}\(K\)is an integer\. ∎

We useQ=232Q=2^\{32\}and convert each saved active float32 price toae=⌊Q​λesaved⌋a\_\{e\}=\\lfloor Q\\lambda\_\{e\}^\{\\mathrm\{saved\}\}\\rfloordirectly from its IEEE\-754 bits\. This defines a new dual point; validity does not depend on the accuracy of the floating\-point optimiser\. An independent C\+\+ checker uses integer arithmetic for price conversion, bids, top\-KKselection and the full shortest\-path computation\. It checks accumulator ranges and rejects negative, nonfinite or overflowing inputs\. For a uniform certificate with integer bid ceilinghh, the same construction usesae=⌊h/nt⌋a\_\{e\}=\\lfloor h/n\_\{t\}\\rfloorfor every candidate and subtractsmin⁡\(K,\|𝒞\|\)​h\\min\(K,\|\\mathcal\{C\}\|\)h, an upper bound on its top\-KKsum\.

The checker reconstructs every legal span from the recorded corpus and document boundaries\. It verifies that the suffix index is a permutation ordered by length\-LLprefixes, independently recomputes prefix matches from the bytes, and checks each candidate’s complete occurrence group and frequency\. Distinct hapax strings may share a storage class but retain separate bids\. The artefact records hashes of the corpus, boundaries, price file, active types, configuration and checker, together with the exact numerator and denominator\. Reported token\-count lower bounds are rounded up to integers; ratio endpoints are then rounded outwards by integer division\.

### A\.3Certified cost intervals and general budgets

#### Tax intervals\.

###### Proposition 14\.

For every pre\-tokeniserπ\\piand budgetKK,OPTπ​\(K\)≥OPT∅​\(K\)\\mathrm\{OPT\}\_\{\\pi\}\(K\)\\geq\\mathrm\{OPT\}\_\{\\varnothing\}\(K\)\. The taxτπ​\(K\)\\tau\_\{\\pi\}\(K\)is non\-negative and nondecreasing under refinement of the cut set\. Given non\-negative lower bounds and valid upper bounds on both optima, withLB∅\>0\\mathrm\{LB\}\_\{\\varnothing\}\>0,

τπ​\(K\)∈\[max⁡\{0,LBπUB∅−1\},UBπLB∅−1\]\.\\tau\_\{\\pi\}\(K\)\\ \\in\\ \\left\[\\max\\\!\\left\\\{0,\\frac\{\\mathrm\{LB\}\_\{\\pi\}\}\{\\mathrm\{UB\}\_\{\\varnothing\}\}\-1\\right\\\},\\ \\frac\{\\mathrm\{UB\}\_\{\\pi\}\}\{\\mathrm\{LB\}\_\{\\varnothing\}\}\-1\\right\]\.

###### Proof\.

Deleting token edges that cross a cut reduces the feasible set without changing the objective\. Further cuts can only increase the constrained optimum\. Since the corpus is nonempty, both optima are positive\. The inequalitiesLBr≤OPTr≤UBr\\mathrm\{LB\}\_\{r\}\\leq\\mathrm\{OPT\}\_\{r\}\\leq\\mathrm\{UB\}\_\{r\}forr∈\{π,∅\}r\\in\\\{\\pi,\\varnothing\\\}imply

LBπUB∅≤OPTπOPT∅≤UBπLB∅\.\\frac\{\\mathrm\{LB\}\_\{\\pi\}\}\{\\mathrm\{UB\}\_\{\\varnothing\}\}\\ \\leq\\ \\frac\{\\mathrm\{OPT\}\_\{\\pi\}\}\{\\mathrm\{OPT\}\_\{\\varnothing\}\}\\ \\leq\\ \\frac\{\\mathrm\{UB\}\_\{\\pi\}\}\{\\mathrm\{LB\}\_\{\\varnothing\}\}\.Subtracting one and intersecting with\[0,∞\)\[0,\\infty\)proves the interval\. No assumption on LP integrality or optimiser convergence is required\. ∎

The result compares cut sets at fixedKK; it does not imply monotonicity in the vocabulary budget\.

#### General selection budgets\.

The vocabulary constraints enter the certificate through a linear maximisation oracle\.

###### Proposition 15\(A linear oracle for the budget\)\.

Letℱ\\mathcal\{F\}be a nonempty family of admissible vocabularies and letP⊆\[0,1\]𝒞P\\subseteq\[0,1\]^\{\\mathcal\{C\}\}contain\{𝟏S:S∈ℱ\}\\\{\\mathbf\{1\}\_\{S\}:S\\in\\mathcal\{F\}\\\}\. IfOPTℱ\\mathrm\{OPT\}\_\{\\mathcal\{F\}\}is the minimum token count overℱ\\mathcal\{F\}, then for everyλ≥0\\lambda\\geq 0,

OPTℱ≥∑nSPn​\(1\+λ\)−supy∈P∑tΛt​yt\.\\mathrm\{OPT\}\_\{\\mathcal\{F\}\}\\ \\geq\\ \\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)\-\\sup\_\{y\\in P\}\\sum\_\{t\}\\Lambda\_\{t\}y\_\{t\}\.IfPPis a polytope, the maximum overλ≥0\\lambda\\geq 0equals the optimum of the relaxation with unit flows,xe≤yt⁡\(e\)x\_\{e\}\\leq y\_\{t\(e\)\}, andy∈Py\\in P\.

###### Proof\.

For any admissible segmentation\(x,𝟏S\)\(x,\\mathbf\{1\}\_\{S\}\), weak duality gives

∑exe≥∑nSPn​\(1\+λ\)−∑tΛt​𝟏S​\(t\)≥∑nSPn​\(1\+λ\)−supy∈PΛ⊤​y\.\\sum\_\{e\}x\_\{e\}\\ \\geq\\ \\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)\-\\sum\_\{t\}\\Lambda\_\{t\}\\mathbf\{1\}\_\{S\}\(t\)\\ \\geq\\ \\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)\-\\sup\_\{y\\in P\}\\Lambda^\{\\top\}y\.Taking the minimum over admissible segmentations proves the bound\. For a polytopePP, the corresponding primal relaxation is feasible and bounded\. Dualising its linking constraints and applying LP strong duality gives the equality and attainment, as in Theorem[2](https://arxiv.org/html/2609.35869#Thmtheorem2)\. ∎

An outer relaxation of admissible selections preserves the bound; excluding an admissible vocabulary need not\. For the inequality, convexity is unnecessary because a linear objective has the same supremum onPPand its convex hull\. The cardinality polytopeP=\{y∈\[0,1\]𝒞:∑tyt≤K\}P=\\\{y\\in\[0,1\]^\{\\mathcal\{C\}\}:\\sum\_\{t\}y\_\{t\}\\leq K\\\}recovers the top\-KKoracle\. The boundary\-licence model uses two linked selection variables per token, with the same dual argument applied to its joint selection polytope \(Appendix[A\.4](https://arxiv.org/html/2609.35869#A1.SS4)\)\.

### A\.4Occurrence\-aware crossing licences

For every multibyte stringtt, introduce vocabulary and licence variablesyt,zt∈\{0,1\}y\_\{t\},z\_\{t\}\\in\\\{0,1\\\}, withzt≤ytz\_\{t\}\\leq y\_\{t\},∑tyt≤K\\sum\_\{t\}y\_\{t\}\\leq K, and∑tzt≤q\\sum\_\{t\}z\_\{t\}\\leq q\. Each document supplies a unit flow in its complete substring DAG\. For an occurrenceoooftt, imposexo≤ytx\_\{o\}\\leq y\_\{t\}if it crosses no cut andxo≤ztx\_\{o\}\\leq z\_\{t\}otherwise\. Free byte edges ensure feasibility\. This integer formulation is equivalent to the vocabulary\-and\-licence problem by the same path extraction argument as the base formulation\.

#### Endpoints and nesting\.

Atq=0q=0, everyztz\_\{t\}is zero, so all crossing occurrences are unavailable; the remaining paths are exactly the concatenations of pretoken paths\. Atq=Kq=K, any unrestricted vocabulary can setzt=ytz\_\{t\}=y\_\{t\}, so all its occurrences are legal\. Conversely, every licensed vocabulary is an unrestricted vocabulary after its occurrence restrictions are removed\. Increasingqqleaves each previous pair\(V,W\)\(V,W\)feasible, proving monotonicity\. Noninteger requested fractions useq=⌊f​K⌋q=\\lfloor fK\\rfloor;qqis clipped to\[0,K\]\[0,K\]\.

#### Certificate\.

Relax the occurrence\-to\-vocabulary or occurrence\-to\-licence inequalities with multipliersλo≥0\\lambda\_\{o\}\\geq 0\. For a feasible solution, addingλo​\(xo−yt\)\\lambda\_\{o\}\(x\_\{o\}\-y\_\{t\}\)orλo​\(xo−zt\)\\lambda\_\{o\}\(x\_\{o\}\-z\_\{t\}\)cannot increase its cost\. Minimisation over paths gives∑nSPn​\(1\+λ\)\\sum\_\{n\}\\mathrm\{SP\}\_\{n\}\(1\+\\lambda\)\. Minimisation over\(y,z\)\(y,z\)gives−HK,q​\(A,B\)\-H\_\{K,q\}\(A,B\), whereAtA\_\{t\}andBtB\_\{t\}sum prices on the two occurrence classes\. Their difference therefore bounds every feasible token count from below\.

#### Exact support algorithm\.

Pad with zero\-bid dummy types when the number of candidates is smaller thanKK\. Nonnegative bids allow an optimum with exactlyKKselected types and exactlyqqlicences, including unused dummy choices\. Letmmbe the number of types after padding\. Order them soB1≥⋯≥BmB\_\{1\}\\geq\\cdots\\geq B\_\{m\}, breaking ties by type identifier\. For a fixed selected vocabulary, exchanging a licence from a smaller\-BBselected type to a larger\-BBselected type cannot reduce its score, because theAAcontribution is unchanged\. Thus some optimal assignment licences the firstqqselected types in this order\. A splitppseparates those types from itsK−qK\-qunlicensed selected types, giving Equation[8](https://arxiv.org/html/2609.35869#S6.E8)\. Every choice counted on its right\-hand side is feasible, and the exchange argument shows that an optimum is counted\. A forward and a backward heap pass evaluate all splits inO⁡\(m​log⁡\(K\+1\)\)O\(m\\log\(K\+1\)\)time after sorting\. Atq=0q=0the formula reduces to the top\-KKsum ofAA; atq=Kq=Kit reduces to the top\-KKsum ofA\+BA\+B\.

#### LP characterisation\.

The selection polytope is integral\. To see this, setut=yt−ztu\_\{t\}=y\_\{t\}\-z\_\{t\}: its constraints areu,z≥0u,z\\geq 0,ut\+zt≤1u\_\{t\}\+z\_\{t\}\\leq 1,∑t\(ut\+zt\)≤K\\sum\_\{t\}\(u\_\{t\}\+z\_\{t\}\)\\leq K, and∑tzt≤q\\sum\_\{t\}z\_\{t\}\\leq q\. Represent each type by a capacity\-one arc that splits into unlicensed and licensed channels; the licensed channel has aggregate capacityqq, and their combined flow has capacityKK\. An optional\-flow circulation closes this network\. Integer capacities give integral vertices, soHK,qH\_\{K,q\}is also the exact support of this continuous selection polytope\. Dualising the occurrence\-linking inequalities and applying LP strong duality therefore identifies the maximum certificate over*all*non\-negative occurrence prices with the joint flow/linking/selection LP optimum\. This equality does not imply integrality of the joint LP\. The finite optimisation and fixed hapax prices used below still yield lower bounds; they need not attain that LP optimum\.

#### An intermediate\-budget integrality gap\.

Take the documentaaaaa, cuts after bytes11and44,L=3L=3andK=2K=2, so the candidate types areaaandaaa\. Atq=1q=1, either two\-token path uses both types across cuts, requiring two licences\. Thus the integer optimum is33, attained bya\+aaa\+a\. The LP sets both vocabulary variables to11, both licence variables to1/21/2, and sends half the flow along each ofaa\+aaaandaaa\+aa\. Its cost is22, the minimum path length in the full graph, so the LP optimum is exactly22\. Atq=0q=0, both optima are33; atq=2q=2, both are22\. Exact rational constraint checks and exhaustive vocabulary/licence enumeration verify all three cases\. This example establishes a possible licensing\-induced gap; it does not attribute the production intervals to integrality rather than finite price optimisation or primal search\.

#### Fixed hapax background\.

Every string that occurs once has a single occurrence, whose length and crossing status determine its bid when its price is fixed atℓ−1\\ell\-1\. Its priced edge then costsℓ\\ell, equal to its byte fallback\. Equal\-length hapaxes with equal crossing status therefore form identical items for the support computation, although they remain distinct vocabulary types\. No support maximiser selects more thanKKitems from one class, so retainingmin⁡\(K,m\)\\min\(K,m\)identical representatives from a class of multiplicitymmpreserves the support exactly\. The full graph still includes every hapax occurrence\. Restricting primal search to repeated strings affects search quality, not the validity of an achieved vocabulary or the certificate over the complete candidate class\.

#### Witness sharing\.

For a fixed price vector,HK,qH\_\{K,q\}is nondecreasing inqq, hence its lower bound is nonincreasing\. Taking the maximum over the same finite set of price witnesses at every budget preserves this order\. All reported certified points can therefore share the full price pool without smoothing or interpolating experimental values\. Similarly, a vocabulary feasible at a smaller budget remains an admissible warm start at every larger budget\.

#### Certified recovery of endpoint compression gain\.

Let\[Lj,Uj\]\[L\_\{j\},U\_\{j\}\]enclose the optimal token count at budgetjj\. WhenL0\>UKL\_\{0\}\>U\_\{K\}, a positive endpoint gain is certified, and the fractionFq=\(OPT0−OPTq\)/\(OPT0−OPTK\)F\_\{q\}=\(\\mathrm\{OPT\}\_\{0\}\-\\mathrm\{OPT\}\_\{q\}\)/\(\\mathrm\{OPT\}\_\{0\}\-\\mathrm\{OPT\}\_\{K\}\)obeys

max⁡\(0,L0−UqL0−LK\)≤Fq≤min⁡\(1,U0−LqU0−UK\)\.\\max\\\!\\left\(0,\\frac\{L\_\{0\}\-U\_\{q\}\}\{L\_\{0\}\-L\_\{K\}\}\\right\)\\leq F\_\{q\}\\leq\\min\\\!\\left\(1,\\frac\{U\_\{0\}\-L\_\{q\}\}\{U\_\{0\}\-U\_\{K\}\}\\right\)\.\(13\)On the nested domainx0≥xq≥xKx\_\{0\}\\geq x\_\{q\}\\geq x\_\{K\}, the ratio\(x0−xq\)/\(x0−xK\)\(x\_\{0\}\-x\_\{q\}\)/\(x\_\{0\}\-x\_\{K\}\)is nondecreasing inx0x\_\{0\}andxKx\_\{K\}and nonincreasing inxqx\_\{q\}\. The lower corner has this ordering whenUq<L0U\_\{q\}<L\_\{0\}; otherwise clipping at zero is valid\. The upper corner has this ordering whenLq\>UKL\_\{q\}\>U\_\{K\}; otherwise clipping at one is valid\. Both denominators are positive under the stated condition\. The endpoint identities giveF0=0F\_\{0\}=0andFK=1F\_\{K\}=1\. WithoutL0\>UKL\_\{0\}\>U\_\{K\}, these certificates do not identify a positive optimal endpoint gain, and no recovery fraction is reported\. Displayed interval endpoints are rounded outwards using rational arithmetic\.

## Appendix BCompression protocol and complete results

### B\.1Data and constraints

The main compression grid uses the 20231101 Wikipedia dumps in twelve languages \(en, de, ru, fi, tr, vi, ar, hi, th, ko, ja, zh\)\. Each cell takes a prefix of approximately4242MB after retaining document lines of at least1616bytes\. Script arguments namedmbuse MiB; table sizes use the actual byte counts\. All comparisons preserve document boundaries and useK=32768K=32768non\-byte entries with maximum lengthL=16L=16bytes\. The256256single\-byte entries are always available outside this budget\. Sources are UTF\-8; a byte\-limited prefix may retain an incomplete final character\. Regex offsets replay replacement decoding for that tail, while graph construction and scoring preserve the original bytes\. The corpus contains no byteff, which the candidate index reserves as an internal separator\.

The constrained regime uses an o200k\-style regex\. Character offsets are converted to byte offsets before graph edges are removed\. The unrestricted regime has no internal cuts\. This definition applies to compression certification and scoring\. Language\-model vocabulary construction and stream encoding are specified separately in Table[9](https://arxiv.org/html/2609.35869#A3.T9)\. The boundary\-licence experiment retains the original document graph and checks each occurrence against the same cut positions\.

### B\.2Baseline construction and scoring

BPE is trained on the corresponding cut documents with Hugging Face Tokenizers\. Unigram uses SentencePiece with identity normalisation, full character coverage, byte fallback, and no script or digit splitting\. Its character\-based length cap is adapted to the corpus; after requesting an oversized vocabulary, we retain the highest\-scoring distinct byte strings satisfyingLLuntil the budget is met or the candidate pool is exhausted\. The artefact records achieved vocabulary sizes\. Long training documents are split at at most6464KiB, preferring whitespace and preserving UTF\-8 character boundaries; all input bytes are accounted for\.

Two\-stage BPEfirst learns a regex\-constrained vocabulary and then performs merges over that token stream without internal pre\-tokenisation\. The transition uses half the non\-byte vocabulary budget\. This merge curriculum is inspired by SuperBPE and BoundlessBPE, with a broader stage\-two merge space than whitespace\-only relaxation\. The separate200200k LM experiment includes the released SuperBPE tokeniser with its serialised inference pipeline\.

Compression scores are recomputed from hexadecimal vocabularies using an independent byte trie\. Minimum\-count decoding computes a shortest path under the requested cuts; greedy longest match is a separate decoder\. Native BPE ranked merges are used in the BPE LM streams, as recorded in Table[9](https://arxiv.org/html/2609.35869#A3.T9)\. Rescoring preserves eligible rare entries even when the optimiser represents unique substrings using shared classes\. ForSlotPrice, the released\-vocabulary count is checked against the candidate\-index count\.

### B\.3Price and vocabulary optimisation

Algorithm 1SlotPrice: vocabulary construction and certification1:Corpus

𝒟\\mathcal\{D\}, length cap

LL, budget

KK, active set size

MM, iteration budget

TT,

K≤M≤\|𝒞\|K\\leq M\\leq\|\\mathcal\{C\}\|
2:Build the suffix array and longest\-common\-prefix index; assign candidate identities and counts

ntn\_\{t\}
3:Select active set

𝒜\\mathcal\{A\}by the

MMlargest values of

nt​\(\|t\|−1\)n\_\{t\}\(\|t\|\-1\)
4:Find

θ0≥0\\theta\_\{0\}\\geq 0by one\-dimensional search of the uniform\-price bound

5:Initialise active prices

λe←θ0/nt⁡\(e\)\\lambda\_\{e\}\\leftarrow\\theta\_\{0\}/n\_\{t\(e\)\},

ve←0v\_\{e\}\\leftarrow 0, and

LB←−∞\\mathrm\{LB\}\\leftarrow\-\\infty
6:for

k=0,…,T−1k=0,\\dots,T\-1do

7:Accumulate active bids

Λt\\Lambda\_\{t\}; choose top\-

KKset

SSand its indicator

ss
8:

θ←Λ\(K\)\\theta\\leftarrow\\Lambda\_\{\(K\)\}over

𝒜\\mathcal\{A\}if

K<\|𝒜\|K<\|\\mathcal\{A\}\|; otherwise

θ←0\\theta\\leftarrow 0
9:Compute

SP\\mathrm\{SP\}and paths

x⋆x^\{\\star\}using active costs

1\+λe1\+\\lambda\_\{e\}and inactive costs

1\+θ/nt1\+\\theta/n\_\{t\}
10:if

SP−∑t∈SΛt\>LB\\mathrm\{SP\}\-\\sum\_\{t\\in S\}\\Lambda\_\{t\}\>\\mathrm\{LB\}then

11:Store this value as

LB\\mathrm\{LB\}and save its active price vector as

λbest\\lambda^\{\\rm best\}
12:endif

13:On active occurrences, update

ve←0\.9​ve\+\(xe⋆−st⁡\(e\)\)/nt⁡\(e\)v\_\{e\}\\leftarrow 0\.9v\_\{e\}\+\(x\_\{e\}^\{\\star\}\-s\_\{t\(e\)\}\)/n\_\{t\(e\)\}
14:

λe←max⁡\{0,λe\+4​ve/1\+k\}\\lambda\_\{e\}\\leftarrow\\max\\\{0,\\lambda\_\{e\}\+4v\_\{e\}/\\sqrt\{1\+k\}\\\}; update the running average

15:Every

2525iterations, evaluate the average and retain it if its certificate improves

LB\\mathrm\{LB\}
16:endfor

17:Grow a vocabulary using summed single\-occurrence insertion scores

18:Apply swaps and ruin\-and\-recreate; retain the best exactly scored feasible vocabulary

VV
19:Quantise

λbest\\lambda^\{\\rm best\}and independently check the full graph and rational dual value

CKC\_\{K\}\(Proposition[12](https://arxiv.org/html/2609.35869#Thmtheorem12)\)

20:return

⌈CK⌉\\lceil C\_\{K\}\\rceil,

VV, the checked prices, and input hashes

A suffix array and longest\-common\-prefix array identify all eligible candidate occurrences\. The active set contains theMMcandidates with largestnt​\(\|t\|−1\)n\_\{t\}\(\|t\|\-1\), an upper bound on single\-type token savings\. The default active\-set budget isM=max⁡\(128​K,3⋅106\)M=\\max\(128K,3\\cdot 10^\{6\}\), capped at the number of repeated candidates\. Projected ascent uses momentum0\.90\.9, step size4/1\+k4/\\sqrt\{1\+k\}, and a1/nt1/n\_\{t\}preconditioner\. A running average is evaluated every2525iterations; the largest evaluated bound is retained\. Cell records give exact iteration counts and configurations\. Inactive occurrences remain present with background prices\. The independent integer checker produces the reported conservative lower bound from the saved price vector\.

The English unrestricted witness usesM=256​K=8,388,608M=256K=8\{,\}388\{,\}608and an additional24002400ascent steps from a saved price vector, with step size0\.30/1\+k/8000\.30/\\sqrt\{1\+k/800\}, momentum0\.90\.9, six CPU threads and no iterate averaging\. Its input witness and final integer check are recorded separately\.

Vocabulary construction starts with greedy additions, then proposes swaps and ruin\-and\-recreate moves\. Iff⁡\(s\)f\(s\)andh⁡\(s\)h\(s\)are forward and backward path costs under the current vocabulary, andccis the document’s count, insertion of a single occurrencee=\(s,s\+ℓ\)e=\(s,s\+\\ell\)has gain

δe=max⁡\{0,c−f⁡\(s\)−1−h⁡\(s\+ℓ\)\}\.\\delta\_\{e\}=\\max\\\{0,c\-f\(s\)\-1\-h\(s\+\\ell\)\\\}\.The sum of these gains over a token’s occurrences ranks proposals\. Overlap makes this sum a heuristic for adding a whole token type\. Removal scores use local replacement covers\. Each complete proposed vocabulary is evaluated with a shortest\-path pass; only strict improvements are retained, preserving an upper bound at every step\. Additional English search merges existing vocabularies before pruning and perturbs low replacement\-cost entries\. Its final vocabulary is independently rescored\.

### B\.4Validation and resource accounting

Table[4](https://arxiv.org/html/2609.35869#A2.T4)compares the certificate with small LP and integer programmes\. The integer checker also has exhaustive reference tests for shortest paths, budgets, background pricing, quantisation and overflow handling\. Candidate identities and occurrence counts are validated before evaluating production cells, and input hashes identify the corpus and prices\. The certificate is specific to those inputs\.

The LM measurements draw on an inventory of11861186runs, including rate sweeps and controls rather than independent replications of one contrast\. The paired main test result has3636seed pairs across twelve languages\. The independent tuning/evaluation replication is reported in Appendix[F\.1](https://arxiv.org/html/2609.35869#A6.SS1)\.

### B\.5Complete language scores

Table[3](https://arxiv.org/html/2609.35869#A2.T3)reports all twelve languages under the common headline protocol\. An upper bound on achievable bytes per token is the corpus byte count divided by the conservative token\-count lower bound\. The achieved values are corpus bytes divided by the independently scored token count\. Baselines are compared at their actual length\-eligible vocabulary sizes, which cannot exceed the common budget\.

Table 3:Compression scores and optimal\-tax intervals\.All entries except the last column are achieved bytes per token under minimum\-count encoding\. Bold marks the highest achieved value within each language and regime\. The final column is the outward\-rounded certified optimal regex tax \(%\)\. Two\-stage denotes the local BPE curriculum\. Every language uses its own Wikipedia corpus and a common budget of3276832768non\-byte entries; no cross\-language byte\-rate comparison is implied\.
### B\.6Small\-instance validation

The comparisons in Table[4](https://arxiv.org/html/2609.35869#A2.T4)distinguish the relaxation gap from price optimisation and vocabulary\-search error\. The corresponding ratio factors multiply; the percentage gaps are not an additive decomposition\.

Table 4:Checked dual values recover the full LP reference closely\.BBis corpus bytes andddis document length in bytes\. Uniform and occurrence\-price bounds are evaluated exactly at dyadic prices; recovery percentages use the unrounded rational lower bound and are rounded down\. The occurrence\-price result is the better of two 4000\-step searches\. LP and integer optima are the reference HiGHS\([Huangfu and Hall, 2018](https://arxiv.org/html/2609.35869#bib.bib20)\)solves, with numerical solver tolerances\. Below, relaxation, primal and dual gaps are100​\(OPT/LP−1\)100\(\\mathrm\{OPT\}/\\mathrm\{LP\}\-1\),100​\(UB/OPT−1\)100\(\\mathrm\{UB\}/\\mathrm\{OPT\}\-1\)and100​\(LP/LB−1\)100\(\\mathrm\{LP\}/\\mathrm\{LB\}\-1\); their ratio factors multiply\.BBddLLKK\|𝒞\|\|\\mathcal\{C\}\|LPUniform \(%\)Occurrence \(%\)10001006203k660\.091\.699\.991000508305k570\.086\.399\.79150010010309k880\.086\.599\.8220001006405k1167\.586\.199\.9720001008409k1124\.285\.999\.9020002006306k1256\.088\.499\.89300010086013k1597\.783\.499\.923000150125024k1648\.583\.799\.93400010066010k2202\.084\.299\.894000150810016k1774\.179\.699\.618000150810029k3847\.081\.299\.778000200620017k3093\.280\.199\.6916000200620027k6532\.081\.499\.7432000200840085k10253\.778\.099\.59Decomposition on completed integer solvesBBddLLKKOPTRelaxation \(%\)Primal \(%\)Dual \(%\)10001006206600\.000\.450\.011000508305700\.001\.050\.21150010010308810\.111\.020\.18200010064011750\.642\.130\.02200010084011250\.070\.530\.09200020063012610\.400\.080\.10300010086015990\.080\.000\.073000150125016490\.031\.330\.06400010066022120\.451\.850\.10
### B\.7Budgets, regexes and deployed tokenisers

Table[5](https://arxiv.org/html/2609.35869#A2.T5)repeats the English and Chinese measurement across vocabulary budgets; Table[6](https://arxiv.org/html/2609.35869#A2.T6)replaces the boundary regex by deployed pre\-tokenisers; Table[7](https://arxiv.org/html/2609.35869#A2.T7)compares native and minimum\-count decoding of released vocabularies; it reports achieved compression without an optimality claim\. Bounds and interval endpoints in Tables[5](https://arxiv.org/html/2609.35869#A2.T5)and[6](https://arxiv.org/html/2609.35869#A2.T6)are rounded outwards from exact rational values, using the same convention as the prose\.

Table 5:Vocabulary\-budget sweep atL=16L\{=\}16,4242MB per language\.B/KB/Kis corpus bytes per vocabulary slot; bound columns are certified ceilings in bytes per token\. Achieved tax and its certified two\-sided interval use Proposition[14](https://arxiv.org/html/2609.35869#Thmtheorem14)\. BPE gaps are listed for regex and regex\-free regimes\. ‘ws’ is a whitespace\-only constraint at the indicated budget\.langKKB/KB/Kboundπ\\pibound∅\\varnothingachievedτ\\taucertifiedτ\\tauBPE gapπ/∅\\pi\\,/\\,\\varnothingEnglish4096102403\.6994\.54210\.7%4\.6–30\.0%9\.8% / 23\.7%819251204\.0565\.13415\.1%11\.4–30\.7%6\.6% / 19\.7%3276812804\.6426\.31429\.1%28\.3–36\.8%2\.1% / 10\.9%1310723204\.9948\.00654\.5%53\.6–61\.3%1\.3% / 11\.9%*ws*3276812805\.0586\.31419\.0%17\.8–26\.1%3\.1% / –Chinese4096102393\.3123\.5134\.9%2\.9–8\.2%2\.8% / 4\.2%819251203\.7334\.0106\.5%5\.5–8\.5%1\.8% / 3\.1%3276812804\.5935\.08410\.1%9\.8–11\.0%1\.1% / 2\.2%1310723205\.4996\.34814\.7%14\.4–15\.7%1\.4% / 3\.1%*ws*3276812804\.9665\.0842\.1%1\.6–2\.9%1\.7% / –Table 6:Pre\-tokenisation tax under deployed regex definitions on the same English headline instance\. Each constrained vocabulary and bound is computed independently\. cl100k and LLaMA\-3 induce identical cuts on this corpus, so their rows are one measurement and their certified intervals coincide\. ‘ℓ¯π\\bar\{\\ell\}\_\{\\pi\}’ is the mean induced pretoken length in bytes\.Table 7:Released encoders and minimum\-count segmentation on approximately126126MB per language\. Values are achieved bytes per token \(higher is better\)\.KKcounts retained multibyte vocabulary entries of length at mostL=16L=16\. Native uses the released encoder; the last two columns use minimum\-count segmentation with common o200k\-style cuts or no cuts\. Removing tokens longer thanLLincreases the unrestricted minimum token count by at most0\.022%0\.022\\%in these measurements\. No optimization bound is used in this comparison\.
### B\.8Algorithmic ablations

Table[8](https://arxiv.org/html/2609.35869#A2.T8)separates price optimisation, active\-set size and vocabulary search using the recorded English and Chinese ablations\. Preconditioning and momentum improve the dual objective at the fixed iteration budget\. Iterate averaging makes no measurable difference in these runs\. Larger active sets improve the objective with diminishing returns, while local swaps and ruin\-and\-recreate improve the feasible vocabulary\. These optimiser diagnostics complement the integer\-checked headline certificates; they do not supply the certified optimal\-tax intervals\.

Table 8:Algorithm diagnostics on unrestricted English and Chinese instances,K=32768K=32768,L=16L=16, approximately16\.816\.8MB per language, and 400 dual iterations\. Values use the recorded floating\-point dual objective; they are optimization diagnostics, not independent integer certificates\. The primal gap is100​\(UB/LB−1\)100\(\\mathrm\{UB\}/\\mathrm\{LB\}\-1\)relative to the full\-optimizer objective\. Each setting has one recorded run on 40 CPU threads; times are seconds for the indicated optimizer or individual primal stage\. Uniform\-price initialization and active\-set timings are not reported\. The largest active sets contain 16,657,541 English and 16,777,216 Chinese types\.

## Appendix CLanguage\-model protocol and supplementary evidence

### C\.1Vocabulary construction and stream decoding

Vocabulary construction, admissible occurrences during encoding, and the segmentation objective are separate parts of a tokeniser\. Table[9](https://arxiv.org/html/2609.35869#A3.T9)records the pipelines of the LM experiments\. Training, validation, test, and downstream likelihood evaluation use the same decoder within an arm\. All byte vocabularies include singleton\-byte fallbacks; the end\-of\-sequence \(EOS\) token has zero raw\-byte length\.

Table 9:Decoder protocol of the LM experiments\. “Regex” in the construction column means that vocabulary fitting restricts candidate occurrences\. A regex\-trained byte vocabulary does not itself impose boundary masks at encoding time\. The released SuperBPE artefact retains its serialised tokeniser pipeline\.TheSlotPrice/SlotPriceπpair holds the inference rule fixed while changing the vocabulary\-fitting constraint\. Recorded vocabulary\-search effort also differs: English and Chinese use350350versus700700dual steps and active\-set sizes3,145,7283\{,\}145\{,\}728versus a cap of4,194,3044\{,\}194\{,\}304\(unrestricted versus regex\); the other languages use700700steps in both regimes\. The BPE pair changes both its fitting boundaries and its serialised pre\-tokenisation\. Local Two\-stage BPE uses a broader second\-stage merge space\. Unigram uses Viterbi instead of its native likelihood segmentation\. The reproduction records include an executable decoder audit and artefact hashes\.

### C\.2Test\-only multilingual inference

English LM data comes from FineWeb\([Penedo et al\., 2024](https://arxiv.org/html/2609.35869#bib.bib16)\)\(CC\-MAIN\-2024\-10\), Chinese fromchinese\-fineweb\-edu\-v2\([Yu et al\., 2025](https://arxiv.org/html/2609.35869#bib.bib18)\), and the other ten languages from their FineWeb\-2 subsets\([Penedo et al\., 2025](https://arxiv.org/html/2609.35869#bib.bib17)\)\. These are distinct from the Wikipedia compression benchmark\. Each language’s arms share raw documents and split definitions; cross\-language differences can include corpus differences\. The reference vocabularies are fitted on3232MB corpus prefixes, which overlap the validation prefixes used for rate selection\. Test regions lie outside the consumed training and fitting text\. Test preparation rejects documents whose content digest occurs earlier in the corpus; source offsets, byte totals, and split metadata are recorded for every arm\. Tokenised streams concatenate documents with EOS separators\. The training loader samples token offsets with replacement, rather than aligned raw\-byte starts\.

The reference Transformer has 12 layers, width 768, 12 attention heads, rotary position embeddings, RMSNorm, and SwiGLU feed\-forward layers\. Input and output embeddings are untied\. AdamW uses\(β1,β2\)=\(0\.9,0\.95\)\(\\beta\_\{1\},\\beta\_\{2\}\)=\(0\.9,0\.95\),ϵ=10−8\\epsilon=10^\{\-8\}, weight decay0\.10\.1, and gradient clipping at norm11\. Training usesbf16, 100 warm\-up steps, and a cosine schedule ending at one tenth of the initial rate\. The panel’s 800 steps each contain786,432786\{,\}432tokens\. Its base rates are\{0\.0006,0\.0012,0\.0024\}\\\{0\.0006,0\.0012,0\.0024\\\}for the regex\-trained arms and\{0\.0003,0\.0006,0\.0012\}\\\{0\.0003,0\.0006,0\.0012\\\}for the unrestricted arms\. All arms share a20482048\-token context and the same padded vocabulary size\. Matching tokens therefore matches model computation within a cell, while raw\-byte exposure and the byte span of the context can differ\.

The primary panel has twelve languages and three paired training seeds per language \(1234,5678,90121234,5678,9012\)\. A run is eligible only if its architecture, token budget, vocabulary size, selected rate, encoded test stream, and scored\-token count match the specified panel geometry\. The analysis readstest\_result\.jsonobservations and averages repeated evaluations within each arm and seed\. It then forms a relative contrast for each seed, averages seeds within language, and weights languages equally\. Hindi and Thai lack matching selected BPE test pairs; that BPE contrast therefore covers ten languages\.

Each arm’s learning rate minimises the mean of repeated validation evaluations separately for each seed\. The base grid has three candidates; boundary extensions enter only when complete at all seeds and balanced in count between the two arms\. Of the7272recorded per\-seed rate selections,6363sit at interior grid points; the remaining99edge selections are English \(seeds 5678 and 9012, both arms\); Turkish \(seed 5678, regex arm\); Finnish \(seed 9012, unrestricted arm\); Korean \(seed 9012, unrestricted arm\); Russian \(seeds 5678 and 9012, regex arm\)\. The edge cells are not symmetric across arms: English contributes four \(the unrestricted arm at the bottom of its rate grid and the regex arm at the top, each at seeds56785678and90129012\)\. These edge optima leave the effect of further tuning on the English contrast and the equal\-language panel mean unresolved\. Test loss never enters rate selection\. The result is held\-out test evaluation after within\-seed validation selection, not evaluation under independent tuning seeds\. Every finite grid score, selected test observation, and byte\-denominator audit has source\-path and SHA\-256 provenance inruns/panel\.json\.

Per\-language uncertainty uses the standard deviation of relative paired\-seed contrasts and a two\-sided Student\-ttinterval with two degrees of freedom\. Holm adjustment controls multiplicity within each contrast family, conditional on the individual tests’ assumptions; it does not pool variances across languages\. The sign test instead asks whether positive language\-level means occur more often than probability one half, assuming independent signs\. Its panel\-level conclusion differs from significance for an individual language\. The equal\-language mean interval resamples languages20,00020\{,\}000times with a fixed seed, conditional on the observed per\-language seed means\. This language\-resampling summary does not propagate training\-seed or rate\-selection uncertainty and is not a prediction interval for a new language\. Training\-seed variability includes numerical reproducibility effects; these are not added again as a separate variance component\.

The primary analysis normalises each loss by the exact byte sum of its scored target\-token prefix, with EOS assigned zero bytes\. Full\-stream totals are checked against preparation metadata\. Complete token blocks cover tokeniser\-dependent prefixes of the shared test slice, so exact normalisation does not imply identical scored text\. Retained test summaries use the same target\-byte convention; the validation curves in Figures[4](https://arxiv.org/html/2609.35869#A3.F4)–[5](https://arxiv.org/html/2609.35869#A3.F5)retain the original split\-average bytes\-per\-token normalisation\.

Table 10:Held\-out test results for the paired fitted\-dictionary comparison\.SlotPricedictionaries are trained with \(π\\pi\) or without \(∅\\varnothing\) the regex; both use document\-level Viterbi encoding\. Columns show mean test bits per byte, paired relative change \(%\), and its95%95\\%paired\-ttinterval over three seeds\. The final column tests the twelve language contrasts using two\-sided paired tests and Holm correction at0\.050\.05\.
### C\.3Learning\-rate and training\-scale controls

Table 11:The prediction penalty under scale and budget controls\.Contrasts ofSlotPriceagainst the indicated reference arm, from the paired1212\-language8585M panel to the1\.881\.88B English rung\. Test bits\-per\-byte entries are relative increases; BLiMP entries are accuracy\-point differences\. The summary column reports the standard deviation across the1212per\-language mean contrasts \(row one\); the1\.881\.88B summary concerns whether the deficit continues to attenuate, using a descriptive band twice the root\-sum\-square of the arm checkpoint standard deviations\. Replicates are training seeds except for the1\.881\.88B row, which counts checkpoints\. The996996M selected\-rate test entry uses one seed per arm, and the387387M matched\-bytes contrast’s budget response is unresolved at 2 seeds per cell \(Appendix[C](https://arxiv.org/html/2609.35869#A3)\)\. The387387M matched\-token difference againstSlotPriceπis−3\.6\-3\.6points\. For the1\.881\.88B comparison against BPE, the996996M reference difference is−3\.8\-3\.8points\.Shared\-rate comparisons can confound tokenisation with optimisation stability\. In the English reference sweep, the selected rates are1\.21\.2–2\.4×10−32\.4\\times 10^\{\-3\}for the two regex\-trained vocabularies and6×10−46\\times 10^\{\-4\}for the four unrestricted vocabularies\. At the shared rate1\.2×10−31\.2\\times 10^\{\-3\}, the largest measured seed standard deviation is43×43\\timesthe BPE seed spread at that same rate\. We consequently match tuning budgets and select rates separately; an interior grid minimum establishes local coverage, not a global optimum over rates\.

At996996M andK=200K=200k, the observed grid places every arm’s minimum in the interior\. In the selected\-rate test comparison,SlotPriceπreaches0\.781170\.78117bits per byte against BPE’s0\.783660\.78366, using seed12341234for each arm\. The additional three\-seed dispersion is measured at the transported centre rate \(defined below\) and does not describe every selected\-rate entry\.SlotPriceπselects twice that centre rate\. At twice the centre rate its33seeds give0\.78162±0\.000400\.78162\\pm 0\.00040bits per byte, while BPE gives1\.59178±0\.005961\.59178\\pm 0\.00596over22seeds\. BPE’s centre\-rate loss is0\.783660\.78366\. Thus the within\-regime ranking depends on rate tolerance as well as vocabulary construction\.

The shared FineWeb corpus contains176176GB\. Training windows are sampled with replacement, and each arm’s token budget is below its encoded corpus capacity\.

#### Fixed tokens per parameter\.

The complementaryD=20​ND=20Nladder uses measured non\-embedding parameters and jointly increases model size and training tokens\. The EnglishSlotPricepenalty falls from\+18\.32%\+18\.32\\%at2424M to\+2\.65%\+2\.65\\%at387387M\. Each rung transports the reference rate byd−1/2d^\{\-1/2\}and evaluates half and twice that rate\. An expanded5252GB corpus keeps every arm’s consumption below its encoded capacity\. This allocation fixes training tokens per non\-embedding parameter under replacement sampling\.

Figure 4:English size ladder at629,145,600629\{,\}145\{,\}600training tokens \(800800steps\),K=32768K=32768non\-byte entries and seed12341234: \(a\) validation bits per byte and \(b\) loss relative to BPE with regex\. Each point uses the best validation rate for that arm and model size\.Figure 5:English \(top\) and Chinese \(bottom\) validation bits per byte against training tokens \(left\) and estimated byte exposure \(right\)\. All curves use an8585M non\-embedding\-parameter Transformer \(12 layers, width 768, 12 heads\),K=32768K=32768non\-byte entries \(33,15233\{,\}152padded\), a20482048\-token context, seed12341234and shared initial rate1\.2×10−31\.2\\times 10^\{\-3\}\. Exposure equals training tokens times mean training bytes per token, including repeated sampling; losses use mean validation bytes per token\. Table[9](https://arxiv.org/html/2609.35869#A3.T9)specifies the decoders\.
#### Compression and prediction accounting\.

With consistent normalisation,bits/byte=bits/token/bytes/token\\mathrm\{bits/byte\}=\\mathrm\{bits/token\}/\\mathrm\{bytes/token\}\. Thus changes in log bit rate equal changes in log bits per token minus changes in log bytes per token\. This exact accounting relation describes the measured losses; it does not identify why a vocabulary changes prediction difficulty\.

### C\.4BLiMP and byte exposure

We evaluate three seeds per arm at8585M/3232k and996996M/200200k using the Benchmark of Linguistic Minimal Pairs \(BLiMP\) for English\([Warstadt et al\., 2020](https://arxiv.org/html/2609.35869#bib.bib32)\)\. Each comparison uses raw full\-sentence likelihood on67,00067\{,\}000minimal pairs\.

TheSlotPriceminusSlotPriceπBLiMP difference is−4\.0\-4\.0points at8585M and−2\.9\-2\.9at996996M\. Three of four linguistic\-field deficits narrow; the morphology gap narrows from−6\.9\-6\.9to−3\.1\-3\.1points\. Model size, vocabulary size, training budget, and byte exposure all change between these settings, so this pattern does not isolate a morphological mechanism\. The8585M\-minus\-996996M paired contrast is−1\.1±0\.5\-1\.1\\pm 0\.5points \(mean±\\pmpaired\-seed standard deviation\)\. Its item\-bootstrap interval\[−1\.4,−0\.8\]\[\-1\.4,\-0\.8\]conditions on the evaluated checkpoints and does not replace training\-seed uncertainty\.

Figure 6:PairedSlotPriceminusSlotPriceπBLiMP accuracy differences\.\(a\) Field means and standard deviations across paired seed contrasts\. \(b\) The five most negative and five most positive996996M phenomenon\-level contrasts \(blue diamonds\), linked to their8585M counterparts \(open grey circles\); the rug above shows all 67 phenomena at both scales, placing the selected extrema in the full distribution\. These selected extrema are exploratory\.At387387M/200200k, the matched\-token control uses98359835steps per arm; the matched\-byte comparison usesSlotPriceat62776277steps andSlotPriceπat98359835\. The BLiMP difference widens from−3\.6\-3\.6to−4\.5\-4\.5points\. The longer\-minus\-shorter within\-arm changes are\+0\.9\+0\.9points forSlotPriceand−0\.1\-0\.1forSlotPriceπ\. With22seeds per cell, their difference in budget response remains unresolved\.

At1\.881\.88B/200200k/D=20​ND=20N, theSlotPricedifferences are−3\.3\-3\.3points against BPE and−3\.3\-3\.3againstSlotPriceπ, compared with996996M references−3\.8\-3\.8and−2\.9\-2\.9, respectively\. Each arm contributes22checkpoints\. Twice the root\-sum\-square of the per\-arm checkpoint standard deviations gives bands of0\.50\.5and0\.50\.5points, respectively\. These are descriptive bands, not confidence intervals, and do not resolve whether the deficit continues to attenuate\. BPE’s BLiMP evaluation includes one half\-rate fallback checkpoint; its bits\-per\-byte dispersion uses centre\-rate checkpoints\. The two metrics therefore use different checkpoint sets\.

## Appendix DBoundary\-licence protocol and controls

The frontier uses the project’s English and Chinese Wikipedia text files\. It reads complete UTF\-8 records, without partial\-record truncation; following records form a disjoint held\-out compression slice\. Corpus sizes, source\-line indices and SHA\-256 hashes are exported in each provenance file\. These records are smaller than the4242MB headline cells of Appendix[B](https://arxiv.org/html/2609.35869#A2), and the cut\-placement control usesK=8,192K=8\{,\}192rather than32,76832\{,\}768; the reduced scale keeps the exported candidate graphs, licence assignments and exact enumeration checks tractable\. Each table states the corpus size and budget of its own experiment\. The candidate class contains every distinct substring of length22throughL=16L=16within a fitting record, including strings whose bytes are not independently valid UTF\-8\. Byte fallback preserves every input byte\.

The primal search selects repeated strings through insertion and reassignment heuristics, retaining only exactly rescored improvements\. The certificate continues to cover all candidate strings\. Hapax prices are fixed at length minus one; repeated occurrences have individual non\-negative prices\. The optimiser uses float64 prices\. Rounding them to non\-negative integer multiples of2−322^\{\-32\}with round\-to\-nearest\-even defines a new dyadic witness, whose shortest paths and support are recomputed using checked integer arithmetic\. The ceiling of the resulting rational lower bound is valid because the target token count is an integer\.

The reference encoder and optimisation scorer share occurrence legality and minimum\-count decoding, choosing the longest final token on ties\. IDs00–255255represent bytes; sorted multibyte strings and a separate end\-of\-document ID follow\. Document boundaries are never crossed\. Each vocabulary JSON records the regex, licence flags, budgets and encoding contract\. The GPU manifest binds these files by path and hash to preserve the occurrence restriction during stream preparation\.

CPU diagnostics include held\-out bytes per token, the fraction of tokens that cross a cut, the fraction of cuts crossed, empirical unigram entropy, and the token mass assigned to types observed at most five times\. These describe the induced segmentation; empirical unigram entropy is not a neural language\-model loss\. The random\-boundary controls permute the regex pieces’ lengths in Unicode characters within each document, using a document\-hash seed\. They preserve piece count and the character\-length multiset; the byte\-length multiset can change\.

The compression\-matched controls were selected using fitting records only\. Candidate arms must shareKKand the exact fitting\-document hash, have distinct fitting segmentations, differ by at most1%1\\%in symmetric relative bytes per token, and differ by at least five percentage points in their crossing\-token rate measured against the same linguistic regex cuts\. The deterministic choice maximises that crossing separation and then minimises the compression difference\. Neither held\-out compression nor neural evaluation outcomes select the pairs\.

Tiny instances independently enumerate vocabularies and licence assignments, compare byte\-string and graph decoders, and check integer\-priced shortest paths against exhaustive path enumeration\. They include a repeated string with both legal within\-piece and crossing occurrences, exercising the case that invalidates a fixed type partition\. The exported complete graphs and dyadic witnesses permit a separate checker to reconstruct candidates, boundaries, the support term and the bound without invoking the optimiser\.

Table 12:Boundary\-licence frontier diagnostics atK=32,768K=32\{,\}768,L=16L=16\. The capqqand used licence count\|W\|\|W\|can differ\. Fitting bytes per token are bracketed by the achieved vocabulary and certified ceiling, rounded downwards and upwards respectively\. The remaining columns use disjoint held\-out records totalling 1,107,737 English and 1,060,126 Chinese bytes\. “Cross” is the percentage of emitted tokens crossing at least one regex cut; “rare” is token mass on types observed at most five times in that held\-out slice;H0H\_\{0\}is empirical unigram entropy in bits per token\. These diagnostics are not neural losses\.Table 13:Recovery of the endpoint token\-count reduction at interior budgets\. The achieved ratio compares exported vocabularies\. The certified interval encloses the fraction of the optimal endpoint gain recovered at that budget, using Equation[13](https://arxiv.org/html/2609.35869#A1.E13); endpoints are rounded outwards\. Its upper endpoint is100%100\\%, so the final column prints the certified lower endpoint\. At the omitted endpointsq=0q=0andq=Kq=K, recovery is exactly0%0\\%and100%100\\%by definition\.Table 14:Cut\-placement control atK=8,192K=8\{,\}192,L=16L=16, with 2,098,205 English and 2,136,886 Chinese fitting bytes\. Random cuts permute each document’s regex\-piece lengths in Unicode characters, preserving cut count and the character\-length multiset; byte\-length multisets can differ\. The achieved and optimal columns give100​\(tokensrandom/tokensregex−1\)100\(\\mathrm\{tokens\}\_\{\\rm random\}/\\mathrm\{tokens\}\_\{\\rm regex\}\-1\)for fitting vocabularies and optima respectively\. Certified interval endpoints are rounded outwards\. Atq=Kq=Kthe optimal token\-count change is exactly zero because both feasible sets are unrestricted, although finite\-search vocabularies can differ\. Crossing rates use the same linguistic regex cuts for both arms; they describe fitting segmentations, not neural prediction\.#### Compression\-matched exports\.

These controls useK=8,192K=8\{,\}192multibyte slots\. For English, regexq=409q=409and randomq=8,192q=8\{,\}192differ by 0\.12% in symmetric fitting compression and 11\.46 percentage points in common\-regex crossing rate\. For Chinese, regexq=0q=0and randomq=819q=819differ by 0\.14% in symmetric fitting compression and 6\.33 percentage points in common\-regex crossing rate\. These pairs were selected solely from fitting compression and crossing diagnostics under the stated deterministic rule\.

## Appendix ERelated work and scope

#### Vocabulary optimisation\.

BPE\([Gage, 1994](https://arxiv.org/html/2609.35869#bib.bib13);[Sennrich et al\., 2016](https://arxiv.org/html/2609.35869#bib.bib12)\)and Unigram\([Kudo, 2018](https://arxiv.org/html/2609.35869#bib.bib14);[Kudo and Richardson, 2018](https://arxiv.org/html/2609.35869#bib.bib21)\)optimise surrogate vocabulary objectives\. Among dictionary\-based methods,[Gallé \(2019\)](https://arxiv.org/html/2609.35869#bib.bib11)found that shorter test\-set tokenisations at a fixed vocabulary budget correlate with higher translation quality, and Unigram vocabularies match or outperform BPE for masked\-language\-model pretraining\([Bostrom and Durrett, 2020](https://arxiv.org/html/2609.35869#bib.bib10)\)\. ConvexTok\([Tempus et al\., 2026](https://arxiv.org/html/2609.35869#bib.bib2)\)instead relaxes joint vocabulary selection and minimum\-count segmentation to a linear programme; JOLT\([Singh et al\., 2026](https://arxiv.org/html/2609.35869#bib.bib3)\)adds consistency with greedy inference\. Our formulation shares the vocabulary\-selection polytope with ConvexTok\. Its contribution is a specialised price certificate that can be evaluated without a general\-purpose LP solve and without internal pre\-tokenisation\. The full price family attains the same LP optimum, while background pricing makes restricted optimisation possible without discarding candidates\.

#### Lagrangian pricing\.

Relaxing coupling constraints to obtain separable subproblems is classical\([Held and Karp, 1970](https://arxiv.org/html/2609.35869#bib.bib22);[Geoffrion, 1974](https://arxiv.org/html/2609.35869#bib.bib23);[Fisher, 1981](https://arxiv.org/html/2609.35869#bib.bib24)\)\. Related cardinality and facility\-location problems also use prices and selection subproblems\([Cornuéjols et al\., 1977](https://arxiv.org/html/2609.35869#bib.bib29);[Erlenkotter, 1978](https://arxiv.org/html/2609.35869#bib.bib28)\)\. Here the separable problem is corpus segmentation, and the vocabulary support function becomes a top\-KKsum\. Boundary licences replace that support function with a nested selection problem while preserving shortest\-path evaluation\.

#### Relaxing boundaries\.

SuperBPE\([Liu et al\., 2025](https://arxiv.org/html/2609.35869#bib.bib4)\)and BoundlessBPE\([Schmidt et al\., 2025](https://arxiv.org/html/2609.35869#bib.bib5)\)learn tokens spanning conventional pretoken boundaries\. Efficient superword training\([Schmidt et al\., 2026](https://arxiv.org/html/2609.35869#bib.bib6)\)and entropy\-based boundary selection\([Hu et al\., 2025](https://arxiv.org/html/2609.35869#bib.bib15)\)explore related design choices\. These methods construct vocabularies; our optimal\-tax interval measures what a boundary constraint excludes, independently of a particular construction heuristic\.

#### Token units and prediction\.

PathPiece\([Schmidt et al\., 2024](https://arxiv.org/html/2609.35869#bib.bib7)\)shows that lower token counts need not improve downstream performance\. Rényi efficiency\([Zouhar et al\., 2023](https://arxiv.org/html/2609.35869#bib.bib8)\)and its counterexamples\([Cognetta et al\., 2024](https://arxiv.org/html/2609.35869#bib.bib9)\)likewise motivate evaluating prediction beyond intrinsic compression scores\. TokEval\([Meister, 2026](https://arxiv.org/html/2609.35869#bib.bib30)\)studies intrinsic and structural metrics with controlled LM pretraining;[Erdogan et al\. \(2026\)](https://arxiv.org/html/2609.35869#bib.bib31)examine how tokenisation changes entropy and sensitivity to domain shift\. Our contribution is to pair downstream measurements with certified compression optima and a budgeted intervention on boundary crossing\. Token\-free architectures such as MEGABYTE, MambaByte and the Byte Latent Transformer\([Yu et al\., 2023](https://arxiv.org/html/2609.35869#bib.bib25);[Wang et al\., 2024](https://arxiv.org/html/2609.35869#bib.bib26);[Pagnoni et al\., 2025](https://arxiv.org/html/2609.35869#bib.bib27)\)provide an architectural alternative; the present experiments hold the model family fixed\.

## Appendix FReproduction and independent replication

The supplementary archive contains four compact data tables, their reported summaries andverify\.py\. It runs with Python 3\.10 or later using only the standard library:

python verify\.py

The script verifies file checksums and reconstructs the relative paired\-seed effects, means, standard deviations, paired\-ttintervals and Holm adjustments\. For independent replication it also reconstructs bits per byte from accumulated negative log\-likelihoods and exact scored\-byte counts\. The compression tables provide integer lower bounds and achieved counts; rational arithmetic reconstructs the outward\-rounded optimal\-tax intervals and achieved licence recovery\. These checks reproduce the arithmetic from recorded measurements\. Full\-corpus certification additionally evaluates the candidate graphs and saved occurrence prices, using the procedures in Appendices[A\.2](https://arxiv.org/html/2609.35869#A1.SS2)and[A\.4](https://arxiv.org/html/2609.35869#A1.SS4)\.

The archive’s README specifies every field, experimental panel and evaluation mode\. All data and scripts needed for these checks are included\. The separate manuscript\-source archive includes the figures, tables, bibliography and official style files; it compiles with pdfLaTeX and BibTeX\. The extracted source archive is independently compiled and compared with the delivered PDF page by page\.

### F\.1Independent tuning and evaluation

This replication compares regex\-constrained and unrestricted dictionary construction with separate seeds for learning\-rate selection and final evaluation\. Both arms use exported byte vocabularies and document\-level minimum\-count Viterbi encoding\. Within each language, the arms share raw documents, model architecture, token budget, validation\-selection rule and scored test\-byte interval\. Learning rates minimise mean validation loss over tuning seeds1100111001and1100211002; final comparisons pair evaluation seeds2100121001,2100221002and2100321003\. Table[15](https://arxiv.org/html/2609.35869#A6.T15)reports the candidate grids and selected rates\. The model has 12 layers, width 768, 12 heads and a padded vocabulary of33,15233\{,\}152entries; each run uses 800 steps of786,432786\{,\}432target tokens\. Training samples common raw\-byte start positions, with tokeniser\-specific endpoints under the common token budget\.

Evaluation uses three context policies on the same target\-byte region\. Independent blocks contain at most20482048tokens\. Byte\-capped history retains the longest whole\-token suffix within10241024raw bytes before each target; discarded prefixes are absent from the model input\. Sliding evaluation retains up to20482048tokens, advances by128128tokens, and scores only the newly exposed targets\. Each mode normalises by the exact bytes in scored targets; end\-of\-document markers provide context but contribute no scored bytes\.

Table 15:Learning\-rate grids and selected rates for the independent replication\. All rates are in units of10−310^\{\-3\}\. The grids areA=\{0\.3,0\.6,1\.2,2\.4\}A=\\\{0\.3,0\.6,1\.2,2\.4\\\},B=A∪\{4\.8,9\.6\}B=A\\cup\\\{4\.8,9\.6\\\}, andH=\{0\.009375,0\.01875,0\.0375,0\.075,0\.15\}H=\\\{0\.009375,0\.01875,0\.0375,0\.075,0\.15\\\}\. Every grid point uses two tuning seeds\. The selected rate minimizes their mean validation bits per byte and lies strictly inside its grid\. Three disjoint seeds provide test measurements\.Table 16:Independent tuning and evaluation: paired test contrasts\. Changes are100​\(bpb∅/bpbπ−1\)100\(\\mathrm\{bpb\}\_\{\\varnothing\}/\\mathrm\{bpb\}\_\{\\pi\}\-1\); positive values favor the regex\-fitted dictionary\. Entries give the mean and two\-sided95%95\\%paired\-ttinterval over three evaluation seeds, disjoint from the two tuning seeds\. Holm adjustment covers twelve languages separately within each context mode\. Token blocks use 2048\-token contexts; byte history uses a physical whole\-token suffix of at most 1024 bytes per target; sliding contexts use strided overlapping windows\.ComparisonContextRelative change \(%\) / statusHolmppEnglishToken blocks10\.44 \[6\.23, 14\.64\]0\.060ChineseToken blocks4\.62 \[1\.96, 7\.29\]0\.060GermanToken blocks11\.06 \[8\.99, 13\.14\]0\.021FinnishToken blocks6\.41 \[3\.85, 8\.97\]0\.060RussianToken blocks7\.45 \[3\.07, 11\.84\]0\.060JapaneseToken blocks3\.36 \[1\.74, 4\.97\]0\.060ThaiToken blocks\-0\.59 \[\-1\.47, 0\.30\]0\.105TurkishToken blocks8\.37 \[6\.65, 10\.09\]0\.023VietnameseToken blocks3\.42 \[1\.99, 4\.85\]0\.060ArabicToken blocks13\.69 \[10\.45, 16\.94\]0\.027HindiToken blocks10\.22 \[9\.28, 11\.16\]0\.005KoreanToken blocks5\.35 \[3\.51, 7\.19\]0\.051EnglishByte history9\.90 \[6\.95, 12\.85\]0\.040ChineseByte history4\.95 \[1\.80, 8\.10\]0\.070GermanByte history9\.61 \[7\.76, 11\.46\]0\.022FinnishByte history6\.01 \[4\.27, 7\.75\]0\.040RussianByte history5\.75 \[1\.73, 9\.76\]0\.070JapaneseByte history2\.62 \[1\.11, 4\.13\]0\.070ThaiByte history\-0\.11 \[\-0\.95, 0\.74\]0\.645TurkishByte history6\.88 \[5\.41, 8\.35\]0\.025VietnameseByte history3\.78 \[2\.57, 4\.98\]0\.040ArabicByte history11\.13 \[7\.51, 14\.76\]0\.040HindiByte history14\.73 \[12\.75, 16\.71\]0\.012KoreanByte history5\.12 \[3\.22, 7\.02\]0\.040EnglishSliding10\.68 \[6\.19, 15\.17\]0\.053ChineseSliding5\.36 \[2\.97, 7\.76\]0\.053GermanSliding11\.36 \[9\.24, 13\.48\]0\.021FinnishSliding6\.57 \[3\.82, 9\.32\]0\.053RussianSliding7\.94 \[3\.40, 12\.49\]0\.053JapaneseSliding3\.16 \[2\.22, 4\.10\]0\.038ThaiSliding\-0\.39 \[\-1\.26, 0\.47\]0\.189TurkishSliding8\.84 \[7\.18, 10\.51\]0\.021VietnameseSliding3\.44 \[2\.05, 4\.84\]0\.053ArabicSliding14\.04 \[10\.67, 17\.41\]0\.028HindiSliding10\.58 \[10\.04, 11\.13\]0\.002KoreanSliding5\.43 \[3\.68, 7\.18\]0\.039Intervals describe variation across paired evaluation seeds after selecting rates using the tuning seeds\. Holm correction applies across the complete twelve\-language family\. These measurements test the fitted\-dictionary comparison under independent rate selection; they do not evaluate intermediate boundary\-licence budgets\.

Similar Articles

Compute Optimal Tokenization (2 minute read)

TLDR AI

This paper systematically derives compression-aware neural scaling laws by training nearly 1,300 models, demonstrating that the widely used heuristic of 20 tokens per parameter is an artifact of specific tokenizers. The authors propose a tokenizer-agnostic scaling law based on bytes, offering a new framework for compute-efficient training across diverse languages and modalities.

A Pilot Study of Autocompleting Tokenizers

arXiv cs.CL

This paper proposes a compression scheme for byte-level tokenization using an autocomplete model to remove predictable bytes from input sequences, reducing sequence length while maintaining machine translation performance across diverse languages.