A Bidirectional LSTM Language Model for Code Evaluation and Repair

Author:

Rahman Md. MostafizerORCID,Watanobe Yutaka,Nakamura Keita

Abstract

Programming is a vital skill in computer science and engineering-related disciplines. However, developing source code is an error-prone task. Logical errors in code are particularly hard to identify for both students and professionals, and a single error is unexpected to end-users. At present, conventional compilers have difficulty identifying many of the errors (especially logical errors) that can occur in code. To mitigate this problem, we propose a language model for evaluating source codes using a bidirectional long short-term memory (BiLSTM) neural network. We trained the BiLSTM model with a large number of source codes with tuning various hyperparameters. We then used the model to evaluate incorrect code and assessed the model’s performance in three principal areas: source code error detection, suggestions for incorrect code repair, and erroneous code classification. Experimental results showed that the proposed BiLSTM model achieved 50.88% correctness in identifying errors and providing suggestions. Moreover, the model achieved an F-score of approximately 97%, outperforming other state-of-the-art models (recurrent neural networks (RNNs) and long short-term memory (LSTM)).

Funder

Japan Society for the Promotion of Science

Publisher

MDPI AG

Subject

Physics and Astronomy (miscellaneous),General Mathematics,Chemistry (miscellaneous),Computer Science (miscellaneous)

Reference38 articles.

1. Understanding Computer Programming as a Literacy

2. Competitive learning in informatics: The UVa online judge experience;Revilla;Olymp. Inform.,2008

3. Jutge.org: Characteristics and Experiences

4. URI Online Judge Academic: A tool for algorithms and programming classes

5. Aizu Online Judgehttps://onlinejudge.u-aizu.ac.jp

Cited by 53 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. A Survey of Learning-based Automated Program Repair;ACM Transactions on Software Engineering and Methodology;2023-12-23

2. Deep-kidney: an effective deep learning framework for chronic kidney disease prediction;Health Information Science and Systems;2023-12-01

3. A Bidirectional LSTM approach for written script auto evaluation using keywords-based pattern matching;Natural Language Processing Journal;2023-12

4. Enhancing source code retrieval with joint Bi-LSTM-GNN architecture: A comparative study with ChatGPT-LLM;Journal of King Saud University - Computer and Information Sciences;2023-12

5. Model- and Deep Learning-Based Bandwidth and Carrier Frequency Allocation in Distributed Radar Networks;IEEE Transactions on Aerospace and Electronic Systems;2023-12

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3