journal article·2025-12-11Open access

Fine-Tuning Generative AI with Domain Question Banks: Evaluating Multi-Type Question Generation and Grading

Chien-Hung Lai, You-Jen Chen, Ze-Ping Chen

Applied Sciences· Volume 15· Issue 24

Abstract

This study examines the effectiveness of a fine-tuned generative AI system—trained with a domain question bank—for question generation and automated grading in programming education, and evaluates its instructional usability. Methodologically, we constructed an annotated question bank covering nine item types and, under a controlled environment, compared pre- and post-fine-tuning performance on question-type recognition and answer grading using Accuracy, Macro Precision, Macro Recall, and Macro F1. We also collected student questionnaires and open-ended feedback to analyze subjective user experience. Results indicate that the accuracy of question-type recognition improved from 0.6477 to 0.8409, while grading accuracy increased from 0.9474 to 0.9605. Students’ subjective perceptions aligned with these quantitative trends, reporting higher ratings for grading accuracy and question generation quality; overall interactive experience was moderately high, though system speed still requires improvement. These findings provide course-aligned empirical evidence that fine-tuning with domain data can jointly enhance the effectiveness and usability of both automatic question generation and automated grading.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Intelligent Tutoring Systems and Adaptive Learning · Teaching and Learning Programming · Topic Modeling

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Information and Computer Engineering, Chung Yuan Christian University, Taoyuan 320314, Taiwan

Undergraduate Program in College of Electrical Engineering and Computer Science, Chung Yuan Christian University, Taoyuan 320314, Taiwan

References (37)

Show source-provided references
1. Holmes, W., and Miao, F. (2023). Guidance for Generative AI in Education and Research, Unesco Publishing.
2. Role of AI chatbots in education: Systematic literature review10.1186/s41239-023-00426-1 ↗
3. Large Language Model-Based Chatbots in Higher Education10.1002/aisy.202400429 ↗
4. Improving large language model applications in biomedicine with retrieval-augmented generation: A systematic review, meta-analysis, and clinical development guidelines10.1093/jamia/ocaf008 ↗
5. Belmar, H. (2022). Review on the teaching of programming and computational thinking in the world. Front. Comput. Sci., 4.10.3389/fcomp.2022.997222 ↗
6. Bauer, Y., Leal, J.P., and Queirós, R. (2024, January 27–28). Authoring Programming Exercises for Automated Assessment Assisted by Generative AI. Proceedings of the 5th International Computer Programming Education Conference (ICPEC 2024), Lisbon, Portugal.
7. Sarsa, S., Denny, P., Hellas, A., and Leinonen, J. (2022, January 7–11). Automatic generation of programming exercises and code explanations using large language models. Proceedings of the 2022 ACM Conference on International Computing Education Research-Volume 1, Lugano, Switzerland.10.1145/3501385.3543957 ↗
8. Bugs in large language models generated code: An empirical study10.1007/s10664-025-10614-4 ↗
9. Is your code generated by chatgpt really correct? rigorous evaluation of large language models for code generation
10. Piccolo, S.R., Denny, P., Luxton-Reilly, A., Payne, S.H., and Ridge, P.G. (2023). Evaluating a large language model’s ability to solve programming exercises from an introductory bioinformatics course. PLoS Comput. Biol., 19.10.1371/journal.pcbi.1011511 ↗
11. Yu, Y., Krantz, A., and Lobczowski, N.G. (2025). From Recall to Reasoning: Automated Question Generation for Deeper Math Learning through Large Language Models. arXiv.10.1007/978-3-031-98462-4_52 ↗
12. Higher order prompting: Applying Bloom’s revised taxonomy to the use of large language models in higher education10.21428/8c225f6e.0915c17e ↗
13. Intrinsic and Contextual Factors Impacting Student Ratings of Automatically Generated Questions: A Large-Scale Data Analysis
14. Lodovico Molina, I., Švábenský, V., Minematsu, T., Chen, L., Okubo, F., and Shimada, A. (2024, January 16–20). Comparison of Large Language Models for Generating Contextually Relevant Questions. Proceedings of the European Conference on Technology Enhanced Learning, Krems, Austria.10.1007/978-3-031-72312-4_18 ↗
15. A systematic review of automatic question generation for educational purposes10.1007/s40593-019-00186-y ↗
16. Sovietov, P. (2021, January 24–25). Automatic generation of programming exercises. Proceedings of the 2021 1st International Conference on Technology Enhanced Learning in Higher Education (TELE), Lipetsk, Russian.10.1109/TELE52840.2021.9482762 ↗
17. Radošević, D., Orehovački, T., and Stapić, Z. (2010, January 22–24). Automatic on-line generation of student’s exercises in teaching programming. Proceedings of the Radošević, D., Orehovački, T., Stapić, Z:” Automatic On-line Generation of Students Exercises in Teaching Programming”, Central European Conference on Information and Intelligent Systems, CECIIS, Varaždin, Croatia.
18. A review on question generation from natural language text
19. Question generation based on chat-response conversion10.1002/cpe.5584 ↗
20. Generation of multiple-choice questions from textbook contents of school-level subjects10.1109/TLT.2022.3224232 ↗
21. Smart generation of code tracing questions for assessment in introductory programming10.1002/cae.22567 ↗
22. Martin, B., and Mitrovic, A. (2002, January 2–7). Automatic Problem Generation in Constraint-Based Tutors. Proceedings of the International Conference on Intelligent Tutoring Systems, San Sebastian, Spain.10.1007/3-540-47987-2_42 ↗
23. Sychev, O., and Shashkov, D. (2025). Mass Generation of Programming Learning Problems from Public Code Repositories. Big Data Cogn. Comput., 9.10.3390/bdcc9030057 ↗
24. O’Rourke, E., Butler, E., Díaz Tolentino, A., and Popović, Z. (2019, January 25–29). Automatic Generation of Problems and Explanations for an Intelligent Algebra Tutor. Proceedings of the International Conference on Artificial Intelligence in Education, Chicago, IL, USA.10.1007/978-3-030-23204-7_32 ↗
25. Association questions on knowledge retention10.1007/s11092-020-09337-5 ↗
26. Lai, C.-H., and Lin, C.-Y. (2025). Analysis of Learning Behaviors and Outcomes for Students with Different Knowledge Levels: A Case Study of Intelligent Tutoring System for Coding and Learning (ITS-CAL). Appl. Sci. (2076-3417), 15.10.3390/app15041922 ↗
27. Detection of SQL injection vulnerability in embedded SQL10.1587/transinf.2019EDL8143 ↗
28. Yuan, Y., Lu, Y., Zhu, K., Huang, H., Yu, L., and Zhao, J. (2023). A Static Detection Method for SQL Injection Vulnerability Based on Program Transformation. Appl. Sci., 13.10.3390/app132111763 ↗
29. Research on construction and practice of precision teaching classroom for university programming courses10.1109/ACCESS.2023.3240105 ↗
30. Automatic feedback and assessment of team-coding assignments in a DevOps context10.1186/s41239-023-00386-6 ↗
31. Code-quality evaluation scheme for assessment of student contributions to programming projects10.1016/j.jss.2022.111273 ↗
32. Hart, R., Hays, B., McMillin, C., Rezig, E.K., Rodriguez-Rivera, G., and Turkstra, J.A. (2023, January 15–18). Eastwood-tidy: C linting for automated code style assessment in programming courses. Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1, Toronto, ON, Canada.10.1145/3545945.3569817 ↗
33. ProgEdu4Web: An automated assessment tool for motivating the learning of web programming course10.1002/cae.22770 ↗
34. Generative Artificial Intelligence-Based Gamified Programming Teaching System: Promoting Peer Competition and Learning Motivation
35. Zhang, J., and Liu, K. (2024, January 6–8). JavaLLM: A Fine-Tuned LLM for Java Programming Education. Proceedings of the 2024 8th International Symposium on Computer Science and Intelligent Control (ISCSIC), Zhengzhou, China.10.1109/ISCSIC64297.2024.00064 ↗
36. On the Effectiveness of Large Language Models in Domain-Specific Code Generation
37. Šarčević, A., Tomičić, I., Merlin, A., and Horvat, M. (2024, January 20–24). Enhancing Programming Education with Open-Source Generative AI Chatbots. Proceedings of the 2024 47th MIPRO ICT and Electronics Convention (MIPRO), Opatija, Croatia.10.1109/MIPRO60963.2024.10569736 ↗