What does perplexity mean in terms of llms
- User
What does perplexity mean in terms of llms
- Assistant
Perplexity is a measurement used in language modeling to gauge how well a probabilistic model predicts a sample. In terms of Language Models (LMs), it is used to compare different language models. A lower perplexity indicates the language model is better at predicting the sample.
Perplexity is essentially the inverse probability of the test set, normalized by the number of words. For a test set W = w_1, w_2, ..., w_N, perplexity is defined as:
Perplexity(W) = P(w_1, w_2, ..., w_N)^(-1/N)
In simpler terms, perplexity can be thought of as the weighted average branching factor of a language model. A language model with lower perplexity is more certain about its prediction.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.