Meta-Path Based Attentional Graph Learning Model for Vulnerability
Detection
- URL: http://arxiv.org/abs/2212.14274v2
- Date: Mon, 11 Dec 2023 01:37:39 GMT
- Title: Meta-Path Based Attentional Graph Learning Model for Vulnerability
Detection
- Authors: Xin-Cheng Wen, Cuiyun Gao, Jiaxin Ye, Yichen Li, Zhihong Tian, Yan
Jia, Xuan Wang
- Abstract summary: We propose a Meta-path based Attentional Graph learning model for code vulNErability deTection, called MAGNET.
A meta-path based hierarchical attentional graph neural network is also proposed to capture the relations between distant nodes in the graph.
We evaluate MAGNET on three public datasets and the results show that MAGNET outperforms the best baseline method in terms of F1 score by 6.32%, 21.50%, and 25.40%, respectively.
- Score: 21.10614864296154
- License: http://creativecommons.org/publicdomain/zero/1.0/
- Abstract: In recent years, deep learning (DL)-based methods have been widely used in
code vulnerability detection. The DL-based methods typically extract structural
information from source code, e.g., code structure graph, and adopt neural
networks such as Graph Neural Networks (GNNs) to learn the graph
representations. However, these methods fail to consider the heterogeneous
relations in the code structure graph, i.e., the heterogeneous relations mean
that the different types of edges connect different types of nodes in the
graph, which may obstruct the graph representation learning. Besides, these
methods are limited in capturing long-range dependencies due to the deep levels
in the code structure graph. In this paper, we propose a Meta-path based
Attentional Graph learning model for code vulNErability deTection, called
MAGNET. MAGNET constructs a multi-granularity meta-path graph for each code
snippet, in which the heterogeneous relations are denoted as meta-paths to
represent the structural information. A meta-path based hierarchical
attentional graph neural network is also proposed to capture the relations
between distant nodes in the graph. We evaluate MAGNET on three public datasets
and the results show that MAGNET outperforms the best baseline method in terms
of F1 score by 6.32%, 21.50%, and 25.40%, respectively. MAGNET also achieves
the best performance among all the baseline methods in detecting Top-25 most
dangerous Common Weakness Enumerations (CWEs), further demonstrating its
effectiveness in vulnerability detection.
Related papers
- GraphEdit: Large Language Models for Graph Structure Learning [62.618818029177355]
Graph Structure Learning (GSL) focuses on capturing intrinsic dependencies and interactions among nodes in graph-structured data.
Existing GSL methods heavily depend on explicit graph structural information as supervision signals.
We propose GraphEdit, an approach that leverages large language models (LLMs) to learn complex node relationships in graph-structured data.
arXiv Detail & Related papers (2024-02-23T08:29:42Z) - NodeFormer: A Scalable Graph Structure Learning Transformer for Node
Classification [70.51126383984555]
We introduce a novel all-pair message passing scheme for efficiently propagating node signals between arbitrary nodes.
The efficient computation is enabled by a kernerlized Gumbel-Softmax operator.
Experiments demonstrate the promising efficacy of the method in various tasks including node classification on graphs.
arXiv Detail & Related papers (2023-06-14T09:21:15Z) - A Robust Stacking Framework for Training Deep Graph Models with
Multifaceted Node Features [61.92791503017341]
Graph Neural Networks (GNNs) with numerical node features and graph structure as inputs have demonstrated superior performance on various supervised learning tasks with graph data.
The best models for such data types in most standard supervised learning settings with IID (non-graph) data are not easily incorporated into a GNN.
Here we propose a robust stacking framework that fuses graph-aware propagation with arbitrary models intended for IID data.
arXiv Detail & Related papers (2022-06-16T22:46:33Z) - SHGNN: Structure-Aware Heterogeneous Graph Neural Network [77.78459918119536]
This paper proposes a novel Structure-Aware Heterogeneous Graph Neural Network (SHGNN) to address the above limitations.
We first utilize a feature propagation module to capture the local structure information of intermediate nodes in the meta-path.
Next, we use a tree-attention aggregator to incorporate the graph structure information into the aggregation module on the meta-path.
Finally, we leverage a meta-path aggregator to fuse the information aggregated from different meta-paths.
arXiv Detail & Related papers (2021-12-12T14:18:18Z) - A Robust and Generalized Framework for Adversarial Graph Embedding [73.37228022428663]
We propose a robust framework for adversarial graph embedding, named AGE.
AGE generates the fake neighbor nodes as the enhanced negative samples from the implicit distribution.
Based on this framework, we propose three models to handle three types of graph data.
arXiv Detail & Related papers (2021-05-22T07:05:48Z) - Higher-Order Attribute-Enhancing Heterogeneous Graph Neural Networks [67.25782890241496]
We propose a higher-order Attribute-Enhancing Graph Neural Network (HAEGNN) for heterogeneous network representation learning.
HAEGNN simultaneously incorporates meta-paths and meta-graphs for rich, heterogeneous semantics.
It shows superior performance against the state-of-the-art methods in node classification, node clustering, and visualization.
arXiv Detail & Related papers (2021-04-16T04:56:38Z) - Metapaths guided Neighbors aggregated Network for?Heterogeneous Graph
Reasoning [5.228629954007088]
We propose a Metapaths-guided Neighbors-aggregated Heterogeneous Graph Neural Network to improve performance.
We conduct extensive experiments for the proposed MHN on three real-world heterogeneous graph datasets.
arXiv Detail & Related papers (2021-03-11T05:42:06Z) - Representation Learning of Graphs Using Graph Convolutional Multilayer
Networks Based on Motifs [17.823543937167848]
mGCMN is a novel framework which utilizes node feature information and the higher order local structure of the graph.
It will greatly improve the learning efficiency of the graph neural network and promote a brand-new learning mode establishment.
arXiv Detail & Related papers (2020-07-31T04:18:20Z) - MAGNN: Metapath Aggregated Graph Neural Network for Heterogeneous Graph
Embedding [36.6390478350677]
We propose a new model named Metapath Aggregated Graph Neural Network (MAGNN) to boost the final performance.
MAGNN employs three major components, i.e., the node content transformation to encapsulate input node attributes, the intra-metapath aggregation to incorporate intermediate semantic nodes, and the inter-metapath aggregation to combine messages from multiple metapaths.
Experiments show that MAGNN achieves more accurate prediction results than state-of-the-art baselines.
arXiv Detail & Related papers (2020-02-05T08:21:00Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.