mlsanityData to 14 Oct 2026

Supervised Fine-Tuning LLMs to Behave as Pedagogical Agents in Programming Education

arXiv 2502.20527 ↗First posted 27 Feb 2025cs.CL cs.CYcited by 4

On the map: LLM agents and tool use → Educational agents and math problem solving

Abstract (arXiv)

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 effectiveness against base OpenAI models. Our evaluation, grounded in constructivism and cognitive load theory, assessed factors such as conceptual scaffolding, clarity, and Socratic guidance. Results indicate that GuideLM and GuideLM-mini improve pedagogical performance, with an 8% increase in Socratic guidance and a 58% improvement in economy of words compared to GPT-4o. However, this refinement comes at the cost of a slight reduction in general accuracy. While further work is needed, our findings suggest that fine-tuning LLMs with targeted datasets is a promising approach for developing models better suited to educational contexts.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Educational agents and math problem solving, one of 16 directions in LLM agents and tool use. Builds on 20 of its 41 references that are in the map. First posted on arXiv 27 Feb 2025.

Builds on

20 of 41 references.

References · 20

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  5. 2024Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?cited by 232
  6. 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 230
  7. 2022Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Bookcited by 84
  8. 2022Conversing with Copilot: Exploring Prompt Engineering for Solving CS1 Problems Using Natural Languagecited by 82
  9. 2023CodeHelp: Using Large Language Models with Guardrails for Scalable Support in Programming Classescited by 72
  10. 2024The Ultimate Guide to Fine-Tuning LLMs from Basics to Breakthroughs: An Exhaustive Review of Technologies, Research, Best Practices, Applied Research Challenges and Opportunitiescited by 64
  11. 2023Computing Education in the Era of Generative AIcited by 52
  12. 2024The Widening Gap: The Benefits and Harms of Generative AI for Novice Programmerscited by 48
8 more
  1. 2023DocMath-Eval: Evaluating Math Reasoning Capabilities of LLMs in Understanding Long and Specialized Documentscited by 45
  2. 2024Fine-Tuning and Prompt Engineering for Large Language Models-based Code Review Automationcited by 23
  3. 2024Desirable Characteristics for AI Teaching Assistants in Programming Educationcited by 17
  4. 2024Lifelong Personalized Low-Rank Adaptation of Large Language Models for Recommendationcited by 17
  5. 2024A review on the use of large language models as virtual tutorscited by 13
  6. 2024FineTuneBench: How well do commercial fine-tuning APIs infuse knowledge into LLMs?cited by 12
  7. 2023Dcc --help: Generating Context-Aware Compiler Error Explanations with Large Language Modelscited by 11
  8. 2024From Solitary Directives to Interactive Encouragement! LLM Secure Code Generation by Natural Language Promptingcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023CITING: Large Language Models Create Curriculum for Instruction Tuning
  2. 2024Analyzing LLM Usage in an Advanced Computing Class in India
  3. 2025Empowering Smaller Models: Tuning LLaMA and Gemma with Chain-of-Thought for Ukrainian Exam Tasks
  4. 2026Charting Empirical Laws for LLM Fine-Tuning in Scientific Multi-Discipline Learning
  5. 2026Application-Driven Pedagogical Knowledge Optimization of Open-Source LLMs via Reinforcement Learning and Supervised Fine-Tuning
  6. 2023Automated Assessment of Students' Code Comprehension using LLMs
  7. 2025Massive Supervised Fine-tuning Experiments Reveal How Data, Layer, and Training Factors Shape LLM Alignment Quality
  8. 2025Analysis of instruction-based LLMs' capabilities to score and judge text-input problems in an academic setting