Subgraph Centralization: A Necessary Step for Graph Anomaly Detection

Zhong Zhuang, Kai Ming Ting, Guansong Pang, Shuaibin Song

Abstract

Detecting anomalies in attributed networks is a critical task with applications ranging from fraud detection to social network analysis. Current deep-learning-based methods often struggle with high computational costs, suboptimal accuracy due to the interference of absolute node positions, and a lack of explainability. This paper introduces Subgraph Centralization (SEC), a simple yet effective preprocessing step that shifts the focus from absolute coordinates to relative local structures. By centering each local subgraph at the origin, the proposed Graph-Centric Anomaly Detection (GCAD) framework achieves state-of-the-art accuracy, provides visual explanations, and scales linearly to large-scale networks.

Introduction

The detection of anomalies in attributed networks—graphs where nodes are enriched with feature vectors—is essential for identifying fraudulent activities, social spam, and network intrusions. Despite the proliferation of deep learning models for this task, three significant challenges remain: high computational overhead, suboptimal accuracy in capturing structural normality, and the "black box" nature of predictions.

A fundamental observation made by the authors is that existing similarity measures between subgraphs are often confounded by the absolute positions of nodes in the feature space. Structurally identical neighborhoods may appear vastly different simply because they are located in disparate regions of the coordinate system.

Subgraph Centralization (SEC)

To address this, the authors propose Subgraph Centralization (SEC). SEC is a preprocessing step that extracts an $h$-hop subgraph for every node $v$ and translates all node vectors within that subgraph so that the target node $v$ is positioned at the origin. This transformation nullifies the influence of absolute positions, allowing detection algorithms to focus exclusively on relative structural patterns.

Intuition: (a) Without centralization, structural similarity is masked by distance. (b) Centralization reveals that subgraphs are identical.

As illustrated in the figure above, centralization reveals that subgraphs $G'(v_1)$ and $G'(v_2)$, which appeared distant in the raw feature space, are in fact structurally identical when viewed relative to their center nodes.

The GCAD Framework

Building on SEC, the Graph-Centric Anomaly Detection (GCAD) framework provides a scalable and interpretable pipeline for anomaly detection:

  1. Extraction & Centralization: Local subgraphs are extracted and centered using SEC.
  2. Embedding: Centralized subgraphs are mapped to vector space using a Weisfeiler-Lehman (WL) scheme, which iteratively aggregates neighbor information to capture structural context.
  3. Anomaly Scoring: An off-the-shelf point anomaly detector (e.g., Isolation Forest or Isolation Distributional Kernel) is applied to the resulting embeddings.
  4. Weighted Aggregation: Final anomaly rankings are produced using a depth-based weighting system.
The GCAD pipeline: (a) Subgraph extraction and centralization, (b) Centralized subgraphs, (c) Embedding into vector space, and (d) Final anomaly scoring.

Experimental Evaluation

The GCAD framework was evaluated on six synthetic datasets designed to test specific structural anomalies and four real-world citation networks (ACM, Cora, Citeseer, and Pubmed).

Key Findings

  • Performance: GCAD outperformed state-of-the-art deep learning baselines, such as DOMINANT and CoLA, on 7 out of 10 datasets in terms of AUC.
  • Genericity: Integrating SEC into existing detectors (e.g., CoLA_SC) led to significant performance gains, demonstrating that centralization is a universally beneficial step.
  • Scalability: GCAD maintains $O(n)$ time complexity. In scale-up tests, it successfully processed networks with a million nodes, whereas deep learning competitors became computationally prohibitive beyond $10^5$ nodes.
  • Explainability: Centralized subgraphs allow for direct visualization, enabling analysts to compare anomalous structures (e.g., dense cliques) against normal neighborhood patterns.

Conclusion and Future Work

Subgraph Centralization represents a paradigm shift in graph anomaly detection by prioritizing relative structure over absolute position. The GCAD framework leverages this insight to provide a fast, accurate, and explainable solution for large-scale attributed networks.

While GCAD is highly effective for structure-based anomalies, it may miss anomalies defined solely by their absolute position in the feature space. Future research could explore hybrid approaches that integrate both relative structural information and absolute feature values to provide a more comprehensive detection mechanism.

Summary updated

BibTeX
@inproceedings{zhuang2023subgraph,
  author = {Zhong Zhuang and Kai Ming Ting and Guansong Pang and Shuaibin Song},
  title = {{Subgraph Centralization: A Necessary Step for Graph Anomaly Detection}},
  booktitle = {SDM},
  year = {2023},
  url = {https://openreview.net/forum?id=6tkaJPNyRs},
}

Loading related content...

Figure