mixqg-qg-eval
MixQG: Neural Question Generation with Mixed Answer Types — Murakhovs'ka et al. (2021) (arXiv:2110.08175, 2021)
What this evaluates
Evaluates a neural question generation model's ability to produce fluent, relevant questions conditioned on a target answer and context. It probes both automatic n-gram/embedding-based similarity metrics and human-rated utility for educational quiz creation.
Datasets
- SQuAD — total ?; splits: train (-1), dev (-1)
- NQ — total ?; splits: train (-1), dev (-1)
- Quoref — total ?; splits: train (-1), test (-1)
- DROP — total ?; splits: train (-1), dev (-1)
Metrics
question approval rate (primary) — range: percent
- Percentage of generated questions approved by human teachers for inclusion in a quiz, calculated as approved_count / total_generated_questions.
BLEU — range: [0, 1]
- Standard n-gram precision metric with brevity penalty, measuring lexical overlap between generated and reference questions.
ROUGE — range: [0, 1]
- Recall-oriented n-gram overlap metric (typically ROUGE-L or ROUGE-1/2), measuring how much reference text is covered by the generation.
METEOR — range: [0, 1]
- Metric that aligns generated and reference words using synonymy and stemming, combining precision and recall with a penalty for fragmentation.
BERTScore — range: [0, 1]
- Computes cosine similarity between contextual embeddings of generated and reference tokens, then aggregates precision, recall, and F1 scores.
Input / output format
Input: Context (e.g., Wikipedia article or sentence) and a target answer (quiz concept or answer span).
Output: A single generated question string.
Scoring recipe
def score(predictions, golds, human_approvals=None):
scores = {}
scores['BLEU'] = compute_bleu(predictions, golds)
scores['ROUGE'] = compute_rouge(predictions, golds)
scores['METEOR'] = compute_meteor(predictions, golds)
scores['BERTScore'] = compute_bertscore(predictions, golds)
if human_approvals is not None:
approved = sum(1 for a in human_approvals if a)
scores['question approval rate'] = (approved / len(predictions)) * 100
return scores
Common pitfalls
- n-gram based metrics (BLEU/ROUGE) may not correlate well with human judgments of question quality and fluency.
- Models trained solely on a target dataset can outperform joint-trained models in zero-shot settings, but fine-tuning the joint model yields the best overall performance.
- Human evaluation requires teachers to explicitly select a quiz concept (target answer) from the context to ensure generated questions match the intended answer specificity.
Evidence (verbatim from paper)
We report the commonly-used metrics applied in the QG research: BLEU, ROUGE, and METEOR scores. We also report BERTScore, which relies on contextual embeddings to produce the final score. The success of a QG model depends on its question approval rate. We compare seven QG models and collect 3,164 human-annotated samples from 10 recruited teachers. Teachers can then approve a generated question to be included on the quiz or reject it and provide a reason for rejection.
Citation
@misc{murakhovska2021mixqg,
title={MixQG: Neural Question Generation with Mixed Answer Types},
author={Murakhovs'ka et al. (2021)},
year={2021},
note={arXiv:2110.08175}
}
1---2name: mixqg-qg-eval3description: Evaluates a neural question generation model's ability to produce fluent, relevant questions conditioned on a target answer and context. It probes both automatic n-gram/embedding-based similarity metrics and human-rated utility for educational quiz creation. Use when the user wants to benchmark on SQuAD, NQ, Quoref, DROP, or asks about evaluating this task. Reports question approval rate.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/mixqg-qg-eval6 skill_kind: dataset_eval7 source_arxiv: 2110.081758 bibtex_key: murakhovska2021mixqg9 confidence: high10---1112# mixqg-qg-eval1314> MixQG: Neural Question Generation with Mixed Answer Types — Murakhovs'ka et al. (2021) (arXiv:2110.08175, 2021)1516## What this evaluates1718Evaluates a neural question generation model's ability to produce fluent, relevant questions conditioned on a target answer and context. It probes both automatic n-gram/embedding-based similarity metrics and human-rated utility for educational quiz creation.1920## Datasets2122- **SQuAD** — total ?; splits: train (-1), dev (-1)23- **NQ** — total ?; splits: train (-1), dev (-1)24- **Quoref** — total ?; splits: train (-1), test (-1)25- **DROP** — total ?; splits: train (-1), dev (-1)2627## Metrics2829- `question approval rate` **(primary)** — range: percent30 - Percentage of generated questions approved by human teachers for inclusion in a quiz, calculated as approved_count / total_generated_questions.31- `BLEU` — range: [0, 1]32 - Standard n-gram precision metric with brevity penalty, measuring lexical overlap between generated and reference questions.33- `ROUGE` — range: [0, 1]34 - Recall-oriented n-gram overlap metric (typically ROUGE-L or ROUGE-1/2), measuring how much reference text is covered by the generation.35- `METEOR` — range: [0, 1]36 - Metric that aligns generated and reference words using synonymy and stemming, combining precision and recall with a penalty for fragmentation.37- `BERTScore` — range: [0, 1]38 - Computes cosine similarity between contextual embeddings of generated and reference tokens, then aggregates precision, recall, and F1 scores.3940## Input / output format4142**Input**: Context (e.g., Wikipedia article or sentence) and a target answer (quiz concept or answer span).4344**Output**: A single generated question string.4546## Scoring recipe4748```python49def score(predictions, golds, human_approvals=None):50 scores = {}51 scores['BLEU'] = compute_bleu(predictions, golds)52 scores['ROUGE'] = compute_rouge(predictions, golds)53 scores['METEOR'] = compute_meteor(predictions, golds)54 scores['BERTScore'] = compute_bertscore(predictions, golds)55 if human_approvals is not None:56 approved = sum(1 for a in human_approvals if a)57 scores['question approval rate'] = (approved / len(predictions)) * 10058 return scores59```6061## Common pitfalls6263- n-gram based metrics (BLEU/ROUGE) may not correlate well with human judgments of question quality and fluency.64- Models trained solely on a target dataset can outperform joint-trained models in zero-shot settings, but fine-tuning the joint model yields the best overall performance.65- Human evaluation requires teachers to explicitly select a quiz concept (target answer) from the context to ensure generated questions match the intended answer specificity.6667## Evidence (verbatim from paper)6869> We report the commonly-used metrics applied in the QG research: BLEU, ROUGE, and METEOR scores. We also report BERTScore, which relies on contextual embeddings to produce the final score. The success of a QG model depends on its question approval rate. We compare seven QG models and collect 3,164 human-annotated samples from 10 recruited teachers. Teachers can then approve a generated question to be included on the quiz or reject it and provide a reason for rejection.7071## Citation7273```bibtex74@misc{murakhovska2021mixqg,75 title={MixQG: Neural Question Generation with Mixed Answer Types},76 author={Murakhovs'ka et al. (2021)},77 year={2021},78 note={arXiv:2110.08175}79}80```8182- arXiv: 2110.08175