LookAlike: Consistent Distractor Generation in Math MCQs

Nisarg Parikh, Alexander Scarlatos, Nigel Fernandez, Simon Woodhead, Andrew Lan2025

Abstract

Generating effective multiple-choice questions (MCQs) in mathematics requires more than just identifying correct answers; it necessitates the creation of "distractors" that reflect specific student misconceptions. Current Large Language Models (LLMs) often struggle with error-distractor consistency, frequently generating wrong answers that do not align with the intended pedagogical logic. This paper introduces LOOKALIKE, a framework that improves consistency by mining synthetic preference pairs from model mistakes and employing a novel alternating optimization schedule between Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO).

Introduction

In mathematics education, a distractor is a diagnostic tool. For instance, if a student is asked to add fractions and provides an answer reached by adding the numerators and denominators directly, that specific error reveals a fundamental misunderstanding of common denominators. While LLMs are proficient at generating text, they often exhibit a "hallucination of logic" in educational contexts: a model might correctly identify a misconception (e.g., "confusing squaring with doubling") but then calculate a distractor that does not actually follow that logic. This inconsistency makes AI-generated MCQs unreliable for classroom use.

Previous attempts to resolve this issue relied on expensive manual annotations or rigid heuristics. The LOOKALIKE framework seeks to solve this by making LLMs adhere strictly to the logic of a specific error in a scalable, automated fashion.

Methodology

LOOKALIKE introduces two primary technical innovations designed to align model outputs with intended misconceptions without human intervention.

1. Mining Synthetic Preference Pairs

Instead of utilizing human-labeled data to distinguish between high-quality and low-quality distractors, LOOKALIKE employs a self-supervised mining process. The model generates multiple candidate distractors for a specific error description. If a generated distractor matches the ground truth, it is labeled as a "preferred" sample. If it fails to match, it is treated as a "dispreferred" (negative) sample. This allows the model to learn specifically from its own failure modes—essentially turning its inconsistencies into a custom dataset for preference alignment.

2. Alternating Optimization (SFT + DPO)

Standard Direct Preference Optimization (DPO) can be unstable; over-optimization for preference signals often leads to a decline in overall model quality or "verbosity drift." LOOKALIKE addresses this by interleaving SFT and DPO during training. By periodically switching between the two (either every batch or every epoch), the model re-calibrates to the ground-truth distribution via SFT while continuing to learn the ranking of consistent generations via DPO. This alternating schedule provides a more stable training signal than combined loss functions like RPO (Regularized Preference Optimization).

Experimental Setup

The study utilized a real-world dataset from Eedi, a large-scale mathematics learning platform. The dataset includes:

  • Scale: 1,434 math MCQs utilized by hundreds of thousands of students.
  • Target Audience: Students aged 10–13.
  • Content: Topics covering Arithmetic, Fractions, and Algebra.
  • Structure: Each question includes a stem, the correct key, and three distractors, each paired with a human-written "error explanation" describing the specific misconception.

Results and Analysis

The researchers compared LOOKALIKE against standard SFT and DiVERT (a previous state-of-the-art variational approach).

  • Distractor Generation: LOOKALIKE achieved 51.6% accuracy (exact match), outperforming DiVERT (45.6%) and SFT (44.8%).
  • Error Generation: When evaluated on its ability to explain why a certain distractor was chosen (using an LLM-as-a-judge), LOOKALIKE reached 57.2% accuracy, a nearly 10% improvement over previous methods.
  • Human Evaluation: In blind tests with human educators, LOOKALIKE’s generated errors were rated as significantly more consistent and pedagogically sound than those produced by baseline models.

Discussion and Limitations

While LOOKALIKE represents a significant step forward, several limitations were identified:

  • Domain Specificity: The model is currently specialized for middle-school mathematics; its efficacy in more subjective subjects remains to be seen.
  • Matching Heuristics: The preference mining currently relies on exact string matching. This is conservative, as a distractor might be mathematically correct but formatted differently, leading the model to treat it as a negative sample. Future iterations may benefit from semantic or mathematical equivalence matching.
  • Template Overfitting: Error analysis revealed occasional "template overfitting," where the model generates an error description that fits a similar question from the training set rather than the specific question at hand.

Conclusion

LOOKALIKE demonstrates that a model’s inability to follow its own instructions can be leveraged as a training signal. By treating failed generations as negative samples and stabilizing the learning process through alternating optimization, the framework provides a scalable path toward AI that understands not just the correct answer, but the specific logic of student errors.

Summary updated

BibTeX
@misc{parikh2025lookalike,
  author = {Nisarg Parikh and Alexander Scarlatos and Nigel Fernandez and Simon Woodhead and Andrew Lan},
  title = {{LookAlike: Consistent Distractor Generation in Math MCQs}},
  year = {2025},
  doi = {10.18653/v1/2025.bea-1.23},
}
Figure