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

Byte-Pair Encodingの左側の波及：すべての辞書に対する認証済みルックビハインド

Nicklas Nidhögg · arXiv · 2026年11月9日

- **課題** 左側の接頭辞がBPEのトークン化を変える範囲（origin radius）が、どの辞書で無限になるのか、また有限のときに計算できるのかを扱います。
- **手法** 順序条件のもとで効果的自己ペア（effective self-pair）を規則から判定し、綴りオートマトンに基づく重なりグラフのサイクルで、すべての辞書のorigin radiusを判定・計算します。
- **結果** 順序条件のもとでは、origin radiusは効果的自己ペアがあるときに限り無限になります。GPT-2の併合表は42番目の併合から無限です。1回の記号編集によるlabel distanceは、Fibonacci上界とΘ(m²)の規模で抑えられます。

## 左側の接頭辞がトークン化をどこまで変えるか

バイト対符号化（BPE）は、優先順位の付いた併合規則を、もう適用できなくなるまで順に適用します。そのため出力のトークン化は、入力文字列全体に依存します。Berglundとvan der Merweは、後ろに文字列を付け足す場合の伝播範囲を扱いましたが、左側に文字列を付ける場合の伝播範囲は未解決のまま残しました。この論文では、左側の接頭辞がトークン化をどこまで遠くまで変えるのか、どの辞書でその範囲が無限になるのか、有限のときに効率よく計算できるのかという3つの問いを立てています。著者らは、これらの問いにすべての辞書について答えると述べています。中心となる指標は、接頭辞が覆うスパン（covering span）が変わる最も遠い位置を数えるorigin rippleと、その上界であるorigin radiusです。

これとは別に、2つのトークン列の間の編集距離であるlabel distanceが定義されています。著者らは、origin rippleが有限ならlabel distanceも有限だと述べていますが、逆は成り立たないとしています。

![Table 1: The main results, each with its hypothesis, the cost of its procedure where it has one, and its statement, withmthe number of rules andsthe number tha…](https://refivu.com/papers/8d3f090d-d15c-460b-8290-9facad800903/figures/figure-11ccd8d60cb4ffc7b7515b1dc3de6257.png?thumb=512)

**Table 1** : The main results, each with its hypothesis, the cost of its procedure where it has one, and its statement, withmthe number of rules andsthe number that fire. Unless another parameter is named, a polynomial cost is in the size of the dictionary written out.

[出典](https://arxiv.org/abs/2611.13061v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nicklas Nidhögg · The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary · 論文の図を引用 · 元のPDFの4ページ目から図の部分を抽出しています。

## 効果的自己ペアと順序条件

この論文の結果の大部分は、順序条件（ordering condition）を仮定しています。この条件は、規則が作るトークンを消費するすべての規則が、その規則より後に来ることを求めるものです。この条件のもとで、著者らは規則(t, t)が、自分の段階で2つのコピーが隣接してt\|tに分かれるような効果的自己ペア（effective self-pair）かどうかを確かめる基準を示しています。定理は、順序条件のもとでorigin radiusが無限であることと、効果的自己ペアが存在することが同値であると主張しています。また、効果的自己ペアは、どの辞書でもorigin radiusを無限にするとされています。

著者らは、順序条件が必要な例として規則5つからなる辞書などを挙げ、項(a)だけでは補題が成り立たないと説明しています。一方で、順序条件がなくても無限のradiusが現れる例も示されています。

![Table 5: The self-pair criterion on four production merge tables. The columns give the merges, read for GPT-2 from itsmerges.txtand derived from the rank file…](https://refivu.com/papers/8d3f090d-d15c-460b-8290-9facad800903/figures/figure-40ef4659f375c7a31c1b02f09538de68.png?thumb=512)

**Table 5** : The self-pair criterion on four production merge tables. The columns give the merges, read for GPT-2 from itsmerges.txtand derived from the rank file for the other three, the longest ordered prefix, its rules (t, t), the effective ones, and the least effective one, counted from zero. Llama 3’s derived list is not its published pair list. The origin radius is finite exactly on the prefixes before it, the first 41 merges of GPT-2 and the empty prefix of the other three.

[出典](https://arxiv.org/abs/2611.13061v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nicklas Nidhögg · The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary · 論文の図を引用 · 元のPDFの44ページ目から図の部分を抽出しています。

## 正準トークンと重なりグラフによる判定

この方法のもう一つの軸は、正準トークン（canonical token）と正準隣接ペア（canonical adjacency）です。トークン列が辞書のトークン化かどうかは、各トークンと隣接ペアが許容集合に含まれるかどうかで判定します。これを使って綴りオートマトン（spelling automaton）を構成し、2つのコピーを同じ記号として読んで、表示された辺のある重なりグラフ（overlap graph）を作ります。辺は、2つのコピーの覆うスパンが異なるときに表示されます。定理3は、このグラフにサイクルがあればorigin radiusは無限で、なければ最長経路によって値が計算されると説明しています。

無限の場合には、stem、loop、exitの経路からなる認証書が与えられます。著者らは、重なりグラフのサイクル検査と最長経路の計算は多項式時間で行えると説明しています。また、尾の長さBの接尾辞ペアの積グラフであるtail productでも同じ値が計算できますが、尾の長さに対して指数的になりうるとされています。

![Table 6: The right radii of GPT-2’s merge prefixes by the pruned chain search, with the lookahead boundQ(D), the rule graph’s bounds and the states the search…](https://refivu.com/papers/8d3f090d-d15c-460b-8290-9facad800903/figures/figure-53f30aa65b31ca109643afcac94dd0ce.png?thumb=512)

**Table 6** : The right radii of GPT-2’s merge prefixes by the pruned chain search, with the lookahead boundQ(D), the rule graph’s bounds and the states the search visits; the append product agrees to 400 merges and the plain search to 1,600.

[出典](https://arxiv.org/abs/2611.13061v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nicklas Nidhögg · The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary · 論文の図を引用 · 元のPDFの46ページ目から図の部分を抽出しています。

## GPT-2併合表と上界の測定

著者らは、小規模な辞書censusとGPT-2の併合表について測定結果を報告しています。GPT-2の完全な併合表は順序条件を満たし、効果的自己ペアを244個持ちます。最初の自己ペアは併合41（0から数えます）なので、42番目の併合からorigin radiusは無限です。右側のspan radiusは129で、Mamourasらの定理10が与える上界は167,515です。また、順序条件のもとで1回の記号編集がトークン化を動かす最大距離はFibonacci数F\_{2m+2}以下で、基本の上界は規則m個からなる辞書に対してΘ(m²)です。論文では、この上界がある辞書族でΘ(m²)と確認されたと報告されており、正確な最適定数は未解決の問題として残されると明記されています。

![Table 2: The census. Every bounded radius is attained by a replayed input; no radius was exceeded on re-probing to lengths twelve and fourteen (0 of 114); pref…](https://refivu.com/papers/8d3f090d-d15c-460b-8290-9facad800903/figures/figure-995ff1107d021812ab2d5c56b1c3d62e.png?thumb=512)

**Table 2** : The census. Every bounded radius is attained by a replayed input; no radius was exceeded on re-probing to lengths twelve and fourteen (0 of 114); prefixes of length two agree with single symbols on every dictionary, the frozen-token comparison with a two-symbol prefix exact per input on 987,360 cases.

[出典](https://arxiv.org/abs/2611.13061v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nicklas Nidhögg · The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary · 論文の図を引用 · 元のPDFの11ページ目から図の部分を抽出しています。

![Table 3: The label distance under one symbol edit over the ordered dictionaries ofmrules, withm≥1 for the substitution and the prepend: the upper bounds, the e…](https://refivu.com/papers/8d3f090d-d15c-460b-8290-9facad800903/figures/figure-ce7b29c05c1829d04325d4a9010d854d.png?thumb=512)

**Table 3** : The label distance under one symbol edit over the ordered dictionaries ofmrules, withm≥1 for the substitution and the prepend: the upper bounds, the exact values when no self-pair is effective,kthe rules with unequal operands that fire, and the lower bounds the families attain.

[出典](https://arxiv.org/abs/2611.13061v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nicklas Nidhögg · The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary · 論文の図を引用 · 元のPDFの35ページ目から図の部分を抽出しています。

![Table 4: GPT-2’s merge table and its prefixes: the origin radius and mirrored constant where they are finite, the verdict per prepended symbol beyond, and on t…](https://refivu.com/papers/8d3f090d-d15c-460b-8290-9facad800903/figures/figure-c84faec43d9aee79628b45343c365c45.png?thumb=512)

**Table 4** : GPT-2’s merge table and its prefixes: the origin radius and mirrored constant where they are finite, the verdict per prepended symbol beyond, and on the whole table the self-pairs, the right radii, the lookahead constant and the span radii inside the classes of the pre-tokenizer, merges counted from zero for the self-pair.

[出典](https://arxiv.org/abs/2611.13061v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nicklas Nidhögg · The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary · 論文の図を引用 · 元のPDFの43ページ目から図の部分を抽出しています。

## 適用範囲と限界

著者らは、実行による検証は与えられた長さ範囲の入力と尾の長さに限られ、任意の長さに対する保証は証明に依存すると述べています。順序条件はほとんどの結果で必要な仮定であり、この条件を満たさない辞書では、自己ペアの基準が常に成り立つとは限りません。GPT-2の結果は、前処理器をモデル化していない併合表を辞書とみなしたものです。前処理器が断片の長さを制限する場合、その長さでrippleが上から抑えられます。label distanceの正確な最適定数と、任意の規模に対する完全な実験的確認は、この論文では扱っておらず、未解決の部分として残されています。

## 論文情報

- **著者**: Nicklas Nidhögg
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月9日
- **登録日**: 2026年11月11日
- **更新日**: 2026年11月9日
- **バージョン**: v1
- **arXiv**: 2611.13061
- **カテゴリ**: cs.FL · cs.CL · cs.DS · cs.PL
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.13061v1) · [PDF ↗](https://arxiv.org/pdf/2611.13061v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

Berglund and van der Merwe formalized byte-pair encoding and bounded how far an appended string can change a tokenization, leaving the converse open: how far can a string prepended on the left change it, which dictionaries make that ripple infinite, and can it be computed efficiently when finite? We answer all three for every dictionary. The origin radius, how far a prepend can change covering spans, is decided with radius certificates by a product of two runs of the automaton that guesses the final tokens, in time polynomial in the dictionary written out, and it is infinite exactly when one periodic word has two canonical tilings with no common boundary. Under their ordering condition it is infinite exactly when some rule (t, t) finds its two copies adjacent at its own stage, and such a rule makes any dictionary infinite. A finite radius makes every window of a width read off the radii have a cut, and the radius is finite exactly when such cuts are dense. The token machine completes for every dictionary, and the tokenization is subsequential, extending what Berglund, Martens and van der Merwe proved for proper ones under one pass per rule. A streaming tokenizer emits after every symbol exactly the tokens that no continuation changes, in polynomial time, answering a question of Dalirrooyfard and Ye. Boundedness of the label measure, the edit distance of the token sequences, is decided for every dictionary in polynomial time as well, and under the ordering condition the largest distance one edit causes over dictionaries of m rules lies asymptotically between m^2/10 and m^2/2. GPT-2's merge table carries 244 effective self-pairs, so its origin radius is infinite from the forty-second merge on, and that of cl100k, o200k and Llama 3 from their first. Every measured number is its program's output, and what is not executed is named.

## この論文を引用

Nicklas Nidhögg (2026). The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary. arXiv:2611.13061v1. https://arxiv.org/abs/2611.13061v1

**BibTeX**

```
@misc{nidhgg2026left,
  title = {{The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary}},
  author = {Nicklas Nidhögg},
  year = {2026},
  eprint = {2611.13061},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.13061v1}
}
```

## ほかの論文解説

- [Can Frontier Auto Researchers Reconstruct Human Research Decisions in AI?](https://refivu.com/ja/papers/0c85bfc9-bf64-4283-91a0-a827acd3a1ad-can-frontier-auto-researchers-reconstruct-human-research.md)
- [Language processing in the autistic brain: A meta-analysis of neuroimaging studies across modalities and age](https://refivu.com/ja/papers/f3e93a2c-c934-46c5-a3c7-db0f41ecb61e-language-processing-in-the-autistic-brain-a-meta.md)
- [Vietnamese Legal Ontology: Every legal answer, traced to the article that grounds it](https://refivu.com/ja/papers/39e9b155-49f6-418a-8ba0-f2d1078d32ea-vietnamese-legal-ontology-every-legal-answer-traced-to.md)
- [Saidzoda-Tajik-EmbeddingGemma-300M: Knowing Every Letter Is Not Reading Tajik](https://refivu.com/ja/papers/e2ea19cb-2727-4789-85e2-a1c874228bf1-saidzoda-tajik-embeddinggemma-300m-knowing-every-letter-is.md)
- [On the Geometric Bottlenecks of Cross-Lingual Knowledge Editing](https://refivu.com/ja/papers/61270a9a-c45d-4170-8199-14152ca3ec72-on-the-geometric-bottlenecks-of-cross-lingual-knowledge.md)
- [Generating Diverse and Verified Synthetic Clinical Notes with Labels by Construction](https://refivu.com/ja/papers/38221292-a102-4bbf-b6a9-96262c2a9e40-generating-diverse-and-verified-synthetic-clinical-notes.md)
- [Grasping the Future: Joint 3D Hand-Object Forecasting From Internet Videos](https://refivu.com/ja/papers/02530543-61b3-4f8d-8377-53215f9b9fea-grasping-the-future-joint-3d-hand-object-forecasting.md)
- [SWAM: Scaling World Action Models with Cross-Modal Alignment](https://refivu.com/ja/papers/e8b2ba32-9c65-4ad1-b595-af05643ccc37-swam-scaling-world-action-models-with-cross-modal.md)
- [Programming Prescience: Issues in Human Construction of Forecasting Bots](https://refivu.com/ja/papers/34469e6b-3cef-4c1e-b57c-1b0537e2c995-programming-prescience-issues-in-human-construction-of.md)
- [2D Gum-Net: Unsupervised Dense Elastic Image Registration via Symmetric Correlation and Spectral Pooling](https://refivu.com/ja/papers/527024a3-b1d1-4922-8327-721833280bd7-2d-gum-net-unsupervised-dense-elastic-image-registration.md)
- [DeepChronos: Temporal Neuro-Symbolic Reasoning for Multi-Step Attack Detection](https://refivu.com/ja/papers/200f6114-9ae3-45c5-bc87-dd3b55dd1c98-deepchronos-temporal-neuro-symbolic-reasoning-for-multi-step.md)
- [A local language model layered with rule-based and neural detectors for clinical text de-identification: an open-source toolkit and evaluation](https://refivu.com/ja/papers/fdc65999-433c-47b0-9041-21262993a56a-a-local-language-model-layered-with-rule-based.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/8d3f090d-d15c-460b-8290-9facad800903-the-left-ripple-of-byte-pair-encoding-certified)
