Lune

ISSTA2023Top-tier venue

Interpreters for GNN-Based Vulnerability Detection: Are We There Yet?

Yutao Hu, Suyuan Wang, Wenke Li, Junru Peng, Yueming Wu, Deqing Zou, Hai Jin

Abstract

Traditional vulnerability detection methods have limitations due to their need for extensive manual labor. Using automated means for vulnerability detection has attracted research interest, especially deep learning, which has achieved remarkable results. Since graphs can better convey the structural feature of code than text, graph neural network (GNN) based vulnerability detection is significantly better than text-based approaches. Therefore, GNN-based vulnerability detection approaches are becoming popular. However, GNN models are close to black boxes for security analysts, so the models cannot provide clear evidence to explain why a code sample is detected as vulnerable or secure. At this stage, many GNN interpreters have been proposed. However, the explanations provided by these interpretations for vulnerability detection models are highly inconsistent and unconvincing to security experts. To address the above issues, we propose principled guidelines to assess the quality of the interpretation approaches for GNN-based vulnerability detectors based on concerns in vulnerability detection, namely, stability, robustness, and effectiveness. We conduct extensive experiments to evaluate the interpretation performance of six famous interpreters (GNN-LRP, DeepLIFT, GradCAM, GNNExplainer, PGExplainer, and SubGraphX) on four vulnerability detectors (DeepWukong, Devign, IVDetect, and Reveal). The experimental results show that the target interpreters achieve poor performance in terms of effectiveness, stability, and robustness. For effectiveness, we find that the instance-independent methods outperform others due to their deep insight into the detection model. In terms of stability, the perturbation-based interpretation methods are more resilient to slight changes in model parameters as they are model-agnostic. For robustness, the instance-independent approaches provide more consistent interpretation results for similar vulnerabilities.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation cites On Explainability of Graph Neural Networks via Subgraph Explorations
  • Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation cites Parameterized Explainer for Graph Neural Network
  • Coca: Improving and Explaining Graph Neural Network-Based Vulnerability Detection Systems cites Parameterized Explainer for Graph Neural Network
  • Cutting the Fuse: Actionable APT Attack Blocking in Provenance-based IDS cites Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation
  • Cutting the Fuse: Actionable APT Attack Blocking in Provenance-based IDS cites On Explainability of Graph Neural Networks via Subgraph Explorations
  • Cutting the Fuse: Actionable APT Attack Blocking in Provenance-based IDS cites Parameterized Explainer for Graph Neural Network
  • On Explainability of Graph Neural Networks via Subgraph Explorations cites PGM-Explainer: Probabilistic Graphical Model Explanations for Graph Neural Networks
  • On Explainability of Graph Neural Networks via Subgraph Explorations cites Parameterized Explainer for Graph Neural Network
  • Snopy: Bridging Sample Denoising with Causal Graph Learning for Effective Vulnerability Detection cites Coca: Improving and Explaining Graph Neural Network-Based Vulnerability Detection Systems
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Coca: Improving and Explaining Graph Neural Network-Based Vulnerability Detection SystemsSicong Cao, Xiaobing Sun, Xiaoxue Wu, David Lo et al.ICSE 2024 · 27 citations
  2. Graph Neural Networks for Vulnerability Detection: A Counterfactual ExplanationZhaoyang Chu, Yao Wan, Qian Li, Yang Wu et al.ISSTA 2024 · 19 citations
  3. Snopy: Bridging Sample Denoising with Causal Graph Learning for Effective Vulnerability DetectionSicong Cao, Xiaobing Sun, Xiaoxue Wu, David Lo et al.ASE 2024 · 2 citations
  4. Cutting the Fuse: Actionable APT Attack Blocking in Provenance-based IDSWeiheng Wu, Wei Qiao, Teng Li, Yebo Feng et al.USENIX Security 2026

Builds on11

  1. A Security Analysis of HoneywordsDing Wang, Haibo Cheng, Ping Wang, Jeff Yan et al.NDSS 2018 · 1,102 citations
  2. Parameterized Explainer for Graph Neural NetworkDongsheng Luo, Wei Cheng, Dongkuan Xu, Wenchao Yu et al.NeurIPS 2020 · 888 citations
  3. On Explainability of Graph Neural Networks via Subgraph ExplorationsHao Yuan, Haiyang Yu, Jie Wang, Kang Li et al.ICML 2021 · 498 citations
  4. PGM-Explainer: Probabilistic Graphical Model Explanations for Graph Neural NetworksMinh N. Vu, My T. ThaiNeurIPS 2020 · 437 citations
  5. VUDDY: A Scalable Approach for Vulnerable Code Clone DiscoverySeulbae Kim, Seunghoon Woo, Heejo Lee, Hakjoo OhS&P 2017 · 388 citations

Related papers

  1. Vulnerability detection with fine-grained interpretationsYi Li, Shaohua Wang, Tien N. NguyenFSE 2021 · 283 citations
  2. An Empirical Study of Deep Learning Models for Vulnerability DetectionBenjamin Steenhoek, Md Mahbubur Rahman, Richard Jiles, Wei LeICSE 2023 · 107 citations
  3. Enhancing Deep Learning-based Vulnerability Detection by Building Behavior Graph ModelBin Yuan, Yifan Lu, Yilin Fang, Yueming Wu et al.ICSE 2023 · 20 citations
  4. PL4XGL: A Programming Language Approach to Explainable Graph LearningMinseok Jeon, Jihyeok Park, Hakjoo OhPLDI 2024 · 2 citations
  5. LLMxCPG: Context-Aware Vulnerability Detection Through Code Property Graph-Guided Large Language ModelsAhmed Lekssays, Hamza Mouhcine, Khang Tran, Ting Yu et al.USENIX Security 2025
Dusk over the sea between two cliffs drawn in fine vertical lines