arXiv · 2208.05227
Multi-View Pre-Trained Model for Code Vulnerability Identification
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 overlook the multiple rich structural information contained in the code itself. 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.
Explore related subjects
Keep this discovery
Xuxiang Jiang, Yinhao Xiao, Jun Wang, Wei Zhang. 2022-08-10. Multi-View Pre-Trained Model for Code Vulnerability Identification. https://arxiv.org/abs/2208.05227
Cite the original work for its findings. Save a collection to share your selection of sources.