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

3Citations
Citations of this article
15Readers
Mendeley users who have this article in their library.
Get full text

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. 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.

Cite

CITATION STYLE

APA

Al-Hossami, E., Bunescu, R., Smith, J., & Teehan, R. (2024). Can Language Models Employ the Socratic Method? Experiments with Code Debugging. In SIGCSE 2024 - Proceedings of the 55th ACM Technical Symposium on Computer Science Education (Vol. 1, pp. 53–59). Association for Computing Machinery, Inc. https://doi.org/10.1145/3626252.3630799

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free