Paper Reading AI Learner

Weakly Supervised Vulnerability Localization via Multiple Instance Learning

2025-09-14 15:11:39
Wenchao Gu, Yupan Chen, Yanlin Wang, Hongyu Zhang, Cuiyun Gao, Michael R. Lyu

Abstract

Software vulnerability detection has emerged as a significant concern in the field of software security recently, capturing the attention of numerous researchers and developers. Most previous approaches focus on coarse-grained vulnerability detection, such as at the function or file level. However, the developers would still encounter the challenge of manually inspecting a large volume of code inside the vulnerable function to identify the specific vulnerable statements for modification, indicating the importance of vulnerability localization. Training the model for vulnerability localization usually requires ground-truth labels at the statement-level, and labeling vulnerable statements demands expert knowledge, which incurs high costs. Hence, the demand for an approach that eliminates the need for additional labeling at the statement-level is on the rise. To tackle this problem, we propose a novel approach called WAVES for WeAkly supervised Vulnerability Localization via multiplE inStance learning, which does not need the additional statement-level labels during the training. WAVES has the capability to determine whether a function is vulnerable (i.e., vulnerability detection) and pinpoint the vulnerable statements (i.e., vulnerability localization). Specifically, inspired by the concept of multiple instance learning, WAVES converts the ground-truth label at the function-level into pseudo labels for individual statements, eliminating the need for additional statement-level labeling. These pseudo labels are utilized to train the classifiers for the function-level representation vectors. Extensive experimentation on three popular benchmark datasets demonstrates that, in comparison to previous baselines, our approach achieves comparable performance in vulnerability detection and state-of-the-art performance in statement-level vulnerability localization.

Abstract (translated)

近期,软件漏洞检测已成为软件安全领域的一个重要议题,吸引了众多研究人员和开发者的关注。以往的大多数方法主要集中在粗粒度的漏洞检测上,例如在函数或文件级别进行检测。然而,开发人员仍面临手动检查脆弱功能内部大量代码以识别需修改的具体脆弱语句这一挑战,这表明了漏洞定位的重要性。为了训练用于漏洞定位的模型,通常需要具有语句级别的真实标签,并且标注脆弱语句则需要专家知识,从而产生了高昂的成本。因此,对无需额外进行语句级标注的方法的需求日益增长。 为了解决这个问题,我们提出了一种新颖的方法叫做 WAVES(通过多实例学习进行弱监督漏洞定位),该方法在训练过程中不需要额外的语句级别标签。WAVES具有判断一个函数是否脆弱(即漏洞检测)以及确定具体的脆弱语句(即漏洞定位)的能力。具体来说,受多重实例学习概念的启发,WAVES将函数级别的真实标签转换为单个语句的伪标签,从而消除了对额外语句级别标注的需求。这些伪标签被用来训练用于函数级表示向量的分类器。 在三个流行基准数据集上的广泛实验表明,与之前的基线方法相比,我们的方法在漏洞检测方面取得了可比性能,在语句级别的漏洞定位方面达到了当前最佳水平。

URL

https://arxiv.org/abs/2509.11312

PDF

https://arxiv.org/pdf/2509.11312.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot