Unsupervised Distractor Generation via Large Language Model Distilling and Counterfactual Contrastive Decoding

Fanyi Qu, Hao Sun, Yunfang WuACL 2024

Introduction

In the domain of AI-driven education, the automated creation of multiple-choice questions (MCQs) remains a significant challenge. While generating questions and correct answers is relatively mature, the production of high-quality "distractors"—incorrect options that are plausible yet definitively wrong—remains a bottleneck. Traditional supervised learning approaches require vast amounts of human-annotated data, which is both expensive and slow to acquire. Conversely, while Large Language Models (LLMs) like GPT-4 can generate distractors, they are often computationally expensive and prone to generating "accidental correct answers."

This paper proposes a novel unsupervised framework that trains a compact, efficient model (Bart-base, 139M parameters) to generate high-quality distractors by distilling knowledge from LLMs. The approach significantly reduces deployment costs while outperforming much larger models.

Methodology

The proposed framework is built upon three primary pillars designed to bridge the gap between unsupervised learning and high-quality generation:

  1. LLM Distillation with Filtering: GPT-3.5-turbo acts as a "teacher" to generate initial pseudo-distractors for passage-question-answer triplets. To maintain quality, a filtering mechanism removes any pseudo-distractors that exhibit high semantic similarity (measured via BLEU-4) to the correct answer.
  2. Dual Task Training: The student model undergoes a two-stage training process. In the first stage, it learns to generate the correct answer given the passage, question, and a distractor. In the second stage, it learns to generate the distractor given the passage, question, and answer. This dual-task approach forces the model to learn the semantic boundaries between correct and incorrect options.
  3. Counterfactual Contrastive Decoding (CCD): During inference, the system utilizes an "expert" (distractor generator) and an "amateur" (answer generator). By contrasting their probability distributions, the model penalizes tokens associated with the correct answer and rewards those unique to a distractor. A plausibility constraint ensures the output remains fluent.
The proposed framework consisting of Pseudo Label Generation and Dual Task Training stages.

Experimental Results

The framework was evaluated on two major reading comprehension datasets: RACE (middle/high school English exams) and Dream (dialogue-based MCQs). Despite being trained without human-provided distractors, the model demonstrated superior performance over its teacher models.

Performance Comparison

On the RACE dataset, the proposed model achieved an average BLEU-4 score of 7.64, notably higher than GPT-3.5-turbo's 5.88. Similar gains were observed on the Dream dataset. Furthermore, the model excelled in the "Faithful Score"—a metric measuring how often a distractor is mistaken for a correct answer. The proposed model scored 25.64 on RACE, outperforming GPT-3.5's 33.39 (where lower is better), indicating a superior ability to avoid the "accidental correct answer" trap.

Average BLEU-4 Score comparison between LLM baselines and the proposed method on RACE and Dream datasets.

Low-Resource Efficiency

A key finding of this research is the model's stability in low-resource settings. When training data was reduced to just 1% (approximately 400 samples), the unsupervised method maintained competitive performance, whereas traditional supervised models typically experience significant performance degradation under similar constraints.

Discussion and Conclusion

This research demonstrates that a specialized, small-scale model can outperform general-purpose LLMs at specific tasks when guided by clever distillation and decoding strategies. By treating the correct answer as a counterfactual reference, the model learns to navigate the nuance of "wrongness" more effectively than much larger models.

While a performance gap still exists between this unsupervised method and fully supervised models trained on human labels, the framework provides a cost-effective, scalable solution for educational content generation. Future work will explore distilling the rationales behind LLM choices and extending the framework to multi-lingual contexts.

Summary updated

BibTeX
@inproceedings{qu2024unsupervised,
  author = {Fanyi Qu and Hao Sun and Yunfang Wu},
  title = {{Unsupervised Distractor Generation via Large Language Model Distilling and Counterfactual Contrastive Decoding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.47},
}
Figure