A Partition Cover Approach to Tokenization
Not on the map. Why?
Abstract (arXiv)
Tokenization is the process of encoding strings into tokens of a fixed vocabulary size, and is widely utilized in Natural Language Processing applications. The leading tokenization algorithm today is Byte-Pair Encoding (BPE), which formulates the tokenization problem as a compression problem and tackles it by performing sequences of merges. In this work, we formulate tokenization as an optimization objective, show that it is NP-hard via a simple reduction from vertex cover, and propose a polynomial-time greedy algorithm GreedTok. Our formulation naturally relaxes to the well-studied weighted maximum coverage problem which has a simple (1 - 1/e)-approximation algorithm GreedWMC. Through empirical evaluations on real-world corpora, we show that GreedTok outperforms BPE and Unigram on compression and achieves a covering score comparable to GreedWMC. Finally, our extensive pre-training for two transformer-based language models with 1 billion parameters, comparing the choices of BPE and GreedTok as the tokenizer, shows that GreedTok achieves a lower bit per byte even when we control for either the total dataset proportion or total training tokens.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 43 of its 64 references that are in the map. First posted on arXiv 8 Jan 2025.
Builds on
43 of 64 references.
References · 43
- 2017Attention Is All You Needcited by 59,932
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
31 more
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2020GLU Variants Improve Transformercited by 1,724
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 851
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
- 2017Crowdsourcing Multiple Choice Science Questionscited by 742
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 632
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 381
- 2023Challenges and Applications of Large Language Modelscited by 251
- 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 189
- 2020Byte Pair Encoding is Suboptimal for Language Model Pretrainingcited by 189
- 2024Let's Think Dot by Dot: Hidden Computation in Transformer Language Modelscited by 186
- 2021Charformer: Fast Character Transformers via Gradient-based Subword Tokenizationcited by 158
- 2024Byte Latent Transformer: Patches Scale Better Than Tokenscited by 137
- 2023Tokenizer Choice For LLM Training: Negligible or Crucial?cited by 105
- 2024Tokenization Is More Than Compressioncited by 87
- 2023Tokenization Impacts Multilingual Language Modeling: Assessing Vocabulary Allocation and Overlap Across Languagescited by 61
- 2024Unpacking Tokenization: Evaluating Text Compression and its Correlation with Model Performancecited by 61
- 2020Vocabulary Learning via Optimal Transport for Neural Machine Translationcited by 58
- 2024MYTE: Morphology-Driven Byte Encoding for Better and Fairer Multilingual Language Modelingcited by 40
- 2023A Formal Perspective on Byte-Pair Encodingcited by 35
- 2024BPE Gets Picky: Efficient Vocabulary Refinement During Tokenizer Trainingcited by 30
- 2024Power Scheduler: A Batch Size and Token Number Agnostic Learning Rate Schedulercited by 26
- 2024Theoretical Analysis of Byte-Pair Encodingcited by 15
- 2022A Multi-dimensional Evaluation of Tokenizer-free Multilingual Pretrained Modelscited by 12
- 2024Zyda-2: a 5 Trillion Token High-Quality Datasetcited by 12
- 2024Tokenisation is NP-Completecited by 10
- 2023Chain-of-Thought Tuning: Masked Language Models can also Think Step By Step in Natural Language Understandingcited by 4
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025Tokenisation over Bounded Alphabets is Hardcited by 5
- 2026Tokenisation via Convex Relaxationscited by 4
- 2025UNVEILING: What Makes Linguistics Olympiad Puzzles Tricky for LLMs?cited by 3
- 2026Tokenization with Split Treescited by 2
- 2026Dynamic-Programming-Guided Hierarchical BPE and Empirical Analysis of Vocabulary Pruningcited by 0
- 2026Dynamic-Programming-Guided Hierarchical BPE and Empirical Analysis of Vocabulary Pruning7 Sep 2026
- 2026Tokenisation via Convex Relaxations21 May 2026
- 2026Tokenization with Split Trees21 May 2026
- 2025Tokenisation over Bounded Alphabets is Hard19 Nov 2025
- 2025UNVEILING: What Makes Linguistics Olympiad Puzzles Tricky for LLMs?15 Aug 2025