Optimizing a Swedish Distractor Generator for Multiple-Choice Questions using AI Preferences
Year: 2024
Type: dissertation
Abstract: Multiple-Choice Questions (MCQs) are common in educational settings to test and improve reading comprehension. Generating full MCQs, or just the incorrect answer options (called distractors), can help teachers spend their time more efficiently. Both of these topics have been studied, but there is a notable gap in research concerning languages other than English. In this thesis, a distractor generator for Swedish MCQs is developed and compared against a previously introduced BERT model. An extension of the dataset used by the BERT model is used to train Mistral 7B, a newer Transformer-based model using state-of-the-art techniques like QLoRA and DPO on consumer-grade hardware. Human feedback is often used to evaluate and further train models while avoiding the need to formulate complex goals or modify training data. With the introduction of widely available LLMs like ChatGPT that can solve intricate tasks, one goal was to evaluate whether this technology could efficiently replace human feedback with AI feedback without impacting output quality. The final DPO trained Mistral 7B model scored similarly to the baseline with two teachers approving ≈ 50% of its distractors, while also giving some valuable insights on possible future improvements. Performing DPO using AI preference data resulted in some improvements. However, human preference data would most likely have yielded even better results. Compared to the baseline BERT model which was pre-trained only on Swedish data, Mistral 7B is primarily trained on English, which may be a second reason for the lackluster performance. Lastly, evaluators only accepted 61.6% of the included human-made distractors - revealing the dataset quality to be sub-par. Most likely this limited the quality of the final model. This could be avoided in the future by involving the evaluators in the dataset-making process. The model, Swedish training and preference datasets, and evaluation scripts are open-sourced to provide a simple starting point for future work.
Author: Lundgren, Elias
Institution: KTH Royal Institute of Technology
Language: English
Topic: Topic Modeling
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
SDG: Quality education
Open Access status: green
OpenAlex ID: W6995661451
