- Meta-analysis
- RCT
- Small study
- Preprint
- Opinion
A Classroom Study of LLM-Generated Feedback Intervention in Introductory Programming
Hasnain Heickal, Andrew Lan (2026), arXiv
Researchers at a U.S. R1 institution tested how different types of AI-generated feedback affect students in an introductory Python programming course during the Fall 2025 semester. In the study, students who submitted incorrect code were assigned to one of three conditions via a randomized protocol: they got either hints in natural language, failing test cases made by AI, or no AI feedback at all.
The study involved 215 consenting students who submitted at least one solution, out of 365 enrolled in the course. The released dataset, ProgFeed, contains 6,693 submissions from these students across 17 labs. The OpenAI API, which got the problem description and the student's code to make the response, produced every piece of feedback using gpt-4o-mini.
The authors discovered a strong link between natural language feedback and both higher completion rates and quicker movement toward correct solutions. In 92.5% of cases, this type of feedback was found to be overwhelmingly helpful. In contrast, test case feedback showed mixed results. While valid test cases were associated with higher pass rates, they did not reduce the number of subsequent submissions students made.
The authors argue that the effectiveness of natural language hints is consistent with a cognitive load explanation, suggesting that novice learners struggle to interpret raw test failures. They think the fact that submission counts did not drop for test case feedback indicates that introductory students may not have the systematic debugging skills required to use a counterexample efficiently.
The authors acknowledge that because feedback was triggered only by incorrect submissions, the analyses are associative rather than causal, even though conditions were randomized within labs. Because the study leaves out expert-authored human feedback as a baseline, it is impossible to judge how AI-generated modalities stack up against high-quality instructor feedback.
An AI model on our own servers drafted this summary from the study. How we check our work