[Paper Review] GCCAD: Graph Contrastive Coding for Anomaly Detection
This paper proposes GCCAD, a graph contrastive coding framework for anomaly detection that contrasts abnormal nodes with the global graph context using distance-based learning. It achieves state-of-the-art performance in both supervised and self-supervised settings by leveraging a GNN encoder that identifies suspicious links and learns global context, outperforming advanced baselines on four public datasets.
Graph-based anomaly detection has been widely used for detecting malicious activities in real-world applications. Existing attempts to address this problem have thus far focused on structural feature engineering or learning in the binary classification regime. In this work, we propose to leverage graph contrastive coding and present the supervised GCCAD model for contrasting abnormal nodes with normal ones in terms of their distances to the global context (e.g., the average of all nodes). To handle scenarios with scarce labels, we further enable GCCAD as a self-supervised framework by designing a graph corrupting strategy for generating synthetic node labels. To achieve the contrastive objective, we design a graph neural network encoder that can infer and further remove suspicious links during message passing, as well as learn the global context of the input graph. We conduct extensive experiments on four public datasets, demonstrating that 1) GCCAD significantly and consistently outperforms various advanced baselines and 2) its self-supervised version without fine-tuning can achieve comparable performance with its fully supervised version.
Motivation & Objective
- To address the limitations of existing graph-based anomaly detection methods that rely on structural feature engineering or binary classification.
- To improve anomaly detection by contrasting abnormal nodes with the global graph context, defined as the average of all nodes.
- To enable effective learning in low-label scenarios by designing a graph corrupting strategy to generate synthetic node labels.
- To develop a GNN encoder that can infer and remove suspicious links during message passing to enhance representation learning.
Proposed method
- GCCAD employs a graph contrastive coding objective that measures the distance of each node to the global context, treating nodes far from the average as potential anomalies.
- A graph neural network encoder is designed to detect and remove suspicious links during message passing, improving robustness to noisy or malicious edges.
- The model learns a global context representation by aggregating information across all nodes, serving as a reference for anomaly scoring.
- For self-supervised learning, a graph corrupting strategy generates synthetic labels by perturbing node features or edges, enabling pre-training without real labels.
- The contrastive objective is optimized via a contrastive loss that pulls normal nodes closer to the global context and pushes abnormal nodes away.
- The framework supports both fully supervised and self-supervised training, with the latter achieving performance comparable to the supervised version.
Experimental results
Research questions
- RQ1Can contrastive learning based on node distance to the global context improve anomaly detection in graphs?
- RQ2How effective is GCCAD in low-label scenarios when using synthetic labels generated via graph corruption?
- RQ3To what extent does removing suspicious links during message passing enhance anomaly detection performance?
- RQ4Does the self-supervised version of GCCAD achieve performance comparable to its fully supervised counterpart?
- RQ5How does GCCAD compare to state-of-the-art baselines across diverse real-world datasets?
Key findings
- GCCAD significantly outperforms various advanced baselines in anomaly detection across four public datasets, demonstrating consistent superiority.
- The self-supervised version of GCCAD achieves performance comparable to its fully supervised variant without requiring fine-tuning.
- The integration of suspicious link removal during message passing enhances the model's robustness and representation quality.
- The graph corrupting strategy effectively generates meaningful synthetic labels, enabling strong performance in low-supervision settings.
- The contrastive objective based on global context distance proves effective in distinguishing abnormal nodes from normal ones.
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.