Narrowing the Gap: Supervised Fine-Tuning of Open-Source LLMs as a Viable Alternative to Proprietary Models for Pedagogical Tools
Not on the map. Why?
Abstract (arXiv)
Frontier Large language models (LLMs) like ChatGPT and Gemini can decipher cryptic compiler errors for novice programmers, but their computational scale, cost, and tendency to over-assist make them problematic for widespread pedagogical adoption. This work demonstrates that smaller, specialised language models, enhanced via Supervised Fine-Tuning (SFT), present a more viable alternative for educational tools. We utilise a new dataset of 40,000 C compiler error explanations, derived from real introductory programming (CS1/2) student-generated programming errors, which we used to fine-tune three open-source models: Qwen3-4B, Llama-3.1-8B, and Qwen3-32B. We performed a dual evaluation, combining expert human reviews with a large-scale automated analysis of 8,000 responses using a validated LLM-as-judge ensemble. Our results show that SFT significantly boosts the pedagogical quality of smaller models, achieving performance comparable to much larger models. We analyse the trade-offs between model size and quality, confirming that fine-tuning compact, efficient models on high-quality, domain-specific data is a potent strategy for creating specialised models to drive educational tools. We provide a replicable methodology to foster broader access to generative AI capabilities in educational contexts.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 16 of its 37 references that are in the map. First posted on arXiv 7 Jul 2025.
Builds on
16 of 37 references.
References · 16
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2022Using Large Language Models to Enhance Programming Error Messagescited by 67
- 2023Large Language Models (GPT) for automating feedback on programming assignmentscited by 32
- 2023Exploring the Potential of Large Language Models to Generate Formative Programming Feedbackcited by 28
- 2023AI-TA: Towards an Intelligent Question-Answer Teaching Assistant using Open-Source LLMscited by 22
- 2024Improving the Validity of Automatically Generated Feedback via Reinforcement Learningcited by 20
- 2024Open Source Language Models Can Provide Feedback: Evaluating LLMs' Ability to Help Students Using GPT-4-As-A-Judgecited by 20
- 2024Beyond the Hype: A Comprehensive Review of Current Trends in Generative AI Research, Teaching Practices, and Toolscited by 14
- 2024Evaluating Contextually Personalized Programming Exercises Created with Generative AIcited by 13
- 2024Evaluating Language Models for Generating and Judging Programming Feedbackcited by 8
4 more
- 2024Hints-In-Browser: Benchmarking Language Models for Programming Feedback Generationcited by 7
- 2025Supervised Fine-Tuning LLMs to Behave as Pedagogical Agents in Programming Educationcited by 4
- 2024Not the Silver Bullet: LLM-enhanced Programming Error Messages are Ineffective in Practicecited by 2
- 2025Debugging Without Error Messages: How LLM Prompting Strategy Affects Programming Error Explanation Effectivenesscited by 1
Built on by
Citing papers per year: 2025: 1.
1 paper.