PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 20, 20250 citations

How to Teach Programming in the AI Era? Using LLMs as a Teachable Agent for Debugging (Extended Abstract)

View Full Paper
QMQianou MaHSHua ShenKKKenneth R. Koedinger

Key Points

  • HypoCompass shows a 12% improvement in student debugging performance.
  • The system generates training materials, outperforming human counterparts in efficiency by fourfold.
  • Students hypothesize code errors while LLM-agents assist in code completion within a learning-by-teaching framework.
  • LLMs act as AI pair programmers, enhancing educational methods in computer science.

Abstract

Large Language Models (LLMs) excel at generating content at impeccable speeds. However, they are imperfect and still make various mistakes. In Computer Science education, as LLMs are widely recognized as "AI pair programmers," it becomes increasingly important to train students on evaluating and debugging LLM-generated codes. In this work, we introduce HypoCompass, a novel system to facilitate deliberate practice on debugging, where human novices play the role of Teaching Assistants and help LLM-powered teachable agents debug code. We enable effective task delegation between students and LLMs in this learning-by-teaching environment: students focus on hypothesizing the cause of code errors, while adjacent skills like code completion are offloaded to LLM-agents. Our evaluations demonstrate that HypoCompass generates high-quality training materials (e.g., bugs and fixes), outperforming human counterparts fourfold in efficiency, and significantly improves student performance on debugging by 12% in the pre-to-post test.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Ma et al. (2025) studied this question.

synapsesocial.com/papers/68d469d631b076d99fa66e29https://doi.org/10.24963/ijcai.2025/1217
Ask AI
Helpful
Bookmark
Share
View Full Paper