pith. sign in

arxiv: 2209.14876 · v1 · pith:6DJB5QT3new · submitted 2022-09-29 · 💻 cs.SE · cs.AI

Repairing Bugs in Python Assignments Using Large Language Models

classification 💻 cs.SE cs.AI
keywords assignmentspythonlargemistakesmmaprrepaircombiningengine
0
0 comments X
read the original abstract

Students often make mistakes on their introductory programming assignments as part of their learning process. Unfortunately, providing custom repairs for these mistakes can require a substantial amount of time and effort from class instructors. Automated program repair (APR) techniques can be used to synthesize such fixes. Prior work has explored the use of symbolic and neural techniques for APR in the education domain. Both types of approaches require either substantial engineering efforts or large amounts of data and training. We propose to use a large language model trained on code, such as Codex, to build an APR system -- MMAPR -- for introductory Python programming assignments. Our system can fix both syntactic and semantic mistakes by combining multi-modal prompts, iterative querying, test-case-based selection of few-shots, and program chunking. We evaluate MMAPR on 286 real student programs and compare to a baseline built by combining a state-of-the-art Python syntax repair engine, BIFI, and state-of-the-art Python semantic repair engine for student assignments, Refactory. We find that MMAPR can fix more programs and produce smaller patches on average.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Bug-Report-Driven Fault Localization: Industrial Benchmarking and Lesson Learned at ABB Robotics

    cs.SE 2026-04 unverdicted novelty 6.0

    Traditional ML models on bug report text outperform fine-tuned transformers for fault localization in industrial software using five years of ABB Robotics data.

  2. An Explainable AI Assistant for Introductory Programming Education: Improving Feedback Reliability with Instructor-AI Collaboration

    cs.CY 2026-05 unverdicted novelty 4.0

    An explainable AI system maps student programming errors to instructor-defined misconceptions and delivers instructor-authored feedback, shown through expert review and classroom use to be accurate and well-received.

  3. Bug-Report-Driven Fault Localization: Industrial Benchmarking and Lesson Learned at ABB Robotics

    cs.SE 2026-04 unverdicted novelty 4.0

    Traditional ML models using TF-IDF on bug reports outperform fine-tuned transformers for fault localization on five years of ABB Robotics data.