Lune

ICLR2026顶会

Tokenisation over Bounded Alphabets is Hard

Violeta Kastreva, Philip Whittington, Dennis Komm, Tiago Pimentel

摘要

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 n-ary alphabets, considering two natural variants: bottom-up tokenisation and direct tokenisation, where we must, respectively, select a sequence of merge operations or a vocabulary whose application optimally compresses a dataset. First, we note that proving hardness results for an n-ary alphabet proves the same results for alphabets of any larger size. We then prove that even with binary alphabets, both variants are not only NP-complete, but admit no polynomial-time approximation scheme (unless P = NP). We further show that direct tokenisation remains NP-complete even when applied to unary alphabets. While unary alphabets may not be practically useful, this result establishes 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 practical algorithms such as BPE and UnigramLM are heuristic, and points toward approximation algorithms being an important path going forward for tokenisation research.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • A Partition Cover Approach to Tokenization 引用了 Unpacking Tokenization: Evaluating Text Compression and its Correlation with Model Performance
  • Tokenization Is More Than Compression 引用了 Unpacking Tokenization: Evaluating Text Compression and its Correlation with Model Performance
  • Unpacking Tokenization: Evaluating Text Compression and its Correlation with Model Performance 引用了 How Good is Your Tokenizer? On the Monolingual Performance of Multilingual Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper5

  1. Finding the Optimal Vocabulary Size for Neural Machine TranslationThamme Gowda, Jonathan MayEMNLP Findings 2020 · 44 次引用
  2. Tokenization Is More Than CompressionCraig W. Schmidt, Varshini Reddy, Haoran Zhang, Alec Alameddine 等EMNLP 2024 · 16 次引用
  3. Unpacking Tokenization: Evaluating Text Compression and its Correlation with Model PerformanceOmer Goldman, Avi Caciularu, Matan Eyal, Kris Cao 等ACL Findings 2024 · 12 次引用
  4. A Partition Cover Approach to TokenizationJia Peng Lim, Shawn Tan, Davin Choo, Hady W. LauwNeurIPS 2025 · 6 次引用
  5. How Good is Your Tokenizer? On the Monolingual Performance of Multilingual Language ModelsPhillip Rust, Jonas Pfeiffer, Ivan Vulic, Sebastian Ruder 等ACL 2021

相关 Paper

  1. Tokenisation is NP-CompletePhilip Whittington, Gregor Bachmann, Tiago PimentelACL 2025 · 6 次引用
  2. Improving Tokenisation by Alternative Treatment of SpacesEdward Gow-Smith, Harish Tayyar Madabushi, Carolina Scarton, Aline VillavicencioEMNLP 2022 · 6 次引用
  3. Multilingual Tokenization through the Lens of Indian Languages: Challenges and InsightsMaharaj Brahma, Karthika NJ, Rajat Verma, Nagasai Saketh Naidu 等ACL Findings 2026
  4. Parity-Aware Byte-Pair Encoding: Improving Cross-lingual Fairness in TokenizationNegar Foroutan, Clara Meister, Debjit Paul, Joel Niklaus 等ACL 2026 · 14 次引用
  5. Which Pieces Does Unigram Tokenization Really Need?Sander Land, Yuval PinterACL Findings 2026
黄昏的海面,两侧是细线勾勒的悬崖