通过注意力机制提取和融合特征,用于软件缺陷预测
Shaoming Qiu1, Bicong E1, Jingjie He1
1School of Information Engineering, Dalian University, Dalian, China.
PloS one
|April 14, 2025
概括
这项研究引入了一种新的多功能注意力 (MFA) 模型,用于软件缺陷预测. 通过有效地表示抽象语法树和融合语义和网络特征,MFA提高了准确性,优于现有模型.
科学领域:
- 计算机科学 计算机科学
- 软件工程 软件工程 软件工程
- 人工智能的人工智能
背景情况:
- 软件缺陷预测模型通常使用指标,语义和网络功能.
- 复杂的软件结构和有限的样本阻碍了由于无效的特征表示和提取导致的准确缺陷预测.
- 单个特征往往无法捕捉完整的软件结构.
研究的目的:
- 提出一种高效准确的方法来表示抽象语法树 (AST).
- 引入多功能注意 (MFA) 模型,用于增强软件缺陷预测.
- 为了利用可变形和自我注意机制来进行特征提取和融合.
主要方法:
- 开发了一种用于高效准确的抽象语法树 (AST) 表示的新方法.
- 提出了多特征注意力 (MFA) 模型,该模型包含可变形的注意力,用于特征提取.
- 利用自我注意机制来融合语义和网络特征,进行全面的分析.
- 在21个Java项目中进行了跨版本和跨项目实验.
主要成果:
- 在交叉版本实验中,MFA模型实现了平均ACC,F1和AUC分数为0.7,0.614和0.711.
- 在跨项目实验中,MFA平均达到ACC,F1和AUC的0.687,0.575和0.696.
- 与其他模型相比,MFA表现出高达41%的性能改善.
- 多个特征的融合证明优于使用单个特征进行预测.
结论:
- 该MFA模型有效地代表了AST并融合了各种软件功能,大大提高了缺陷预测的准确性.
- 提出的基于注意力的机制为提取和整合复杂软件特征提供了一个强大的方法.
- 在软件缺陷预测方面,MFA提供了一个有前途的进步,在跨版本和跨项目场景中,其性能优于现有的方法.
相关概念视频
Association Areas of the Cortex
4.6K
Association areas are regions of the cerebral cortex that do not have a specific sensory or motor function. Instead, they integrate and interpret information from various sources to enable higher cognitive processes such as memory, learning, and decision-making. Some key association areas include the following:
Prefrontal Association Area: This area is located in the frontal lobe and is involved in planning, decision-making, and moderating social behavior. It connects with primary motor areas,...
Prefrontal Association Area: This area is located in the frontal lobe and is involved in planning, decision-making, and moderating social behavior. It connects with primary motor areas,...
4.6K
Tagging and Fusion Proteins
6.5K
Proteins are involved in several cellular processes and biochemical reactions. Analyzing a specific protein of interest requires it to be isolated from the other proteins in the cell. This is achieved by overexpressing the specific gene in a suitable host to produce large quantities of the target protein. A tag or label is recombined with the gene to produce a fusion protein containing the target protein and the tag. The tags on these fusion proteins can then be used for easy detection and...
6.5K


