arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.04722cs.SEcs.AI
收藏

基于GPT的编程语言学习代码审查系统

A GPT-based Code Review System for Programming Language Learning

Department of Electrical Engineering;Computer Science, University of Hanyang Seoul, Republic of Korea

Lee Dong-Kyu

AI总结:

本研究提出基于GPT-4的代码审查系统,通过在线判题数据优化提示词并设计防作弊流程,经专家评估在正确性、响应时间、成本和质量上表现良好,适用于中小学编程教学。

摘要:

编程语言教育需求的增长以及班级规模的扩大,要求提供即时且个性化的反馈。然而,传统的代码审查方法在提供这种反馈方面存在局限性。随着像GPT这样的大型语言模型(LLMs)在生成准确解决方案和及时代码审查方面的能力得到验证,本研究提出了一种采用GPT-4的系统,以提供适合学习者的代码审查,并最小化AI辅助作弊的风险。为了提供适合学习者的代码审查,从在线判题系统中收集了一个数据集,并利用该数据集来开发和增强系统的提示词。此外,为了最小化AI辅助作弊,系统流程被设计为仅对学习者提交的代码提供代码审查,并增加了高亮需要修复的代码行的功能。初始系统在网络上部署后,软件教育专家进行了可用性测试。基于测试结果,制定了改进策略,以改进代码审查和代码正确性检查模块,从而增强系统。改进后的系统由软件教育专家根据四个标准进行评估:严格的代码正确性检查、响应时间、较低的API调用成本以及代码审查的质量。结果表明,该系统能够准确识别错误类型、缩短响应时间、降低API调用成本,并保持高质量的代码审查而无重大问题的性能。参与者的反馈证实了该工具适用于中小学编程教学。鉴于这些优势,该系统有望成为教育环境中编程语言学习的高效学习工具。

英文摘要:

The increasing demand for programming language education and growing class sizes require immediate and personalized feedback. However, traditional code review methods have limitations in providing this level of feedback. As the capabilities of Large Language Models (LLMs) like GPT for generating accurate solutions and timely code reviews are verified, this research proposes a system that employs GPT-4 to offer learner-friendly code reviews and minimize the risk of AI-assist cheating. To provide learner-friendly code reviews, a dataset was collected from an online judge system, and this dataset was utilized to develop and enhance the system's prompts. In addition, to minimize AI-assist cheating, the system flow was designed to provide code reviews only for code submitted by a learner, and a feature that highlights code lines to fix was added. After the initial system was deployed on the web, software education experts conducted usability test. Based on the results, improvement strategies were developed to improve code review and code correctness check module, thereby enhancing the system. The improved system underwent evaluation by software education experts based on four criteria: strict code correctness checks, response time, lower API call costs, and the quality of code reviews. The results demonstrated a performance to accurately identify error types, shorten response times, lower API call costs, and maintain high-quality code reviews without major issues. Feedback from participants affirmed the tool's suitability for teaching programming to primary and secondary school students. Given these benefits, the system is anticipated to be a efficient learning tool in programming language learning for educational settings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑