Cluster Aware Graph Anomaly Detection

Lecheng Zheng, John Birge, Haiyue Wu, Yifang Zhang, Jingrui He

Abstract

Graph Anomaly Detection (GAD) is essential for identifying malicious activities in networked data, such as fraud or cyber threats. Traditional methods often struggle with multi-view graphs and the "curse of dimensionality" in node attributes. This paper introduces CARE (Cluster AwaRE), an unsupervised framework that leverages global community structures and a similarity-guided contrastive loss to identify outliers. CARE achieves significant performance improvements, outperforming state-of-the-art models by up to 39% on real-world datasets.

Introduction: The Challenge of Multi-view Graph Anomalies

Real-world networks are rarely simple; they are often multi-view, where nodes are connected by various relationship types (e.g., transactions, shared IPs). Detecting anomalies in these complex structures faces three major hurdles: the high dimensionality of node attributes, rigid homophily assumptions that ignore diverse normal interactions, and the difficulty of effectively fusing information across heterogeneous views.

The CARE Framework

The authors propose CARE to address these challenges by moving beyond local connectivity to incorporate global community structures.

The CARE framework architecture, illustrating Cluster-Aware Node Affinity Learning and Similarity-guided Graph Contrastive Learning.

Cluster-Aware Node Affinity

CARE utilizes a Graph Convolutional Network (GCN) to generate "soft" cluster assignments, which serve as pseudo-labels. By augmenting the original adjacency matrix with these cluster similarities, the model captures both local links and global community memberships.

Similarity-Guided Contrastive Loss ($L_C$)

A core innovation of CARE is its continuous loss function. Unlike standard contrastive learning that relies on "hard" positive/negative pairs—which can introduce bias if initial clustering is inaccurate—CARE weights node pairs based on the confidence of their cluster assignments. This approach is mathematically linked to graph spectral clustering, ensuring the model learns a robust representation of the "normal" manifold.

Key Insights and Theoretical Grounding

  • Global Context: Anomalies are often "misfits" that do not belong to any global cluster. Soft membership assignments allow CARE to identify these outliers more effectively than local-only methods.
  • Mitigating the Pseudo-label Trap: By avoiding hard labels for uncertain clusters, CARE's continuous loss function acts as a self-correcting mechanism, preventing error compounding.
  • Spectral Regularization: Minimizing the proposed loss function is equivalent to finding an optimal graph partition, naturally isolating nodes that bridge or sit outside these partitions.

Experimental Results

CARE was evaluated on six diverse datasets, including single-view (BlogCatalog, Amazon, YelpChi) and multi-view (CERT, IMDB, DBLP) graphs.

Parameter sensitivity analysis on the DBLP dataset, showing stable performance across different values of alpha and lambda.

The model demonstrated substantial gains:

  • Amazon: 39% improvement in AUPRC over the best competitor.
  • YelpChi: 18.7% increase in AUROC compared to the previous state-of-the-art.
  • Multi-View Performance: CARE consistently outperformed specialized baselines like NCMOD and NSNMF on IMDB and DBLP, validating its cluster-aware affinity fusion strategy.

Limitations and Future Directions

Despite its success, CARE faces challenges in scaling to billion-node graphs due to the $O(n^2)$ complexity of the similarity-guided loss. Additionally, while the loss function mitigates bias, the model still depends on the GCN's ability to identify meaningful initial clusters. Future work may explore alternative GNN backbones and extensions to dynamic graphs.

Summary updated

BibTeX
@inproceedings{zheng2024cluster,
  author = {Lecheng Zheng and John Birge and Haiyue Wu and Yifang Zhang and Jingrui He},
  title = {{Cluster Aware Graph Anomaly Detection}},
  booktitle = {The Web Conference},
  year = {2024},
  url = {https://openreview.net/forum?id=pje11KNgT6},
}
Figure