[Paper Review] Graph Anomaly Detection with Unsupervised GNNs
This paper proposes GLAM, an end-to-end graph-level anomaly detection model using Graph Neural Networks (GNNs) that jointly detects point and distribution anomalies via mean-pooling and a novel MMD-pooling strategy. It achieves state-of-the-art performance by enabling unsupervised model selection without labels, significantly outperforming baselines in detecting anomalous graphs across 15 real-world datasets.
Graph-based anomaly detection finds numerous applications in the real-world. Thus, there exists extensive literature on the topic that has recently shifted toward deep detection models due to advances in deep learning and graph neural networks (GNNs). A vast majority of prior work focuses on detecting node/edge/subgraph anomalies within a single graph, with much less work on graph-level anomaly detection in a graph database. This work aims to fill two gaps in the literature: We (1) design GLAM, an end-to-end graph-level anomaly detection model based on GNNs, and (2) focus on unsupervised model selection, which is notoriously hard due to lack of any labels, yet especially critical for deep NN based models with a long list of hyper-parameters. Further, we propose a new pooling strategy for graph-level embedding, called MMD-pooling, that is geared toward detecting distribution anomalies which has not been considered before. Through extensive experiments on 15 real-world datasets, we show that (i) GLAM outperforms node-level and two-stage (i.e. not end-to-end) baselines, and (ii) model selection picks a significantly more effective model than expectation (i.e. average) -- without using any labels -- among candidates with otherwise large variation in performance.
Motivation & Objective
- Address the lack of end-to-end GNN-based models for graph-level anomaly detection in graph databases.
- Tackle the challenge of unsupervised model selection for deep GNNs, which is critical yet underexplored due to the absence of labels.
- Design a novel MMD-pooling mechanism to detect distribution anomalies—graphs with anomalous node embedding distributions—complementing point anomaly detection.
- Demonstrate that combining MMD-pooling with unsupervised model selection significantly improves detection performance without relying on ground-truth labels.
Proposed method
- Propose GLAM, a GNN-based end-to-end model that processes entire graphs to produce graph-level embeddings for anomaly detection.
- Use mean-pooling to capture individual node-level anomalies (point anomalies) by aggregating node representations.
- Introduce MMD-pooling, a novel pooling strategy based on Maximum Mean Discrepancy (MMD), to detect distribution anomalies by comparing the distribution of node embeddings across graphs.
- Train the model using a contrastive objective that encourages normal graphs to have similar embeddings and anomalous graphs to be separated.
- Implement unsupervised model selection (UMS) using internal evaluation metrics—adapted from disentangled representation learning—without requiring labeled data.
- Apply the model to diverse graph databases with varying sizes, node attributes, edge weights, and label types, ensuring robustness to structural heterogeneity.
Experimental results
Research questions
- RQ1Can an end-to-end GNN-based model effectively detect graph-level anomalies without relying on labeled data?
- RQ2How does MMD-pooling compare to standard pooling methods in detecting distribution anomalies in graph databases?
- RQ3To what extent can unsupervised model selection improve the performance of deep GNN-based anomaly detectors in the absence of labels?
- RQ4Does combining point anomaly detection (via mean-pooling) and distribution anomaly detection (via MMD-pooling) lead to better overall detection performance?
Key findings
- GLAM significantly outperforms both node-level and two-stage baselines on 15 real-world datasets, demonstrating superior performance in graph-level anomaly detection.
- The proposed MMD-pooling strategy effectively captures distribution anomalies—graphs with anomalous sets of node embeddings—improving detection beyond point anomalies.
- Unsupervised model selection consistently identifies a model configuration that performs significantly better than the average among hyperparameter candidates, even without labels.
- The combination of MMD-pooling and unsupervised model selection leads to a substantial performance gain, with GLAM achieving state-of-the-art results across diverse datasets.
- The model generalizes well across datasets with varying graph sizes, node attributes, edge weights, and label types, showing robustness to structural heterogeneity.
- The open-source release of code and datasets at https://github.com/sawlani/GLAM enables reproducibility and further research in unsupervised graph-level anomaly detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.