Understanding and Mitigating Tokenization Bias in Language Models
Not on the map. Why?
Abstract (arXiv)
State-of-the-art language models are autoregressive and operate on subword units known as tokens. Specifically, one must encode the conditioning string into a list of tokens before passing to the language models for next-token prediction. We show that popular encoding schemes, such as maximum prefix encoding (MPE) and byte-pair-encoding (BPE), induce a sampling bias that cannot be mitigated with more training or data. To counter this universal problem, for each encoding scheme above, we propose a novel algorithm to obtain unbiased estimates from any language model trained on tokenized data. Our methods do not require finetuning the model, and the complexity, defined as the number of model runs, scales linearly with the sequence length in the case of MPE. As a result, we show that one can simulate token-free behavior from a tokenized language model. We empirically verify the correctness of our method through a Markov-chain setup, where it accurately recovers the transition probabilities, as opposed to the conventional method of directly prompting tokens into the language model.
Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Builds on 24 of its 33 references that are in the map. First posted on arXiv 24 Jun 2024.
Builds on
24 of 33 references.
References · 24
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 509
- 2023Think before you speak: Training Language Models With Pause Tokenscited by 264
- 2023Language Model Tokenizers Introduce Unfairness Between Languagescited by 214
- 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 195
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 170
- 2021Charformer: Fast Character Transformers via Gradient-based Subword Tokenizationcited by 160
- 2024Tokenization counts: the impact of tokenization on arithmetic in frontier LLMscited by 115
- 2024Tokenization Is More Than Compressioncited by 89
12 more
- 2020Fast WordPiece Tokenizationcited by 87
- 2022Efficient Transformers with Dynamic Token Poolingcited by 76
- 2024Getting the most out of your tokenizer for pre-training and domain adaptationcited by 66
- 2024Unpacking Tokenization: Evaluating Text Compression and its Correlation with Model Performancecited by 61
- 2023Tokenization and the Noiseless Channelcited by 59
- 2023Improving Language Plasticity via Pretraining with Active Forgettingcited by 43
- 2024Attention with Markov: A Framework for Principled Analysis of Transformers via Markov Chainscited by 40
- 2023OFA: A Framework of Initializing Unseen Subword Embeddings for Efficient Large-scale Multilingual Continued Pretrainingcited by 37
- 2021You should evaluate your language model on marginal likelihood over tokenisationscited by 30
- 2024Toward a Theory of Tokenization in LLMscited by 30
- 2023Task-Adaptive Tokenization: Enhancing Long-Form Text Generation Efficacy in Mental Health and Beyondcited by 23
- 2023Should you marginalize over possible tokenizations?cited by 18
Built on by
Citing papers per year: 2024: 2; 2025: 10; 2026: 6.
18 papers.
Sort:
By area:
- 2025SuperBPE: Space Travel for Language Modelscited by 63
- 2024From Language Models over Tokens to Language Models over Characterscited by 31
- 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizationscited by 17
- 2025Causal Estimation of Tokenisation Biascited by 16
- 2024Tokenisation is NP-Completecited by 10
- 2025Sampling from Your Language Model One Byte at a Timecited by 7
- 2025Date Fragments: A Hidden Bottleneck of Tokenization for Temporal Reasoningcited by 6
- 2025Do Large Language Models (Really) Need Statistical Foundations?cited by 5
- 2025Cross-Tokenizer Likelihood Scoring Algorithms for Language Model Distillationcited by 5
- 2026Transducing Language Modelscited by 5
- 2026Proxy Compression for Language Modelingcited by 3
- 2026LiteToken: Removing Intermediate Merge Residues From BPE Tokenizerscited by 3
6 more
- 2025Lossless Vocabulary Reduction for Auto-Regressive Language Modelscited by 2
- 2026Benchmarks Are Not That Out of Distribution: Word Overlap Predicts Performancecited by 1
- 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-servicecited by 0
- 2025Do Generalisation Results Generalise?cited by 0
- 2026Attention is Case-Sensitivecited by 0
- 2026When Tokenization is Secretly Output Supervisioncited by 0
- 2026When Tokenization is Secretly Output Supervision1 Sep 2026
- 2026Attention is Case-Sensitive4 Aug 2026
- 2026Transducing Language Models5 Mar 2026
- 2026Benchmarks Are Not That Out of Distribution: Word Overlap Predicts Performance11 Feb 2026
- 2026LiteToken: Removing Intermediate Merge Residues From BPE Tokenizers4 Feb 2026
- 2026Proxy Compression for Language Modeling4 Feb 2026
- 2025Cross-Tokenizer Likelihood Scoring Algorithms for Language Model Distillation16 Dec 2025
- 2025Do Generalisation Results Generalise?8 Dec 2025
- 2025Lossless Vocabulary Reduction for Auto-Regressive Language Models9 Oct 2025
- 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations23 Jun 2025
- 2025Sampling from Your Language Model One Byte at a Time17 Jun 2025
- 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-service6 Jun 2025
6 more
- 2025Causal Estimation of Tokenisation Bias3 Jun 2025
- 2025Do Large Language Models (Really) Need Statistical Foundations?25 May 2025
- 2025Date Fragments: A Hidden Bottleneck of Tokenization for Temporal Reasoning22 May 2025
- 2025SuperBPE: Space Travel for Language Models17 Mar 2025
- 2024Tokenisation is NP-Complete19 Dec 2024
- 2024From Language Models over Tokens to Language Models over Characters4 Dec 2024
- 2025SuperBPE: Space Travel for Language Modelscited by 63
- 2024From Language Models over Tokens to Language Models over Characterscited by 31
- 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizationscited by 17
- 2025Causal Estimation of Tokenisation Biascited by 16
- 2024Tokenisation is NP-Completecited by 10
- 2025Sampling from Your Language Model One Byte at a Timecited by 7
- 2025Do Large Language Models (Really) Need Statistical Foundations?cited by 5
- 2026Transducing Language Modelscited by 5
- 2026Proxy Compression for Language Modelingcited by 3
- 2026LiteToken: Removing Intermediate Merge Residues From BPE Tokenizerscited by 3
- 2025Lossless Vocabulary Reduction for Auto-Regressive Language Modelscited by 2
- 2026Benchmarks Are Not That Out of Distribution: Word Overlap Predicts Performancecited by 1
12 most cited of 16 All 16 (JSON)
- 2026When Tokenization is Secretly Output Supervision1 Sep 2026
- 2026Attention is Case-Sensitive4 Aug 2026
- 2026Transducing Language Models5 Mar 2026
- 2026Benchmarks Are Not That Out of Distribution: Word Overlap Predicts Performance11 Feb 2026
- 2026LiteToken: Removing Intermediate Merge Residues From BPE Tokenizers4 Feb 2026
- 2026Proxy Compression for Language Modeling4 Feb 2026
- 2025Do Generalisation Results Generalise?8 Dec 2025
- 2025Lossless Vocabulary Reduction for Auto-Regressive Language Models9 Oct 2025
- 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizations23 Jun 2025
- 2025Sampling from Your Language Model One Byte at a Time17 Jun 2025
- 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-service6 Jun 2025
- 2025Causal Estimation of Tokenisation Bias3 Jun 2025
12 newest of 16 All 16 (JSON)