Proceedings

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

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Sister Conferences Best Papers. Pages 10922-10926.

https://doi.org/10.24963/ijcai.2025/1217

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.

  1. [Becker et al., 2023] Brett A Becker, Paul Denny, James Finnie-Ansley, Andrew Luxton-Reilly, James Prather, and Eddie Antonio Santos. Programming is hard-or at least it used to be: Educational opportunities and challenges of ai code generation. In Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1, pages 500-506, 2023.
  2. [Blair et al., 2007] Kristen Blair, Daniel L Schwartz, Gau- tam Biswas, and Krittaya Leelawong. Pedagogical agents for learning by teaching: Teachable agents. Educ. Technol. Res. Dev., 47(1):56-61, 2007.
  3. [Dakhel et al., 2023] Arghavan Moradi Dakhel, Vahid Maj- dinasab, Amin Nikanjam, Foutse Khomh, Michel C Des- marais, and Zhen Ming Jack Jiang. Github copilot ai pair programmer: Asset or liability? Journal of Systems and Software, 203:111734, 2023.
  4. [Dohmke, 2023] Thomas Dohmke. GitHub copi- lot x: The AI-powered developer experience. https://github.blog/2023-03-22-github-copilot-x-the-ai- powered-developer-experience/, March 2023. Accessed: 2023-9-5. Link
  5. [Edwards and Shams, 2014] Stephen H Edwards and Zalia Shams. Do student programmers all tend to write the same software tests? In Proceedings of the 2014 conference on Innovation & technology in computer science education, ITiCSE '14, pages 171-176, New York, NY, USA, June 2014. Association for Computing Machinery.
  6. [Ganguli et al., 2022] Deep Ganguli, Danny Hernandez, Liane Lovitt, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova Dassarma, Dawn Drain, Nelson El- hage, et al. Predictability and surprise in large generative models. In Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency, pages 1747- 1764, 2022.
  7. [Lukasová, 1979] Alena Lukasová. Hierarchical agglomer- ative clustering procedure. Pattern Recognition, 11(5- 6):365-381, 1979.
  8. [Ma et al., 2023] Qianou Ma, Tongshuang Wu, and Kenneth Koedinger. Is AI the better programming partner? Human- Human pair programming vs. Human-AI pAIr program- ming. arXiv preprint arXiv:2306.05153, 2023.
  9. [Ma et al., 2024] Qianou Ma, Hua Shen, Kenneth Koedinger, and Tongshuang Wu. How to teach pro- gramming in the AI era? using llms as a teachable agent for debugging. International Conference on Artificial Intelligence in Education (AIED), 2024.
  10. [MacNeil et al., 2022] Stephen MacNeil, Andrew Tran, Dan Mogil, Seth Bernstein, Erin Ross, and Ziheng Huang. Generating diverse code explanations using the gpt-3 large language model. In Proceedings of the 2022 ACM Con- ference on International Computing Education Research- Volume 2, pages 37-39, 2022.
  11. [McCauley et al., 2008] Renee McCauley, Sue Fitzgerald, Gary Lewandowski, Laurie Murphy, Beth Simon, Lynda Thomas, and Carol Zander. Debugging: A review of the literature from an educational perspective. Computer Sci- ence Education, 18(2):67-92, June 2008.
  12. [News, 2014] Ycombinator Hacker News. Why don't schools teach debugging? https://news.ycombinator.com/ item?id=7215870, February 2014. Accessed: 2023-9-8. Link
  13. [Savelka et al., 2023] Jaromir Savelka, Arav Agarwal, Mar- shall An, Chris Bogart, and Majd Sakr. Thrilled by your progress! large language models (gpt-4) no longer strug- gle to pass assessments in higher education programming courses. arXiv preprint arXiv:2306.10073, 2023.
  14. [Shahriar and Matsuda, 2023] Tasmia Shahriar and Noboru Matsuda. What and how you explain matters: Inquisi- tive teachable agent scaffolds knowledge-building for tutor learning. In International Conference on Artificial Intelli- gence in Education, pages 126-138. Springer, 2023.
  15. [Whalley et al., 2021] Jacqueline Whalley, Amber Settle, and Andrew Luxton-Reilly. Analysis of a process for in- troductory debugging. In Proceedings of the 23rd Aus- tralasian Computing Education Conference, ACE '21, pages 11-20. Association for Computing Machinery, March 2021.
  16. [Wu et al., 2022] Tongshuang Wu, Michael Terry, and Car- rie Jun Cai. AI chains: Transparent and controllable Human-AI interaction by chaining large language model prompts. In Proceedings of the 2022 CHI Conference on Human Factors in Computing Systems, number Article 385 in CHI '22, pages 1-22, New York, NY, USA, 2022. Association for Computing Machinery.
  17. [Xie et al., 2023] Jian Xie, Kai Zhang, Jiangjie Chen, Renze Lou, and Yu Su. Adaptive chameleon or stubborn sloth: Unraveling the behavior of large language models in knowledge clashes, 2023.
  18. [Xu and Rajlich, 2004] Shaochun Xu and V Rajlich. Cogni- tive process during program debugging. In Proceedings of the Third IEEE International Conference on Cognitive Informatics, 2004., pages 176-182. IEEE, August 2004.
  19. [Zeller, 2009] Andreas Zeller. Why programs fail: A guide to systematic debugging. Morgan Kaufmann, Oxford, Eng- land, 2 edition, June 2009.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards