A Survey of Generalization of Graph Anomaly Detection: From Transfer Learning to Foundation Models

Junjun Pan, Yu Zheng, Yue Tan, Yixin Liu · DOI

Introduction

Graph Anomaly Detection (GAD) is a vital tool for identifying malicious activities—such as financial fraud, social media spam, and network hacking—within complex, graph-structured data. While conventional GAD models perform well in controlled environments, they often struggle with real-world distribution shifts where training and testing data differ significantly. This survey maps the field's transition from narrowly-tailored algorithms to flexible transfer learning and, ultimately, toward "one-for-all" GAD foundation models capable of zero-shot detection across diverse domains.

The Evolution of Graph Anomaly Detection

Conventional GAD assumes that training and testing data share the same distribution. However, fraudsters frequently change tactics, and new applications often lack the labeled data required for training from scratch. To address this, researchers are developing robust models that can transfer knowledge from data-rich source domains to unseen or data-scarce target domains.

Comparison of Conventional GAD, Transfer Learning, and Foundation Models.

Taxonomy of Generalization Methods

The survey categorizes the methods for achieving GAD generalization into two primary paradigms:

1. Transfer Learning for GAD

Transfer learning leverages knowledge from a related source graph to improve performance on a target graph.

  • Transferable Knowledge Learning: Employs data augmentation and adversarial training to make feature encoders robust. Contrastive learning is often used to align representation spaces between source and target graphs.
  • Target-Specific Pattern Capturing: Prevents overfitting to the source domain through target-aware pre-training or test-time fine-tuning, allowing the model to adapt to the specific nuances of the target graph using few-shot or unsupervised learning.

2. Foundation Models for GAD

Foundation models represent the next frontier: "one-for-all" architectures designed to generalize across heterogeneous datasets without requiring aligned feature spaces.

  • Cross-Granularity Models: These detect anomalies at multiple levels (nodes, edges, subgraphs) simultaneously, capturing complementary information across the graph hierarchy.
  • Cross-Scenario Models: These generalize across entirely different application domains. A key technique involves Graph Feature Space Standardization, where Large Language Models (LLMs) convert diverse graph attributes into a unified, text-based semantic space.

Key Insights and the Role of LLMs

A major breakthrough in GAD generalization is the use of text as a universal bridge. By converting node attributes into textual descriptions and processing them with LLMs, models can operate in a universal semantic space, bridging the gap between disparate datasets like financial transactions and software vulnerabilities. Recent models like AnomalyGFM and AD-Agent have successfully achieved competitive performance on standard benchmarks like PyGOD and Gadbench using these techniques.

Furthermore, cross-granularity models enhance interpretability. If a model flags a graph as anomalous, it can pinpoint the specific low-level node or edge irregularities that triggered the alert, providing a clear explanation for its decision.

Future Directions and Challenges

Despite recent progress, several hurdles remain for the field:

  • Theoretical Foundations: There is currently a lack of mathematical understanding regarding why certain datasets yield positive transfer while others do not.
  • Standardized Evaluation: The community needs unified benchmarking protocols specifically designed to test models against diverse, real-world distribution shifts.
  • Scaling Laws: Building universal GAD models requires architectures that scale effectively with data size and diversity, similar to Large Language Models.
  • Human-in-the-Loop Integration: Future models should incorporate real-time expert feedback to adapt to evolving definitions of "normal" behavior.

Conclusion

The shift from task-specific GAD to foundation models marks a significant step toward more resilient and versatile anomaly detection systems. By leveraging transfer learning and the semantic power of LLMs, the next generation of GAD models promises to handle the complexity and dynamism of real-world graph data with unprecedented efficiency.

Summary updated

BibTeX
@misc{pan2025survey,
  author = {Junjun Pan and Yu Zheng and Yue Tan and Yixin Liu},
  title = {{A Survey of Generalization of Graph Anomaly Detection: From Transfer Learning to Foundation Models}},
  year = {2025},
  eprint = {2509.06609},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.06609},
}
Figure