dolphin-arabic-nlg-eval
Dolphin: A Challenging and Diverse Benchmark for Arabic NLG — Nagoudi et al. (2023) (arXiv:2305.14989, 2023)
What this evaluates
Evaluates the natural language generation capabilities of models across 13 diverse Arabic tasks, including machine translation, summarization, question generation, and dialectal normalization. It probes how well models handle linguistic variability across Classical Arabic, Modern Standard Arabic, dialects, and Arabizi, as well as cross-lingual and code-switched scenarios.
Datasets
- Dolphin — total ?; splits: test (50)
Metrics
BLEU (primary) — range: [0, 1]
- Computes the geometric mean of modified n-gram precisions (typically up to 4-grams) between the generated text and reference(s), penalizing brevity with a brevity penalty.
ROUGE — range: [0, 1]
- Measures recall-based n-gram overlap (typically ROUGE-1 and ROUGE-L) between the generated text and reference(s), widely used for summarization and generation tasks.
F1 — range: [0, 1]
- Harmonic mean of precision and recall for n-gram or token overlap between prediction and reference.
MaxMatch (M2) — range: [0, 1]
- Evaluates grammatical error correction by measuring the overlap of edit operations (insertions, deletions, substitutions) between the system output and reference corrections.
Character Error Rate (CER) — range: [0, 1]
- Calculates the minimum number of character-level insertions, deletions, and substitutions required to transform the predicted string into the reference string, normalized by reference length.
Input / output format
Input: Varies by task cluster: typically a source text (sentence, paragraph, table, or code-switched text) or a passage with an answer. Models receive the input instance and must generate a target text sequence.
Output: A generated text sequence in Arabic (or target language) corresponding to the input. Format depends on the specific task (e.g., translated sentence, summary, question, paraphrase, diacritized text).
Scoring recipe
def compute_metrics(predictions, references):
# predictions and references are lists of strings
bleu = compute_bleu(references, predictions)
rouge = compute_rouge(references, predictions)
f1 = compute_f1(references, predictions)
# For GEC tasks:
m2 = compute_maxmatch(predictions, references)
# For diacritization:
cer = compute_cer(predictions, references)
return {'BLEU': bleu, 'ROUGE': rouge, 'F1': f1, 'M2': m2, 'CER': cer}
Common pitfalls
- Multiple valid references exist for open-ended tasks (e.g., question generation, title generation), making strict exact-match or single-reference metrics misleading.
- High linguistic variability across MSA, dialects, and Arabizi can cause tokenization mismatches, artificially deflating n-gram metrics like BLEU/ROUGE.
- Several tasks (e.g., code-switching, multi-choice QA) are evaluated under zero-shot conditions without task-specific training data, requiring careful prompt formatting.
Evidence (verbatim from paper)
Standard evaluation metrics. Most generation tasks can be evaluated using traditional automated metrics such as BLEU (Papineni et al., 2002) and ROUGE (Lin, 2004). Both of these metrics evaluate the n-gram overlap between a reference text and the generated text. Nevertheless, in many tasks (e.g., question generation, open domain generation, title generation) there are multiple valid ways to produce a given text. In our benchmark, in addition to F1, BLEU, and ROUGE, we use several other evaluation metrics such MaxMatch (M2) (Dahlmeier and Ng, 2012) for grammatical error correction, and Character Error Rate (CER) (Morris et al., 2004) for diacritization.
Citation
@misc{nagoudi2023dolphin,
title={Dolphin: A Challenging and Diverse Benchmark for Arabic NLG},
author={Nagoudi et al. (2023)},
year={2023},
note={arXiv:2305.14989}
}
1---2name: dolphin-arabic-nlg-eval3description: Evaluates the natural language generation capabilities of models across 13 diverse Arabic tasks, including machine translation, summarization, question generation, and dialectal normalization. It probes how well models handle linguistic variability across Classical Arabic, Modern Standard Arabic, dialects, and Arabizi, as well as cross-lingual and code-switched scenarios. Use when the user wants to benchmark on Dolphin, or asks about evaluating this task. Reports BLEU.4---56# dolphin-arabic-nlg-eval78> Dolphin: A Challenging and Diverse Benchmark for Arabic NLG — Nagoudi et al. (2023) (arXiv:2305.14989, 2023)910## What this evaluates1112Evaluates the natural language generation capabilities of models across 13 diverse Arabic tasks, including machine translation, summarization, question generation, and dialectal normalization. It probes how well models handle linguistic variability across Classical Arabic, Modern Standard Arabic, dialects, and Arabizi, as well as cross-lingual and code-switched scenarios.1314## Datasets1516- **Dolphin** — total ?; splits: test (50)1718## Metrics1920- `BLEU` **(primary)** — range: [0, 1]21 - Computes the geometric mean of modified n-gram precisions (typically up to 4-grams) between the generated text and reference(s), penalizing brevity with a brevity penalty.22- `ROUGE` — range: [0, 1]23 - Measures recall-based n-gram overlap (typically ROUGE-1 and ROUGE-L) between the generated text and reference(s), widely used for summarization and generation tasks.24- `F1` — range: [0, 1]25 - Harmonic mean of precision and recall for n-gram or token overlap between prediction and reference.26- `MaxMatch (M2)` — range: [0, 1]27 - Evaluates grammatical error correction by measuring the overlap of edit operations (insertions, deletions, substitutions) between the system output and reference corrections.28- `Character Error Rate (CER)` — range: [0, 1]29 - Calculates the minimum number of character-level insertions, deletions, and substitutions required to transform the predicted string into the reference string, normalized by reference length.3031## Input / output format3233**Input**: Varies by task cluster: typically a source text (sentence, paragraph, table, or code-switched text) or a passage with an answer. Models receive the input instance and must generate a target text sequence.3435**Output**: A generated text sequence in Arabic (or target language) corresponding to the input. Format depends on the specific task (e.g., translated sentence, summary, question, paraphrase, diacritized text).3637## Scoring recipe3839```python40def compute_metrics(predictions, references):41 # predictions and references are lists of strings42 bleu = compute_bleu(references, predictions)43 rouge = compute_rouge(references, predictions)44 f1 = compute_f1(references, predictions)45 # For GEC tasks:46 m2 = compute_maxmatch(predictions, references)47 # For diacritization:48 cer = compute_cer(predictions, references)49 return {'BLEU': bleu, 'ROUGE': rouge, 'F1': f1, 'M2': m2, 'CER': cer}50```5152## Common pitfalls5354- Multiple valid references exist for open-ended tasks (e.g., question generation, title generation), making strict exact-match or single-reference metrics misleading.55- High linguistic variability across MSA, dialects, and Arabizi can cause tokenization mismatches, artificially deflating n-gram metrics like BLEU/ROUGE.56- Several tasks (e.g., code-switching, multi-choice QA) are evaluated under zero-shot conditions without task-specific training data, requiring careful prompt formatting.5758## Evidence (verbatim from paper)5960> Standard evaluation metrics. Most generation tasks can be evaluated using traditional automated metrics such as BLEU (Papineni et al., 2002) and ROUGE (Lin, 2004). Both of these metrics evaluate the n-gram overlap between a reference text and the generated text. Nevertheless, in many tasks (e.g., question generation, open domain generation, title generation) there are multiple valid ways to produce a given text. In our benchmark, in addition to F1, BLEU, and ROUGE, we use several other evaluation metrics such MaxMatch (M2) (Dahlmeier and Ng, 2012) for grammatical error correction, and Character Error Rate (CER) (Morris et al., 2004) for diacritization.6162## Citation6364```bibtex65@misc{nagoudi2023dolphin,66 title={Dolphin: A Challenging and Diverse Benchmark for Arabic NLG},67 author={Nagoudi et al. (2023)},68 year={2023},69 note={arXiv:2305.14989}70}71```7273- arXiv: 2305.14989