Abstract
Hallucinations in large language models (LLMs), defined as fluent yet incorrect or incoherent outputs, pose a significant challenge to the automatic generation of educational multiple-choice questions (MCQs). We identified four key hallucination types in MCQ generation: reasoning inconsistencies, insolvability, factual errors, and mathematical errors. To address this, we propose a hallucination-free multi-agent generation framework that breaks down MCQ generation into discrete, verifiable stages. Our framework utilizes both rule-based and LLM-based detection agents, as well as hallucination scoring metrics to optimize question quality. We redefined MCQ generation as an optimization task minimizing hallucination risk while maximizing validity, answerability, and cost-efficiency. We also introduce an agent-led refinement process that uses counterfactual reasoning and chain-of-thought (CoT) to iteratively improve hallucination in question generation. We evaluated a sample of AP-aligned STEM questions, where our system reduced hallucination rates by over 90% compared to baseline generation while preserving the educational value and style of questions. Our results demonstrate that structured multi-agent collaboration can mitigate hallucinations in educational content creation at scale, paving the way for more reliable LLM-powered learning tools.
Introduction
Automatic Question Generation (AQG) is a highly promising application of AI in education, capable of providing students with endless practice problems. However, Large Language Models (LLMs) are prone to hallucinations—fluent but incorrect or incoherent outputs. In the context of Multiple Choice Questions (MCQs), these manifest as "silly mistakes" like answer-explanation mismatches, unsolvable questions, factual inaccuracies, and mathematical errors. While techniques like Chain-of-Thought (CoT) prompting help, they don't inherently verify correctness and are computationally expensive at scale. This research addresses the need for a scalable, cost-effective way to generate trustworthy, hallucination-free educational content.
Methodology: The Multi-Agent Framework
The authors frame MCQ generation as an optimization problem: minimize a custom hallucination score ($H$) while maximizing validity and answerability. To achieve this, they built an iterative, dual-agent framework inspired by Generative Adversarial Networks (GANs).
The framework consists of several key components:
- Formalized Hallucination Metric: Hallucinations are decomposed into four verifiable dimensions: Logical inconsistency ($H_1$), Impossible questions ($H_2$), Factual errors ($H_3$), and Mathematical errors ($H_4$).
- Generator-Detector Loop: A Generator agent drafts the initial MCQ. A Detector agent evaluates it against the four metrics. If errors are found, the Detector provides feedback, and the Generator rewrites the question.
- Dynamic Iteration Control: The loop terminates early if the hallucination score falls below a threshold or if improvement plateaus.
- Lightweight Orchestration: The system uses a cost-effective model (GPT-4.1-nano) to power the agents, demonstrating that orchestration can replace expensive monolithic models.
Key Results
The framework was evaluated on AP-aligned STEM questions. The multi-agent revision process demonstrated significant improvements in reliability:
- Massive Error Reduction: Hallucination rates were reduced by over 90% after seven iterations, with the error rate converging toward zero.
- Rapid Early Gains: A single iteration yielded an approximate 50% decrease in hallucinations compared to zero-shot generation.
- Cost Efficiency: By using GPT-4.1-nano, the framework achieves superior reliability at an 11x reduction in token cost compared to state-of-the-art reasoning models.
Discussion and Conclusion
A key insight from this work is that detectors hallucinate less than generators. Generation is a high-entropy task, whereas detection is a low-entropy evaluation task. Separating these roles naturally suppresses errors. Furthermore, the results show that smart orchestration of lightweight models can outperform raw model size in specialized tasks.
While effective, the framework's factual error detection ($H_3$) requires a comprehensive reference knowledge base. Future work will explore cross-domain generalization to non-STEM subjects and more scalable scoring functions. Overall, this multi-agent approach paves the way for reliable, large-scale AI-powered educational tools.
Summary updated