CDGP: Automatic Cloze Distractor Generation based on Pre-trained Language Model

Shang-Hsuan Chiang, Ssu-Cheng Wang, Yao-Chung FanEMNLP 2022

Introduction

Creating effective "cloze" tests—multiple-choice fill-in-the-blank assessments—is a cornerstone of language and domain-specific learning. While identifying the correct answer for a given sentence (the "stem") is straightforward, generating high-quality "distractors" is significantly more challenging. A distractor must be grammatically correct and contextually plausible enough to challenge the learner, yet definitively incorrect.

An example of a cloze test stem with its correct answer and distractors.

Traditionally, automated distractor generation (DG) relied on static knowledge bases like WordNet or linguistic rules. However, these methods often fail to capture the nuanced context of a sentence, leading to distractors that are either nonsensical or too easily dismissed. This paper, presented at EMNLP 2022, introduces CDGP (Automatic Cloze Distractor Generation based on Pre-trained Language Models), a framework that leverages the contextual power of models like BERT to produce human-like distractors.

The CDGP Framework

The CDGP framework moves away from dictionary-based lookups toward context-aware generation. It operates in two primary stages: the Candidate Set Generator (CSG) and the Distractor Selector (DS).

The CDGP framework architecture, illustrating the flow from input stem to the final selection of top distractors.

1. Candidate Set Generator (CSG)

Instead of retrieving synonyms, the system fine-tunes a Pre-trained Language Model (PLM) to predict the missing word. A key innovation here is Answer-Relating Fine-Tuning. By providing the correct answer to the model during training, the system is guided to generate candidates that are semantically related to the answer but distinct from it, preventing the accidental generation of synonyms that could be valid alternatives.

2. Distractor Selector (DS)

The generated pool of candidates is then ranked using a weighted sum of four scoring factors:

  • Confidence Score ($s_0$): The PLM's internal probability for the word.
  • Word Embedding Similarity ($s_1$): Semantic proximity to the correct answer to ensure plausibility.
  • Contextual-Sentence Similarity ($s_2$): A measure of how naturally the sentence flows with the candidate word.
  • POS Match ($s_3$): Ensuring the candidate matches the part-of-speech of the original answer.

Evaluation and Results

The researchers evaluated CDGP on two major benchmarks: the CLOTH Dataset (middle/high school English tests) and the DGen Dataset (scientific domain questions).

Key Insights

  • Contextual Superiority: Shifting to PLM-driven generation allows for "natural-sounding" wrong answers that respect the surrounding text.
  • Domain Adaptation: Using domain-specific models like SciBERT for scientific questions resulted in a massive performance boost, highlighting the importance of the model's base knowledge.
  • State-of-the-Art Performance: On the DGen dataset, CDGP improved the NDCG@10 score from 19.31 to 34.17—a significant improvement in ranking quality.

Human Evaluation

In a blind study with 40 human evaluators, participants were unable to reliably distinguish between AI-generated and human-written distractors, with a "guess rate" of 53% (effectively a coin flip). While the AI-generated questions were slightly easier for humans to answer correctly (66% vs 50.5% for human-designed), they remained highly functional and plausible.

Limitations and Future Directions

Despite its success, the authors note several areas for improvement. Current evaluation metrics are limited by comparing AI choices to a single "ground truth" distractor, which may overlook other valid options. Furthermore, the system lacks a "difficulty control" mechanism to tune distractors for different learner levels. Future work will focus on enhancing controllability to ensure no "false distractors" (valid alternative answers) are generated.

Summary updated

BibTeX
@inproceedings{chiang2022cdgp,
  author = {Shang-Hsuan Chiang and Ssu-Cheng Wang and Yao-Chung Fan},
  title = {{CDGP: Automatic Cloze Distractor Generation based on Pre-trained Language Model}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.429},
}
Figure