Perplexity
A metric showing how confident a model is in its predictions. The lower the perplexity, the better the model predicts the text.
Meaning
If the model perfectly knows which word will come next, the perplexity is 1. If it guesses from 100 equally probable options, the perplexity is 100.
Usage
- Evaluating the quality of language models;
- Comparing models and versions after fine-tuning;
- Monitoring training.
Limitations
Perplexity does not reflect the 'usefulness' of the response: a model with low perplexity can still hallucinate. Therefore, it is supplemented by other metrics.