Counterfactual Data Augmentation with Denoising Diffusion for Graph Anomaly Detection

Chunjing Xiao, Shikang Pang, Xovee Xu, Xuan Li, Goce Trajcevski +1 more
7/2/2024
cs.LGcs.SI

No official code found. Best implementation: ChunjingXiao/CAGAD (6 stars, MIT, last commit 2023-04-27).

Abstract

A critical aspect of Graph Neural Networks (GNNs) is to enhance the node representations by aggregating node neighborhood information. However, when detecting anomalies, the representations of abnormal nodes are prone to be averaged by normal neighbors, making the learned anomaly representations less distinguishable. To tackle this issue, we propose CAGAD -- an unsupervised Counterfactual data Augmentation method for Graph Anomaly Detection -- which introduces a graph pointer neural network as the heterophilic node detector to identify potential anomalies whose neighborhoods are normal-node-dominant. For each identified potential anomaly, we design a graph-specific diffusion model to translate a part of its neighbors, which are probably normal, into anomalous ones. At last, we involve these translated neighbors in GNN neighborhood aggregation to produce counterfactual representations of anomalies. Through aggregating the translated anomalous neighbors, counterfactual representations become more distinguishable and further advocate detection performance. The experimental results on four datasets demonstrate that CAGAD significantly outperforms strong baselines, with an average improvement of 2.35% on F1, 2.53% on AUC-ROC, and 2.79% on AUC-PR.

View on arXivView PDF

Code Implementations(1)

ChunjingXiao/CAGADCommunity100%
MIT
60PythonApr 27, 20233 years agoMIT

Similar Papers

Cite this paper

@article{xiao2024counterfactual,
  title  = {Counterfactual Data Augmentation with Denoising Diffusion for Graph Anomaly Detection},
  author = {Chunjing Xiao and Shikang Pang and Xovee Xu and Xuan Li and Goce Trajcevski and Fan Zhou},
  year   = {2024},
  eprint = {2407.02143},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.02143v1}
}

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/2407.02143.svg)](https://codeofpaper.com/paper/2407.02143)

Discussion