Can Language Models Employ the Socratic Method? Experiments with Code Debugging
Not on the map. Why?
Abstract (arXiv)
When employing the Socratic method of teaching, instructors guide students toward solving a problem on their own rather than providing the solution directly. While this strategy can substantially improve learning outcomes, it is usually time-consuming and cognitively demanding. Automated Socratic conversational agents can augment human instruction and provide the necessary scale, however their development is hampered by the lack of suitable data for training and evaluation. In this paper, we introduce a manually created dataset of multi-turn Socratic advice that is aimed at helping a novice programmer fix buggy solutions to simple computational problems. The dataset is then used for benchmarking the Socratic debugging abilities of a number of language models, ranging from fine-tuning the instruction-based text-to-text transformer Flan-T5 to zero-shot and chain of thought prompting of the much larger GPT-4. The code and datasets are made freely available for research at the link below. https://github.com/taisazero/socratic-debugging-benchmark
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 10 of its 42 references that are in the map. First posted on arXiv 4 Oct 2023.
Builds on
10 of 42 references.
References · 10
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2020Recipes for building an open-domain chatbotcited by 593
- 2022Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Bookcited by 84
- 2022Using Large Language Models to Enhance Programming Error Messagescited by 67
- 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
- 2022Automatic Generation of Socratic Subquestions for Teaching Math Word Problemscited by 42
- 2019A Survey of Automated Programming Hint Generation -- The HINTS Frameworkcited by 11
Built on by
Citing papers per year: 2023: 1; 2024: 7; 2025: 3; 2026: 3.
14 papers.
Sort:
By area:
- 2024Unifying AI Tutor Evaluation: An Evaluation Taxonomy for Pedagogical Ability Assessment of LLM-Powered AI Tutorscited by 60
- 2024MathVC: An LLM-Simulated Multi-Character Virtual Classroom for Mathematics Educationcited by 35
- 2023Mathematical Language Models: A Surveycited by 24
- 2024Improving Socratic Question Generation using Data Augmentation and Preference Optimizationcited by 15
- 2024Instruct, Not Assist: LLM-based Multi-Turn Planning and Hierarchical Questioning for Socratic Code Debuggingcited by 11
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Coursecited by 11
- 2024Analyzing Chat Protocols of Novice Programmers Solving Introductory Programming Tasks with ChatGPTcited by 8
- 2024Evaluating Language Models for Generating and Judging Programming Feedbackcited by 8
- 2025Bringing Pedagogy into Focus: Evaluating Virtual Teaching Assistants' Question-Answering in Asynchronous Learning Environmentscited by 1
- 2025McMining: Automated Discovery of Misconceptions in Student Codecited by 1
- 2026Automatic Classification of Pedagogical Materials against CS Curriculum Guidelinescited by 1
- 2025ACE-RLHF: Automated Code Evaluation and Socratic Feedback Generation Tool using Large Language Models and Reinforcement Learning with Human Feedbackcited by 0
- 2026SPHERE: Adaptive VR Indoor Scene Generation via LLM-Enhanced Spatial Preference Learning and Human-in-the-Loop RL1 Oct 2026
- 2026Mitigating Scaffolding Collapse in Socratic Tutors via Representation Alignment15 Jun 2026
- 2026Automatic Classification of Pedagogical Materials against CS Curriculum Guidelines3 Feb 2026
- 2025McMining: Automated Discovery of Misconceptions in Student Code9 Oct 2025
- 2025Bringing Pedagogy into Focus: Evaluating Virtual Teaching Assistants' Question-Answering in Asynchronous Learning Environments22 Sep 2025
- 2025ACE-RLHF: Automated Code Evaluation and Socratic Feedback Generation Tool using Large Language Models and Reinforcement Learning with Human Feedback7 Apr 2025
- 2024Unifying AI Tutor Evaluation: An Evaluation Taxonomy for Pedagogical Ability Assessment of LLM-Powered AI Tutors12 Dec 2024
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Course30 Jul 2024
- 2024Evaluating Language Models for Generating and Judging Programming Feedback5 Jul 2024
- 2024Instruct, Not Assist: LLM-based Multi-Turn Planning and Hierarchical Questioning for Socratic Code Debugging17 Jun 2024
- 2024Analyzing Chat Protocols of Novice Programmers Solving Introductory Programming Tasks with ChatGPT29 May 2024
- 2024MathVC: An LLM-Simulated Multi-Character Virtual Classroom for Mathematics Education10 Apr 2024
2 more
- 2024Improving Socratic Question Generation using Data Augmentation and Preference Optimizationcited by 15
- 2025ACE-RLHF: Automated Code Evaluation and Socratic Feedback Generation Tool using Large Language Models and Reinforcement Learning with Human Feedbackcited by 0
- 2026Mitigating Scaffolding Collapse in Socratic Tutors via Representation Alignmentcited by 0
- 2026Mitigating Scaffolding Collapse in Socratic Tutors via Representation Alignment15 Jun 2026
- 2025ACE-RLHF: Automated Code Evaluation and Socratic Feedback Generation Tool using Large Language Models and Reinforcement Learning with Human Feedback7 Apr 2025
- 2024Improving Socratic Question Generation using Data Augmentation and Preference Optimization1 Mar 2024
- 2024Unifying AI Tutor Evaluation: An Evaluation Taxonomy for Pedagogical Ability Assessment of LLM-Powered AI Tutorscited by 60
- 2024MathVC: An LLM-Simulated Multi-Character Virtual Classroom for Mathematics Educationcited by 35
- 2023Mathematical Language Models: A Surveycited by 24
- 2024Instruct, Not Assist: LLM-based Multi-Turn Planning and Hierarchical Questioning for Socratic Code Debuggingcited by 11
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Coursecited by 11
- 2024Analyzing Chat Protocols of Novice Programmers Solving Introductory Programming Tasks with ChatGPTcited by 8
- 2024Evaluating Language Models for Generating and Judging Programming Feedbackcited by 8
- 2025Bringing Pedagogy into Focus: Evaluating Virtual Teaching Assistants' Question-Answering in Asynchronous Learning Environmentscited by 1
- 2025McMining: Automated Discovery of Misconceptions in Student Codecited by 1
- 2026Automatic Classification of Pedagogical Materials against CS Curriculum Guidelinescited by 1
- 2026SPHERE: Adaptive VR Indoor Scene Generation via LLM-Enhanced Spatial Preference Learning and Human-in-the-Loop RLcited by 0
- 2026SPHERE: Adaptive VR Indoor Scene Generation via LLM-Enhanced Spatial Preference Learning and Human-in-the-Loop RL1 Oct 2026
- 2026Automatic Classification of Pedagogical Materials against CS Curriculum Guidelines3 Feb 2026
- 2025McMining: Automated Discovery of Misconceptions in Student Code9 Oct 2025
- 2025Bringing Pedagogy into Focus: Evaluating Virtual Teaching Assistants' Question-Answering in Asynchronous Learning Environments22 Sep 2025
- 2024Unifying AI Tutor Evaluation: An Evaluation Taxonomy for Pedagogical Ability Assessment of LLM-Powered AI Tutors12 Dec 2024
- 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Course30 Jul 2024
- 2024Evaluating Language Models for Generating and Judging Programming Feedback5 Jul 2024
- 2024Instruct, Not Assist: LLM-based Multi-Turn Planning and Hierarchical Questioning for Socratic Code Debugging17 Jun 2024
- 2024Analyzing Chat Protocols of Novice Programmers Solving Introductory Programming Tasks with ChatGPT29 May 2024
- 2024MathVC: An LLM-Simulated Multi-Character Virtual Classroom for Mathematics Education10 Apr 2024
- 2023Mathematical Language Models: A Survey12 Dec 2023
Similar, not cited
Close in wording, no citation either way
- 2025Reasoning Trajectories for Socratic Debugging of Student Code: From Misconceptions to Contradictions and Updated Beliefs
- 2024Boosting Large Language Models with Socratic Method for Conversational Mathematics Teaching
- 2026Teaching Language Models How to Code Like Learners: Conversational Serialization for Student Simulation
- 2023Prompting Large Language Models With the Socratic Method
- 2023SocREval: Large Language Models with the Socratic Method for Reference-Free Reasoning Evaluation
- 2026Teaching Language Models to Think in Code
- 2024NExT: Teaching Large Language Models to Reason about Code Execution
- 2023Large Language Model for Science: A Study on P vs. NP