NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Class Label-aware Graph Anomaly Detection

Junghoon Kim, Yeonjun In, Kanghoon Yoon, Junmo Lee, Chanyoung Park · DOI

TL;DR

This paper introduces CLAD, a novel framework for unsupervised graph anomaly detection that leverages limited class labels to significantly improve the identification of structural anomalies. By incorporating class information, CLAD achieves state-of-the-art performance, even outperforming methods that ignore class labels entirely.

What Problem Does This Paper Address?

Detecting anomalies in graph-structured data is crucial for identifying fraudulent activities, fake reviews, and other malicious behaviors. Traditional unsupervised anomaly detection methods assume no prior knowledge of anomalies. However, this paper highlights a critical overlooked aspect: while unsupervised methods don't use anomaly labels, they also often ignore class labels. These class labels, typically used for node classification tasks, can provide valuable contextual information about a node's neighborhood. The authors observe that structural anomalies (nodes with unusual connection patterns) tend to have neighbors with a more diverse range of classes compared to benign nodes. This difference is a powerful signal for anomaly detection, but existing unsupervised methods fail to exploit it. The challenge is to effectively integrate this class label information, especially when only a small fraction of nodes are labeled.

Methods

The proposed framework, CLAD (Class Label-aware Graph Anomaly Detection), tackles this by using a semi-supervised approach for node classification. First, a Graph Neural Network (GNN) is trained for node classification using available class labels. If class labels are scarce, pseudo-labels generated from attribute-based clustering are used.

CLAD then employs two main modules:

  1. Structural Anomaly Quantifier: This module measures structural anomalies by quantifying the discrepancy between a node's predicted class distribution and the average distribution of its neighbors. It uses the Jensen-Shannon Divergence (JSD) metric. To address issues with node degree bias (where JSD is overly sensitive to the number of neighbors), they introduce a modified metric called JSD+. JSD+ effectively balances the JSD score with node degree information, leading to better discrimination between structural anomalies and benign nodes, especially for nodes with varying degrees.
  2. Attribute Anomaly Quantifier: This module detects attribute anomalies by measuring the Euclidean distance between a node's attributes and those of its neighbors. This is averaged over all neighbors to ensure the score is not dependent on the number of neighbors.

The final anomaly score for a node is a weighted sum of the scores from the structural and attribute anomaly quantifiers.

Datasets

The paper evaluates CLAD on ten datasets, categorized as:

  • Synthetic1: Five benchmark datasets with injected anomalies following a standard scheme (Cora, Citeseer, Amazon Computers, Amazon Photo, ogbn-arxiv). These datasets have ground-truth class labels.
  • Synthetic2: Three custom datasets generated from Amazon user-review data, where anomalies represent users writing fake reviews. These datasets do not have explicit ground-truth class labels, requiring the use of pseudo-labels.
  • Real-world: Two datasets containing real-world anomalies (Yelp, Elliptic). These also lack ground-truth class labels.

Key Insights and Ideas

  • Class labels are a powerful, underutilized signal for unsupervised GAD: The core insight is that the diversity of class labels in a node's neighborhood is a strong indicator of structural anomalies.
  • Node degree bias in JSD is a significant challenge: Simply using JSD on class distributions is problematic because it's heavily influenced by the number of neighbors.
  • JSD+ effectively mitigates node degree bias: The proposed JSD+ metric ingeniously balances JSD with node degree information, leading to more robust structural anomaly detection across different node degrees.
  • CLAD is versatile, even with minimal labels: The framework performs exceptionally well even when only a tiny fraction (as low as 1%) of class labels are available, and can even leverage pseudo-labels when no ground-truth class labels exist.

Key Results

  • State-of-the-art performance: CLAD consistently outperforms all compared unsupervised GAD baselines (DOMINANT, COLA, ANEMONE, AnomalyDAE, ComGA) across all ten datasets, achieving higher AUC scores. For instance, on the Cora dataset, CLAD achieves an AUC of 94.9%, significantly higher than the best baseline at 92.2%.
  • Robustness to label scarcity: Even when the ratio of known class labels is reduced to 1%, CLAD's performance degrades only incrementally, remaining competitive with baselines that might have access to more labels.
  • Efficiency: CLAD is computationally efficient, often achieving superior performance with significantly less computation time compared to baselines, especially on large datasets like ogbn-arxiv.
  • Effectiveness of JSD+: Ablation studies show that CLAD with JSD+ significantly outperforms variants using plain JSD or JSD2, highlighting the importance of the proposed structural anomaly quantification metric.

Limitations and Future Work

  • Hyperparameter sensitivity: The performance of CLAD is sensitive to the weighting parameter 'a' that balances structural and attribute anomaly scores, and an optimal 'a' varies across datasets.
  • Future Work: The authors suggest exploring more sophisticated methods for generating pseudo-labels and investigating how CLAD can be extended to handle dynamic graphs or different types of anomalies. The paper also implies that further research into leveraging other types of node metadata could enhance GAD.

Summary updated

BibTeX
@inproceedings{kim2023class,
  author = {Junghoon Kim and Yeonjun In and Kanghoon Yoon and Junmo Lee and Chanyoung Park},
  title = {{Class Label-aware Graph Anomaly Detection}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2023},
  doi = {10.1145/3583780.3615249},
}
Figure