Objective
Learning by teaching is a method in which students explain a topic to someone else and learn it better themselves. Because classmates are not always available, researchers have built computer characters called teachable agents. A student teaches the agent, and the agent acts like a learner who asks questions and makes mistakes. Most older agents could only handle fixed problems and simple clicks, so students could not teach them in natural language.
Large language models such as ChatGPT can hold a conversation, so they could play the role of a student who needs help. This study tested that idea in programming education. The researchers asked three questions about a ChatGPT teachable agent:
- RQ1: What is its effect on students' knowledge gains?
- RQ2: What is its effect on students' programming skills?
- RQ3: What is its effect on students' self-regulated learning, meaning how well they plan, monitor and manage their own learning?
Methods
This was a controlled experiment with two groups. The paper says students were assigned to a group but does not explain how. An experiment like this can suggest whether a teaching method made a difference, but the small size limits how far the results can be trusted.
The study recruited 41 university students from two universities (34 males and 7 females), all with a computer science background and basic C++ skills. They were between 18 and 27 years old, with an average age of 21.2. All signed a consent form. Twenty were placed in the experimental group and 21 in the control group.
The learning task was the eight queens puzzle, a classic problem of placing eight queens on a chessboard so that none can attack another. Everyone first watched three online videos (about 30 minutes) covering the backtracking method, an explanation of the puzzle, and a step-by-step coding solution. After that:
- The experimental group taught a ChatGPT agent. The agent used the GPT-4 model and was given a prompt that made it act like a student seeking help, following a five-stage help-seeking model. The students had to guide it in plain language until its code solved the puzzle on an online judging platform. The agent was not set up to be always correct.
- The control group wrote the solution code on their own.
Each person had 1 hour, and a researcher watched their shared screens to prevent cheating. Before and after, students took a knowledge test (15 single-choice questions: 5 easy, 5 medium, 5 hard) and a self-regulated learning questionnaire (20 items on a five-point scale covering test anxiety, self-efficacy and cognitive strategies). Their pseudocode was scored on clearness, correctness and readability by two scorers whose ratings agreed closely (correlations of 0.833, 0.935 and 0.911). Group differences were tested with ANCOVA, which compares groups while adjusting for their pre-test scores.
Key Findings
Overall, the group that taught ChatGPT did better on knowledge and on some code quality measures, but not on correctness.
Knowledge
- The knowledge test average was 11.90 for the ChatGPT group and 10.76 for the video-only group. After adjusting for pre-test scores, the gap was 11.86 against 10.53, a statistically significant difference.
Programming skills
- Clearness of the pseudocode averaged 4.20 in the ChatGPT group and 3.29 in the video-only group. Readability averaged 2.91 against 2.81, and the authors report that both clearness and readability were significantly higher in the ChatGPT group.
- Correctness did not differ significantly. The averages were 3.81 for the ChatGPT group and 3.90 for the video-only group, so the control group scored slightly higher.
- On the judging platform, the ChatGPT group needed an average of 1.95 submissions to pass, against 2.90 for the control group.
Self-regulated learning
- Self-efficacy (confidence in one's ability) averaged 3.88 in the ChatGPT group and 3.54 in the control group, a significant difference.
- Cognitive strategies averaged 4.20 against 3.76, also significant.
- Test anxiety averaged 3.30 against 3.46. This difference was not significant.
What this means in plain terms
Students who taught the agent seemed to understand the algorithm better and wrote clearer code, and they reported more confidence and better learning strategies. The authors think the agent often wrote correct code, so students had fewer chances to practice finding bugs, which may explain why correctness did not improve. The paper's table labels two rows as Clearness, so the readability row is read here from the text and its position.
How big are the gaps
- The knowledge test had 15 points. The groups were about 1 point apart on average, which is a modest gap on a short test. The authors report a large effect size for knowledge (0.74), meaning the group difference was big compared with how much scores varied.
- Scores varied more within the ChatGPT group (standard deviation 2.09) than within the control group (1.02), so the average hides differences between individual students.
- The self-efficacy and cognitive strategy results come from a questionnaire that students filled in themselves, so they show how students described their own learning and not how they acted.
All of these results come from one short session on one task, with 20 and 21 students in the two groups.
Implications
The authors recommend that educators create tasks in which students teach or explain concepts to a ChatGPT agent in natural language, since this seemed to support deeper thinking. They also say designers of teachable agents should care about the learning process, not only whether the AI is correct. They suggest adding scenarios where the AI makes purposeful mistakes so that students must find and fix them, and they suggest that a less advanced model may give more of those chances than GPT-4. The authors see the approach as a way to build self-efficacy and learning strategies, and they say future work could add prompts that ask students to set goals, check their understanding and reflect on their teaching.
Our reading (not the authors' recommendation): A programming teacher could try a short activity in which students explain a problem to an AI helper before writing their own code, and then have a classmate or the teacher check the result.
Our reading (not the authors' recommendation): Because correctness did not improve, a course using this method should still include debugging practice and testing, so students do not rely on the agent to supply working code.
Our reading (not the authors' recommendation): School leaders should treat these results as promising but not enough to change a whole course, given the small sample and the single task.
Limitations
The authors name four limits. They did not collect or analyze the conversations between students and the agent, so they cannot say how good the teaching messages or the agent's replies were. The sample was small, which may bias the results and calls for careful reading. The study looked only at short-term results, not at whether students kept their knowledge later. It also did not compare results by age, background or gender.
The paper does not mention, but how students were assigned to groups is not described, so the groups may not have been equal at the start.
The paper does not mention, but 34 of the 41 students were male and all were computer science students, so the results may not apply to other students or subjects.
The paper does not mention, but the control group had no teaching partner of any kind, so the study cannot say whether the benefit came from ChatGPT or from the act of explaining to anyone.
The paper does not mention, but the study covered one puzzle in one session, and the self-regulated learning scores came from student questionnaires, which are self-reported. The paper is also a preprint posted on arXiv, so it has not been peer reviewed in this form.
Future Directions
The authors suggest several next steps:
- Collect and study the chat conversations, including the quality of students' teaching messages and the agent's questions, to design better support when students get stuck.
- Run larger studies to check whether the results hold.
- Follow students over a longer time to see whether knowledge and skills last.
- Compare different groups of students, such as by age, background and gender.
- Find ways to build self-regulated learning strategies, such as goal setting, monitoring and reflection, into the conversations with a ChatGPT teachable agent.
An open question the study leaves is how a teachable agent can be tuned to make occasional mistakes, so that students practice error correction.
The authors also see a need to test whether other tasks and school subjects give the same results, since this study used only one puzzle in one programming language.
The bottom line: In this small experiment with 41 computer science students, teaching a GPT-4 agent to solve the eight queens puzzle was linked to higher knowledge scores, clearer code, more confidence and better learning strategies than watching videos alone. Code correctness did not improve, and the agent may have left less room to practice debugging. The sample was small, the session short and the paper is a preprint, so the results are early. Teachers can try the idea while keeping debugging practice in place.
Comments 0
No comments yet. Be the first to share a thought.
Get new research summaries by email
Every new summary each morning, a weekly digest, or a monthly report. You choose, and you can unsubscribe in one click.