An Empirical Study of Gradient-based Explainability Techniques for Self-admitted Technical Debt Detection

Guoqiang Zhuang,
Yubin Qu,
Long Li,
Xianzhen Dou,
Mengao Li,

Abstract


Self-Admitted Technical Debt (SATD) is an intentionally introduced software code comment describing potential defects or other technical debt. Currently, deep learning is widely used in fields such as Natural Language Processing. Deep learning can be used for SATD detection, but there is a class imbalance problem and a large number of easily classified SATD instances that may potentially affect the loss value. As a result, we proposed a weighted focal loss function based on particle swarm to address the problem. Meanwhile, there is no empirical research based on local explanations for SATD detection. We have investigated local interpretation models such as Saliency Maps, Integrated Gradients, which are currently widely used in deep learning, and conducted empirical research for shared data sets. The research results show that our proposed weighted focal loss function can achieve the best performance for SATD detection; our model achieves 12.27%, 5.97%, and 5.62% improvement in Precision, Recall, and AUC compared to the baseline model, respectively; Local explanation models, including Saliency Maps and Integrated Gradients can cover nearly half of the manually labeled paradigms; these two interpretation models can also discover potential new paradigms.

Keywords


Self-Admitted Technical Debt, Deep learning, Explainability, Class imbalance, Focal loss

Citation Format:
Guoqiang Zhuang, Yubin Qu, Long Li, Xianzhen Dou, Mengao Li, "An Empirical Study of Gradient-based Explainability Techniques for Self-admitted Technical Debt Detection," Journal of Internet Technology, vol. 23, no. 3 , pp. 631-641, May. 2022.

Full Text:

PDF

Refbacks

  • There are currently no refbacks.





Published by Executive Committee, Taiwan Academic Network, Ministry of Education, Taipei, Taiwan, R.O.C
JIT Editorial Office, Office of Library and Information Services, National Dong Hwa University
No. 1, Sec. 2, Da Hsueh Rd., Shoufeng, Hualien 974301, Taiwan, R.O.C.
Tel: +886-3-931-7314  E-mail: jit.editorial@gmail.com