Leveraging Context Information for Self-Admitted Technical Debt Detection
Self-Admitted Technical Debt (SATD) refers to nonoptimal software design or implementation that is acknowledged and explicitly documented in the code by developers. Detecting SATD and understanding its evolution can help developers better manage their development activities and monitor the software quality. In recent years, numerous approaches have been proposed to automatically identify SATD. However, these approaches still suffer from a high number of false positives (i.e., non-SATD comments being detected as SATD). To further advance this field, in this paper, we conduct an empirical study to evaluate the performance of the state-of-theart SATD detection tools and investigate the causes behind the false positives. By manually analyzing 135 false positive cases, we identify the main types of comments that are easily misclassified. To address this issue, we propose a new approach, CASTI, which integrates context information into CodeBERT, a pre-trained model for programming languages. Our evaluation demonstrates that CASTI can significantly reduce the false positives and that the context information does help improve the performance.
Authors
- Bin Lin (ORCID: https://orcid.org/0000-0001-6307-8460)
- Yutaro Kashiwa (ORCID: https://orcid.org/0000-0002-9633-7577)
- Hajimu Iida (ORCID: https://orcid.org/0000-0002-2919-6620)
- Kenji Fujiwara (ORCID: https://orcid.org/0000-0002-1562-9341)
- Miki Yonekura
Institutions
- Hangzhou Dianzi University (CN)
- Nara Institute of Science and Technology (JP)
- Nara Women's University (JP)
Publication Details
- Published
- 2025-04-27
- DOI
- https://doi.org/10.1109/icpc66645.2025.00018
- Citations
- 1
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 3.25