A Better Way to Do Masked Language Model Scoring
Not on the map. Why?
Abstract (arXiv)
Estimating the log-likelihood of a given sentence under an autoregressive language model is straightforward: one can simply apply the chain rule and sum the log-likelihood values for each successive token. However, for masked language models (MLMs), there is no direct way to estimate the log-likelihood of a sentence. To address this issue, Salazar et al. (2020) propose to estimate sentence pseudo-log-likelihood (PLL) scores, computed by successively masking each sentence token, retrieving its score using the rest of the sentence as context, and summing the resulting values. Here, we demonstrate that the original PLL method yields inflated scores for out-of-vocabulary words and propose an adapted metric, in which we mask not only the target token, but also all within-word tokens to the right of the target. We show that our adapted metric (PLL-word-l2r) outperforms both the original PLL metric and a PLL metric in which all within-word tokens are masked. In particular, it better satisfies theoretical desiderata and better correlates with scores from autoregressive models. Finally, we show that the choice of metric affects even tightly controlled, minimal pair evaluation benchmarks (such as BLiMP), underscoring the importance of selecting an appropriate scoring metric for evaluating MLM properties.
Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). Builds on 12 of its 22 references that are in the map. First posted on arXiv 17 May 2023.
Builds on
12 of 22 references.
References · 12
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Modelscited by 703
- 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 553
- 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
- 2019BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Modelcited by 184
- 2021Masked Language Modeling and the Distributional Hypothesis: Order Word Matters Pre-training for Littlecited by 176
- 2020When Do You Need Billions of Words of Pretraining Data?cited by 104
- 2022minicons: Enabling Flexible Behavioral and Representational Analyses of Transformer Language Modelscited by 58
- 2021Keep it Simple: Unsupervised Simplification of Multi-Paragraph Textcited by 45
- 2021Structural Persistence in Language Models: Priming as a Window into Abstract Language Representationscited by 44
- 2022Event knowledge in large language models: the gap between the impossible and the unlikelycited by 44
Built on by
Citing papers per year: 2023: 3; 2024: 9; 2025: 11; 2026: 4.
27 papers.
Sort:
By area:
- 2024Findings of the Second BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corporacited by 48
- 2024Log Probabilities Are a Reliable Estimate of Semantic Plausibility in Base and Instruction-Tuned Language Modelscited by 24
- 2024The Foundations of Tokenization: Statistical and Computational Concernscited by 20
- 2024Robust Pronoun Fidelity with English LLMs: Are they Reasoning, Repeating, or Just Biased?cited by 17
- 2024Predictions from language models for multiple-choice tasks are not robust under variation of scoring methodscited by 13
- 2023Can Language Models Be Tricked by Language Illusions? Easier with Syntax, Harder with Semanticscited by 11
- 2024BEAR: A Unified Framework for Evaluating Relational Knowledge in Causal and Masked Language Modelscited by 11
- 2024BERTs are Generative In-Context Learnerscited by 11
- 2025Are BabyLMs Deaf to Gricean Maxims? A Pragmatic Evaluation of Sample-efficient Language Modelscited by 11
- 2025Child-Directed Language Does Not Consistently Boost Syntax Learning in Language Modelscited by 9
- 2025TurBLiMP: A Turkish Benchmark of Linguistic Minimal Pairscited by 9
- 2025SelfReflect: Can LLMs Communicate Their Internal Answer Distribution?cited by 6
15 more
- 2025Minimal Pair-Based Evaluation of Code-Switchingcited by 6
- 2025HPLT 3.0: Very Large-Scale Multilingual Resources for LLMs and MT. Mono- and Bi-lingual Data, Multilingual Evaluation, and Pre-Trained Modelscited by 6
- 2023Multilingual Nonce Dependency Treebanks: Understanding how Language Models represent and process syntactic structurecited by 5
- 2024PMB5: Gaining More Insight into Neural Semantic Parsing with Challenging Benchmarkscited by 5
- 2023Increasing The Performance of Cognitively Inspired Data-Efficient Language Models via Implicit Structure Buildingcited by 3
- 2025Blind Men and the Elephant: Diverse Perspectives on Gender Stereotypes in Benchmark Datasetscited by 3
- 2025Eye Tracking Based Cognitive Evaluation of Automatic Readability Assessment Methodscited by 1
- 2025On the Interplay between Positional Encodings, Morphological Complexity, and Word Order Flexibilitycited by 1
- 2026Self-Aware Knowledge Probing: Evaluating Language Models' Relational Knowledge through Confidence Calibrationcited by 1
- 2026Perturbation: A simple and efficient adversarial tracer for representation learning in language modelscited by 1
- 2026AmchiBias: Measuring Stereotypical Bias in Goan Identity Groups with a Minimal Pair Dataset in English and Konkanicited by 1
- 2024ELLEN: Extremely Lightly Supervised Learning For Efficient Named Entity Recognitioncited by 0
- 2025Spontaneous Speech Variables for Evaluating LLMs Cognitive Plausibilitycited by 0
- 2025Understanding Syntactic Generalization in Structure-inducing Language Modelscited by 0
- 2026Language Models Learn Constructional Semantics, Not To Mention Syntax: Investigating LM Understanding of Paired-Focus Constructionscited by 0
- 2026AmchiBias: Measuring Stereotypical Bias in Goan Identity Groups with a Minimal Pair Dataset in English and Konkani13 Jun 2026
- 2026Language Models Learn Constructional Semantics, Not To Mention Syntax: Investigating LM Understanding of Paired-Focus Constructions29 May 2026
- 2026Perturbation: A simple and efficient adversarial tracer for representation learning in language models25 Mar 2026
- 2026Self-Aware Knowledge Probing: Evaluating Language Models' Relational Knowledge through Confidence Calibration26 Jan 2026
- 2025On the Interplay between Positional Encodings, Morphological Complexity, and Word Order Flexibility11 Nov 2025
- 2025HPLT 3.0: Very Large-Scale Multilingual Resources for LLMs and MT. Mono- and Bi-lingual Data, Multilingual Evaluation, and Pre-Trained Models2 Nov 2025
- 2025Are BabyLMs Deaf to Gricean Maxims? A Pragmatic Evaluation of Sample-efficient Language Models6 Oct 2025
- 2025Understanding Syntactic Generalization in Structure-inducing Language Models11 Aug 2025
- 2025TurBLiMP: A Turkish Benchmark of Linguistic Minimal Pairs16 Jun 2025
- 2025Minimal Pair-Based Evaluation of Code-Switching2 Jun 2025
- 2025Child-Directed Language Does Not Consistently Boost Syntax Learning in Language Models29 May 2025
- 2025SelfReflect: Can LLMs Communicate Their Internal Answer Distribution?26 May 2025
15 more
- 2025Spontaneous Speech Variables for Evaluating LLMs Cognitive Plausibility22 May 2025
- 2025Eye Tracking Based Cognitive Evaluation of Automatic Readability Assessment Methods16 Feb 2025
- 2025Blind Men and the Elephant: Diverse Perspectives on Gender Stereotypes in Benchmark Datasets2 Jan 2025
- 2024Findings of the Second BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corpora6 Dec 2024
- 2024The Foundations of Tokenization: Statistical and Computational Concerns16 Jul 2024
- 2024BERTs are Generative In-Context Learners7 Jun 2024
- 2024PMB5: Gaining More Insight into Neural Semantic Parsing with Challenging Benchmarks12 Apr 2024
- 2024BEAR: A Unified Framework for Evaluating Relational Knowledge in Causal and Masked Language Models5 Apr 2024
- 2024Robust Pronoun Fidelity with English LLMs: Are they Reasoning, Repeating, or Just Biased?4 Apr 2024
- 2024ELLEN: Extremely Lightly Supervised Learning For Efficient Named Entity Recognition26 Mar 2024
- 2024Log Probabilities Are a Reliable Estimate of Semantic Plausibility in Base and Instruction-Tuned Language Models21 Mar 2024
- 2024Predictions from language models for multiple-choice tasks are not robust under variation of scoring methods1 Mar 2024
- 2023Multilingual Nonce Dependency Treebanks: Understanding how Language Models represent and process syntactic structure13 Nov 2023
- 2023Can Language Models Be Tricked by Language Illusions? Easier with Syntax, Harder with Semantics2 Nov 2023
- 2023Increasing The Performance of Cognitively Inspired Data-Efficient Language Models via Implicit Structure Building31 Oct 2023
- 2024Findings of the Second BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corporacited by 48
- 2024Log Probabilities Are a Reliable Estimate of Semantic Plausibility in Base and Instruction-Tuned Language Modelscited by 24
- 2024The Foundations of Tokenization: Statistical and Computational Concernscited by 20
- 2024Predictions from language models for multiple-choice tasks are not robust under variation of scoring methodscited by 13
- 2023Can Language Models Be Tricked by Language Illusions? Easier with Syntax, Harder with Semanticscited by 11
- 2024BEAR: A Unified Framework for Evaluating Relational Knowledge in Causal and Masked Language Modelscited by 11
- 2024BERTs are Generative In-Context Learnerscited by 11
- 2025Are BabyLMs Deaf to Gricean Maxims? A Pragmatic Evaluation of Sample-efficient Language Modelscited by 11
- 2025Child-Directed Language Does Not Consistently Boost Syntax Learning in Language Modelscited by 9
- 2025TurBLiMP: A Turkish Benchmark of Linguistic Minimal Pairscited by 9
- 2025SelfReflect: Can LLMs Communicate Their Internal Answer Distribution?cited by 6
- 2025Minimal Pair-Based Evaluation of Code-Switchingcited by 6
12 most cited of 26 All 26 (JSON)
- 2026AmchiBias: Measuring Stereotypical Bias in Goan Identity Groups with a Minimal Pair Dataset in English and Konkani13 Jun 2026
- 2026Language Models Learn Constructional Semantics, Not To Mention Syntax: Investigating LM Understanding of Paired-Focus Constructions29 May 2026
- 2026Perturbation: A simple and efficient adversarial tracer for representation learning in language models25 Mar 2026
- 2026Self-Aware Knowledge Probing: Evaluating Language Models' Relational Knowledge through Confidence Calibration26 Jan 2026
- 2025On the Interplay between Positional Encodings, Morphological Complexity, and Word Order Flexibility11 Nov 2025
- 2025HPLT 3.0: Very Large-Scale Multilingual Resources for LLMs and MT. Mono- and Bi-lingual Data, Multilingual Evaluation, and Pre-Trained Models2 Nov 2025
- 2025Are BabyLMs Deaf to Gricean Maxims? A Pragmatic Evaluation of Sample-efficient Language Models6 Oct 2025
- 2025Understanding Syntactic Generalization in Structure-inducing Language Models11 Aug 2025
- 2025TurBLiMP: A Turkish Benchmark of Linguistic Minimal Pairs16 Jun 2025
- 2025Minimal Pair-Based Evaluation of Code-Switching2 Jun 2025
- 2025Child-Directed Language Does Not Consistently Boost Syntax Learning in Language Models29 May 2025
- 2025SelfReflect: Can LLMs Communicate Their Internal Answer Distribution?26 May 2025
12 newest of 26 All 26 (JSON)