Unsupervised Graph Outlier Detection: Problem Revisit, New Insight, and Superior Method

Yihong Huang, Liping Wang, Fan Zhang, Xuemin Lin

TL;DR

This paper reveals a critical data leakage issue in common graph outlier detection benchmarks, where simple methods can achieve state-of-the-art results. To address this and the challenge of balancing detection of structural and contextual outliers, the authors propose VGOD, a novel framework that uses a variance-based model for structural outliers and an attribute reconstruction model for contextual outliers, achieving superior and balanced detection performance.

What Problem Does This Paper Address?

The paper tackles the problem of Unsupervised Node Outlier Detection (UNOD) on attributed networks. UNOD aims to identify nodes that deviate significantly from the norm in graphs where nodes have associated attributes and relationships (edges). A key challenge is that most existing research relies on datasets with artificially injected outliers. The authors identify a significant flaw in the most widely-used outlier injection method: it creates a "data leakage" issue. This means the way outliers are injected inadvertently makes them easy to detect using simple features (like node degree or attribute norms) that are not directly related to the underlying outlier detection logic. Consequently, it's hard to tell if a model is truly effective or just exploiting this leakage. Furthermore, existing methods often struggle to detect both types of outliers (structural and contextual) equally well, leading to unbalanced performance.

Methods

The core of the proposed solution is the Variance-based Graph Outlier Detection (VGOD) framework. VGOD comprises two main components:

  1. Variance-Based Model (VBM): This novel component is designed to detect structural outliers. It leverages the idea that structural outliers have inconsistent neighborhoods. VBM measures the variance of the latent representations of a node's neighbors. A high variance suggests neighbors come from different "communities" or exhibit diverse characteristics, indicating a potential structural outlier. This is a departure from previous methods that relied on reconstructing graph structures.
  2. Attribute Reconstruction Model (ARM): This component is used to detect contextual outliers. It employs a standard Graph Neural Network (GNN) architecture to reconstruct node attributes. Contextual outliers are identified by nodes whose reconstructed attributes deviate significantly from their original attributes.

To ensure balanced detection, VGOD trains these two models separately and then combines their outlier scores using a mean-std normalization technique. This prevents one type of outlier from dominating the detection process.

Datasets

The authors evaluated their framework on five real-world datasets:

  • Citation Networks: Cora, Citeseer, PubMed
  • Social Networks: Flickr, Weibo

The Cora, Citeseer, PubMed, and Flickr datasets were used with injected outliers, while the Weibo dataset contained naturally occurring labeled outliers.

Key Insights and Ideas

  • Data Leakage is a Major Issue: The most common method for injecting outliers into graph datasets creates a significant data leakage problem, making it difficult to assess the true performance of outlier detection algorithms. Simple heuristics can achieve state-of-the-art results by exploiting this leakage.
  • Neighbor Variance for Structural Outliers: The variance of neighbor node representations is a powerful and novel indicator for detecting structural outliers, capturing the essence of inconsistent neighborhood structures.
  • Balanced Detection is Crucial: Existing methods often favor detecting one type of outlier (e.g., contextual) over another (structural), leading to unbalanced performance. VGOD's separate training and score normalization approach effectively addresses this.
  • Robustness to Injection Settings: The proposed variance-based model shows remarkable robustness to variations in how structural outliers are injected (e.g., varying clique sizes).

Key Results

  • Superior Overall Performance: VGOD achieved the highest AUC scores across all tested datasets for unsupervised node outlier detection.
  • Balanced Detection: VGOD demonstrated the most balanced detection performance between structural and contextual outliers, as measured by the AucGap metric, significantly outperforming baselines.
  • Efficiency: VGOD exhibits competitive inference times, especially on larger datasets, due to its efficient message-passing mechanisms.
  • Effectiveness of VBM: The variance-based model (VBM) significantly improved structural outlier detection, outperforming other methods even when tested with varied injection parameters.

Limitations and Future Work

  • Data Leakage Mitigation: While the paper identifies and analyzes the data leakage issue, it suggests further research into designing better outlier injection approaches that avoid this problem.
  • Inductive Inference: The paper demonstrates VGOD's effectiveness in the inductive setting (detecting outliers in unseen graphs), suggesting its potential for broader applications.
  • Generalizability of Neighbor Variance: The authors believe the concept of neighbor variance could be extended to other graph mining tasks beyond outlier detection.
  • GNN Layer Choice: While GAT performed best for the ARM component on the Weibo dataset, other GNN architectures (GIN, GCN) showed comparable results on other datasets, indicating flexibility.

Summary updated

BibTeX
@inproceedings{huang2023unsupervised,
  author = {Yihong Huang and Liping Wang and Fan Zhang and Xuemin Lin},
  title = {{Unsupervised Graph Outlier Detection: Problem Revisit, New Insight, and Superior Method}},
  booktitle = {ICDE},
  year = {2023},
  doi = {10.1109/icde55515.2023.00197},
}
Figure