cs.AIOct 10, 2026

SocraticRepair: Planning-Guided Socratic Tutoring for Program Debugging and Misconception Repair

Authors: Mykhailo Kopytskyi, Jianhua Yang, Mir Seyedebrahimi

Organizations: University of Warwick · Warwick Manufacturing Group

Abstract

Large language models are increasingly used in computer science education. However, the teaching abilities of even the most powerful LLMs are limited: they tend to reveal the solution prematurely and may lose focus on the learner's current debugging objective. To address this, we introduce SocraticRepair, a planning-guided Socratic tutoring framework for program debugging and miscon- ception repair that adapts prior planning-guided tutoring work (Li et al., 2026b). The framework is instantiated in the Python programming domain by fine-tuning Qwen2.5-Coder-7B-Instruct on synthetic multi-turn tutoring dialogues constructed from four preprocessed programming datasets. The system is evaluated using a predefined set of independent metrics and benchmarked against a general-purpose LLM. The experiments show that SocraticRepair achieves higher scores on stepwise scaffolding and question quality while also substantially reducing premature solution disclosure. The results also identify reliable pedagogical plan generation as an important remaining challenge.

Figures & tables

Explore similar work

CardsList
  1. QiMeng-PRepair: Precise Code Repair via Edit-Aware Reward Optimization

    Apr 7, 2026Changxin Ke, Rui Zhang, Jiaming Guo +10Automated Program RepairLLM Code Generation

  2. Beyond Direct Answering: Aligning Educational LLMs as Socratic Guides via Heuristic Reinforcement Learning

    Jul 25, 2026Xiaokun Wang, Siyu Song, Wentao Liu +1LLM AlignmentIntelligent Tutoring Systems

  3. PEARL: Training Socratic Tutors with Pedagogically Aligned Reinforcement Learning

    May 28, 2026Qikai Chang, Zhenrong Zhang, Linbo Chen +4Multi-Objective Reinforcement LearningIntelligent Tutoring Systems