crosslingual-mtf-eval
Crosslingual Generalization through Multitask Finetuning — Muennighoff et al. (2022) (arXiv:2211.01786, 2022)
What this evaluates
Evaluates zero-shot crosslingual generalization of multilingual LLMs after multitask finetuning. Probes language-agnostic task understanding, robustness to prompt translation, and scaling behavior across NLU, generative, and code tasks.
Datasets
- XNLI — total ?; splits: test (-1)
- XCOPA — total ?; splits: test (-1)
- XStoryCloze — total ?; splits: test (-1)
- XWinograd — total ?; splits: test (-1)
- HumanEval — total ?; splits: test (-1)
Metrics
accuracy (primary) — range: [0, 1]
- Proportion of correctly predicted labels or completions for NLU tasks (XNLI, XCOPA, XStoryCloze, XWinograd, Sentence Completion, Coreference Resolution).
BLEU — range: [0, 100]
- Standard n-gram based metric for evaluating translation and summarization quality.
pass@k — range: percent
- Probability that at least one of k generated solutions passes the test suite. Evaluated at k=1, 10, 100 with 200 samples per problem across temperatures 0.2, 0.6, 0.8.
Input / output format
Input: Zero-shot prompted instances. Prompts are provided in English, machine-translated (MT), or human-translated (HT) versions of the target language. Tasks include NLI, causal reasoning, story cloze, coreference, translation, summarization, and code completion.
Output: Model generates a response or label corresponding to the prompt. For NLU/classification tasks, a discrete label. For generative tasks, a text completion. For HumanEval, a Python function completion.
Scoring recipe
def score(predictions, gold, task_type):
if task_type == 'NLU':
return sum(p == g for p, g in zip(predictions, gold)) / len(gold)
elif task_type == 'NLG':
return compute_bleu(gold, predictions)
elif task_type == 'code':
# Generate 200 samples per problem with top_p=0.95
# Evaluate at temperatures 0.2, 0.6, 0.8
# Return best pass@k across temperatures
return pass_at_k(gold_tests, predictions, k)
Common pitfalls
- Using English prompts for non-English tasks without translation leads to significantly lower performance (e.g., BLOOMZ drops ~15% on XNLI MT prompts).
- Finetuning on short tasks induces a bias towards short generations, artificially lowering BLEU scores on generative tasks unless a minimum generation length is enforced at inference.
- Zero-shot performance on 'unseen' languages may still reflect minor pretraining contamination rather than true generalization.
Evidence (verbatim from paper)
The former are scored using accuracy and the latter using BLEU (Papineni et al., 2002). The NLG tasks measured are translation and summarization. ... Following Chen et al. (2021) we generate 200 samples for each problem with top p = 0.95 and compute pass rates. We perform this evaluation three times for temperatures 0.2, 0.6 and 0.8 and pick the best pass rate.
Citation
@misc{muennighoff2022crosslingual,
title={Crosslingual Generalization through Multitask Finetuning},
author={Muennighoff et al. (2022)},
year={2022},
note={arXiv:2211.01786}
}
1---2name: crosslingual-mtf-eval3description: Evaluates zero-shot crosslingual generalization of multilingual LLMs after multitask finetuning. Probes language-agnostic task understanding, robustness to prompt translation, and scaling behavior across NLU, generative, and code tasks. Use when the user wants to benchmark on XNLI, XCOPA, XStoryCloze, XWinograd, HumanEval, or asks about evaluating this task. Reports accuracy.4---56# crosslingual-mtf-eval78> Crosslingual Generalization through Multitask Finetuning — Muennighoff et al. (2022) (arXiv:2211.01786, 2022)910## What this evaluates1112Evaluates zero-shot crosslingual generalization of multilingual LLMs after multitask finetuning. Probes language-agnostic task understanding, robustness to prompt translation, and scaling behavior across NLU, generative, and code tasks.1314## Datasets1516- **XNLI** — total ?; splits: test (-1)17- **XCOPA** — total ?; splits: test (-1)18- **XStoryCloze** — total ?; splits: test (-1)19- **XWinograd** — total ?; splits: test (-1)20- **HumanEval** — total ?; splits: test (-1)2122## Metrics2324- `accuracy` **(primary)** — range: [0, 1]25 - Proportion of correctly predicted labels or completions for NLU tasks (XNLI, XCOPA, XStoryCloze, XWinograd, Sentence Completion, Coreference Resolution).26- `BLEU` — range: [0, 100]27 - Standard n-gram based metric for evaluating translation and summarization quality.28- `pass@k` — range: percent29 - Probability that at least one of k generated solutions passes the test suite. Evaluated at k=1, 10, 100 with 200 samples per problem across temperatures 0.2, 0.6, 0.8.3031## Input / output format3233**Input**: Zero-shot prompted instances. Prompts are provided in English, machine-translated (MT), or human-translated (HT) versions of the target language. Tasks include NLI, causal reasoning, story cloze, coreference, translation, summarization, and code completion.3435**Output**: Model generates a response or label corresponding to the prompt. For NLU/classification tasks, a discrete label. For generative tasks, a text completion. For HumanEval, a Python function completion.3637## Scoring recipe3839```python40def score(predictions, gold, task_type):41 if task_type == 'NLU':42 return sum(p == g for p, g in zip(predictions, gold)) / len(gold)43 elif task_type == 'NLG':44 return compute_bleu(gold, predictions)45 elif task_type == 'code':46 # Generate 200 samples per problem with top_p=0.9547 # Evaluate at temperatures 0.2, 0.6, 0.848 # Return best pass@k across temperatures49 return pass_at_k(gold_tests, predictions, k)50```5152## Common pitfalls5354- Using English prompts for non-English tasks without translation leads to significantly lower performance (e.g., BLOOMZ drops ~15% on XNLI MT prompts).55- Finetuning on short tasks induces a bias towards short generations, artificially lowering BLEU scores on generative tasks unless a minimum generation length is enforced at inference.56- Zero-shot performance on 'unseen' languages may still reflect minor pretraining contamination rather than true generalization.5758## Evidence (verbatim from paper)5960> The former are scored using accuracy and the latter using BLEU (Papineni et al., 2002). The NLG tasks measured are translation and summarization. ... Following Chen et al. (2021) we generate 200 samples for each problem with top p = 0.95 and compute pass rates. We perform this evaluation three times for temperatures 0.2, 0.6 and 0.8 and pick the best pass rate.6162## Citation6364```bibtex65@misc{muennighoff2022crosslingual,66 title={Crosslingual Generalization through Multitask Finetuning},67 author={Muennighoff et al. (2022)},68 year={2022},69 note={arXiv:2211.01786}70}71```7273- arXiv: 2211.01786