프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

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

바이트 쌍 인코딩의 왼쪽 물결: 모든 사전에 대한 인증된 룩비하인드

  • 연구 문제 왼쪽 접두사가 BPE 토큰화를 바꾸는 범위(origin radius)가 어떤 사전에서 무한한지, 그리고 유한할 때 계산할 수 있는지를 다룹니다.
  • 연구 방법 순서 조건 아래에서 효과적 자기쌍(effective self-pair)을 규칙으로부터 판정하고, 철자 자동자 기반 중첩 그래프의 사이클로 모든 사전의 origin radius를 판정·계산합니다.
  • 주요 결과 순서 조건 아래 origin radius는 효과적 자기쌍이 있을 때만 무한하며, GPT-2 병합 표는 42번째 병합부터 무한입니다. 한 기호 편집의 label distance는 Fibonacci 상한과 Θ(m²) 규모로 제한됩니다.

왼쪽 접두사가 토큰화를 얼마나 바꾸는가

바이트 쌍 인코딩(BPE)은 우선순위가 정해진 병합 규칙을 더 이상 적용할 수 없을 때까지 차례로 적용하므로, 출력 토큰화는 입력 문자열 전체에 의존합니다. Berglund과 van der Merwe는 뒤에 문자열을 덧붙이는 경우의 전파 범위를 다루었지만, 왼쪽에 문자열을 붙이는 경우의 전파 범위는 열어 두었습니다. 이 논문은 왼쪽 접두사가 토큰화를 얼마나 멀리까지 바꾸는지, 어떤 사전에서 그 범위가 무한한지, 유한할 때 효율적으로 계산할 수 있는지를 세 가지 질문으로 묻습니다. 저자는 이 질문에 모든 사전에 대해 답한다고 밝힙니다. 핵심 측도는 접두사가 덮는 구간(covering span)이 바뀌는 가장 먼 위치를 세는 origin ripple과, 그 상한인 origin radius입니다.

이와 별도로 두 토큰 열 사이의 편집 거리인 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…

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.

원문 · CC BY 4.0 · Nicklas Nidhögg · The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

효과적 자기쌍과 순서 조건

이 논문의 대부분 결과는 순서 조건(ordering condition)을 가정합니다. 이 조건은 규칙이 만드는 토큰을 소비하는 모든 규칙이 그 규칙보다 뒤에 오도록 요구합니다. 이 조건 아래에서 저자는 한 규칙 (t, t)가 자신의 단계에서 두 복사본이 인접하여 t|t로 나뉘는 효과적 자기쌍(effective self-pair)인지 확인하는 기준을 제시합니다. 정리는 순서 조건 아래에서 origin radius가 무한한 것과 효과적 자기쌍이 존재하는 것이 같다고 주장합니다. 또한 효과적 자기쌍은 모든 사전에서 origin radius를 무한하게 만든다고 정리됩니다. 저자는 순서 조건이 필요한 예로 규칙 다섯 개짜리 사전 등을 들어, 절 (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…

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.

원문 · CC 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)를 구성하고, 두 복사본을 같은 기호로 읽어 표시 간선이 있는 중첩 그래프(overlap graph)를 만듭니다. 간선은 두 복사본의 덮는 구간이 다를 때 표시됩니다. 정리 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…

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.

원문 · CC 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입니다. 또한 순서 조건 아래에서 한 번의 기호 편집이 토큰화를 움직이는 최대 거리는 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…

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.

원문 · CC 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…

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.

원문 · CC 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…

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.

원문 · CC 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
제공 범위
논문 정보, 해설, 허용된 원문 그림

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}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입