Graph Contrastive Learning for Anomaly Detection

Bo Chen, Jing Zhang, Xiaokang Zhang, Yuxiao Dong, Jian Song +4 more
8/17/2021
50 citations
cs.LG
contrastive-ssl

Official code: THUDM/GraphCAD (34 stars, Python, last commit 2022-10-02). 1 more implementation below.

Abstract

Graph-based anomaly detection has been widely used for detecting malicious activities in real-world applications. Existing attempts to address this problem have thus far focused on structural feature engineering or learning in the binary classification regime.

Show full abstract

In this work, we propose to leverage graph contrastive coding and present the supervised GraphCAD model for contrasting abnormal nodes with normal ones in terms of their distances to the global context (e.g., the average of all nodes). To handle scenarios with scarce labels, we further enable GraphCAD as a self-supervised framework by designing a graph corrupting strategy for generating synthetic node labels. To achieve the contrastive objective, we design a graph neural network encoder that can infer and further remove suspicious links during message passing, as well as learn the global context of the input graph. We conduct extensive experiments on four public datasets, demonstrating that 1) GraphCAD significantly and consistently outperforms various advanced baselines and 2) its self-supervised version without fine-tuning can achieve comparable performance with its fully supervised version.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
THUDM/GraphCADOfficial34Python–2022-10-02
allanchen95/GraphCADOfficial9––2022-09-18
THUDM/GraphCADOfficial100%

TKDE'22-GraphCAD: https://arxiv.org/pdf/2108.07516.pdf

344PythonAug 17, 20224 years ago
anomaly-detectioncontrastive-learning

TKDE'22-GraphCAD: Graph Contrastive Learning for Anomaly Detection: https://arxiv.org/pdf/2108.07516.pdf

91Aug 15, 20214 years ago
anomaly-detectioncontrastive-learning

Similar Papers

Cite this paper

@article{chen2021graph,
  title  = {Graph Contrastive Learning for Anomaly Detection},
  author = {Bo Chen and Jing Zhang and Xiaokang Zhang and Yuxiao Dong and Jian Song and Peng Zhang and Kaibo Xu and Evgeny Kharlamov and Jie Tang},
  year   = {2021},
  eprint = {2108.07516},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.07516}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.07516.svg)](https://codeofpaper.com/paper/2108.07516)

Discussion