Can Language Models Employ the Socratic Method? Experiments with Code Debugging

Erfan Al-Hossami, Razvan Bunescu, Justin Smith, Ryan Teehan
10/4/2023
46 citations
cs.CLcs.CY

Official code: taisazero/socratic-debugging-benchmark (19 stars, Python, last commit 2024-03-22).

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

The repository contains the code and dataset for the Socratic Debugging task which is a novel task for Socratically Questioning Novice Debuggers to guide them towards discovering and fixing a buggy python program.

192Python, ShellMay 30, 20232 years ago

Similar Papers

Cite this paper

@article{alhossami2023language,
  title  = {Can Language Models Employ the Socratic Method? Experiments with Code Debugging},
  author = {Erfan Al-Hossami and Razvan Bunescu and Justin Smith and Ryan Teehan},
  year   = {2023},
  eprint = {2310.03210},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.03210v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.03210.svg)](https://codeofpaper.com/paper/2310.03210)

Discussion