AI
New Foundation Model Enables Graph Anomaly Detection Without Training Data
AnomalyGFM, a specialized graph foundation model, can identify abnormal nodes in networks with minimal or no labeled examples by learning universal patterns of anomalies.
A new AI approach tackles one of graph analysis's toughest problems: spotting unusual nodes in networks without requiring large labeled training sets. Researchers have developed AnomalyGFM, a foundation model specifically designed for graph anomaly detection (GAD) that works in zero-shot and few-shot scenarios—meaning it can identify outliers with either no domain-specific examples or just a handful of labeled instances.
The Challenge with Existing Models#
Current general-purpose graph models excel at many tasks but falter when it comes to anomaly detection. The core issue is that abnormalities are inherently rare, irregular, and vary significantly across different networks and domains. Teaching a model to recognize something that happens infrequently and looks different in each context requires knowledge that typical graph models never develop during training.
How AnomalyGFM Works#
The key innovation behind AnomalyGFM is its focus on representation residuals—essentially, how much a node's features deviate from what its neighboring nodes would suggest. By aligning learnable prototypes for "normal" and "abnormal" nodes with these residuals, the model creates a universal feature space for measuring abnormality consistently across different graphs.
- The model pre-trains on identifying patterns in node deviations from their local neighborhoods
- It learns graph-agnostic prototypes that transfer to entirely new networks
- For improved performance on new datasets, it supports prompt tuning when a few labeled normal nodes are available
Performance and Scale#
Testing on 11 real-world graph anomaly detection benchmarks, AnomalyGFM substantially outperformed existing state-of-the-art methods in both zero-shot and few-shot settings. The approach also scales effectively to very large graphs, making it practical for real-world applications where massive networks and minimal labels are the norm.

