← Latest papers
💻 computer science

A Classroom Study of LLM-Generated Feedback Intervention in Introductory Programming

This paper presents a large-scale classroom study introducing the ProgFeed dataset to demonstrate that natural language AI-generated feedback significantly improves student completion rates and solution convergence in introductory programming compared to test case feedback or no feedback, highlighting the critical importance of feedback form and validity over mere presence.

Original authors: Hasnain Heickal, Andrew Lan

Published 2026-06-09
📖 4 min read☕ Coffee break read

Original authors: Hasnain Heickal, Andrew Lan

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are learning to cook a new, complicated recipe for the first time. You try it, and it tastes terrible. You need to know why it failed so you can fix it.

This paper is about a big experiment in a computer science classroom where students were learning to "cook" (write code) using a special AI chef (a Large Language Model) to help them. The researchers wanted to see which type of "chef's advice" actually helped students fix their dishes the fastest and most successfully.

Here is the breakdown of what they did and what they found, using simple analogies:

The Setup: Three Types of Chefs

The students were randomly assigned to one of three groups when they made a mistake in their code:

  1. The Silent Group (No AI): These students just saw a red light saying "Wrong" and a green light saying "Right" (like a simple pass/fail grade). They had to figure out the rest on their own.
  2. The "Bad Ingredient" Group (Test Case Feedback): The AI gave them a specific example of a "bad ingredient" that caused the dish to fail. For example, if the code was supposed to add numbers, the AI might say, "If you put in 5 and 5, you get 12 instead of 10." It's like showing them a specific ingredient that ruined the soup, but not telling them how to fix it.
  3. The "Hint" Group (Natural Language Feedback): The AI gave them a short, friendly sentence explaining the problem. For example, "You forgot to tell the computer to add the numbers together." It's like a chef whispering, "Hey, you missed a step in the instructions."

The Results: What Worked Best?

1. The "Hint" Group Won
Students who got the friendly, natural language hints were much more likely to eventually get the recipe right, and they got there faster.

  • The Analogy: Think of the code as a maze. The "Hint" group was given a map that said, "You're going the wrong way; turn left here." This helped them find the exit quickly.

2. The "Bad Ingredient" Group Struggled
Surprisingly, giving students a specific example of what went wrong (the "Bad Ingredient" group) didn't really help them overall. In fact, they didn't get better results than the group that got no help at all.

  • The Analogy: Imagine the AI handed the student a burnt piece of toast and said, "This is why your breakfast failed." The student looked at the burnt toast, but because they are beginners, they didn't know how to stop the toaster from burning the next slice. They kept trying different things randomly, often making the same mistake again.

3. The Quality of the "Bad Ingredient" Matters
The researchers found that the "Bad Ingredient" examples were only useful about two-thirds of the time. Sometimes the AI gave an example that was actually wrong or didn't make sense. When the example was correct, it was still hard for beginners to use it effectively.

The Big Takeaway

The main lesson from this study is that how you give feedback matters just as much as giving feedback.

  • Natural language hints act like a guide, translating the confusing computer errors into plain English that a beginner can understand.
  • Raw data examples (like test cases) are like handing someone a broken engine part without a manual. If the student doesn't already know how to fix engines, the broken part just confuses them.

The researchers concluded that for beginners, a simple, clear explanation is far more powerful than a complex technical example. They also released all the data from this experiment (called PROGFEED) so other researchers can study how students learn and how to build better AI teachers in the future.

In short: If you are teaching a beginner, don't just show them the mistake; explain why it happened in plain words. That's the key to helping them succeed.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →