Search and Filter

Repository Feedback

Your feedback helps us improve the repository's content relevance and usability. Please share your thoughts to help us better serve researchers and practitioners.

Submit feedback

Submit a research study

Contribute to the repository:

Add a paper

Generating High-Precision Feedback for Programming Syntax Errors using Large Language Models

Authors
Tung Phung,
Jose Cambronero,
Sumit Gulwani,
Tobias Kohn,
Rupak Majumdar,
Gustavo Soares
Date
Publisher
arXiv
Large language models (LLMs), such as Codex, hold great promise in enhancing programming education by automatically generating feedback for students. We investigate using LLMs to generate feedback for fixing syntax errors in Python programs, a key scenario in introductory programming. More concretely, given a student's buggy program, our goal is to generate feedback comprising a fixed program along with a natural language explanation describing the errors/fixes, inspired by how a human tutor would give feedback. While using LLMs is promising, the critical challenge is to ensure high precision in the generated feedback, which is imperative before deploying such technology in classrooms. The main research question we study is: Can we develop LLMs-based feedback generation techniques with a tunable precision parameter, giving educators quality control over the feedback that students receive? To this end, we introduce PyFiXV, our technique to generate high-precision feedback powered by Codex. The key idea behind PyFiXV is to use a novel run-time validation mechanism to decide whether the generated feedback is suitable for sharing with the student; notably, this validation mechanism also provides a precision knob to educators. We perform an extensive evaluation using two real-world datasets of Python programs with syntax errors and show the efficacy of PyFiXV in generating high-precision feedback.
Study at a glance
  • Question: Can AI reliably generate feedback for students' coding errors while giving educators control over its quality?
  • Setting and data: Two real-world datasets of Python programs with syntax errors
  • Method: Development and technical evaluation of an automated feedback tool tested on two datasets of programming errors
Why it matters

Large language models can automatically generate feedback on student programming errors, but ensuring high precision is a critical challenge. High precision is imperative before deploying this technology in classrooms so educators have quality control over what students receive.

Key findings
  • In introductory Python programming, an AI system effectively generated high-precision feedback that provided corrected code and clear explanations for student syntax errors.
  • An automated validation check determined whether the generated feedback was suitable and accurate to share with students.
  • The tool gave educators an adjustable control to set the level of precision and quality for feedback sent to learners.

Summary drafted with AI from the paper’s abstract and may contain errors. See the full paper for details.

What is the application?
Who is the user?
Who age?