vlue-eval
VLUE: A New Benchmark and Multi-task Knowledge Transfer Learning for Vietnamese Natural Language Understanding — Do et al. (2024) (arXiv:2403.15882, 2024)
What this evaluates
Evaluates Vietnamese natural language understanding across five diverse tasks including machine reading comprehension, natural language inference, emotion recognition, hate speech detection, and part-of-speech tagging. It assesses a model's ability to comprehend text, reason over sentence pairs, classify emotions and hate speech, and perform syntactic analysis in Vietnamese.
Datasets
- UIT-ViQuAD 2.0 — total 35990; splits: train (28457), dev (3821), test (3712)
- ViNLI — total 30376; splits: train (24376), dev (3009), test (2991)
- VSMEC — total 6927; splits: train (5548), dev (686), test (693)
- ViHOS — total 11214; splits: train (8974), dev (1112), test (1128)
- NIIVTB POS — total 20588; splits: train (18588), dev (1000), test (1000)
Metrics
Exact Match (EM) — range: [0, 1]
- 1 if the predicted answer exactly matches the gold answer span, else 0.
F1-score (primary) — range: [0, 1]
- Harmonic mean of precision and recall computed over token or character overlap between predicted and gold spans/labels.
Accuracy — range: [0, 1]
- Proportion of correctly classified instances out of the total number of instances.
Macro-F1 — range: [0, 1]
- Unweighted mean of F1 scores computed independently for each class, then averaged.
Input / output format
Input: Varies by task: (context, question) for MRC; (premise, hypothesis) for NLI; (comment text) for emotion/hate speech; (sentence tokens) for POS tagging.
Output: Varies by task: extracted span or empty string for MRC; class label (entailment/neutral/contradiction/other) for NLI; emotion label(s) for emotion recognition; hate/offensive span(s) or none for hate speech; POS tag sequence for POS tagging.
Scoring recipe
def compute_metrics(preds, golds):
em = sum(1.0 if p == g else 0.0 for p, g in zip(preds, golds)) / len(golds)
f1s = []
for p, g in zip(preds, golds):
p_set, g_set = set(p.split()), set(g.split())
if not p_set and not g_set: f1s.append(1.0)
elif not p_set or not g_set: f1s.append(0.0)
else:
prec = len(p_set & g_set) / len(p_set)
rec = len(p_set & g_set) / len(g_set)
f1s.append(2 * prec * rec / (prec + rec) if prec + rec > 0 else 0.0)
return {'EM': em, 'F1': sum(f1s) / len(f1s)}
Common pitfalls
- Models must predict an empty span for unanswerable questions in UIT-ViQuAD; failing to do so penalizes EM/F1.
- VSMEC is a multi-label classification task, so macro-F1 must be computed per label rather than using standard single-label accuracy.
- ViHOS requires span-level extraction, not just comment-level classification, so evaluation must match predicted spans to gold spans character-by-character.
Evidence (verbatim from paper)
The task proposed by this dataset is to extract the answer for a question given a corresponding context. The answer can be empty when models encounter unanswerable questions. Exact Match (EM) and F1-score are used to evaluate the performance of the model.
Citation
@misc{do2024vlue,
title={VLUE: A New Benchmark and Multi-task Knowledge Transfer Learning for Vietnamese Natural Language Understanding},
author={Do et al. (2024)},
year={2024},
note={arXiv:2403.15882}
}
1---2name: vlue-eval3description: Evaluates Vietnamese natural language understanding across five diverse tasks including machine reading comprehension, natural language inference, emotion recognition, hate speech detection, and part-of-speech tagging. It assesses a model's ability to comprehend text, reason over sentence pairs, classify emotions and hate speech, and perform syntactic analysis in Vietnamese. Use when the user wants to benchmark on UIT-ViQuAD 2.0, ViNLI, VSMEC, ViHOS, NIIVTB POS, or asks about evaluating this task. Reports F1-score.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/vlue-eval6 skill_kind: dataset_eval7 source_arxiv: 2403.158828 bibtex_key: do2024vlue9 confidence: high10---1112# vlue-eval1314> VLUE: A New Benchmark and Multi-task Knowledge Transfer Learning for Vietnamese Natural Language Understanding — Do et al. (2024) (arXiv:2403.15882, 2024)1516## What this evaluates1718Evaluates Vietnamese natural language understanding across five diverse tasks including machine reading comprehension, natural language inference, emotion recognition, hate speech detection, and part-of-speech tagging. It assesses a model's ability to comprehend text, reason over sentence pairs, classify emotions and hate speech, and perform syntactic analysis in Vietnamese.1920## Datasets2122- **UIT-ViQuAD 2.0** — total 35990; splits: train (28457), dev (3821), test (3712)23- **ViNLI** — total 30376; splits: train (24376), dev (3009), test (2991)24- **VSMEC** — total 6927; splits: train (5548), dev (686), test (693)25- **ViHOS** — total 11214; splits: train (8974), dev (1112), test (1128)26- **NIIVTB POS** — total 20588; splits: train (18588), dev (1000), test (1000)2728## Metrics2930- `Exact Match (EM)` — range: [0, 1]31 - 1 if the predicted answer exactly matches the gold answer span, else 0.32- `F1-score` **(primary)** — range: [0, 1]33 - Harmonic mean of precision and recall computed over token or character overlap between predicted and gold spans/labels.34- `Accuracy` — range: [0, 1]35 - Proportion of correctly classified instances out of the total number of instances.36- `Macro-F1` — range: [0, 1]37 - Unweighted mean of F1 scores computed independently for each class, then averaged.3839## Input / output format4041**Input**: Varies by task: (context, question) for MRC; (premise, hypothesis) for NLI; (comment text) for emotion/hate speech; (sentence tokens) for POS tagging.4243**Output**: Varies by task: extracted span or empty string for MRC; class label (entailment/neutral/contradiction/other) for NLI; emotion label(s) for emotion recognition; hate/offensive span(s) or none for hate speech; POS tag sequence for POS tagging.4445## Scoring recipe4647```python48def compute_metrics(preds, golds):49 em = sum(1.0 if p == g else 0.0 for p, g in zip(preds, golds)) / len(golds)50 f1s = []51 for p, g in zip(preds, golds):52 p_set, g_set = set(p.split()), set(g.split())53 if not p_set and not g_set: f1s.append(1.0)54 elif not p_set or not g_set: f1s.append(0.0)55 else:56 prec = len(p_set & g_set) / len(p_set)57 rec = len(p_set & g_set) / len(g_set)58 f1s.append(2 * prec * rec / (prec + rec) if prec + rec > 0 else 0.0)59 return {'EM': em, 'F1': sum(f1s) / len(f1s)}60```6162## Common pitfalls6364- Models must predict an empty span for unanswerable questions in UIT-ViQuAD; failing to do so penalizes EM/F1.65- VSMEC is a multi-label classification task, so macro-F1 must be computed per label rather than using standard single-label accuracy.66- ViHOS requires span-level extraction, not just comment-level classification, so evaluation must match predicted spans to gold spans character-by-character.6768## Evidence (verbatim from paper)6970> The task proposed by this dataset is to extract the answer for a question given a corresponding context. The answer can be empty when models encounter unanswerable questions. Exact Match (EM) and F1-score are used to evaluate the performance of the model.7172## Citation7374```bibtex75@misc{do2024vlue,76 title={VLUE: A New Benchmark and Multi-task Knowledge Transfer Learning for Vietnamese Natural Language Understanding},77 author={Do et al. (2024)},78 year={2024},79 note={arXiv:2403.15882}80}81```8283- arXiv: 2403.15882