首页> 外文会议>IEEE International Conference on Artificial Intelligence and Computer Applications >Software Defect Prediction Method Based on Transformer Model
【24h】

Software Defect Prediction Method Based on Transformer Model

机译:基于变压器模型的软件缺陷预测方法

获取原文

摘要

Aiming at the problem of grammar and semantic information understanding of the network structure of software system, this paper proposes a method of software defect prediction, which is based on Transformer model, which is completely dependent on self-attention mechanism, it can embed key information in the code semantics of the end-to-end learning software modules. Firstly, the software module is converted into an abstract syntax tree, and later it is traversed to extract word sequence of the software module. Then, thinking of the word sequence as input, acts on the self-attention layer to perform semantic feature embedding of the software module. Finally, the Softmax neural network is used to predict the software defect. The experimental results show that the software defect prediction method based on Transformer model has better defect prediction effects in the three open source software, and it has an average increase of 3.2% than the optimal model based on the Convolutional Neural Network (CNN).
机译:针对语法和语义信息了解软件系统网络结构的问题,提出了一种软件缺陷预测方法,基于变压器模型,它完全取决于自我关注机制,它可以嵌入关键信息在端到端学习软件模块的代码语义中。首先,软件模块被转换为抽象语法树,稍后遍历它以提取软件模块的字序列。然后,思考单词序列作为输入,作用于自我注意层,以执行软件模块的语义特征嵌入。最后,Softmax神经网络用于预测软件缺陷。实验结果表明,基于变压器模型的软件缺陷预测方法在三种开源软件中具有更好的缺陷预测效应,平均增加3.2%而不是基于卷积神经网络(CNN)的最佳模型。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号