← Latest papers
💻 computer science

Chatbot-Based Assessment of Code Understanding in Automated Programming Assessment Systems

This paper addresses the challenge of verifying student code understanding in the era of Large Language Models by conducting a saturation-based review of conversational assessment approaches and proposing a Hybrid Socratic Framework that integrates deterministic code analysis with dual-agent conversational verification to ensure academic integrity.

Original authors: Eduard Frankford, Erik Cikalleshi, Ruth Breu

Published 2026-04-09
📖 5 min read🧠 Deep dive

Original authors: Eduard Frankford, Erik Cikalleshi, Ruth Breu

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

The Big Problem: The "Copy-Paste" Cheat Code

Imagine you are learning to cook. In the past, if you wanted to prove you knew how to make a lasagna, you had to cook it from scratch in the kitchen. If the teacher tasted it and it was good, you passed.

But now, imagine a super-smart robot (an AI like ChatGPT) can cook the lasagna for you in seconds. You can hand the teacher a perfect lasagna, but you have no idea how to chop an onion or what "simmer" means. You passed the test, but you didn't learn anything.

This is exactly what is happening in computer science classes today. Students can use AI to write perfect code, pass the automated tests, and get an "A," but they don't actually understand how the code works.

The Solution: The "Socratic Interrogator"

The authors of this paper propose a new way to test students. Instead of just checking if the code works, they want to check if the student knows why it works.

They suggest using a Chatbot not as a helper, but as a tough, curious interviewer. Think of it like a job interview where the interviewer doesn't just look at your resume; they ask you to explain exactly how you solved a specific problem.

How They Studied the Problem

The researchers looked at dozens of existing tools that try to do this. They found three main types of "interviewers":

  1. The Scripted Robot (Rule-Based): This is like a game show host with a strict script. It asks, "Did you use a loop?" If yes, it asks, "What was the starting number?" It's very consistent but can't handle weird or creative answers. It's like a vending machine: you put in a coin, you get a specific snack.
  2. The Chatty Genius (LLM-Based): This uses advanced AI to have a natural conversation. It can ask follow-up questions like a human teacher. However, it has a flaw: sometimes it gets too helpful and just gives the answer, or it "hallucinates" (makes things up). It's like a brilliant but slightly distracted professor who might accidentally cheat for you.
  3. The Hybrid Detective (The Best of Both): This combines the strict rules of the robot with the natural conversation of the genius. It uses the robot to check the facts and the AI to ask the questions.

The New Idea: The "Hybrid Socratic Framework"

The paper proposes a new system called the Hybrid Socratic Framework. Here is how it works, using a Car Mechanic analogy:

Imagine you bring your car to a shop. The mechanic (the system) sees the car is running (the code passes the test). But to prove you fixed it, they don't just take your word for it.

  1. The Two-Avatar System: The system uses two AI "agents" working together:

    • The Instructor: This agent looks at your code and asks specific questions based on what it sees. "Hey, I see you used a loop here. If I change the number 5 to 10, what happens to the tire pressure?"
    • The Verifier: This agent listens to your answer and checks it against the actual facts of your code. It doesn't care if your English is fancy; it cares if your logic matches the car's engine.
  2. The "No Cheating" Rules:

    • Randomized Questions: The system doesn't just ask, "How does this work?" It asks, "What happens to variable 'X' at the exact moment the loop stops?" This makes it impossible to just copy-paste a generic AI answer because the question is specific to your specific code.
    • Step-by-Step Reasoning: You can't just give the final answer. You have to walk the mechanic through your thought process, step-by-step.
    • The "No Direct Answers" Rule: If you ask the chatbot, "Just fix this for me," the chatbot is programmed to say, "Nope, I can't do that. But I can tell you which part of the engine is making a noise."

Why This Matters

The paper argues that we shouldn't ban AI in schools. Instead, we should use AI to verify that students are doing the thinking.

  • Old Way: Did the code run? (Yes/No)
  • New Way: Did the code run? AND Can you explain to me, in your own words, exactly why it ran that way?

The Catch (Limitations)

The authors admit this isn't perfect yet.

  • Privacy: You don't want your code sent to a giant cloud server if it's a secret project.
  • Cost: Running these smart AI conversations costs money and computing power.
  • Trust: We need to make sure the AI isn't grading unfairly or getting confused.

The Bottom Line

This paper suggests that the future of grading isn't about banning AI, but about changing the game. Instead of just testing if the code works, we should use smart chatbots to play "20 Questions" with students, forcing them to prove they are the ones driving the car, not just the passenger.

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 →