概念
FM metrics: ROUGE, BLEU, BERTScore and benchmarks
Scores for the text a model writes: ROUGE, BLEU, BERTScore, perplexity and named benchmarks.
本课尚未翻译,暂以英文显示。
ROUGE
- Best for
- Summarization
- It compares
- Words shared with a reference summary
BLEU
- Best for
- Translation
- It compares
- Word groups shared with a reference translation
BERTScore
- Best for
- Meaning, any text task
- It compares
- Embeddings: how close the meaning is
Perplexity
- Best for
- How well a model predicts text
- It compares
- No reference needed. Lower is better.
Benchmarks
- Best for
- Ranking models on the same tasks
- It compares
- GLUE, SuperGLUE, MMLU, HELM
| Metric | Best for | It compares |
|---|---|---|
| ROUGE | Summarization | Words shared with a reference summary |
| BLEU | Translation | Word groups shared with a reference translation |
| BERTScore | Meaning, any text task | Embeddings: how close the meaning is |
| Perplexity | How well a model predicts text | No reference needed. Lower is better. |
| Benchmarks | Ranking models on the same tasks | GLUE, SuperGLUE, MMLU, HELM |
1 / 2
ROUGE
- Best for
- Summarization
- It compares
- Words shared with a reference summary
BLEU
- Best for
- Translation
- It compares
- Word groups shared with a reference translation
BERTScore
- Best for
- Meaning, any text task
- It compares
- Embeddings: how close the meaning is
| Metric | Best for | It compares |
|---|---|---|
| ROUGE | Summarization | Words shared with a reference summary |
| BLEU | Translation | Word groups shared with a reference translation |
| BERTScore | Meaning, any text task | Embeddings: how close the meaning is |
2 / 2
Perplexity
- Best for
- How well a model predicts text
- It compares
- No reference needed. Lower is better.
Benchmarks
- Best for
- Ranking models on the same tasks
- It compares
- GLUE, SuperGLUE, MMLU, HELM
| Metric | Best for | It compares |
|---|---|---|
| Perplexity | How well a model predicts text | No reference needed. Lower is better. |
| Benchmarks | Ranking models on the same tasks | GLUE, SuperGLUE, MMLU, HELM |
- 1Take the human-written reference.
- 2Take the model's text.
- 3The metric turns the comparison into a score.
是什么
Some tasks have a good reference answer written by a person. A metric then compares the model's text to that reference and gives a score. You do not need the formulas for the exam, only what each metric compares and where it fits.
是什么
ROUGE (Recall-Oriented Understudy for Gisting Evaluation) counts how much of the reference summary appears in the model's summary. It fits summarization. BLEU (Bilingual Evaluation Understudy) checks how many word groups in the model's translation also appear in the reference. It fits machine translation. BERTScore compares meaning, not exact words, by using embeddings. A paraphrase can score well even with different words. ROUGE and BLEU reward word overlap, so they can punish a good answer worded differently.
是什么
Perplexity is different: it needs no reference. It shows how well a language model predicts text, and a lower value is better. Benchmarks are named test sets that rank models on the same tasks. GLUE and SuperGLUE test language understanding, MMLU tests knowledge across many subjects, and HELM scores models on many measures such as accuracy, fairness and toxicity. To judge answers on qualities such as completeness, see Judge metrics.
要记住
- ROUGE: overlap with a reference summary. Use for summarization.
- BLEU: overlap of word groups with a reference translation. Use for translation.
- BERTScore: similarity of meaning using embeddings. Use when wording may differ.
- ROUGE, BLEU and BERTScore compare model output with a human-written reference. Higher is closer.
要记住
- Perplexity: how well a model predicts text. Lower is better.
- Benchmarks: GLUE, SuperGLUE, MMLU, HELM.
考试中
- “Evaluate the quality of text summaries” points to ROUGE.
- “Evaluate machine translation quality” points to BLEU.
- “Compare meaning, not exact words” points to BERTScore.
- “Compare several models on a standard language test, such as MMLU or HELM” points to a benchmark.
别和这些弄混
- LLM-as-a-judgeOne model grades another model's answers, with scores and reasons.
- Judge metrics: correctness, completeness and moreThe built-in scores a judge model gives in Amazon Bedrock, from correctness and completeness to harmfulness, plus the RAG metrics.
- Model performance metricsAccuracy, precision, recall, F1 and AUC-ROC score classifiers. MAE, RMSE and R squared score number predictions.