arXiv
Programming feedback turns one edit into a class-wide check
AI feedback for programming classes becomes more trustworthy when a teacher can turn a correction into a rule and inspect that rule before it spreads. The authors built ValiAssist, and in a lab study its validated feedback met 91% of participants’ own criteria. In a university programming lab, the same process could remove overly revealing hints from many submissions if instructors catch rules that overgeneralize.
An LLM can write a comment for every programming assignment in a class. That does not make the comments safe to use. A fluent message may misunderstand the code, clash with the teacher’s policy, reveal the answer, or send a student toward the wrong idea. The teacher still has to inspect submissions and feedback one by one.
Writing all the rules in advance is not much easier. Often, a teacher discovers the right rule only after seeing a particular mistake. An edit to one comment shows what the teacher wants changed, but it does not say exactly when that change should happen again. The same example could support several different rules. If one mistaken rule is applied to a large batch, its error can reach many students before anyone notices.
From a teacher’s edit to a checkable rule
ValiAssist is designed to turn that local judgment into something a teacher can inspect. An instructor starts with an AI-generated comment for one piece of code. They can edit the text directly, discuss the change with an AI assistant, or comment on the code, error message, or feedback. ValiAssist uses those actions, along with the original and revised material, to suggest a rule.
The rule has a simple form: when something is true, then make a change. The conditions can ask whether the code or feedback has something, lacks something, uses a particular style, or has a certain length. The actions can add, remove, replace, or revise text. Some checks, such as exact wording and length, are done directly by the software. Other checks, such as whether two passages have the same meaning or style, are judged by an LLM.
The important difference is that the rule is not hidden inside a prompt. ValiAssist shows the text spans that led it to match a condition. It can warn when rules may duplicate, refine, or conflict with one another. The instructor can add examples, change the rule, and inspect the results before applying it to the rest of the code-feedback pairs.
In this sense, one edit becomes a class-wide check only after the teacher has examined what the edit means. The system spreads the checking, not blind trust in the first judgment.
What the early test found
The authors built ValiAssist as a web system and compared it with an approach in which instructors described criteria in ordinary language. In a lab study with 16 participants, feedback checked with ValiAssist satisfied 91% of the participants’ own criteria, compared with 57% for the natural-language approach. Participants also corrected problematic criteria more accurately with ValiAssist. They made more edits to the criteria too, suggesting that the visible rules encouraged active inspection rather than passive acceptance.
That result does not establish that the system is ready for a real course. The technical test used 40 pairs of revision intentions and 240 code-feedback cases. The study used data from an introductory Python course, took place in a lab, and did not run the system through a full term or across a class of hundreds of students.


A teacher’s rulebook, kept under review
Picture a university programming lab. A teaching assistant sees that an AI hint gives away too much of the solution. The assistant fixes that one hint. Before changing the remaining submissions, ValiAssist displays the passages it thinks match the same problem. The assistant can accept the rule, narrow it, add an example, or reject it. If the rule holds, students receive guidance without being handed the answer.
Over time, recurring decisions could become a maintained library of teaching rules instead of a series of repeated corrections. That could help instructors impose their own teaching strategy on large batches of AI-generated feedback, while giving educational software a workflow that can be audited and repaired.
The condition is strict: instructors must keep checking where rules generalize. Assignments and student mistakes change, and a rule that fits one example may overreach on an unfamiliar one. ValiAssist makes that problem visible, but it does not remove the teacher’s responsibility to decide where the rule should stop.
Sources
arXiv, “ValiAssist: Scaling LLM-generated Programming Feedback Validation by Demonstration”