Automating Human Tutor-Style Programming Feedback: Leveraging GPT-4 Tutor Model for Hint Generation and GPT-3.5 Student Model for Hint Validation

Tung Phung, Victor-Alexandru Pădurean, Anjali Singh, Christopher Brooks, José Cambronero +3 more
10/5/2023
108 citations
cs.AI

Official code: machine-teaching-group/lak2024_GPT4Hints-GPT3.5Val (4 stars, Python, last commit 2024-03-11).

Abstract

Generative AI and large language models hold great promise in enhancing programming education by automatically generating individualized feedback for students. We investigate the role of generative AI models in providing human tutor-style programming hints to help students resolve errors in their buggy programs.

Show full abstract

Recent works have benchmarked state-of-the-art models for various feedback generation scenarios; however, their overall quality is still inferior to human tutors and not yet ready for real-world deployment. In this paper, we seek to push the limits of generative AI models toward providing high-quality programming hints and develop a novel technique, GPT4Hints-GPT3.5Val. As a first step, our technique leverages GPT-4 as a ``tutor'' model to generate hints -- it boosts the generative quality by using symbolic information of failing test cases and fixes in prompts. As a next step, our technique leverages GPT-3.5, a weaker model, as a ``student'' model to further validate the hint quality -- it performs an automatic quality validation by simulating the potential utility of providing this feedback. We show the efficacy of our technique via extensive evaluation using three real-world datasets of Python programs covering a variety of concepts ranging from basic algorithms to regular expressions and data analysis using pandas library.

View on arXivView PDF

Code Implementations(1)

41Python, DockerfileDec 4, 20232 years ago

Similar Papers

Cite this paper

@article{phung2023automating,
  title  = {Automating Human Tutor-Style Programming Feedback: Leveraging GPT-4 Tutor Model for Hint Generation and GPT-3.5 Student Model for Hint Validation},
  author = {Tung Phung and Victor-Alexandru Pădurean and Anjali Singh and Christopher Brooks and José Cambronero and Sumit Gulwani and Adish Singla and Gustavo Soares},
  year   = {2023},
  eprint = {2310.03780},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.03780v4}
}

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.03780.svg)](https://codeofpaper.com/paper/2310.03780)

Discussion