arrow
返回

Measuring model alignment for code clone detection using causal interpretation

delete2024-12-19
delete0
PRE
AI
S
Shamsa Abid *
X
Xuemeng Cai
L
Lingxiao Jiang
DOI:10.1007/s10664-024-10583-0delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Deep Neural Network-based models have demonstrated high accuracy for semantic code clone detection. However, the lack of generalization poses a threat to the trustworthiness and reliability of these models. Furthermore, the black-box nature of these models makes interpreting the model's decisions very challenging. Currently, there is only a limited understanding of the semantic code clone detection behavior of existing models. There is a lack of transparency in understanding how a model identifies semantic code clones and the exact code components influencing its prediction. In this paper, we introduce the use of a causal interpretation framework based on the Neyman-Rubin causal model to gain insight into the decision-making of four state-of-the-art clone detection models. Using the causal interpretation framework, we derive causal explanations of models' decisions by performing interventions guided by expert-labeled data. We measure the alignment of models' decision-making with expert intuition by evaluating the causal effects of code similarities and differences on the clone predictions of the models. Additionally, we evaluate the similarity intuition alignment, robustness to confounding influences, and prediction consistency of the models. Finally, we rank the models in order of most aligned and thus most reliable to least aligned and thus least reliable for semantic code clone detection. Our contributions lay a foundation for building and evaluating trustworthy semantic code clone detection systems.
Keyword:
Explainable AI
Model interpretation
Semantic code clones
Causal inference
Model alignment
Interpreting clone detection

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

S
Singapore Management University
学者数:
1.5K
论文数: 2.5K
被引数: 3.5K
引用论文

引用论文

Long noncoding RNA hypoxia-inducible factor 1 alpha-antisense RNA 1 promotes tumor necrosis factor-α-induced apoptosis through caspase 3 in Kupffer cells
err2018-01-01
err0
errOAAI
errYanghe Wu; Jiguang Ding; Qingfeng Sun; Ke Zhou; Weiwei Zhang; Qingwei Du; Tingyan Xu; Wangwang Xu
err分享
err收藏
err分享
err收藏
err分享
err收藏
Causes of pneumonia presenting to a district general hospital.
err1981-08-01
err0
errOAAI
errR J White; A D Blainey; K J Harrison; S K Clarke
err分享
err收藏
学者 查看更多内容