mlsanityData to 7 Oct 2026

You should evaluate your language model on marginal likelihood over tokenisations

arXiv 2109.02550 ↗First posted 6 Sep 2021cs.CLcited by 29

Not on the map. Why?

Abstract (arXiv)

Neural language models typically tokenise input text into sub-word units to achieve an open vocabulary. The standard approach is to use a single canonical tokenisation at both train and test time. We suggest that this approach is unsatisfactory and may bottleneck our evaluation of language model performance. Using only the one-best tokenisation ignores tokeniser uncertainty over alternative tokenisations, which may hurt model out-of-domain performance. In this paper, we argue that instead, language models should be evaluated on their marginal likelihood over tokenisations. We compare different estimators for the marginal likelihood based on sampling, and show that it is feasible to estimate the marginal likelihood with a manageable number of samples. We then evaluate pretrained English and German language models on both the one-best-tokenisation and marginal perplexities, and show that the marginal perplexity can be significantly better than the one best, especially on out-of-domain data. We link this difference in perplexity to the tokeniser uncertainty as measured by tokeniser entropy. We discuss some implications of our results for language model training and evaluation, particularly with regard to tokenisation robustness.

Key facts. Cited by 29 papers in the map (data through 7 Oct 2026). Builds on 21 of its 43 references that are in the map. First posted on arXiv 6 Sep 2021.

Builds on

21 of 43 references.

References · 21

  1. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  2. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  3. 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
  4. 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 632
  5. 2015Importance Weighted Autoencoderscited by 454
  6. 2021CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representationcited by 229
  7. 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 205
  8. 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 189
  9. 2020Byte Pair Encoding is Suboptimal for Language Model Pretrainingcited by 189
  10. 2018Character-Level Language Modeling with Deeper Self-Attentioncited by 138
  11. 2016Fully Character-Level Neural Machine Translation without Explicit Segmentationcited by 55
  12. 2019What Kind of Language Is Hard to Language-Model?cited by 50
9 more
  1. 2020Dynamic Programming Encoding for Subword Segmentation in Neural Machine Translationcited by 38
  2. 2020Morphology Matters: A Multilingual Language Modeling Analysiscited by 37
  3. 2020From SPMRL to NMRL: What Did We Learn (and Unlearn) in a Decade of Parsing Morphologically-Rich Languages (MRLs)?cited by 26
  4. 2020Cold Posteriors and Aleatoric Uncertaintycited by 22
  5. 2019Bridging the Gap for Tokenizer-Free Language Modelscited by 21
  6. 2016A Joint Model for Word Embedding and Word Morphologycited by 14
  7. 2018Neural Lattice Language Modelscited by 13
  8. 2020Neural Polysynthetic Language Modellingcited by 7
  9. 2018Pushing the bounds of dropoutcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 2; 2023: 6; 2024: 8; 2025: 9; 2026: 3.

29 papers.

Sort:

By area:

  1. 2021Between words and characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLPcited by 130
  2. 2023Uncertainty in Natural Language Generation: From Theory to Applicationscited by 61
  3. 2022Language Modelling with Pixelscited by 53
  4. 2023Paloma: A Benchmark for Evaluating Language Model Fitcited by 53
  5. 2025Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlocited by 45
  6. 2022What do tokens know about their characters and how do they know it?cited by 36
  7. 2024How to Compute the Probability of a Wordcited by 36
  8. 2024From Language Models over Tokens to Language Models over Characterscited by 28
  9. 2024Where is the signal in tokenization space?cited by 21
  10. 2024The Foundations of Tokenization: Statistical and Computational Concernscited by 20
  11. 2024Understanding and Mitigating Tokenization Bias in Language Modelscited by 18
  12. 2023Should you marginalize over possible tokenizations?cited by 17
17 more
  1. 2025Broken Tokens? Your Language Model can Secretly Handle Non-Canonical Tokenizationscited by 16
  2. 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentivescited by 13
  3. 2024On the Proper Treatment of Tokenization in Psycholinguisticscited by 12
  4. 2025Adversarial Tokenizationcited by 11
  5. 2025Sampling from Your Language Model One Byte at a Timecited by 7
  6. 2023What is the best recipe for character-level encoder-only modelling?cited by 6
  7. 2023Explicit Morphological Knowledge Improves Pre-training of Language Models for Hebrewcited by 5
  8. 2024Predict the Next Word: Humans exhibit uncertainty in this task and language models _____cited by 4
  9. 2024On the Effect of (Near) Duplicate Subwords in Language Modellingcited by 4
  10. 2025Auditing Pay-Per-Token in Large Language Modelscited by 4
  11. 2025When to Ensemble: Identifying Token-Level Points for Stable and Fast LLM Ensemblingcited by 3
  12. 2026Proxy Compression for Language Modelingcited by 3
  13. 2023SelfSeg: A Self-supervised Sub-word Segmentation Method for Neural Machine Translationcited by 1
  14. 2025Train It and Forget It: Merge Lists are Unnecessary for BPE Inference in Language Modelscited by 1
  15. 2025Tokenization Multiplicity Leads to Arbitrary Price Variation in LLM-as-a-servicecited by 0
  16. 2026LangMAP: A Language-Adaptive Approach to Tokenizationcited by 0
  17. 2026Language Models are not Equally Robust to Non-Canonical Tokenization across Languagescited by 0