Teach AI How to Code: Using Large Language Models as Teachable Agents for Programming Education

Научите ИИ программировать: использование больших языковых моделей в качестве обучаемых агентов для обучения программированию
Hyoungwook Jin, Seong Hee Lee, Hyungyu Shin, Juho Kim
2024-05-11

large language modelslearning by teachingprogramming educationprompting pipelineteachable agents
This work investigates large language models (LLMs) as teachable agents for learning by teaching (LBT). LBT with teachable agents helps learners identify knowledge gaps and discover new knowledge. However, teachable agents require expensive programming of subject-specific knowledge. While LLMs as teachable agents can reduce the cost, LLMs’ expansive knowledge as tutees discourages learners from teaching. We propose a prompting pipeline that restrains LLMs’ knowledge and makes them initiate “why” and “how” questions for effective knowledge-building. We combined these techniques into TeachYou, an LBT environment for algorithm learning, and AlgoBo, an LLM-based tutee chatbot that can simulate misconceptions and unawareness prescribed in its knowledge state. Our technical evaluation confirmed that our prompting pipeline can effectively configure AlgoBo’s problem-solving performance. Through a between-subject study with 40 algorithm novices, we also observed that AlgoBo’s questions led to knowledge-dense conversations (effect size=0.71). Lastly, we discuss design implications, cost-efficiency, and personalization of LLM-based teachable agents.
1
A prompting pipeline constrains an LLM’s knowledge and elicits “why” and “how” questions to promote learners’ knowledge-building.
2
In a study with 40 algorithm novices, AlgoBo’s questions produced knowledge-dense conversations with an effect size of 0.71.
3
TeachYou combines the pipeline with AlgoBo, an LLM-based tutee chatbot that simulates prescribed misconceptions and knowledge gaps.
4
Technical evaluation showed that the prompting pipeline effectively configures AlgoBo’s problem-solving performance.
5
The study investigates large language models as teachable agents supporting learning by teaching in programming and algorithm education.

LLM-based teachable agents (AlgoBo) used in an algorithm-learning environment

The agents’ configured knowledge states, simulated misconceptions and unawareness, problem-solving performance, and question-driven effects on learners’ knowledge-building conversations

Publication Details
Publication Date
2024-05-11
Journal
Publisher
ISSN
Cited by
93
Access Type
Author Information
Authors
Hyoungwook Jin
Seong Hee Lee
Hyungyu Shin
Juho Kim
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%