Automated Correction for Syntax Errors in Programming Assignments using Recurrent Neural Networks
Sahil Bhatia, Rishabh Singh

TL;DR
This paper introduces a novel RNN-based method for automatically repairing syntax errors in student programming submissions, significantly improving feedback generation where previous AST-based techniques failed.
Contribution
The paper presents a new approach using RNNs trained on correct code to repair syntax errors, enabling automated feedback without AST analysis.
Findings
Repairs 31.69% of syntax errors completely
Partially corrects 6.39% of submissions
Effective on over 14,000 student submissions
Abstract
We present a method for automatically generating repair feedback for syntax errors for introductory programming problems. Syntax errors constitute one of the largest classes of errors (34%) in our dataset of student submissions obtained from a MOOC course on edX. The previous techniques for generating automated feed- back on programming assignments have focused on functional correctness and style considerations of student programs. These techniques analyze the program AST of the program and then perform some dynamic and symbolic analyses to compute repair feedback. Unfortunately, it is not possible to generate ASTs for student pro- grams with syntax errors and therefore the previous feedback techniques are not applicable in repairing syntax errors. We present a technique for providing feedback on syntax errors that uses Recurrent neural networks (RNNs) to model syntactically valid…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Testing and Debugging Techniques · Online Learning and Analytics
