Secure Systems Group
Menu×

Wiki Home

Perplexity

Definition

Perplexity measures how well a probability model predicts a sequence. For a language model that assigns probability f(x_i | x_1, ..., x_{i-1}) to each token, the perplexity of a sequence is the exponential of the average negative log-likelihood per token, equivalently the exponentiated cross-entropy loss. Low perplexity means the model found the sequence unsurprising, having assigned high probability to each token in turn. It is the standard intrinsic quality metric for language models: a better model assigns lower perplexity to held-out text.

The same quantity reads as a confidence signal in training-data privacy. A model tends to assign systematically lower perplexity to sequences it fit closely, so perplexity, and especially the ratio of perplexities between the target model and a reference model, serves to rank candidate sequences by how likely they are to be memorized training text. The two readings reflect two communities: in speech and NLP perplexity is a model-quality number, while in privacy it is a per-example membership signal.

Papers that use this concept

See also