{"type":"ScholarlyArticle","title":"How to Teach Programming in the AI Era? Using LLMs as a Teachable Agent for Debugging (Extended Abstract)","authors":[{"name":"Qianou Ma","slug":"qianou-ma","given":"Qianou","family":"Ma","affiliation":""},{"name":"Hua Shen","slug":"hua-shen","given":"Hua","family":"Shen","affiliation":""},{"name":"Ken Koedinger","slug":"ken-koedinger","given":"Ken","family":"Koedinger","affiliation":""},{"name":"Tongshuang Wu","slug":"tongshuang-wu","given":"Tongshuang","family":"Wu","affiliation":""}],"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.\r\nWe 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.","doi":"10.24963/ijcai.2025/1217","url":"https://ijcai.org/proceedings/2025/1217","pdf":"https://ijcai.org/proceedings/2025/1217.pdf","markdown":"https://ijcai.org/proceedings/2025/1217.md","bibtex":"https://ijcai.org/proceedings/2025/bibtex/1217","volume":{"slug":"2025","title":"Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence","short_title":"IJCAI 2025","url":"https://ijcai.org/proceedings/2025/","year":2025,"location":"Montreal, Canada","dates":"16-22 August 2025","editors":"James Kwok","isbn":"978-1-956792-06-5","publisher":"International Joint Conferences on Artificial Intelligence Organization","doi_prefix":"10.24963/ijcai.2025"},"section":"Sister Conferences Best Papers","track":"Sister Conferences Best Papers","number":1217,"pages":{"first":10922,"last":10926},"keywords":["Sister Conferences Best Papers: Humans and AI","Sister Conferences Best Papers: Multidisciplinary Topics and Applications","Sister Conferences Best Papers: Agent-based and Multi-agent Systems"],"videos":[],"references":[],"license_note":"Copyright International Joint Conferences on Artificial Intelligence."}