Learning Feature Encoder with Synthetic Anomalies for Weakly Supervised Graph Anomaly Detection
Abstract
Weakly supervised graph anomaly detection aims to unveil unusual graph instances, e.g., nodes, whose behaviors are significantly different from the normal ones, under the condition that only a limited number of annotated anomalies but abundant unlabeled samples are available. A major challenge for this task is to learn a meaningful latent feature representation that reduces intra-class variance among normal data while remaining highly sensitive to anomalies. Although recent works have applied self-supervised feature learning methods for graph anomaly detection, their strategies are not specifically tailored to the unique requirements of graph anomaly detection, which motivates our exploration of a more domain-specific feature learning approach. In this paper, we introduce a weakly supervised graph anomaly detection method that leverages a feature learning strategy specifically tailored for graph anomalies. Our approach is built upon a multi-task learning scheme designed to extract robust feature representations, through synthesized anomalies. We generate these synthetic anomalies by perturbing the normal graph in various ways and assign a dedicated detection head to each anomaly type. This design ensures that the learned features are sensitive to potential deviations from normal patterns. Although synthetic anomalies may not perfectly replicate real-world patterns, they provide valuable auxiliary data for effective feature learning—much like the way features learned from classifying ImageNet images are used in various downstream computer vision tasks. Additionally, we adopt a two-phase learning strategy to balance the influence of synthetic anomalies and real data. The process begins with an initial warm-up phase using only synthetic samples, followed by a full-training phase that integrates both tasks. Numerous experiments on public datasets demonstrate the superior performance of our proposed strategy, in comparison with those of its competitors. Code is available at.
Benchmark Results
Tested on 2 datasets 8 baseline values reported too low Non-standard metric on 1 dataset
Tables show presented results in global context (best 3 papers + GCN + MLP).
Heterophily Benchmark
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | NID_GAT | 0.9703
±0.0002 | |
| 2 | NID_GCN | 0.9685
±0.0010 | |
| 3 | UniGAP | 0.8421
±0.0080 | |
| 16 | GCN | 0.7902
±0.0060 best reported | |
| 26 | GAT | 0.7835
±0.0116 best reported | best at pub: Node Identifiers: Compact, Discrete Representations for Efficient Graph Learning (ICLR 2024) |
| 46 | GraphSAGE | 0.7721
±0.0130 best reported | |
| 58 | SAGE | 0.7644
±0.0062 | |
| 96 | MLP | 0.7082
±0.0010 best reported | best at pub: Gumbel-MPNN: Graph Rewiring with Gumbel-Softmax (2025) |
| 105 | GATSep | 0.6996 best reported | best at pub: Data Augmentation for Supervised Graph Outlier Detection via Latent Diffusion Models (LoG 2023) |
| 110 | BWGNN | 0.6947 best reported | best at pub: Data Augmentation for Supervised Graph Outlier Detection via Latent Diffusion Models (LoG 2023) |
| 114 | PCGNN | 0.6838 best reported | best at pub: Data Augmentation for Supervised Graph Outlier Detection via Latent Diffusion Models (LoG 2023) |
| 115 | GHRN | 0.6824 best reported | best at pub: Data Augmentation for Supervised Graph Outlier Detection via Latent Diffusion Models (LoG 2023) |
| 118 | GIN | 0.6776 best reported | best at pub: Data Augmentation for Supervised Graph Outlier Detection via Latent Diffusion Models (LoG 2023) |
| 124 | weakly supervised graph anomaly detection method | 0.6570
±0.0200 | This paper |
| 131 | ConsisGAD | 0.6380
±0.0600 | prev best: Semi-supervised Graph Anomaly Detection via Robust Homophily Learning (NeurIPS 2025) Improvement within reported uncertainty; not highlighted. |
| 135 | CAREGNN | 0.6060
±0.0100 | This paper |
| 137 | CGNN | 0.5950
±0.0600 | This paper |
| 144 | H2FD | 0.5650
±0.0100 | This paper |
Other Graph Benchmarks
Amazon2M
Global leaderboard →Sorted by AUROC. Highlighted rows are from other papers.
| # | Model | AUROC ↑ | Paper |
|---|---|---|---|
| 1 | weakly supervised graph anomaly detection method | 0.9690
±0.0100 | This paper |
| 2 | ConsisGAD | 0.9520
±0.0100 | prev best: Semi-supervised Graph Anomaly Detection via Robust Homophily Learning (NeurIPS 2025) |
| 3 | GGAD | 0.9443 | |
| 4 | GATSep | 0.9370
±0.0100 | This paper |
| 6 | GAT | 0.9180
±0.0100 | This paper |
| 8 | GIN | 0.9100
±0.0100 | This paper |
| 9 | CGNN | 0.9090
±0.0200 | This paper |
| 10 | PCGNN | 0.9070
±0.0100 | This paper |
| 11 | MLP | 0.9030
±0.0100 | This paper |
| 12 | CAREGNN | 0.8990
±0.0100 | This paper |
| 13 | GraphSAGE | 0.8940
±0.0100 | This paper |
| 15 | BWGNN | 0.8850
±0.0200 | prev best: Semi-supervised Graph Anomaly Detection via Robust Homophily Learning (NeurIPS 2025) |
| 16 | GHRN | 0.8850
±0.0200 | This paper |
| 18 | H2FD | 0.8700
±0.0100 | This paper |
| 21 | GCN | 0.8220 | prev best: Semi-supervised Graph Anomaly Detection via Robust Homophily Learning (NeurIPS 2025) |
