How to Teach Programming in the AI Era? Using LLMs as a Teachable Agent for Debugging
arXiv:2310.05292 · doi:10.1007/978-3-031-64302-6_19
Abstract
Large Language Models (LLMs) now excel at generative skills and can create content at impeccable speeds. However, they are imperfect and still make various mistakes. In a Computer Science education context, as these models are widely recognized as "AI pair programmers," it becomes increasingly important to train students on evaluating and debugging the LLM-generated code. 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.
14 pages, 6 figures
References in corpus (3)
Cited by in corpus (9)
- What Should We Engineer in Prompts? Training Humans in Requirement-Driven LLM Use
- Exploring Knowledge Tracing in Tutor-Student Dialogues using LLMs
- Combining Large Language Models with Tutoring System Intelligence: A Case Study in Caregiver Homework Support
- InstructPipe: Generating Visual Blocks Pipelines with Human Instructions and LLMs
- Partnering with AI: A Pedagogical Feedback System for LLM Integration into Programming Education
- SlideItRight: Using AI to Find Relevant Slides and Provide Feedback for Open-Ended Questions
- Bot-Driven Development: From Simple Automation to Autonomous Software Development Bots
- "GenAI Defaults to Bias!" Gamify AI Literacy Through Reflections on Prompts
- From Untamed Black Box to Interpretable Pedagogical Orchestration: The Ensemble of Specialized LLMs Architecture for Adaptive Tutoring