mlsanityData to 14 Oct 2026

Logic Error Localization in Student Programming Assignments Using Pseudocode and Graph Neural Networks

arXiv 2410.21282 ↗First posted 11 Oct 2024cs.CY cs.AI cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

Pseudocode is extensively used in introductory programming courses to instruct computer science students in algorithm design, utilizing natural language to define algorithmic behaviors. This learning approach enables students to convert pseudocode into source code and execute it to verify their algorithms' correctness. This process typically introduces two types of errors: syntax errors and logic errors. Syntax errors are often accompanied by compiler feedback, which helps students identify incorrect lines. In contrast, logic errors are more challenging because they do not trigger compiler errors and lack immediate diagnostic feedback, making them harder to detect and correct. To address this challenge, we developed a system designed to localize logic errors within student programming assignments at the line level. Our approach utilizes pseudocode as a scaffold to build a code-pseudocode graph, connecting symbols from the source code to their pseudocode counterparts. We then employ a graph neural network to both localize and suggest corrections for logic errors. Additionally, we have devised a method to efficiently gather logic-error-prone programs during the syntax error correction process and compile these into a dataset that includes single and multiple line logic errors, complete with indices of the erroneous lines. Our experimental results are promising, demonstrating a localization accuracy of 99.2% for logic errors within the top-10 suspected lines, highlighting the effectiveness of our approach in enhancing students' coding proficiency and error correction skills.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 8 of its 28 references that are in the map. First posted on arXiv 11 Oct 2024.

Builds on

8 of 28 references.

References · 8

  1. 2017Graph Attention Networkscited by 8,923
  2. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  3. 2020Learning to Simulate Complex Physics with Graph Networkscited by 880
  4. 2017Learning to Represent Programs with Graphscited by 220
  5. 2019SPoC: Search-based Pseudocode to Codecited by 176
  6. 2019Fake News Detection on Social Media using Geometric Deep Learningcited by 118
  7. 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 94
  8. 2022DEAR: A Novel Deep Learning-based Approach for Automated Program Repaircited by 22

Built on by

Not cited yet.