Work

Restraint versus Depth: Evaluating Open and Proprietary Large Language Models as Socratic Programming Tutors, with a Privacy-Preserving Local Deployment

Year: 2026
Type: article
Abstract: Large language models (LLMs) are increasingly used as programming tutors, yet there is little agreement on how to judge whether a tutor's question is pedagogically good, and the most capable tutors run on proprietary cloud services that receive students' code. This study evaluates six systems on Socratic questioning for novice code debugging: three local variants of the open Mistral-7B-Instruct model (untrained, supervised fine-tuned, and further aligned with Direct Preference Optimization) and three proprietary models (GPT-4o, Claude and Gemini). Questions generated for 68 held-out dialogue turns of the Socratic Debugging Benchmark were assessed with eleven reference-based, diversity and rubric-based measures, including two independent LLM judges scoring seven pedagogical dimensions. The measures disagreed sharply. BERTScore F1 varied only from 0.881 to 0.892 across all six systems, and the system rankings produced by ROUGE-L, BLEU and BERTScore were unrelated to the judges' ranking (Kendall's τ between −0.28 and 0.20), whereas the judges agreed with each other (Spearman ρ = 0.72). The judges revealed two distinct profiles: proprietary models asked deeper questions (overall quality 3.75–4.03 on a 1–5 scale), while the preference-aligned local model was the least leading of all systems (non-leading score 4.35 against 3.67–3.92) but also the least varied. To make the local model usable by teachers, we built Socratic Studio, a browser-based application that serves the 4-bit model on a 16 GB laptop without any network connection; reusing the transformer's key–value cache and stopping generation at the end of each question reduced the time for three candidate questions from 20–30 s to 4–7 s. The findings argue for multi-dimensional evaluation of AI tutors and show that a private, zero-cost local tutor is practical, with depth of questioning as its main remaining gap.
Language: English
Open Access status: green
OpenAlex ID: W7238756752
FWCI:
Cites:
Cited by:
Related to: