Learning-by-teaching with ChatGPT: The effect of teachable ChatGPT agent on programming education
Angxuan Chen, Yuang Wei, Huixiao Le, Yan Zhang

TL;DR
This study explores using ChatGPT as a teachable agent in programming education, demonstrating its ability to enhance knowledge, coding skills, and self-regulated learning through natural language interactions.
Contribution
It introduces the novel application of ChatGPT as a teachable agent, highlighting its benefits and limitations in supporting active learning and self-regulation in programming education.
Findings
Improves students' programming knowledge and code quality.
Enhances self-regulated learning and self-efficacy.
Limited impact on error correction skills.
Abstract
This study investigates the potential of using ChatGPT as a teachable agent to support students' learning by teaching process, specifically in programming education. While learning by teaching is an effective pedagogical strategy for promoting active learning, traditional teachable agents have limitations, particularly in facilitating natural language dialogue. Our research explored whether ChatGPT, with its ability to engage learners in natural conversations, can support this process. The findings reveal that interacting with ChatGPT improves students' knowledge gains and programming abilities, particularly in writing readable and logically sound code. However, it had limited impact on developing learners' error-correction skills, likely because ChatGPT tends to generate correct code, reducing opportunities for students to practice debugging. Additionally, students' self-regulated…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsOnline Learning and Analytics · Artificial Intelligence in Healthcare and Education · AI in Service Interactions
