代码回滚预测与图神经网络:摩根大通案例研究
Code Revert Prediction with Graph Neural Networks: A Case Study at J.P. Morgan Chase
AI总结:
本研究针对代码回滚预测问题,提出结合代码导入图与代码特征的图神经网络方法,并在摩根大通真实不平衡数据上验证其有效性。
摘要:
代码回滚预测是软件缺陷检测的一种专门形式,旨在预测软件开发中代码变更被回滚或撤销的可能性。该任务在实践中非常重要,因为通过识别更容易被回滚的代码变更,开发人员和项目经理可以主动采取措施预防问题、提高代码质量并优化开发流程。然而,与代码缺陷检测相比,代码回滚预测在以往研究中很少被探讨。此外,许多先前的代码缺陷检测方法依赖于独立特征,而忽略了代码脚本之间的关系。再者,行业环境中的约束(如公司法规、有限特征和大规模代码库)带来了新的挑战。为克服这些限制,本文提出了一项系统性的实证研究,将代码导入图与代码特征相结合用于代码回滚预测。我们实施了多种策略来处理异常和数据不平衡问题,包括带有不平衡分类和异常检测的图神经网络。我们在摩根大通内部极度不平衡的真实代码提交数据上进行了实验,以全面比较这些不同方法在代码回滚预测问题上的表现。
英文摘要:
Code revert prediction, a specialized form of software defect detection, aims to forecast or predict the likelihood of code changes being reverted or rolled back in software development. This task is very important in practice because by identifying code changes that are more prone to being reverted, developers and project managers can proactively take measures to prevent issues, improve code quality, and optimize development processes. However, compared to code defect detection, code revert prediction has been rarely studied in previous research. Additionally, many previous methods for code defect detection relied on independent features but ignored relationships between code scripts. Moreover, new challenges are introduced due to constraints in an industry setting such as company regulation, limited features and large-scale codebase. To overcome these limitations, this paper presents a systematic empirical study for code revert prediction that integrates the code import graph with code features. Different strategies to address anomalies and data imbalance have been implemented including graph neural networks with imbalance classification and anomaly detection. We conduct the experiments on real-world code commit data within J.P. Morgan Chase which is extremely imbalanced in order to make a comprehensive comparison of these different approaches for the code revert prediction problem.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。