Term
perplexity
Meaning
Perplexity is a language modeling measure equal to the exponential of the average negative log-likelihood per token, so lower values mean the model assigns higher probability to the observed text.
How papers use it 48 papers
Deep contextualized word representations
Use In the paper, fine-tuning the biLM on task-domain data is reported to lower perplexity, which the authors treat as a form of domain transfer before task training.
A Neural Conversational Model
Use The metric that compares the recurrent models with the n-gram baselines on both datasets.
Meaning A language-model measure of how well a model predicts held-out text; lower values mean a better fit.
A Primer in BERTology: What we know about how BERT works
Use Used to score softmax classifiers retrained on each layer's representations of the ELMo models, on held-out Billion Word Benchmark data.
Meaning A language modeling metric equal to the exponentiated average negative log-likelihood a model assigns to held-out tokens; lower values mean the model predicts the text better.
An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling
Use Reported in Table 1 for word-level PTB, Wiki-103 and LAMBADA (lower is better). On PTB the LSTM (78.93) beats the TCN (88.68), while the TCN (88.68) beats the GRU and vanilla RNN. On Wiki-103 the TCN reaches 45.19 against 48.4 for the LSTM, and on LAMBADA it reaches 1279 against 4186 for the LSTM.
Meaning A word-level language modeling measure equal to the exponential of the average negative log-likelihood per word, so lower values mean the model predicts the text better.
FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
Use Used to measure GPT-2 model quality on OpenWebText. Using FlashAttention with a 4K context gives a perplexity of 17.5, which is 0.7 better than the 18.2 of GPT-2 small trained with Megatron-LM at a 1K context. The paper uses this gain as evidence that longer sequences improve model quality.
Meaning A language modeling metric equal to the exponentiated average negative log-likelihood of tokens in held-out text. Lower values indicate better predictive quality.
Pointer Sentinel Mixture Models
Use Validation and test perplexities are the main metric used to compare models on the Penn Treebank and WikiText-2.
Meaning A language modeling metric that reports how well a model predicts a held-out sequence, where lower values indicate better prediction.
Cross-lingual Language Model Pretraining
Use Scores Nepali language models in the low-resource study, comparing a model trained on Nepali alone with cross-lingual models trained on Nepali together with Hindi and English data.
Meaning A language modeling metric that scores how well a model predicts held-out text, based on the probability it assigns to that text. Lower values indicate a better fit.
Attention Is All You Need
Use Reported in Table 3 as a per-wordpiece perplexity on the English-to-German development set, using the authors' byte-pair encoding. The authors note that these values should not be compared with per-word perplexities.
Meaning Perplexity is a measure of how well a language model predicts a held-out sequence, computed as the exponential of the average negative log-likelihood per token. Lower values mean better prediction.
Sequence to Sequence Learning with Neural Networks
Use Used on the test set to compare LSTMs trained with and without reversed input sentences. Reversing the input sentences lowers test perplexity from 5.8 to 4.7. The paper also notes that each additional layer in a deep LSTM reduces perplexity by nearly 10 percent compared with shallower models.
Meaning A measure of how well a language model predicts a held-out text, computed from the probabilities the model assigns to the true words. Lower values indicate a better-fitting model.
ProSST: Protein Language Modeling with Quantized Structure and Disentangled Attention
Use Computed on the pre-training validation set to compare pre-training variants of ProSST, and plotted as perplexity curves over training steps. The number of structure tokens and the removal of individual attention terms are compared with it: the default K=2048 setting gives 9.033, and removing the residue-to-structure term raises it to 12.142.
Meaning A measure of how well a masked language model predicts held-out tokens, computed as the exponential of the average negative log-likelihood of the true tokens; lower values indicate better prediction.
LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale
Use Used as the main sensitive measure of quantization degradation. Quantization error shows up as an increase in perplexity on C4 validation data, and the paper reports that the perplexity of absmax, row-wise and zeropoint methods worsens as models grow past 2.7B parameters, while LLM.int8() stays close to the 32-bit baseline. Perplexity also serves as the outcome against which outlier count is plotted.
Meaning A language modeling metric that measures how well a model predicts a text sample. Lower values indicate better prediction, and it is sensitive to small changes in model quality.
Code Llama: Open Foundation Models for Code
Use Tracks how the model's loss on long code files changes beyond the training length.
Meaning The exponentiated average negative log-likelihood per token, where lower values mean a better fit.
BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension
Use The objectives are compared by perplexity on their fine-tuning objective.
Meaning A measure of how well a model predicts text, where lower values indicate a better fit.
Hierarchical Neural Story Generation
Use Used for automatic evaluation of models on the WRITING PROMPTS test set, where lower is better. Reported values include 37.94 for Conv seq2seq with self-attention and 36.56 for the fusion model, with the test perplexity of the GCNN LM at 54.79 for comparison.
Meaning A metric for language models that measures how well a model predicts each next word from the words before it. Lower values mean the model assigns higher probability to the correct next words.
DARTS: Differentiable Architecture Search
Use Used as the main language modeling measure on Penn Treebank, where the DARTS recurrent cell reaches a test perplexity of 55.7, and on WikiText-2 for the transferred cell, with validation and test values reported in the comparison tables.
Meaning A language modeling metric equal to the exponential of the average negative log-likelihood per token. Lower values mean the model assigns higher probability to the held-out text.
Probabilistic Latent Semantic Analysis
Use Used as the predictive yardstick for comparing PLSA with LSA-derived probability models on the MED and LOB datasets, where the number of latent dimensions is varied and the PLSA curves are trained by TEM. Also tracked alongside average precision as a function of the inverse temperature on the MED data, where the two curves were reported to correlate strongly, which the authors use to argue that likelihood is a general yardstick for analysis methods.
Meaning A measure of how well a probabilistic model predicts data, computed from the likelihood of held-out or unseen observations, so that a model that assigns higher probability to unseen data gets a lower score.
Learning to (Learn at Test Time): RNNs with Expressive Hidden States
Use Used as the main quality measure in scaling plots on a log scale, against training FLOPs and, in one analysis, against token index within a sequence. Lower is better. Per-token-index curves are used to test whether later tokens, which have more context, become easier to predict. Ablation Table 1 reports perplexity for 125M-parameter models, with a lower value meaning better quality.
Meaning A language modeling metric equal to the exponential of the average negative log-likelihood per token. Lower values mean that the model assigns higher probability to the actual next tokens.
Mamba: Linear-Time Sequence Modeling with Selective State Spaces
Use Used as the pretraining metric for autoregressive language modeling. Mamba is compared with Transformer baselines and with other subquadratic architectures on perplexity during scaling-law experiments trained on the Pile, and perplexity is also reported on the Pile validation split and on LAMBADA in the zero-shot table.
Meaning Perplexity is an evaluation score for a language model, computed as the exponential of the average negative log-likelihood the model assigns to held-out tokens. A lower value means the model finds the text less surprising.
OPT: Open Pre-trained Transformer Language Models
Use Used as the language-modeling score in the dialogue evaluation of OPT-175B and the baselines. Perplexities are normalized to the space of the GPT-2 tokenizer so that models with different tokenizers can be compared. Lower is better.
Meaning A language-modeling measure of how well a model predicts a held-out text, computed as the exponentiated average negative log-likelihood per token. Lower values mean the text is predicted better.
Right Token, Right Time: From Per-Token Gating to Trajectory-Aware Activation Steering
Use Reported alongside the AlpacaEval win rate to check whether steering degrades the quality of the same responses. Lower values mean better fluency. It is used to show how steered responses from each gating method change relative to the unsteered responses as the budget grows.
Meaning A language-model-based fluency measure that scores how predictable a text is, with lower values indicating more fluent text.
Rethinking Attention with Performers
Use Used to compare attention variants on PG-19 text modeling. Positive softmax features with feature redrawing are shown to match the regular Transformer's perplexity, while trigonometric features become unstable and the other variants plateau at a similar perplexity.
Meaning A language modeling metric equal to the exponential of the average negative log-likelihood per token; lower values mean the model predicts the text better.
SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot
Use The main accuracy metric for compressed models, chosen because it is sensitive to accuracy changes. The paper compares sparse models to the dense baseline in perplexity terms, with the evaluation computed on full-stride segments using the same code for dense and sparse models.
Meaning A language model evaluation measure that is the exponential of the average per-token language modelling loss; lower values mean the model predicts the text better.
Effective Model Pruning : Measuring the Redundancy of Model Components
Use Reports language modeling quality for pruned models. For GPT-2 on WikiText-2, the dense baseline is compared with EMP head pruning under the Taylor and weight norm criteria, and in the LLaMA and LLaMA-2 experiments PPL on Wikitext is reported with its change from the dense model, where a smaller increase indicates less degradation.
Meaning A language modeling metric equal to the exponential of the average negative log-likelihood a model assigns to each token, so lower values mean the model predicts the text better.
A Neural Attention Model for Abstractive Sentence Summarization
Use Used on the Gigaword validation set to compare language models and encoders, with C=5, as language models rather than as summarizers. The values reported are 183.2 for a Kneser-Ney smoothed 5-gram, 145.9 for the feed-forward NNLM with no encoder, 43.6 for bag-of-words, 35.9 for the convolutional encoder and 27.1 for the attention-based encoder. The authors use this comparison to show that adding an encoder, and especially attention, lowers perplexity.
Meaning A standard language-model evaluation measure computed as the exponentiated average negative log-probability per token on held-out text. Lower values mean the model assigns higher probability to the text.
Retentive Network: A Successor to Transformer for Large Language Models
Use Used as the main language modeling measure. Validation perplexity is reported for the Transformer and RetNet models at 1.3B, 2.7B and 6.7B sizes to show scaling behavior. Out-of-domain perplexity is reported on several long-document corpora for the comparison with efficient Transformer variants and for the ablation study.
Meaning A language modeling metric that measures how well a model predicts a text, computed from the probability the model assigns to the tokens. Lower values mean the model predicts the text better.
Toolformer: Language Models Can Teach Themselves to Use Tools
Use Used as the main check that adding API-call training does not hurt core language modeling. Models are compared on WikiText and on a held-out CCNet subset. Toolformer with API calls disabled matches GPT-J with CC fine-tuning on CCNet (10.5), and training on the API-augmented data does not increase perplexity relative to training on the original data when calls are off. Perplexity is not computed with API calls enabled.
Meaning A language modeling metric equal to the exponentiated average negative log-likelihood a model assigns to each token of a text. Lower values mean the model predicts the text better.
Reformer: The Efficient Transformer
Use The text describes the learning curves for regular versus shared query-key attention on enwik8 as perplexity curves, which shows that shared query-key attention trains at least as well as regular attention. The Figure 3 caption describes the same kind of plot in terms of bits per dimension, so the metric name for that figure is not fully consistent within the paper.
Meaning A language modelling metric that measures how well a model predicts the next token in a sequence, with lower values indicating better prediction.
OpenNMT: Open-Source Toolkit for Neural Machine Translation
Use Reported for a dialogue-style model trained on 14 million sentences from the OpenSubtitles data. The OpenNMT model's perplexity is described as comparable to the result of the earlier work of Vinyals and Le (2015).
Meaning A measure of how well a language model predicts held-out text. It is the exponentiated average negative log-likelihood per token, so lower values indicate better prediction.
Linformer: Self-Attention with Linear Complexity
Use Used as the validation metric for masked-language-modeling pretraining. Validation perplexity is plotted against the number of updates for the standard Transformer and for Linformer across projected dimensions k, at maximum sequence lengths of 512 and 1024. The paper reads the curves to show that Linformer approaches the Transformer as k increases.
Meaning A metric for language models equal to the exponential of the average negative log-likelihood per token, where lower values indicate better prediction of held-out text.
DeBERTa: Decoding-enhanced BERT with Disentangled Attention
Use Used to evaluate the natural language generation ability of DeBERTa on the Wikitext-103 dataset, where the reported value for DeBERTa falls from 21.6 to 19.5, which is a better result.
Meaning A metric for language models that measures how well a model predicts a text, computed from the average negative log-likelihood of the tokens and exponentiated. Lower values indicate a better model.
Fast Transformer Decoding: One Write-Head is All You Need
Use Used as a quality metric. For translation, it is computed per subword token on the dev set and reported as ln(PPL) in Table 1. For the Billion-Word LM Benchmark, it is computed per word on the dev set and reported as dev-PPL in Table 3. Lower values are better, and the multi-query model is slightly worse than the baseline on both.
Meaning A language model evaluation measure that reflects how well a model predicts a sequence of tokens. It is the exponential of the average negative log-likelihood per token, and lower values mean better prediction.
Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism
Use Used as the evaluation metric for GPT-2 models on the WikiText103 test set. The summed cross entropy is normalized by the original word-level token count \(T_o\) (245566 for the test set) rather than the subword token count \(T\) (270329), after detokenization of the test text. Because the model has a fixed context of 1024 tokens, scoring uses overlapping sliding windows with an overlap of 32 tokens. The 8.3B model reaches 10.81, lower than the previous state of the art of 15.79. The paper also reports validation perplexity during training, and for BERT models on a held-out set, the values 1.58, 1.30 and 1.16 for the 336M, 1.3B and 3.9B models.
Meaning Perplexity is a metric for language models defined as the exponentiated average cross entropy over a corpus. Lower values mean the model assigns higher probability to the text.
The Curious Case of Neural Text Degeneration
Use Computed under the generating model for texts produced by each decoding method and compared against the perplexity of human gold text. The paper argues that a good decoding strategy should land close to the human value, since much lower perplexity signals repetitive, low-diversity text. Nucleus Sampling with p=0.95 has a perplexity of 13.13 against 12.38 for human text, while pure sampling has 22.73 and beam search with b=16 has 1.48.
Meaning Perplexity is a measure of how well a language model predicts a given text, computed from the probabilities the model assigns to its tokens. Lower values mean the text is more probable under the model.
The other papers are in the term map.