Transformers are often used for tasks like language translation or text classification. The key metrics depend on the task:
- Accuracy measures how many predictions are exactly right. It is simple and useful for classification tasks.
- Loss (like cross-entropy loss) shows how well the model predicts probabilities. Lower loss means better predictions.
- Perplexity is common in language models. It measures how surprised the model is by the text. Lower perplexity means the model predicts text better.
- BLEU score is used for translation tasks. It compares the model's output to human translations. Higher BLEU means better translation quality.
We focus on these metrics because they tell us if the Transformer understands and generates language well.
