mlsanityData to 14 Oct 2026

Should you marginalize over possible tokenizations?

arXiv 2306.17757 ↗First posted 30 Jun 2023cs.CLcited by 18

Not on the map. Why?

Abstract (arXiv)

Autoregressive language models (LMs) map token sequences to probabilities. The usual practice for computing the probability of any character string (e.g. English sentences) is to first transform it into a sequence of tokens that is scored by the model. However, there are exponentially many token sequences that represent any given string. To truly compute the probability of a string one should marginalize over all tokenizations, which is typically intractable. Here, we analyze whether the practice of ignoring the marginalization is justified. To this end, we devise an importance-sampling-based algorithm that allows us to compute estimates of the marginal probabilities and compare them to the default procedure in a range of state-of-the-art models and datasets. Our results show that the gap in log-likelihood is no larger than 0.5% in most cases, but that it becomes more pronounced for data with long complex words.

Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Builds on 12 of its 21 references that are in the map. First posted on arXiv 30 Jun 2023.

Builds on

12 of 21 references.

References · 12

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2016Pointer Sentinel Mixture Modelscited by 3,096
  4. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  5. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
  6. 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,312
  7. 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
  8. 2019BPE-Dropout: Simple and Effective Subword Regularizationcited by 195
  9. 2020Dynamic Programming Encoding for Subword Segmentation in Neural Machine Translationcited by 38
  10. 2021You should evaluate your language model on marginal likelihood over tokenisationscited by 30
  11. 2018Neural Lattice Language Modelscited by 13
  12. 2017Multiscale sequence modeling with a learned dictionarycited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 6; 2025: 7; 2026: 3.

18 papers.

Sort:

By area: