indictrans2-eval
IndicTrans2: Towards High-Quality and Accessible Machine Translation Models for all 22 Scheduled Indian Languages — Gala et al. (2023) (arXiv:2305.16307, 2023)
What this evaluates
This benchmark evaluates multilingual machine translation quality across 22 scheduled Indian languages and English. It probes a model's ability to handle diverse domains (news, web, conversation, legal, etc.) and both Indic-to-English and English-to-Indic translation directions in an n-way parallel setting.
Datasets
- IN22 — total ?; splits: test (-1); repo https://github.com/AI4Bharat/IndicTrans2
- FLORES-200 — total ?; splits: test (-1); HF
facebook/flores
- NTREX — total ?; splits: test (-1)
- WMT (2014, 2019, 2020) — total ?; splits: test (-1)
- WAT (2020, 2021) — total ?; splits: test (-1)
- UFAL — total ?; splits: test (-1)
Metrics
chrF++ (primary) — range: [0, 100]
- Character n-gram F-score extended with word unigrams and bigrams. Computed via sacreBLEU with character order 6, word order 2, and no space normalization.
BLEU — range: [0, 100]
- Standard n-gram precision metric. Computed using sacreBLEU with mteval-v13a tokenizer for Indic-to-English and IndicNLP/Urduhack tokenizers for English-to-Indic.
COMET-DA — range: [0, 1]
- Reference-based model-based metric using the COMET-22 DA model (XLM-RoBERTa backbone). Only reported for 13 Indic languages supported by the underlying XLM-R model.
Input / output format
Input: Source sentence in English or one of the 22 scheduled Indian languages.
Output: Translated target sentence in the corresponding target language.
Scoring recipe
def compute_chrF2_plus(predictions, references, direction):
if direction == 'Indic-En':
tok = 'mteval-v13a'
else:
tok = 'indicnlp_urduhack'
tokenized_preds = tokenize(predictions, method=tok)
tokenized_refs = tokenize(references, method=tok)
score = sacrebleu.corpus_chrf(
tokenized_preds, [tokenized_refs],
char_order=6, word_order=2, space=False
)
return score.score
Common pitfalls
- Tokenization dependency: BLEU and chrF++ scores are highly sensitive to tokenization. Standard Moses tokenizers fail on Indic scripts; specific tokenizers (IndicNLP, Urduhack) must be used for En-Indic directions.
- COMET coverage gap: COMET-22 DA relies on XLM-RoBERTa and only supports 13 of the 22 Indic languages, leaving 9 languages unmeasured by this metric.
- Proprietary model opacity: Commercial systems (Google Translate, Azure, GPT-3.5) are evaluated via API without access to training data or internal parameters, making fair comparison an approximation.
Evidence (verbatim from paper)
In this work, we, therefore, primarily rely on chrF++ as our primary metric for evaluating translation quality. We also report additional metrics such as BLEU (Papineni et al., 2002) and COMET (Rei et al., 2022).
Citation
@misc{gala2023indictrans2,
title={IndicTrans2: Towards High-Quality and Accessible Machine Translation Models for all 22 Scheduled Indian Languages},
author={Gala et al. (2023)},
year={2023},
note={arXiv:2305.16307}
}
1---2name: indictrans2-eval3description: This benchmark evaluates multilingual machine translation quality across 22 scheduled Indian languages and English. It probes a model's ability to handle diverse domains (news, web, conversation, legal, etc.) and both Indic-to-English and English-to-Indic translation directions in an n-way parallel setting. Use when the user wants to benchmark on IN22, FLORES-200, NTREX, WMT (2014, 2019, 2020), WAT (2020, 2021), UFAL, or asks about evaluating this task. Reports chrF++.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/indictrans2-eval6 skill_kind: dataset_eval7 source_arxiv: 2305.163078 bibtex_key: gala2023indictrans29 confidence: high10---1112# indictrans2-eval1314> IndicTrans2: Towards High-Quality and Accessible Machine Translation Models for all 22 Scheduled Indian Languages — Gala et al. (2023) (arXiv:2305.16307, 2023)1516## What this evaluates1718This benchmark evaluates multilingual machine translation quality across 22 scheduled Indian languages and English. It probes a model's ability to handle diverse domains (news, web, conversation, legal, etc.) and both Indic-to-English and English-to-Indic translation directions in an n-way parallel setting.1920## Datasets2122- **IN22** — total ?; splits: test (-1); repo https://github.com/AI4Bharat/IndicTrans223- **FLORES-200** — total ?; splits: test (-1); HF `facebook/flores`24- **NTREX** — total ?; splits: test (-1)25- **WMT (2014, 2019, 2020)** — total ?; splits: test (-1)26- **WAT (2020, 2021)** — total ?; splits: test (-1)27- **UFAL** — total ?; splits: test (-1)2829## Metrics3031- `chrF++` **(primary)** — range: [0, 100]32 - Character n-gram F-score extended with word unigrams and bigrams. Computed via sacreBLEU with character order 6, word order 2, and no space normalization.33- `BLEU` — range: [0, 100]34 - Standard n-gram precision metric. Computed using sacreBLEU with mteval-v13a tokenizer for Indic-to-English and IndicNLP/Urduhack tokenizers for English-to-Indic.35- `COMET-DA` — range: [0, 1]36 - Reference-based model-based metric using the COMET-22 DA model (XLM-RoBERTa backbone). Only reported for 13 Indic languages supported by the underlying XLM-R model.3738## Input / output format3940**Input**: Source sentence in English or one of the 22 scheduled Indian languages.4142**Output**: Translated target sentence in the corresponding target language.4344## Scoring recipe4546```python47def compute_chrF2_plus(predictions, references, direction):48 if direction == 'Indic-En':49 tok = 'mteval-v13a'50 else:51 tok = 'indicnlp_urduhack'52 53 tokenized_preds = tokenize(predictions, method=tok)54 tokenized_refs = tokenize(references, method=tok)55 56 score = sacrebleu.corpus_chrf(57 tokenized_preds, [tokenized_refs],58 char_order=6, word_order=2, space=False59 )60 return score.score61```6263## Common pitfalls6465- Tokenization dependency: BLEU and chrF++ scores are highly sensitive to tokenization. Standard Moses tokenizers fail on Indic scripts; specific tokenizers (IndicNLP, Urduhack) must be used for En-Indic directions.66- COMET coverage gap: COMET-22 DA relies on XLM-RoBERTa and only supports 13 of the 22 Indic languages, leaving 9 languages unmeasured by this metric.67- Proprietary model opacity: Commercial systems (Google Translate, Azure, GPT-3.5) are evaluated via API without access to training data or internal parameters, making fair comparison an approximation.6869## Evidence (verbatim from paper)7071> In this work, we, therefore, primarily rely on chrF++ as our primary metric for evaluating translation quality. We also report additional metrics such as BLEU (Papineni et al., 2002) and COMET (Rei et al., 2022).7273## Citation7475```bibtex76@misc{gala2023indictrans2,77 title={IndicTrans2: Towards High-Quality and Accessible Machine Translation Models for all 22 Scheduled Indian Languages},78 author={Gala et al. (2023)},79 year={2023},80 note={arXiv:2305.16307}81}82```8384- arXiv: 2305.16307