# Tokenization: Hardness and Bicriteria Approximation Algorithms

Tokenization: 난해성과 이중기준 근사 알고리즘

Atieh Bastan, Xiaoling He, A. Pavan, N. V. Vinodchandran · arXiv · 2026년 11월 11일

- **연구 문제** 이진 토큰화는 어휘 예산 안에서 전체 토큰 수를 최소화해야 하므로 어휘 선택이 코퍼스 전체에 걸쳐 얽혀 어렵습니다.
- **연구 방법** Vertex Cover에서 Binary Tokenization으로 환원하는 경도 증명과, 번들 덮개로 어휘 크기와 토큰 수를 함께 근사하는 알고리즘을 제시합니다.
- **주요 결과** P≠NP 가정 아래 n^(1−ε) 배 근사의 불가능성을 보였고, 어휘 크기 γK와 토큰 수 γOPT\_K를 보장하는 bicriteria 알고리즘을 제시했습니다.

## 토큰화 최적화 문제와 어휘 예산

대규모 언어 모델은 텍스트를 고정된 어휘의 토큰 열로 처리합니다. 어휘에 긴 부분문자열을 넣으면 같은 텍스트를 더 적은 토큰으로 표현할 수 있지만, 임베딩과 출력 층이 커져 메모리와 계산 비용이 늘어납니다. 이 논문은 이 절충을 하나의 최적화 문제로 씁니다. 이진 문자열 코퍼스와 어휘 예산 K가 주어지면, 모든 문서를 나눌 때 필요한 전체 토큰 수를 최소화하도록 최대 K개의 부분문자열을 고릅니다. 문자 0과 1은 항상 사용할 수 있고, 각 문서는 따로 분할해야 합니다.

어휘를 고르는 일은 문서마다 독립적으로 분할하는 일과 다릅니다. 한 어휘 원소가 여러 문서에 나타날 수 있고, 겹치는 발생이 서로 경쟁하기 때문에 빈도만으로는 어휘 원소의 가치를 정하기 어렵습니다. 저자들은 이 난점을 근사 알고리즘과 경도 증명으로 다룹니다.

## 다항시간 근사의 한계

저자들은 P≠NP 가정 아래 고정된 ε∈(0,1)에 대해 n^(1−ε) 배 근사를 주는 결정적 다항시간 알고리즘이 존재하지 않음을 보였습니다. 증명은 Vertex Cover를 출발점으로 삼습니다. 먼저 그래프 G의 정점 덮개 크기 τ(G)를 단어 집합 XG의 생성 랭크 rk(XG)=3m+τ(G)로 옮깁니다. 이 항등식은 Lemma 3.1에서 얻어집니다. 다음으로 각 문자를 고정 길이의 이진 블록으로 바꾸고, 각 블록을 R번 반복해 토큰 경계가 블록 경계와 어긋나는 경우를 걸러냅니다.

이렇게 만든 코퍼스에서 YES 인스턴스는 최적 토큰 수가 8m 이하이고 NO 인스턴스는 R+4m 이상입니다. 근사 알고리즘이 있다면 이 두 값의 간격을 이용해 토큰 수 T가 R보다 작은지를 다항시간에 판정할 수 있고, 이것이 Vertex Cover의 NP-완전성과 모순됩니다. 따라서 이 결과는 P≠NP 가정 아래의 불가능성 증명입니다.

## 이중 기준 근사와 번들 덮개

경도 결과를 피하기 위해 저자들은 어휘 크기와 토큰 수를 함께 허용하는 bicriteria 알고리즘을 제시합니다. 알고리즘은 어휘 크기를 최대 γK, 토큰 수를 최대 γOPT\_K로 보장하며, γ=O(√M log n)입니다. 핵심은 각 후보 단어의 발생을 서로 겹치지 않는 번들로 묶고, 번들 비용을 고정 비용 λ와 발생 수의 합으로 정하는 것입니다. Fixed Word Best Bundle은 동적계획법으로 최대 밀도 번들을 찾고, Greedy Bundle Cover는 매 단계 밀도가 가장 큰 번들이나 단일 문자를 골라 코퍼스 위치를 덮습니다.

덮개가 항상 유효한 분할이 되지는 않으므로, 선택된 단어를 길이 q 이하의 청크로 나누어 어휘를 만듭니다. 마지막으로 MinTokenSegmentation으로 출력 분할과 토큰 수를 계산합니다. Theorem 3.4는 어휘 크기와 토큰 수에 대한 두 상한을 함께 제시하며, Corollary 3.11은 1≤K≤n과 M≥2에서 두 계수의 최소값을 동일한 bicriteria 계수로 정리합니다.

## 저장 예산 변형

저장 예산 변형에서는 어휘 원소 수 대신 원소 철자 길이의 합 c(V)가 예산 B 이하이도록 제한합니다. 저자들은 2≤B\<n에서 (O(log n log B), O(log n log B)) bicriteria 근사를 제시합니다. 번들 비용은 λ\|w\|+\|Q\_w\|로 바꾸고, 각 단어를 이진 분해로 나누어 접미사를 최대 D\_B=⌈log2 B⌉ 토큰으로 분할합니다. Theorem 3.12는 η=1일 때 두 계수를 2 ln n ⌈log2 B⌉ 로 정리합니다.

이 결과는 저장 예산 설정의 정리이며, 같은 계수가 cardinality 설정의 결과로 이어지지는 않습니다.

## 남은 범위

이 논문은 이론 결과만 제시하며 실험 결과는 보고하지 않습니다. 경도 결과는 P≠NP 가정 아래에서 결정적 다항시간 알고리즘에 대해서만 성립합니다. bicriteria 결과는 어휘 크기와 토큰 수를 함께 완화한 설정이므로, 어휘 크기를 K 그대로 지키는 근사로 읽으면 안 됩니다. 저장 예산 결과는 2≤B\<n 범위에 한정됩니다.

## 논문 정보

- **저자**: Atieh Bastan, Xiaoling He, A. Pavan, N. V. Vinodchandran
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 11일
- **등록일**: 2026년 11월 13일
- **수정일**: 2026년 11월 11일
- **버전**: v1
- **arXiv**: 2611.15074
- **분류**: cs.DS · cs.AI · cs.CC
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.15074v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.15074v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

We study Binary Tokenization: given a corpus of binary strings over $\\{0,1\\}$ and a vocabulary budget $K$, select at most $K$ substrings (called vocabulary) to minimize the total number of tokens needed to represent the corpus. The primitive symbols $0$ and $1$ are always available, and each document must be segmented separately. Letting $n$ denote the total corpus length and $M$ for the maximum document length, we prove that, for every fixed $\\varepsilon\\in(0,1)$, Binary Tokenization problem does not have polynomial-time $n^{1-\\varepsilon}$-approximation algorithms unless $\\mathsf{P}=\\mathsf{NP}$. To complement the hardness result, we give a polynomial-time $(γ,γ)$-bicriteria algorithm, with $γ= \\sqrt{M}\\log n$: The algorithm outputs a vocabulary of size at most $γK$ with number of tokens at most $γ{\\rm OPT}\_K$, where ${\\rm OPT}\_K$ is the optimal number of tokens under the original budget $K$. We also study a storage-budget variant, in which the sum of the selected substrings' lengths is bounded by $B$. For $2\\le B\<n$, we obtain an $(O(\\log n\\log B),O(\\log n\\log B))$-bicriteria approximation algorithm.

## 원문 인용

Atieh Bastan, Xiaoling He, A. Pavan, N. V. Vinodchandran (2026). Tokenization: Hardness and Bicriteria Approximation Algorithms. arXiv:2611.15074v1. https://arxiv.org/abs/2611.15074v1

**BibTeX**

```
@misc{bastan2026tokenization,
  title = {{Tokenization: Hardness and Bicriteria Approximation Algorithms}},
  author = {Atieh Bastan and Xiaoling He and A. Pavan and N. V. Vinodchandran},
  year = {2026},
  eprint = {2611.15074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.15074v1}
}
```

## 이 논문의 용어

- [Vertex Cover](https://refivu.com/terms/a5583d6606ae-vertex-cover)

## 다른 논문 해설

- [When Does Learned Constraint Selection Pay in Security-Constrained Optimisation? A Boundary Map from SCOPF to Unit Commitment](https://refivu.com/papers/bffeb870-d297-4786-a31b-cd7ba9c9f25e-when-does-learned-constraint-selection-pay-in-security.md)
- [Posterior contraction rates for banded approximations of Gaussian processes](https://refivu.com/papers/39b2feed-2c3a-4f79-b50f-498773f8d0d9-posterior-contraction-rates-for-banded-approximations-of.md)
- [When and How SignSGD Outperforms SGD: A Functional Scaling Law Perspective](https://refivu.com/papers/717fcb11-77f4-44a2-bdd6-2f8dee82543d-when-and-how-signsgd-outperforms-sgd-a-functional.md)
- [RESYNC: Residual Latent-State Synchronization for Deadline-Bound Streaming Inference](https://refivu.com/papers/93a3887b-d2df-450c-a06e-e64cb60d4325-resync-residual-latent-state-synchronization-for-deadline.md)
- [Recalibrating a Typed-Decision Model in an Afternoon: A Hands-On Recipe for Laya's Confidence Scores](https://refivu.com/papers/17bdb555-a961-43b5-b278-cc57e21b0f2e-recalibrating-a-typed-decision-model-in-an-afternoon.md)
- [ORCHID-SAGE: Fully Reproducible CALPHAD Assessment from Evidence to Phase Diagram](https://refivu.com/papers/7bdc6793-f96c-4909-866a-faa678245608-orchid-sage-fully-reproducible-calphad-assessment-from.md)
- [BiPOP: Partial-Order Planning for Long-Horizon Bimanual Robotic Manipulation](https://refivu.com/papers/55e404ff-0514-4f7f-89a0-367306aae1db-bipop-partial-order-planning-for-long-horizon-bimanual.md)
- [guardscope: Measuring Which Actions Runtime Controls Check in LLM Agent Systems](https://refivu.com/papers/0e70ca25-48c0-4054-ae85-0592150b03a5-guardscope-measuring-which-actions-runtime-controls-check-in.md)
- [Science Prediction Universe](https://refivu.com/papers/a7e7d76f-1d7b-492e-912f-84d45d06f6fb-science-prediction-universe.md)
- [Human or Synthetic? What a Fixed Budget Buys for Post-Training](https://refivu.com/papers/ebc91436-bab8-4ede-b9f3-76225691e038-human-or-synthetic-what-a-fixed-budget-buys.md)
- [Look It Up: Multi-bit LLM Watermarking via Codebook Search](https://refivu.com/papers/1c207fc0-dbd1-422d-aa7e-04c5ad2d615b-look-it-up-multi-bit-llm-watermarking-via.md)
- [Systematic Evaluation of Training Data Generation Strategies for Machine Learning-Based Molecular and Materials Property Prediction](https://refivu.com/papers/d1659351-bf1f-4229-a068-1a664ca8eaac-systematic-evaluation-of-training-data-generation-strategies.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/1f62be8b-f2d0-4aa2-b1ed-52835980285d-tokenization-hardness-and-bicriteria-approximation)
