Idea · Jul 15, 2026
Rubric-Grounded LLM Feedback for Code Readability in CS1: Scaling a Pilot and Closing the Structural-Formatting Gap
A small pilot found GPT-4 can generate rubric-aligned readability feedback on naming and commenting but consistently fails on structural formatting. This research scales the experiment to hundreds of real submissions, tests multiple LLMs with calibrated prompting, and measures whether augmented feedback reduces readability defects in subsequent student work.
What it would do
Ouh et al. (ITiCSE 2025) showed that GPT-4 can generate code readability feedback aligned with rubric criteria for naming and commenting, but only one of five test submissions received correct structural formatting feedback — the dimension that matters most for professional code style and that static linters alone cannot explain. This research extends the pilot in three directions. First, it scales evaluation from 5 to 500+ archived submissions from Pisan's Jolly Feedback system (CSS 142/143), enabling statistically reliable, per-dimension comparison of multiple LLMs (Claude, GPT-4o, open-weight models) with and without rubric-grounding prompts. Second, it tests whether a static analysis pre-pass (Clang-Tidy / Checkstyle) that flags structural violations before the LLM prompt closes the formatting gap — combining rule-based detection precision with LLM-generated pedagogical explanation. Third, Phase 2 tracks whether students who receive the augmented feedback on one submission show measurably fewer readability defects on their next, providing a first large-N causal estimate of code-style feedback efficacy. Phase 1 is entirely computational and requires no new IRB approval.