mlsanityData to 14 Oct 2026

CODE-GEN: A Human-in-the-Loop RAG-Based Agentic AI System for Multiple-Choice Question Generation

arXiv 2604.03926 ↗First posted 5 Apr 2026cs.AI cs.CY cs.HCcited by 1

On the map: Retrieval-augmented generation → Agentic RAG, agents and memory

also in 1 more
Abstract (arXiv)

We present CODE-GEN, a human-in-the-Loop, retrieval-augmented generation (RAG)-based agentic AI system for generating context-aligned multiple-choice questions to develop student code reasoning and comprehension abilities. CODE-GEN employs an agentic AI architecture in which a Generator agent produces multiple-choice coding comprehension questions aligned with course-specific learning objectives, while a Validator agent independently assesses content quality across seven pedagogical dimensions. Both agents are augmented with specialized tools that enhance computational accuracy and verify code outputs. To evaluate the effectiveness of CODE-GEN, we conducted an evaluation study involving six human subject-matter experts (SMEs) who judged 288 AI-generated questions. The SMEs produced a total of 2,016 human-AI rating pairs, indicating agreement or disagreement with the assessments of Validator, along with 131 instances of qualitative feedback. Analyses of SME judgments show strong system performance, with human-validated success rates ranging from 79.9% to 98.6% across the seven pedagogical dimensions. The analysis of qualitative feedback reveals that CODE-GEN achieves high reliability on dimensions well suited to computational verification and explicit criteria matching, including question clarity, code validity, concept alignment, and correct answer validity. In contrast, human expertise remains essential for dimensions requiring deeper instructional judgment, such as designing pedagogically meaningful distractors and providing high-quality feedback that reinforces understanding. These findings inform the strategic allocation of human and AI effort in AI-assisted educational content generation.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Agentic RAG, agents and memory, one of 15 directions in Retrieval-augmented generation. Builds on 16 of its 32 references that are in the map. First posted on arXiv 5 Apr 2026.

Builds on

16 of 32 references.

Closest ancestors · 1

Same direction, newest first

  1. 2026Evaluating adaptive and generative AI-based feedback and recommendations in a knowledge-graph-integrated programming learning system26 Mar

Other references · 15

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  2. 2017Billion-scale similarity search with GPUscited by 2,497
  3. 2024The Landscape of Emerging AI Agent Architectures for Reasoning, Planning, and Tool Calling: A Surveycited by 168
  4. 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directionscited by 50
  5. 2023A Comparative Study of AI-Generated (GPT-4) and Human-crafted MCQs in Programming Educationcited by 35
  6. 2024Automated Educational Question Generation at Different Bloom's Skill Levels using Large Language Models: Strategies and Evaluationcited by 29
  7. 2024Evaluating the Effectiveness of LLMs in Introductory Computer Science Education: A Semester-Long Field Studycited by 26
  8. 2025MIRAGE-Bench: LLM Agent is Hallucinating and Where to Find Themcited by 16
  9. 2024A Multi-AI Agent System for Autonomous Optimization of Agentic AI Solutions via Iterative Refinement and LLM-Driven Feedback Loopscited by 13
  10. 2025Evolution of AI in Education: Agentic Workflowscited by 13
  11. 2024Improving Assessment of Tutoring Practices using Retrieval-Augmented Generationcited by 11
  12. 2023Lessons from Building StackSpot AI: A Contextualized AI Coding Assistantcited by 7
3 more
  1. 2024Generating AI Literacy MCQs: A Multi-Agent LLM Approachcited by 6
  2. 2025From First Draft to Final Insight: A Multi-Agent Approach for Feedback Generationcited by 5
  3. 2025Facilitating Instructors-LLM Collaboration for Problem Design in Introductory Programming Classroomscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026ACE-TA: An Agentic Teaching Assistant for Grounded Q&A, Quiz Generation, and Code Tutoring
  2. 2026Cognitively Diverse Multiple-Choice Question Generation: A Hybrid Multi-Agent Framework with Large Language Models
  3. 2026Orchestrating LLM Agents for Scientific Research: A Pilot Study of Multiple Choice Question (MCQ) Generation and Evaluation
  4. 2025Multi-Agent Collaborative Framework For Math Problem Generation
  5. 2025Agentic Retrieval-Augmented Generation: A Survey on Agentic RAG
  6. 2025Towards Efficient Educational Chatbots: Benchmarking RAG Frameworks
  7. 2026Enhancing LLM Problem Solving via Tutor-Student Multi-Agent Interaction
  8. 2025RAGalyst: Automated Human-Aligned Agentic Evaluation for Domain-Specific RAG