Enregistré dans:
Détails bibliographiques
Auteurs principaux: Liu, Han, Zhang, Jian, Zhang, Cen, Zhang, Xiaohan, Li, Kaixuan, Chen, Sen, Lin, Shang-Wei, Chen, Yixiang, Li, Xinhua, Liu, Yang
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:https://arxiv.org/abs/2403.16032
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910150382583808
author Liu, Han
Zhang, Jian
Zhang, Cen
Zhang, Xiaohan
Li, Kaixuan
Chen, Sen
Lin, Shang-Wei
Chen, Yixiang
Li, Xinhua
Liu, Yang
author_facet Liu, Han
Zhang, Jian
Zhang, Cen
Zhang, Xiaohan
Li, Kaixuan
Chen, Sen
Lin, Shang-Wei
Chen, Yixiang
Li, Xinhua
Liu, Yang
contents Static analysis tools have evolved over time to assist in detecting bugs. However, the excessive false warnings can impede developers' productivity and confidence in the tools. Previous research efforts have explored learning-based approaches to identify bug warnings. Nevertheless, their coarse granularity, focusing on either long-term warnings or function-level alerts, is insensitive to individual bugs. Also, they rely on manually crafted features or solely on source code semantics, which is inadequate for effective learning. In this paper, we propose DeepFWI, a learning-based approach that identifies bug-sensitive warnings at a fine-grained granularity. Specifically, we design a novel LSTM-based model that captures multi-modal semantics of source code and warnings from automated static analysis tools (ASATs) and highlights their correlations with cross-attention. To tackle the data scarcity of training and evaluation, we collected a large-scale dataset of 280,273 warnings. We conducted extensive experiments on the dataset to evaluate DeepFWI. The experimental results demonstrate the effectiveness of our approach, with an F1-score 67.06% for confirming true warnings in a finer-grained manner, significantly outperforming all baselines. Additionally, to validate the practicality of DeepFWI from the perspective of developers, we applied DeepFWI to four popular open-source projects. Our approach filtered out the vast majority of warnings, while still successfully surfacing 25 true bug-related warnings that were confirmed through manual analysis.
format Preprint
id arxiv_https___arxiv_org_abs_2403_16032
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle DeepFWI: Identifying Bug-Sensitive Warnings with Multi-Modal Code-Warning Semantics
Liu, Han
Zhang, Jian
Zhang, Cen
Zhang, Xiaohan
Li, Kaixuan
Chen, Sen
Lin, Shang-Wei
Chen, Yixiang
Li, Xinhua
Liu, Yang
Software Engineering
Static analysis tools have evolved over time to assist in detecting bugs. However, the excessive false warnings can impede developers' productivity and confidence in the tools. Previous research efforts have explored learning-based approaches to identify bug warnings. Nevertheless, their coarse granularity, focusing on either long-term warnings or function-level alerts, is insensitive to individual bugs. Also, they rely on manually crafted features or solely on source code semantics, which is inadequate for effective learning. In this paper, we propose DeepFWI, a learning-based approach that identifies bug-sensitive warnings at a fine-grained granularity. Specifically, we design a novel LSTM-based model that captures multi-modal semantics of source code and warnings from automated static analysis tools (ASATs) and highlights their correlations with cross-attention. To tackle the data scarcity of training and evaluation, we collected a large-scale dataset of 280,273 warnings. We conducted extensive experiments on the dataset to evaluate DeepFWI. The experimental results demonstrate the effectiveness of our approach, with an F1-score 67.06% for confirming true warnings in a finer-grained manner, significantly outperforming all baselines. Additionally, to validate the practicality of DeepFWI from the perspective of developers, we applied DeepFWI to four popular open-source projects. Our approach filtered out the vast majority of warnings, while still successfully surfacing 25 true bug-related warnings that were confirmed through manual analysis.
title DeepFWI: Identifying Bug-Sensitive Warnings with Multi-Modal Code-Warning Semantics
topic Software Engineering
url https://arxiv.org/abs/2403.16032