Introduction
Graph Anomaly Detection (GAD) is essential for identifying malicious actors in complex networks. Traditional Graph Neural Networks (GNNs) typically rely on the principle of homophily—the assumption that connected nodes share similar characteristics. However, anomalies often exhibit heterophily, camouflaging themselves by connecting to normal nodes.
This paper identifies a more fundamental challenge: Structural Distribution Shift (SDS). SDS occurs when the neighborhood composition of anomalies changes significantly between training and testing environments. While normal nodes typically maintain stable neighborhood distributions, anomalies often show dramatic shifts in their local structural context, leading standard GNNs to fail in real-world deployment.
The Graph Decomposition Network (GDN)
To mitigate the impact of SDS, the authors propose the Graph Decomposition Network (GDN). The framework is built on the concept of Feature Disentanglement, which separates a node's representation into two distinct components:
- Class Features ($C$): These capture the intrinsic properties of a node (e.g., the "essence" of a fraudster) that are invariant to neighborhood noise. These features are regularized to match a global class prototype.
- Surrounding Features ($S$): These capture the local structural context and connectivity. For normal nodes, these features leverage beneficial homophily.
The separation is achieved using a gradient-based importance score, ensuring that features most relevant to the classification task are isolated from structural noise.
Methodology and Constraints
GDN employs a dual-constraint loss function to guide the disentanglement process:
- Class Constraint ($\mathcal{L}_{cla}$): Ensures that Class features are similar to their respective prototypes and distinct from other classes, promoting structural invariance.
- Connectivity Constraint ($\mathcal{L}_{sur}$): Ensures that Surrounding features preserve the graph's topology by maintaining similarity between actual neighbors.
Results and Discussion
The model was evaluated on two major fraud detection benchmarks: YelpChi and Amazon.
- Performance: GDN consistently outperformed state-of-the-art baselines like CARE-GNN and PC-GNN. On YelpChi, it achieved an F1-macro of 0.7605, representing a ~9.7% improvement over the best baseline. On Amazon, it reached an AUC of 0.9709.
- Robustness: In experiments specifically designed to test SDS by introducing structural bias, GDN showed significantly higher resilience than traditional GNNs.
By forcing the classification to rely on invariant "Class" features rather than noisy neighborhood signals, GDN successfully generalizes to out-of-distribution structural environments.
Conclusion
The Graph Decomposition Network (GDN) addresses the critical issue of Structural Distribution Shift in GAD. By disentangling intrinsic node features from local structural context, GDN provides a more robust and generalizable framework for detecting anomalies in dynamic graphs. Future research directions include exploring alternative distance metrics for regularization and investigating SDS in the spectral domain.
Summary updated