Evaluating Diagnosis Correctness and Repair Reliability in LLM-Generated Feedback for Programming Education
Year: 2026
Type: dissertation
Abstract: Large language models (LLMs) are increasingly used for programming support in introductory computing education, where useful feedback should not only suggest a correct patch but also correctly identify the underlying bug and provide reliable confidence estimates---distinctions that evaluation often blurs. This thesis operationalises diagnosis correctness at the label level (agreement between the predicted bug family/location and the ground-truth injected label under a canonical-family normalisation) and presents an automatic pipeline that compares three prompting conditions on 217 paired injected samples derived from sanitized MBPP problems: direct diagnosis, execution feedback with answer leakage (EF-leaky), and execution feedback without answer leakage (EF-no-answer). Diagnosis is near ceiling under direct prompting (approximately 97\%, well above a 57\% majority-family baseline), so condition comparisons on diagnosis are underpowered. Strict repair success rises significantly under EF-leaky (85.3\% to 96.3\%, $p<0.001$) and modestly under EF-no-answer (89.4\%). A per-sample alignment of diagnosis-correctness changes against repair-success changes shows that only 2 of 24 newly-repaired EF-leaky samples (8.3\%) coincide with a wrong-to-right diagnosis flip (1 of 9, or 11.1\%, under EF-no-answer); the gain is concentrated in test-failure cases, a pattern consistent with the revealed expected outputs aiding the patching step rather than the diagnosis. Removing answer leakage produces a smaller mean patch-level expected calibration error (ECE; CIs disjoint), while the strict-repair ECE difference is in the same direction but not robust under bootstrap resampling, and the per-sample confidence signal remains weakly informative in all conditions. These findings argue for treating diagnosis correctness, repair success, and confidence calibration as separate evaluation axes when judging LLM feedback for programming education.
Source: Aaltodoc (Aalto University)
Author: Zhang, Wenyue
Institution: Aalto University
Language: English
Subfield: Computer Science Applications
Field: Computer Science
Domain: Physical Sciences
SDG: Quality education
Open Access status: green
OpenAlex ID: W7204018340
