Abstract
Graph anomaly detection (GAD), which aims to identify those graphs that are significantly different from other ones, has gained growing attention in many real-world scenarios. However, existing GAD methods are generally designed for centralized training, while in real-world collaboration, graph data is generally distributed across various clients and exhibits significant non-IID characteristics. To tackle this challenge, we propose a federated graph anomaly detection framework with local-global anomaly awareness (LG-FGAD). We first introduce a self-adversarial generation module and train a discriminator to identify the generated anomalous graphs from the normal graph. To enhance the anomaly awareness of the model, we propose to maximize/minimize the mutual information from local and global perspectives. Importantly, to alleviate the impact of non-IID problems in collaborative learning, we propose a dual knowledge distillation module. The knowledge distillation is conducted over both logits and embedding distributions, and only the student model engages in collaboration to preserve the personalization of each client. Empirical results on various types of real-world datasets prove the superiority of our method.
Introduction
Graph Anomaly Detection (GAD) is a critical task for identifying outliers in complex structural data, such as molecular compositions, social network interactions, or medical records. Traditionally, high-performance GAD models rely on centralized training, requiring all data to be aggregated on a single server. However, in many practical applications, data is siloed across different institutions that cannot share raw information due to privacy regulations and data ownership concerns.
Federated Learning (FL) has emerged as a solution for collaborative training without data sharing. Yet, applying FL to graph data introduces significant hurdles, most notably the non-IID (Independent and Identically Distributed) problem. Graphs at different client sites often vary drastically in structure and distribution. Furthermore, many existing GAD models focus solely on global graph representations, potentially overlooking subtle anomalies at the node level.
Methodology
The proposed LG-FGAD (Local-Global Federated Graph Anomaly Detection) framework addresses these challenges through three integrated components:
1. Self-Adversarial Generation
Because anomalies are naturally rare, LG-FGAD employs a Generative Adversarial Network (GAN) approach at the client level. A generator creates synthetic anomalous graphs, while a discriminator learns to distinguish these from the client's normal graphs, effectively training the model to recognize deviations even in the absence of real-world anomalous labels.
2. Local-Global Anomaly Awareness (LGMI)
To ensure the model captures anomalies across different scales, LG-FGAD utilizes Mutual Information (MI) maximization and minimization:
- Local Perspective: The model maximizes the correlation between individual node representations and the overall graph structure.
- Global Perspective: The model minimizes the correlation between normal and generated anomalous graph representations, forcing the latent space to push these two categories apart.
3. Dual Knowledge Distillation (DKD)
To resolve the "personalization paradox" in federated learning—where global aggregation can wash out local data characteristics—LG-FGAD introduces a teacher-student architecture. Each client maintains a complex Teacher model that remains local to preserve unique data traits. A simpler Student model learns from the Teacher via Logits Distillation (matching predictions) and Relation Distillation (matching internal embedding distances). Crucially, only the Student models are transmitted to the central server for aggregation, preserving privacy and local personalization.
Experimental Evaluation
Datasets and Setup
The framework was evaluated using the TUDataset across two scenarios:
- IID Scenarios: IMDB-BINARY, MUTAG, DD, and AIDS.
- Non-IID Scenarios: MOLECULES, BIOCHEM, SMALL, and MIX, representing challenging real-world cases where clients hold heterogeneous data categories.
Key Results
LG-FGAD consistently outperformed state-of-the-art baselines, including FedAvg, FedProx, and FedStar.
- Accuracy Gains: On the IMDB-BINARY dataset, LG-FGAD improved AUC and F1-scores by over 10% compared to the next best competitor.
- Robustness to Heterogeneity: In non-IID tests (e.g., the MOLECULES dataset), LG-FGAD achieved a 70.84% AUC, whereas other federated graph methods struggled to exceed 58%.
- Latent Space Separation: t-SNE visualizations demonstrate that LG-FGAD produces significantly tighter and more distinct clusters for normal versus anomalous graphs compared to existing methods like FedStar.
Discussion and Future Work
LG-FGAD offers a robust solution for privacy-preserving graph anomaly detection by balancing global knowledge sharing with local personalization. The use of multi-scale mutual information ensures that anomalies are detected at both the node and graph levels, while the teacher-student distillation reduces communication overhead.
One current limitation is the lack of formal Differential Privacy (DP) guarantees. While the framework avoids sharing raw data, future iterations could incorporate mathematical noise to further prevent potential model inversion attacks. Additionally, the computational cost of adversarial training remains a consideration for clients with limited hardware resources.
Summary updated