mlsanityData to 7 Oct 2026

Toward a Theory of Tokenization in LLMs

arXiv 2404.08335 ↗First posted 12 Apr 2024cs.CL cs.LGcited by 28

Not on the map. Why?

Abstract (arXiv)

While there has been a large body of research attempting to circumvent tokenization for language modeling (Clark et al., 2022; Xue et al., 2022), the current consensus is that it is a necessary initial step for designing state-of-the-art performant language models. In this paper, we investigate tokenization from a theoretical point of view by studying the behavior of transformers on simple data generating processes. When trained on data drawn from certain simple kth-order Markov processes for k > 1, transformers exhibit a surprising phenomenon - in the absence of tokenization, they empirically fail to learn the right distribution and predict characters according to a unigram model (Makkuva et al., 2024). With the addition of tokenization, however, we empirically observe that transformers break through this barrier and are able to model the probabilities of sequences drawn from the source near-optimally, achieving small cross-entropy loss. With this observation as starting point, we study the end-to-end cross-entropy loss achieved by transformers with and without tokenization. With the appropriate tokenization, we show that even the simplest unigram models (over tokens) learnt by transformers are able to model the probability of sequences drawn from kth-order Markov sources near optimally. Our analysis provides a justification for the use of tokenization in practice through studying the behavior of transformers on Markovian data.

Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). First posted on arXiv 12 Apr 2024.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 12; 2025: 10; 2026: 6.

28 papers.

Sort:

By area:

  1. 2024BPE Gets Picky: Efficient Vocabulary Refinement During Tokenizer Trainingcited by 30
  2. 2024Transformers on Markov Data: Constant Depth Sufficescited by 26
  3. 2024The Foundations of Tokenization: Statistical and Computational Concernscited by 20
  4. 2024Understanding and Mitigating Tokenization Bias in Language Modelscited by 18
  5. 2024From Pixels to Tokens: Byte-Pair Encoding on Quantized Visual Modalitiescited by 16
  6. 2024Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensemblescited by 15
  7. 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentivescited by 13
  8. 2025Tokenization is Sensitive to Language Variationcited by 12
  9. 2025The Strawberry Problem: Emergence of Character-level Understanding in Tokenized Language Modelscited by 11
  10. 2025Unified Multimodal Understanding via Byte-Pair Visual Encodingcited by 9
  11. 2025LLM Cannot Discover Causality, and Should Be Restricted to Non-Decisional Support in Causal Discoverycited by 7
  12. 2025Date Fragments: A Hidden Bottleneck of Tokenization for Temporal Reasoningcited by 6
16 more
  1. 2024ReTok: Replacing Tokenizer to Enhance Representation Efficiency in Large Language Modelcited by 5
  2. 2024Tokenization as Finite-State Transductioncited by 5
  3. 2025Why is prompting hard? Understanding prompts on binary sequence predictorscited by 4
  4. 2026Hippocampus: An Efficient and Scalable Memory Module for Agentic AIcited by 3
  5. 2024Qtok: A Comprehensive Framework for Evaluating Multilingual Tokenizer Quality in Large Language Modelscited by 2
  6. 2024Adapting Language Models via Token Translationcited by 2
  7. 2024DateLogicQA: Benchmarking Temporal Biases in Large Language Modelscited by 2
  8. 2026Syllabic Agglutinative Tokenizations for Indonesian LLM: A Study from Gasing Literacy Learning Systemcited by 2
  9. 2026Modelling the Morphology of Verbal Paradigms: A Case Study in the Tokenization of Turkish and Hebrewcited by 2
  10. 2026Phonemes to the Rescue: Multilingual Tokenization Based on International Phonetic Alphabetcited by 2
  11. 2024MultiTok: Variable-Length Tokenization for Efficient LLMs Adapted from LZW Compressioncited by 1
  12. 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-servicecited by 0
  13. 2025The Prompt Engineering Report Distilled: Quick Start Guide for Life Sciencescited by 0
  14. 2025Optimality and NP-Hardness of Transformers in Learning Markovian Dynamical Functionscited by 0
  15. 2026Training Language Models with homotokens Leads to Delayed Overfittingcited by 0
  16. 2026Mathematical Reasoning in Large Language Models: Benchmarks, Architectures, Evaluation, and Open Challengescited by 0