Supervised Fine-Tuning LLMs to Behave as Pedagogical Agents in Programming Education
Emily Ross, Yuval Kansal, Jake Renzella, Alexandra Vassar, Andrew, Taylor

TL;DR
This paper introduces GuideLM, a fine-tuned large language model designed for programming education, which enhances pedagogical effectiveness by providing clearer, more Socratic guidance, despite a slight decrease in accuracy.
Contribution
The paper presents a novel supervised fine-tuning approach to adapt LLMs for educational use, improving pedagogical qualities over off-the-shelf models.
Findings
GuideLM increases Socratic guidance by 8%.
GuideLM improves economy of words by 58%.
Fine-tuning enhances pedagogical effectiveness despite slight accuracy reduction.
Abstract
Large language models (LLMs) are increasingly being explored in higher education, yet their effectiveness as teaching agents remains underexamined. In this paper, we present the development of GuideLM, a fine-tuned LLM designed for programming education. GuideLM has been integrated into the Debugging C Compiler (DCC), an educational C compiler that leverages LLMs to generate pedagogically sound error explanations. Previously, DCC relied on off-the-shelf OpenAI models, which, while accurate, often over-assisted students by directly providing solutions despite contrary prompting. To address this, we employed supervised fine-tuning (SFT) on a dataset of 528 student-question/teacher-answer pairs, creating two models: GuideLM and GuideLM-mini, fine-tuned on ChatGPT-4o and 4o-mini, respectively. We conducted an expert analysis of 400 responses per model, comparing their pedagogical…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsBalanced Selection
