arrow
返回

Aligning XAI explanations with software developers' expectations: A case study with code smell prioritization

delete2024-03-01
delete4
PRE
AI
Z
Zijie Huang
余
余慧群 (Huiqun Yu) *
G
Guisheng Fan
Z
Zhiqing Shao
M
Mingchen Li
Y
Yuguo Liang
DOI:10.1016/j.eswa.2023.121640delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
EXplainable Artificial Intelligence (XAI) aims at improving users' trust in black-boxed models by explaining their predictions. However, XAI techniques produced unreasonable explanations for software defect prediction since expected outputs (e.g., causes of bugs) were not captured by features used to build models. To set aside feature engineering limitations and evaluate whether XAI could adapt to developers, we exploit XAI for code smell prioritization (i.e., predicting criticalities of sub-optimal coding practices and design choices), whose features could capture developers' major expectations. We assess the gap between XAI explanations and developers' expectations in terms of (1) the accuracy of prediction, (2) the coverage of explanations on expectations, and (3) the complexity of explanations. We also narrow the gap by preserving the features related to developers' expectations as much as possible in feature selection. We find that XAI can explain smells with simpler causes in top 3 to 5 features. Complex smells can be explained in around 10 features, which need more expertise to interpret. Selecting features adapting to the developers' expectations improves coverage by 5% to 29%, with almost no negative impact on accuracy and complexity. Results also highlight the need of dividing coarse-grained prediction targets and developing fine-grained feature engineering.
Keyword:
Code smell
Software quality assurance
Explainable artificial intelligence
Empirical software engineering

期刊

Expert Systems with Applications 封面图
Expert Systems with Applications
IF:
7.5
论文数:
3.0W
被引数:
10.2W

机构

暂无机构信息
引用论文

引用论文

The Impact of Feature Importance Methods on the Interpretation of Defect Classifiers
err2022-07-01
err62
errOAAI
errRajbahadur, Gopi Krishnan; Wang, Shaowei; Oliva, Gustavo A.; Kamei, Yasutaka; Hassan, Ahmed E.
err分享
err收藏
Automatic detection of Long Method and God Class code smells through neural source code embeddings
err2022-10-01
err25
errOAAI
errKovacevic, Aleksandar; Slivka, Jelena; Vidakovic, Dragan; Grujic, Katarina-Glorija; Luburic, Nikola; Prokic, Simona; Sladic, Goran
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
A study of PM, PM10 and PM2.5 concentration at a tropical coastal station
err2002-02-01
err0
PREAI
errPreetha S Pillai; S Suresh Babu; K Krishna Moorthy
err分享
err收藏
Actionable Analytics: Stop Telling Me What It Is; Please Tell Me What To Do
err2021-07-01
err19
PREAI
errTantithamthavorn, Chakkrit; Jiarpakdee, Jirayus; Grundy, John
err分享
err收藏
The Emerging Technology of Big Data
err
IF0
err2019-03-29
err0
PREAI
errHeru Susanto; Fang-Yie Leu; Chin Kang Chen
err分享
err收藏
Learning Difficulties Related of Health Status of Moroccan Students
err2015-07-01
err0
errOAAI
errFatima Zahra Soubhi; Laurent Lima; Mohammed Talbi; Noureddine Knouzi; Bouzekri Touri
err分享
err收藏
Recombination between an expressed immunoglobulin heavy-chain gene and a germline variable gene segment in a Ly 1+ B-cell lymphoma
err1986-08-01
err0
PREAI
errRobert Kleinfield; Richard R. Hardy; David Tarlinton; Jeffery Dangl; Leonard A. Herzenberg; Martin Weigert
err分享
err收藏
SQAPlanner: Generating Data-Informed Software Quality Improvement Plans
err2022-08-01
err26
errOAAI
errRajapaksha, Dilini; Tantithamthavorn, Chakkrit; Jiarpakdee, Jirayus; Bergmeir, Christoph; Grundy, John; Buntine, Wray
err分享
err收藏
学者 查看更多内容