Instruct, Not Assist: LLM-based Multi-Turn Planning and Hierarchical Questioning for Socratic Code Debugging
Not on the map. Why?
Abstract (arXiv)
Socratic questioning is an effective teaching strategy, encouraging critical thinking and problem-solving. The conversational capabilities of large language models (LLMs) show great potential for providing scalable, real-time student guidance. However, current LLMs often give away solutions directly, making them ineffective instructors. We tackle this issue in the code debugging domain with TreeInstruct, an Instructor agent guided by a novel state space-based planning algorithm. TreeInstruct asks probing questions to help students independently identify and resolve errors. It estimates a student's conceptual and syntactical knowledge to dynamically construct a question tree based on their responses and current knowledge state, effectively addressing both independent and dependent mistakes concurrently in a multi-turn interaction setting. In addition to using an existing single-bug debugging benchmark, we construct a more challenging multi-bug dataset of 150 coding problems, incorrect solutions, and bug fixes -- all carefully constructed and annotated by experts. Extensive evaluation shows TreeInstruct's state-of-the-art performance on both datasets, proving it to be a more effective instructor than baselines. Furthermore, a real-world case study with five students of varying skill levels further demonstrates TreeInstruct's ability to guide students to debug their code efficiently with minimal turns and highly Socratic questioning.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 11 of its 33 references that are in the map. First posted on arXiv 17 Jun 2024.
Builds on
11 of 33 references.
References · 11
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2015Deep Knowledge Tracingcited by 328
- 2024CodeAid: Evaluating a Classroom Deployment of an LLM-based Programming Assistant that Balances Student and Educator Needscited by 81
- 2023Bridging the Novice-Expert Gap via Models of Decision-Making: A Case Study on Remediating Math Mistakescited by 51
- 2022The NCTE Transcripts: A Dataset of Elementary Math Classroom Transcriptscited by 43
- 2024Evaluating the Effectiveness of LLMs in Introductory Computer Science Education: A Semester-Long Field Studycited by 26
- 2022Computationally Identifying Funneling and Focusing Questions in Classroom Discoursecited by 15
- 2023Can Language Models Employ the Socratic Method? Experiments with Code Debuggingcited by 14
- 2023Patterns of Student Help-Seeking When Using a Large Language Model-Powered Programming Assistantcited by 13
- 2024Edu-ConvoKit: An Open-Source Library for Education Conversation Datacited by 11
Built on by
Citing papers per year: 2025: 7; 2026: 4.
11 papers.
- 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Surveycited by 56
- 2025MathTutorBench: A Benchmark for Measuring Open-ended Pedagogical Capabilities of LLM Tutorscited by 47
- 2025Training Turn-by-Turn Verifiers for Dialogue Tutoring Agents: The Curious Case of LLMs as Your Coding Tutorscited by 17
- 2025CodeFlowBench: A Multi-turn, Iterative Benchmark for Complex Code Generationcited by 16
- 2025Tree-of-Debate: Multi-Persona Debate Trees Elicit Critical Thinking for Scientific Comparative Analysiscited by 6
- 2025Scaffolding Metacognition in Programming Education: Understanding Student-AI Interactions and Design Implicationscited by 2
- 2025EduDial: Constructing a Large-scale Multi-turn Teacher-Student Dialogue Corpuscited by 0
- 2026Chatbot-Based Assessment of Code Understanding in Automated Programming Assessment Systemscited by 0
- 2026PersonalPlan: Planning Multi-Agent Systems for Personalized Programming Learningcited by 0
- 2026Prompt Coach: An Empirical Evaluation of an Agentic Tutor for Learning Prompt Engineering in Software Developmentcited by 0
- 2026EduClaw-Bench: A Long-Horizon Benchmark for Pedagogical LLM Agents with Simulated Learnerscited by 0
- 2026EduClaw-Bench: A Long-Horizon Benchmark for Pedagogical LLM Agents with Simulated Learners4 Aug 2026
- 2026Prompt Coach: An Empirical Evaluation of an Agentic Tutor for Learning Prompt Engineering in Software Development7 Jul 2026
- 2026PersonalPlan: Planning Multi-Agent Systems for Personalized Programming Learning17 Jun 2026
- 2026Chatbot-Based Assessment of Code Understanding in Automated Programming Assessment Systems8 Apr 2026
- 2025Scaffolding Metacognition in Programming Education: Understanding Student-AI Interactions and Design Implications6 Nov 2025
- 2025EduDial: Constructing a Large-scale Multi-turn Teacher-Student Dialogue Corpus14 Oct 2025
- 2025CodeFlowBench: A Multi-turn, Iterative Benchmark for Complex Code Generation30 Apr 2025
- 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Survey28 Mar 2025
- 2025MathTutorBench: A Benchmark for Measuring Open-ended Pedagogical Capabilities of LLM Tutors26 Feb 2025
- 2025Tree-of-Debate: Multi-Persona Debate Trees Elicit Critical Thinking for Scientific Comparative Analysis20 Feb 2025
- 2025Training Turn-by-Turn Verifiers for Dialogue Tutoring Agents: The Curious Case of LLMs as Your Coding Tutors18 Feb 2025