All models

ReVeal-vuln

Vulnerability detector that embeds code property graphs with a gated graph neural network and classifies with an MLP.

Graphs and geometry · 478 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (121 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
841.5K
Operations
478
Framework
PyTorch
Recurrent
Yes
Published
IEEE Transactions on Software Engineering (arXiv 2020)
Cited by
836 (as of 29 October 2026)
Authors
Saikat Chakraborty, Rahul Krishna, Yangruibo Ding, Baishakhi Ray
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m19769
Graph hash
5d95270fe75f6021ae4c82550f3005615545b8a6dde393c0667ae9103cb94d87
Skeleton hash
deb3d04c5496033b81bd559831c9ad359e5cccb0ad658e2fc57b991a941a72ca
Architecture hash
87b9978de5c77a9b4a3c0c929e3b022ec7630b5a896542878ca2248f73102c6f
Diagram SHA-256
53f5c8b73dd3334102cf62802c4e2baae6e1d4a9f11d42287506ab9eaa0969f8
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

ReVeal is a vulnerability prediction pipeline that came out of an empirical study of how well existing deep-learning vulnerability detectors perform in a real-world prediction scenario. The study found that their performance drops by more than 50% there. The authors trace the drop to the training data, such as duplication and unrealistic class distributions, and to model choices, such as simple token-based models.

ReVeal converts a code fragment to a feature vector using a code property graph and a gated graph neural network (GGNN). Each graph vertex starts as a one-hot encoding of its type joined with a word2vec embedding of its code fragment. The GGNN then gives every vertex a gated recurrent unit that updates its embedding from the embeddings of all its neighbors. The vertex embeddings are summed element-wise into one vector for the graph. The feature vectors are resampled with SMOTE to address class imbalance, and a multi-layer perceptron trained with a triplet loss learns a representation that separates vulnerable from non-vulnerable examples.

For evaluation the authors curated a new vulnerability dataset from two real-world projects, Chromium and Debian. The paper reports up to a 33.57% boost in precision and a 128.38% boost in recall compared with the top-performing model in the literature it studied. The GGNN is pre-trained with a classification layer on top of its feature extraction, a mechanism the paper describes as similar to Devign.

Key idea. The paper shows that existing deep-learning vulnerability detectors drop by more than 50% in a real-world setting and builds ReVeal, a graph-based pipeline, in response.

  • ReVeal
  • vulnerability detection
  • vulnerability prediction
  • code property graph
  • gated graph neural network
  • GGNN
  • software security
  • source code analysis
  • Chromium and Debian dataset

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{chakraborty2020deeplearningbasedvulnerability,
      title={Deep Learning based Vulnerability Detection: Are We There Yet?}, 
      author={Saikat Chakraborty and Rahul Krishna and Yangruibo Ding and Baishakhi Ray},
      year={2020},
      eprint={2009.07235},
      archivePrefix={arXiv},
      primaryClass={cs.SE},
      url={https://arxiv.org/abs/2009.07235}, 
}