{"title":"Multi-View Pre-Trained Model for Code Vulnerability Identification","authors":"Xuxia Jiang, Yinhao Xiao, Jun Wang, Wei Zhang","doi":"10.48550/arXiv.2208.05227","DOIUrl":null,"url":null,"abstract":". Vulnerability identification is crucial for cyber security in the software-related industry. Early identification methods require significant manual efforts in crafting features or annotating vulnerable code. Although the recent pre-trained models alleviate this issue, they over-look the multiple rich structural information contained in the code it-self. In this paper, we propose a novel Multi-View Pre-Trained Model (MV-PTM) that encodes both sequential and multi-type structural information of the source code and uses contrastive learning to enhance code representations. The experiments conducted on two public datasets demonstrate the superiority of MV-PTM. In particular, MV-PTM improves GraphCodeBERT by 3.36% on average in terms of F1 score.","PeriodicalId":89308,"journal":{"name":"WASA ... : International Conference on Wireless Algorithms, Systems, and Applications : proceedings. WASA","volume":"10 1","pages":"127-135"},"PeriodicalIF":0.0000,"publicationDate":"2022-08-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"WASA ... : International Conference on Wireless Algorithms, Systems, and Applications : proceedings. WASA","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.48550/arXiv.2208.05227","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
. Vulnerability identification is crucial for cyber security in the software-related industry. Early identification methods require significant manual efforts in crafting features or annotating vulnerable code. Although the recent pre-trained models alleviate this issue, they over-look the multiple rich structural information contained in the code it-self. In this paper, we propose a novel Multi-View Pre-Trained Model (MV-PTM) that encodes both sequential and multi-type structural information of the source code and uses contrastive learning to enhance code representations. The experiments conducted on two public datasets demonstrate the superiority of MV-PTM. In particular, MV-PTM improves GraphCodeBERT by 3.36% on average in terms of F1 score.