What does perplexity mean in terms of llms
- User
What does perplexity mean in terms of llms
Assistant
Perplexity is a metric used to evaluate language models in natural language processing. Specifically:
-
Language models assign a probability to sequences of words in a language. For example, given the sequence "The cat sat on the...", a language model would assign a probability to the next word being "mat", "couch", "table", etc.
-
Perplexity measures how well a language model predicts a sample of text. Intuitively, lower perplexity means the language model is good at predicting the text.
-
The formula for perplexity is:
Perplexity = 2^(Cross Entropy)
Where cross entropy is the average negative log likelihood the language model assigns to each word.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.