Abstract
Graph Anomaly Detection (GAD) is essential for identifying malicious entities in complex networks. However, existing methods often struggle with the scarcity of labeled anomalies. We present GGAD (Generative Graph Anomaly Detection), a semi-supervised framework that leverages labeled normal nodes to synthesize realistic "pseudo-anomalies." By incorporating graph-specific priors—asymmetric local affinity and egocentric closeness—GGAD generates hard negatives that effectively bridge the gap between normal data and real-world anomalies. Our evaluation across six large-scale datasets demonstrates that GGAD significantly outperforms state-of-the-art unsupervised and semi-supervised methods.
Introduction: The Semi-supervised Challenge
Graph Anomaly Detection (GAD) is critical for applications ranging from financial fraud detection to identifying malicious actors in social networks. Traditionally, researchers have relied on either unsupervised methods, which ignore available labels for normal nodes, or fully supervised methods, which require a large set of labeled anomalies. In practice, labeled anomalies are rare and expensive to obtain, while normal nodes are abundant.
The authors address this "one-class" semi-supervised scenario. The primary challenge is training a classifier to recognize anomalies without having seen any during training. Previous approaches often relied on simple Gaussian noise to create "fake" anomalies, but these outliers fail to capture the structural and feature-based nuances of real-world graph anomalies. As shown in Figure 1, real anomalies (abnormal nodes) often have distinct local affinity distributions compared to simple outliers generated by baseline methods like AEGIS.
The GGAD Framework
The core innovation of GGAD is the generation of sophisticated "outlier nodes" designed to mimic real anomalies using two graph-specific priors:
- Asymmetric Local Affinity ($\ell_{ala}$): Normal nodes typically exhibit high homophily, meaning they are similar to their neighbors. Anomalies, conversely, often show weaker connections to their local neighborhood. GGAD optimizes synthetic outliers to ensure they possess lower local affinity than normal nodes.
- Egocentric Closeness ($\ell_{ec}$): Real-world anomalies are frequently "camouflaged," appearing similar to normal nodes in raw feature space despite structural deviations. GGAD enforces that generated outliers remain close to the feature distribution of normal nodes in the embedding space, creating "hard negatives" that challenge the classifier.
Workflow
The GGAD pipeline, illustrated in Figure 2, consists of three main stages:
- Initialization: Outlier nodes are initialized based on the neighborhoods of labeled normal nodes.
- Optimization: These outliers are iteratively refined using the $\ell_{ala}$ and $\ell_{ec}$ loss functions to ensure they are both structurally distinct and feature-proximal.
- Classification: A one-class classifier, typically a simple fully connected layer atop a Graph Convolutional Network (GCN), is trained to distinguish between real normal nodes and these optimized synthetic outliers.
Experimental Evaluation
GGAD was evaluated on six diverse, large-scale real-world datasets: Amazon (co-review), T-Finance (transactions), Reddit (social), Elliptic (Bitcoin), Photo (co-purchase), and DGraph (financial). The benchmark varied the percentage of known normal nodes ($R\%$) used for training.
Key Results
- Superior Performance: GGAD achieved up to a 21% increase in AUROC and a 39% increase in AUPRC over the best unsupervised baselines.
- Robustness: The model maintained high performance even when the training set was contaminated with up to 20% hidden anomalies, demonstrating its resilience in real-world settings.
- Efficiency: By avoiding the heavy computational cost of decoding complex graph structures (common in reconstruction-based models like DOMINANT), GGAD remains highly efficient despite its generative component.
Conclusion and Future Work
GGAD demonstrates that the quality of synthetic "fake" anomalies is paramount for semi-supervised GAD. By incorporating domain-specific priors like local affinity and egocentric closeness, GGAD creates a more effective decision boundary. While current priors are powerful, future research will explore more diverse anomaly patterns and extend the framework to heterogeneous graphs and graph-level anomaly detection.
Summary updated