arXiv:2511.15709v2 cs.CL

제한된 알파벳 위에서의 토큰화는 어렵다

Tokenisation over Bounded Alphabets is Hard

Violeta Kastreva, Philip Whittington, Dennis Komm, Tiago Pimentel

제출 2025-11-19

한국어 초록

최근 연구들은 토큰화(tokenisation)가 NP-완전(NP-complete)임을 보였다. 그러나 이러한 연구들은 토큰화가 크기가 무한히 큰 알파벳을 가진 입력에 적용된다고 가정하는데, 실제로 토크나이저(tokeniser)는 바이트나 유니코드 문자와 같이 고정된 크기의 알파벳 위에서 동작하므로 이는 비현실적인 가정이다. 본 연구는 제한된 알파벳(bounded alphabet) 위에서의 토큰화를 분석하여 이 간극을 메운다. 이를 위해 두 가지 자연스러운 변형, 즉 상향식 토큰화(bottom-up tokenisation)와 직접 토큰화(direct tokenisation)를 고려한다. 두 변형은 각각 데이터셋을 최적으로 압축하는 병합 연산의 순서, 또는 어휘(vocabulary)를 선택해야 하는 문제이다. 우리는 이진 알파벳(binary alphabet)에서조차 두 변형 모두 NP-완전일 뿐만 아니라 APX-난해(APX-hard)이며, 따라서 (P=NP가 아닌 한) 다항 시간 근사 스킴(polynomial-time approximation scheme)이 존재하지 않음을 증명한다. 또한 직접 토큰화는 단항 알파벳(unary alphabet)에 적용되는 경우에도 여전히 NP-완전임을 보인다. 이러한 결과는 토큰화의 계산적 난해성이 큰 알파벳이나 복잡한 구성에 따른 부산물이 아니라 근본적인 장벽임을 입증한다. 종합하면, 본 결과는 BPE와 UnigramLM 같은 현재의 실용적 알고리즘이 왜 휴리스틱인지를 설명하며, 근사 알고리즘이 향후 토큰화 연구의 중요한 방향임을 시사한다.

원문 초록

Recent works have shown that tokenisation is NP-complete. However, these works assume tokenisation is applied to inputs with unboundedly large alphabets -- an unrealistic assumption, given that in practice tokenisers operate over fixed-size alphabets, such as bytes or Unicode-characters. We close this gap by analysing tokenisation over bounded alphabets, considering two natural variants: bottomup tokenisation and direct tokenisation, where we must, respectively, select a sequence of merge operations or a vocabulary whose application optimally compresses a dataset. We prove that even with binary alphabets, both variants are not only NP-complete, but also APX-hard and thus admit no polynomial-time approximation scheme (unless P=NP). We further show that direct tokenisation remains NP-complete even when applied to unary alphabets. These results establish that the computational intractability of tokenisation is not an artifact of large alphabets or complex constructions, but a fundamental barrier. Overall, our results explain why current practical algorithms such as BPE and UnigramLM are heuristic, and point toward approximation algorithms being an important path going forward for tokenisation research.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2511.15709v2제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.