Synthesizing High-Quality Programming Tasks with LLM-Based Expert and Student Agents

Synthesizing High-Quality Programming Tasks with LLM-Based Expert and Student Agents

Abstract

Generative AI is transforming computing education by enabling the automatic generation of personalized content and feedback. We investigate its capabilities in providing high-quality programming tasks to students. Despite promising advancements in task generation, a quality gap remains between AI-generated and expert-created tasks. The AI-generated tasks may not align with target programming concepts, could be incomprehensible to students, or may contain critical issues such as incorrect tests. Existing works often require interventions from human teachers for validation. We address these challenges by introducing PyTaskSyn, a novel synthesis technique that first generates a programming task and then decides whether it meets certain quality criteria to be given to students. The key idea is to break this process into multiple stages performed by expert and student agents simulated using both strong and weaker generative models. Through extensive evaluation, we show that PyTaskSyn significantly improves task quality compared to baseline techniques and showcases the importance of each specialized agent type in our validation pipeline. Additionally, we conducted user studies using our publicly available web application and show that PyTaskSyn can deliver high-quality programming tasks comparable to expert-designed ones while reducing workload and costs, and being more engaging than programming tasks that are available in online resources.

Grafik Top
Additional Information

https://arxiv.org/pdf/2504.07655

Grafik Top
Authors
  • Manh Hung, Nguyen
  • Sebastian, Tschiatschek
  • Victor-Alexandru, Pădurean
  • Alkis, Gotovos
  • Adish, Singla
Grafik Top
Shortfacts
Category
Paper in Conference Proceedings or in Workshop Proceedings (Paper)
Event Title
International Conference on Artificial Intelligence in Education, 2025
Divisions
Data Mining and Machine Learning
Subjects
Kuenstliche Intelligenz
Event Location
Palermo, Italy
Event Type
Conference
Event Dates
22-26 July 2025
Series Name
Springer Nature Switzerland, Lecture Notes in Computer Science
ISSN/ISBN
Electronic 1611-3349, Print ISSN 0302-9743
Page Range
pp. 77-91
Date
15 July 2025
Export
Grafik Top