How to Compute the Probability of a Word
Not on the map. Why?
Abstract (arXiv)
Language models (LMs) estimate a probability distribution over strings in a natural language; these distributions are crucial for computing perplexity and surprisal in linguistics research. While we are usually concerned with measuring these values for words, most LMs operate over subwords. Despite seemingly straightforward, accurately computing probabilities over one unit given probabilities over the other requires care. Indeed, we show here that many recent linguistic studies have been incorrectly computing these values. This paper derives the correct methods for computing word probabilities, highlighting issues when relying on language models that use beginning-of-word (bow)-marking tokenisers, e.g., the GPT family. Empirically, we show that correcting the widespread bug in probability computations affects measured outcomes in sentence comprehension and lexical optimisation analyses.
Key facts. Cited by 36 papers in the map (data through 7 Oct 2026). Builds on 17 of its 51 references that are in the map. First posted on arXiv 20 Jun 2024.
Builds on
17 of 51 references.
References · 17
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2021Between words and characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLPcited by 130
- 2020On the Predictive Power of Neural Language Models for Human Real-Time Comprehension Behaviorcited by 115
- 2022Why Does Surprisal From Larger Transformer-Based Language Models Provide a Poorer Fit to Human Reading Times?cited by 111
- 2023Testing the Predictions of Surprisal Theory in 11 Languagescited by 75
- 2023Tokenization and the Noiseless Channelcited by 58
- 2017The Natural Stories Corpuscited by 40
- 2023Transformer-Based Language Model Surprisal Predicts Human Reading Times Best with About Two Billion Training Tokenscited by 39
- 2022A Measure-Theoretic Characterization of Tight Language Modelscited by 32
5 more
- 2024Leading Whitespaces of Language Models' Subword Vocabulary Pose a Confound for Calculating Word Probabilitiescited by 30
- 2021You should evaluate your language model on marginal likelihood over tokenisationscited by 29
- 2022On the Effect of Anticipation on Reading Timescited by 18
- 2023Should you marginalize over possible tokenizations?cited by 17
- 2023Revisiting the Optimality of Word Lengthscited by 5
Built on by
Citing papers per year: 2024: 9; 2025: 14; 2026: 13.
36 papers.
Sort:
By area:
- 2025Universal Cross-Tokenizer Distillation via Approximate Likelihood Matchingcited by 40
- 2024From Language Models over Tokens to Language Models over Characterscited by 28
- 2025Causal Estimation of Tokenisation Biascited by 16
- 2024Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensemblescited by 15
- 2024Linear Recency Bias During Training Improves Transformers' Fit to Reading Timescited by 14
- 2024On the Proper Treatment of Tokenization in Psycholinguisticscited by 12
- 2024Tokenisation is NP-Completecited by 10
- 2024Towards a Similarity-adjusted Surprisal Theorycited by 9
- 2025Child-Directed Language Does Not Consistently Boost Syntax Learning in Language Modelscited by 9
- 2025Sampling from Your Language Model One Byte at a Timecited by 7
- 2025Subword models struggle with word learning, but surprisal hides itcited by 6
- 2024The Impact of Token Granularity on the Predictive Power of Language Model Surprisalcited by 5
24 more
- 2025Cross-Tokenizer Likelihood Scoring Algorithms for Language Model Distillationcited by 5
- 2025Probing Syntax in Large Language Models: Successes and Remaining Challengescited by 4
- 2025The Inverse Scaling Effect of Pre-Trained Language Model Surprisal Is Not Due to Data Leakagecited by 3
- 2025How Well Does First-Token Entropy Approximate Word Entropy as a Psycholinguistic Predictor?cited by 3
- 2025The Unheard Alternative: Contrastive Explanations for Speech-to-Text Modelscited by 3
- 2025Convergence and Divergence of Language Models under Different Random Seedscited by 3
- 2026Is Information Density Uniform when Utterances are Grounded on Perception and Discourse?cited by 3
- 2026Transducing Language Modelscited by 3
- 2024A Grounded Typology of Word Classescited by 2
- 2026On the Proper Treatment of Units in Surprisal Theorycited by 2
- 2024Reverse-Engineering the Readercited by 1
- 2025Lost in Space: Finding the Right Tokens for Structured Outputcited by 1
- 2025Surprisal from Larger Transformer-based Language Models Predicts fMRI Data More Poorlycited by 1
- 2026Surprisal and Metaphor Novelty Judgments: Moderate Correlations and Divergent Scaling Effects Revealed by Corpus-Based and Synthetic Datasetscited by 1
- 2026Clozing the Gap: Exploring Why Language Model Surprisal Outperforms Cloze Surprisalcited by 1
- 2026An Existence Proof for Neural Language Models That Can Explain Garden-Path Effects via Surprisalcited by 1
- 2025Do Generalisation Results Generalise?cited by 0
- 2026On the scaling relationship between cloze probabilities and language model next-token predictioncited by 0
- 2026Traces of Social Competence in Large Language Modelscited by 0
- 2026To Words and Beyond: Probing Large Language Models for Sentence-Level Psycholinguistic Norms of Memorability and Reading Timescited by 0
- 2026Probing for Reading Timescited by 0
- 2026The Frequency Confound in Language-Model Surprisal and Metaphor Noveltycited by 0
- 2026Beetle: A Bilingual Model Suite for Modelling Second-Language Processingcited by 0
- 2026Dating the Model: Hidden Dates in System Prompts Affect LLM Evaluationcited by 0
- 2026Dating the Model: Hidden Dates in System Prompts Affect LLM Evaluation29 Sep 2026
- 2026Beetle: A Bilingual Model Suite for Modelling Second-Language Processing18 Sep 2026
- 2026The Frequency Confound in Language-Model Surprisal and Metaphor Novelty7 May 2026
- 2026On the Proper Treatment of Units in Surprisal Theory30 Apr 2026
- 2026Probing for Reading Times20 Apr 2026
- 2026An Existence Proof for Neural Language Models That Can Explain Garden-Path Effects via Surprisal20 Apr 2026
- 2026To Words and Beyond: Probing Large Language Models for Sentence-Level Psycholinguistic Norms of Memorability and Reading Times12 Mar 2026
- 2026Transducing Language Models5 Mar 2026
- 2026Traces of Social Competence in Large Language Models4 Mar 2026
- 2026On the scaling relationship between cloze probabilities and language model next-token prediction19 Feb 2026
- 2026Is Information Density Uniform when Utterances are Grounded on Perception and Discourse?16 Feb 2026
- 2026Clozing the Gap: Exploring Why Language Model Surprisal Outperforms Cloze Surprisal14 Jan 2026
24 more
- 2026Surprisal and Metaphor Novelty Judgments: Moderate Correlations and Divergent Scaling Effects Revealed by Corpus-Based and Synthetic Datasets5 Jan 2026
- 2025Cross-Tokenizer Likelihood Scoring Algorithms for Language Model Distillation16 Dec 2025
- 2025Do Generalisation Results Generalise?8 Dec 2025
- 2025Convergence and Divergence of Language Models under Different Random Seeds30 Sep 2025
- 2025The Unheard Alternative: Contrastive Explanations for Speech-to-Text Models30 Sep 2025
- 2025Probing Syntax in Large Language Models: Successes and Remaining Challenges5 Aug 2025
- 2025How Well Does First-Token Entropy Approximate Word Entropy as a Psycholinguistic Predictor?29 Jul 2025
- 2025Sampling from Your Language Model One Byte at a Time17 Jun 2025
- 2025Surprisal from Larger Transformer-based Language Models Predicts fMRI Data More Poorly12 Jun 2025
- 2025Causal Estimation of Tokenisation Bias3 Jun 2025
- 2025The Inverse Scaling Effect of Pre-Trained Language Model Surprisal Is Not Due to Data Leakage1 Jun 2025
- 2025Child-Directed Language Does Not Consistently Boost Syntax Learning in Language Models29 May 2025
- 2025Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching25 Mar 2025
- 2025Lost in Space: Finding the Right Tokens for Structured Output20 Feb 2025
- 2025Subword models struggle with word learning, but surprisal hides it18 Feb 2025
- 2024Tokenisation is NP-Complete19 Dec 2024
- 2024The Impact of Token Granularity on the Predictive Power of Language Model Surprisal16 Dec 2024
- 2024A Grounded Typology of Word Classes13 Dec 2024
- 2024From Language Models over Tokens to Language Models over Characters4 Dec 2024
- 2024Towards a Similarity-adjusted Surprisal Theory23 Oct 2024
- 2024Reverse-Engineering the Reader16 Oct 2024
- 2024Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensembles11 Oct 2024
- 2024On the Proper Treatment of Tokenization in Psycholinguistics3 Oct 2024
- 2024Linear Recency Bias During Training Improves Transformers' Fit to Reading Times17 Sep 2024
- 2025Universal Cross-Tokenizer Distillation via Approximate Likelihood Matchingcited by 40
- 2024From Language Models over Tokens to Language Models over Characterscited by 28
- 2025Causal Estimation of Tokenisation Biascited by 16
- 2024Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensemblescited by 15
- 2024Linear Recency Bias During Training Improves Transformers' Fit to Reading Timescited by 14
- 2024On the Proper Treatment of Tokenization in Psycholinguisticscited by 12
- 2024Tokenisation is NP-Completecited by 10
- 2024Towards a Similarity-adjusted Surprisal Theorycited by 9
- 2025Child-Directed Language Does Not Consistently Boost Syntax Learning in Language Modelscited by 9
- 2025Sampling from Your Language Model One Byte at a Timecited by 7
- 2025Subword models struggle with word learning, but surprisal hides itcited by 6
- 2024The Impact of Token Granularity on the Predictive Power of Language Model Surprisalcited by 5
12 most cited of 34 All 34 (JSON)
- 2026Beetle: A Bilingual Model Suite for Modelling Second-Language Processing18 Sep 2026
- 2026The Frequency Confound in Language-Model Surprisal and Metaphor Novelty7 May 2026
- 2026On the Proper Treatment of Units in Surprisal Theory30 Apr 2026
- 2026Probing for Reading Times20 Apr 2026
- 2026An Existence Proof for Neural Language Models That Can Explain Garden-Path Effects via Surprisal20 Apr 2026
- 2026To Words and Beyond: Probing Large Language Models for Sentence-Level Psycholinguistic Norms of Memorability and Reading Times12 Mar 2026
- 2026Transducing Language Models5 Mar 2026
- 2026Traces of Social Competence in Large Language Models4 Mar 2026
- 2026On the scaling relationship between cloze probabilities and language model next-token prediction19 Feb 2026
- 2026Is Information Density Uniform when Utterances are Grounded on Perception and Discourse?16 Feb 2026
- 2026Clozing the Gap: Exploring Why Language Model Surprisal Outperforms Cloze Surprisal14 Jan 2026
- 2025Cross-Tokenizer Likelihood Scoring Algorithms for Language Model Distillation16 Dec 2025
12 newest of 34 All 34 (JSON)