Search and Filter

Repository Feedback

Your feedback helps us improve the repository's content relevance and usability. Please share your thoughts to help us better serve researchers and practitioners.

Submit feedback

Submit a research study

Contribute to the repository:

Add a paper

Humanizing Automated Programming Feedback: Fine-Tuning Generative Models with Student-Written Feedback

Authors
Victor-Alexandru Padurean,
Tung Phung,
Nachiket Kotalwar,
Michael Liut,
Juho Leinonen,
Paul Denny,
Adish Singla
Date
Publisher
arXiv
The growing need for automated and personalized feedback in programming education has led to recent interest in leveraging generative AI for feedback generation. However, current approaches tend to rely on prompt engineering techniques in which predefined prompts guide the AI to generate feedback. This can result in rigid and constrained responses that fail to accommodate the diverse needs of students and do not reflect the style of human-written feedback from tutors or peers. In this study, we explore learnersourcing as a means to fine-tune language models for generating feedback that is more similar to that written by humans, particularly peer students. Specifically, we asked students to act in the flipped role of a tutor and write feedback on programs containing bugs. We collected approximately 1,900 instances of student-written feedback on multiple programming problems and buggy programs. To establish a baseline for comparison, we analyzed a sample of 300 instances based on correctness, length, and how the bugs are described. Using this data, we fine-tuned open-access generative models, specifically Llama3 and Phi3. Our findings indicate that fine-tuning models on learnersourced data not only produces feedback that better matches the style of feedback written by students, but also improves accuracy compared to feedback generated through prompt engineering alone, even though some student-written feedback is incorrect. This surprising finding highlights the potential of student-centered fine-tuning to improve automated feedback systems in programming education.
Study at a glance
  • Question: Can training AI on student-written feedback improve automated advice for students learning to code?
  • Setting and data: Approximately 1,900 instances of student-written feedback across multiple buggy programming problems.
  • Method: Model development and evaluation comparing AI trained on student feedback against standard prompt engineering (fine-tuning).
Why it matters

Current AI programming feedback relies on predefined prompts, resulting in rigid and constrained responses. These approaches fail to accommodate the diverse needs of students and do not reflect the style of human-written feedback from tutors or peers.

Key findings
  • In programming education, training AI on student-written examples improved feedback accuracy compared to using standard prompt instructions alone.
  • AI trained on student feedback produced advice that more closely matched the natural style of human peer comments.
  • The AI generated more accurate feedback even though some of the student-written examples used to train it were incorrect.

Summary drafted with AI from the paper’s abstract and may contain errors. See the full paper for details.

What is the application?
Who age?