Introduction
Creating high-quality mathematics assessments is a complex task. Beyond identifying the correct answer, educators must craft "distractors"—incorrect options that reflect common student misconceptions. These distractors, paired with targeted instructional feedback, are crucial for diagnostic learning. However, manually authoring these components is labor-intensive. Researchers from the University of Massachusetts Amherst and Eedi recently explored how Large Language Models (LLMs) can automate this process using in-context learning, presenting their findings at the NeurIPS ’23 GAIED workshop.
The Challenge of Math MCQ Generation
A "gold standard" multiple-choice question (MCQ) uses distractors to pinpoint specific gaps in understanding. For instance, if a student calculates an 8% decrease over 4 years as $1.08^4$ instead of $0.92^4$, they have likely confused a decrease with an increase.
Automating this in math is particularly difficult because it requires logical consistency and an understanding of numerical "near-misses" that signal conceptual errors. This study investigates whether LLMs can generate both plausible distractors and the pedagogical "why" behind them.
Methodology: In-Context Learning with kNN
The researchers employed an In-Context Learning (ICL) framework rather than fine-tuning, allowing them to leverage the broad knowledge of models like OpenAI’s Codex, ChatGPT, and GPT-4.
The pipeline consists of three main stages:
- Retrieval (kNN): Using a pre-trained SBERT encoder, the system identifies the $k$ most semantically similar questions from a candidate bank.
- Prompting: These examples, including their human-authored distractors and feedback, serve as few-shot demonstrations for the LLM.
- Generation: The model generates distractors for a new question or feedback for a specific incorrect option.
To evaluate feedback quality beyond surface-level text similarity (e.g., BLEU), the authors introduced two reference-free metrics:
- Answer Adjustment (Adj): Measures helpfulness by testing if a second LLM can "fix" a distractor to reach the correct answer using the generated feedback.
- Distractor Prediction (Dist. Pred.): Measures informativeness by testing if an LLM can identify which distractor a feedback message refers to.
Data and Experimental Setup
The study utilized a dataset of 1.4K math MCQs from the Eedi platform, focusing on "Number" topics (arithmetic, fractions, rounding) for students aged 10–13. Each entry included a question stem, the correct answer (key), an explanation, three distractors, and corresponding feedback.
Key Findings
- The Importance of Similarity: The kNN approach performed best when it found near-identical questions with different numerical values. Restricting the search to exclude the same sub-topic led to a significant drop in performance, suggesting that models currently rely more on pattern matching than a deep conceptual "theory of mind" regarding student errors.
- Functional Evaluation: The "Answer Adjustment" metric proved vital. Generated feedback helped an LLM correct answers 42-47% of the time—remarkably close to the 49% success rate achieved using human-authored feedback.
- Distractor Quality: The best kNN-based method ($kNN^{all}$) achieved a 71.02% partial match rate, meaning at least one generated distractor matched a human-authored one.
Conclusion and Future Directions
While LLMs show great promise as assistants for educators, they are not yet ready for fully autonomous deployment. Current limitations include a lack of support for visual content (diagrams) and a reliance on surface-level similarity rather than deep conceptual error modeling. Future work will focus on encoding questions based on specific mathematical skills and integrating human-in-the-loop oversight to prevent "hallucinated" logic.
Summary updated