QRelScore: Better Evaluating Generated Questions with Deeper Understanding of Context-aware Relevance

Xiaoqiang Wang, Bang Liu, Siliang Tang, Lingfei Wu · DOI

Introduction

In the field of Natural Language Processing (NLP), teaching a machine to generate a high-quality question is as complex as teaching it to provide a correct answer. However, evaluating the quality of these generated questions has historically been a bottleneck. For years, researchers have relied on overlap-based metrics like BLEU or ROUGE, which measure how much a generated question matches a human-written "gold standard" reference.

This approach is fundamentally flawed because a single paragraph can inspire dozens of valid, logical questions. If a model generates a perfectly sound question that simply differs from the specific one written by a human annotator, traditional metrics will penalize it. To address this, researchers from Zhejiang University, the University of Montreal, and JD.COM have introduced QRelScore, a reference-free metric that evaluates questions based on their relationship to the source context rather than a human reference.

The Core Challenge: Reference Incompleteness and Semantic Drift

Existing evaluation metrics for Question Generation (QG) suffer from two primary issues:

  1. Reference Incompleteness: Human references are "one-to-many." Because a context supports multiple valid questions, metrics like BERTScore or BLEU often fail to recognize valid but diverse outputs.
  2. Lack of Context-Awareness: Most metrics do not analyze the source text (the context). This leads to "semantic drift," where a model produces a fluent question that is factually unsupported by the text or entirely unanswerable.

The authors of QRelScore argue that a truly effective metric must understand the reasoning relationship between the question and the context from which it was derived.

The QRelScore Framework

QRelScore is a "reference-free" metric, meaning it evaluates a candidate question solely against the input context. It employs a two-pronged approach, combining local and global perspectives via a harmonic mean:

Local Relevance Matching (QRel_LRM)

This component uses BERT to analyze word-level relationships. Unlike previous methods that encode the question and context separately, QRelScore processes them together. This allows the model to utilize cross-attention, enabling every word in the question to "look" at every word in the context to find supporting evidence. It also incorporates layer-wise information, recognizing that shallower BERT layers handle simple entities while deeper layers manage complex relational structures.

Global Relevance Generation (QRel_GRG)

This component utilizes GPT-2 to verify sentence-level factual consistency through a "prompt-based" approach. It measures the "confidence gain" of the language model: specifically, how much more likely the model is to generate the source context when it is first primed with the candidate question. If a question is relevant and factually consistent, the confidence gain is high; if the question is a hallucination, the gain is low or negative.

Experimental Validation

The researchers validated QRelScore using two major benchmarks and a custom adversarial set:

  • SQuADv1: A standard dataset for factoid-based questions.
  • HotpotQA: A challenging dataset requiring multi-hop reasoning across multiple pieces of information.
  • Adversarial Sets: The authors created 20,000 samples involving entity swaps, pronoun swaps, and sentence negations to test if the metric could detect factual errors that overlap-based metrics might miss.

Key Results and Insights

  • Superior Human Correlation: QRelScore achieved state-of-the-art correlation with human judgments on SQuADv1, significantly outperforming BLEU, ROUGE, and BERTScore in the categories of "Answerability" and "Relevance."
  • Robustness Against Errors: In adversarial tests designed to catch "bad" questions, QRelScore achieved an AUC of 0.844 on SQuAD, outperforming the next best metric, BARTScore (0.815), and traditional metrics like BLEU-4 (0.698).
  • Utility in Training: When used as a reward function in Reinforcement Learning to train QG models, QRelScore led to better performance in downstream Question Answering (QA) tasks compared to models trained using other metrics.

Limitations and Future Directions

Despite its success, the authors identified three areas where QRelScore can be improved:

  1. Out of Vocabulary (OOV) Issues: If a question contains rare words or tokens the model hasn't seen, the score may drop regardless of the question's actual quality.
  2. Syntactic Ambiguity: Complex sentences where the scope of coordination is unclear can lead to discrepancies between the metric and human scorers.
  3. Deep Commonsense Reasoning: Questions requiring external knowledge not present in the text may be penalized, as QRelScore is strictly context-bound.

The authors suggest that moving toward larger language models (LLMs) with higher reasoning capacities could mitigate these issues in future iterations of the metric.

Conclusion

QRelScore represents a significant shift in how we evaluate machine intelligence in Question Generation. By moving away from the "gold standard" reference and focusing on context-aware relevance, it provides a more flexible, robust, and human-aligned way to measure the quality of generated questions.

Summary updated

BibTeX
@inproceedings{wang2022qrelscore,
  author = {Xiaoqiang Wang and Bang Liu and Siliang Tang and Lingfei Wu},
  title = {{QRelScore: Better Evaluating Generated Questions with Deeper Understanding of Context-aware Relevance}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.37},
}
Figure