Salvato in:
Dettagli Bibliografici
Autori principali: Liu, Ruitong, Wang, Yanbin, Xu, Haitao, Sun, Jianguo, Zhang, Fan, Li, Peiyue, Guo, Zhenhao
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:https://arxiv.org/abs/2404.14719
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913748934983680
author Liu, Ruitong
Wang, Yanbin
Xu, Haitao
Sun, Jianguo
Zhang, Fan
Li, Peiyue
Guo, Zhenhao
author_facet Liu, Ruitong
Wang, Yanbin
Xu, Haitao
Sun, Jianguo
Zhang, Fan
Li, Peiyue
Guo, Zhenhao
contents Code Language Models (codeLMs) and Graph Neural Networks (GNNs) are widely used in code vulnerability detection. However, GNNs often rely on aggregating information from adjacent nodes, limiting structural information propagation across layers. While codeLMs can supplement GNNs with semantic information, existing integration methods underexplore their collaborative potential. To address these challenges, we propose Vul-LMGNNs, integrating pre-trained codeLMs with GNNs to enable cross-layer propagation of semantic and structural information. Vul-LMGNNs leverage Code Property Graphs (CPGs) to incorporate syntax, control flow, and data dependencies, using gated GNNs for structural extraction. An online knowledge distillation (KD) mechanism allows a student GNN to capture structural information from a trained counterpart via alternating training. Additionally, an "implicit-explicit" joint training framework leverages codeLMs to initialize embeddings and propagate code semantics. In the explicit phase, it performs late fusion via linear interpolation. Evaluations on real-world vulnerability datasets show Vul-LMGNNs outperform 17 state-of-the-art approaches. Source code is available at: https://github.com/Vul-LMGNN/vul-LMGNN.
format Preprint
id arxiv_https___arxiv_org_abs_2404_14719
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Vul-LMGNNs: Fusing language models and online-distilled graph neural networks for code vulnerability detection
Liu, Ruitong
Wang, Yanbin
Xu, Haitao
Sun, Jianguo
Zhang, Fan
Li, Peiyue
Guo, Zhenhao
Cryptography and Security
Code Language Models (codeLMs) and Graph Neural Networks (GNNs) are widely used in code vulnerability detection. However, GNNs often rely on aggregating information from adjacent nodes, limiting structural information propagation across layers. While codeLMs can supplement GNNs with semantic information, existing integration methods underexplore their collaborative potential. To address these challenges, we propose Vul-LMGNNs, integrating pre-trained codeLMs with GNNs to enable cross-layer propagation of semantic and structural information. Vul-LMGNNs leverage Code Property Graphs (CPGs) to incorporate syntax, control flow, and data dependencies, using gated GNNs for structural extraction. An online knowledge distillation (KD) mechanism allows a student GNN to capture structural information from a trained counterpart via alternating training. Additionally, an "implicit-explicit" joint training framework leverages codeLMs to initialize embeddings and propagate code semantics. In the explicit phase, it performs late fusion via linear interpolation. Evaluations on real-world vulnerability datasets show Vul-LMGNNs outperform 17 state-of-the-art approaches. Source code is available at: https://github.com/Vul-LMGNN/vul-LMGNN.
title Vul-LMGNNs: Fusing language models and online-distilled graph neural networks for code vulnerability detection
topic Cryptography and Security
url https://arxiv.org/abs/2404.14719