SpaceGNN: Multi-Space Graph Neural Network for Node Anomaly Detection with Extremely Limited Labels

Xiangyu Dong, Xingyi Zhang, Lei Chen, Mingxuan Yuan, Sibo Wang

Abstract

Node Anomaly Detection (NAD) is a critical task in graph mining, with applications ranging from financial fraud detection to social media bot identification. Traditional Graph Neural Networks (GNNs) often struggle with NAD due to two primary challenges: the inherent non-Euclidean structure of real-world graphs and the extreme scarcity of labeled anomalies. We propose SpaceGNN, a novel framework that addresses these issues by embedding nodes into multiple geometric spaces—Euclidean, Hyperbolic, and Spherical—with learnable curvatures. SpaceGNN introduces Learnable Space Projection (LSP) to optimize curvature for class separation, Distance-Aware Propagation (DAP) to refine information flow, and a Multi-Space Ensemble (MulSE) strategy to enhance robustness. Experimental results across nine real-world datasets demonstrate that SpaceGNN significantly outperforms state-of-the-art baselines, achieving an average AUC improvement of 8.55% under limited supervision.

1. Introduction

Identifying anomalies in graph data—such as money launderers in financial networks or bots on social media—is a high-stakes challenge. Most existing Graph Neural Networks (GNNs) assume that graph data resides in a "flat" Euclidean space. However, real-world graphs often possess complex, non-Euclidean topologies. For instance, hierarchical structures like rumor propagation are naturally suited to Hyperbolic space, while circular transaction patterns in financial fraud are better represented in Spherical space.

Diverse graph structures and their corresponding geometric projections.

Furthermore, practical anomaly detection is frequently hampered by a severe lack of labels. In datasets with millions of nodes, only a handful of confirmed anomalies may be available. Traditional data augmentation and pseudo-labeling techniques often introduce noise, leading to high false-positive rates. SpaceGNN addresses these geometric and supervisory limitations by analyzing the graph through multiple geometric lenses simultaneously.

2. Methodology

SpaceGNN consists of three core components designed to handle geometric diversity and label scarcity: Learnable Space Projection (LSP), Distance-Aware Propagation (DAP), and Multi-Space Ensemble (MulSE).

2.1 Learnable Space Projection (LSP)

Rather than forcing data into a fixed geometry, LSP allows the model to learn the optimal curvature ($\kappa$) for the specific dataset. The authors introduce the Expansion Rate ($ER_\kappa$) as a metric to quantify how well a given curvature separates anomalous nodes from normal ones. By maximizing the distance between different classes relative to the distance within the same class, LSP identifies the most discriminative geometric representation.

Variation of the Expansion Rate ($ER_\kappa$) across different curvatures ($\kappa$).

2.2 Distance-Aware Propagation (DAP)

Standard GNNs often treat neighbors uniformly, which can lead to "over-smoothing" where anomaly signals are drowned out by normal nodes. DAP utilizes the distances calculated within the non-Euclidean spaces to adjust edge weights during message passing. This ensures that information flows more effectively between similar nodes, preserving the distinct features of anomalies.

2.3 Multi-Space Ensemble (MulSE)

To combat label scarcity, SpaceGNN employs an ensemble of models from different spaces (Euclidean, Hyperbolic, and Spherical). This provides multiple independent "views" of the graph, which the authors found to be far more robust than traditional data augmentation or pseudo-labeling techniques.

3. Evaluation

The performance of SpaceGNN was evaluated on nine real-world datasets spanning social media (Weibo, Reddit, YelpChi, Amazon, Questions, T-Social), financial fraud (T-Finance, DGraph-Fin), and crowdsourcing (Tolokers). To simulate realistic conditions, the researchers used a 50/50 split for training and validation, leaving the vast majority of nodes for testing with extremely limited supervision.

SpaceGNN consistently outperformed 16 competitive baselines, including general-purpose GNNs like GAT and specialized anomaly detectors like CONSISGAD. On average, it achieved an 8.55% gain in AUC and a 4.31% gain in F1 scores. Ablation studies confirmed that both LSP and DAP are essential for these performance gains, as removing either component led to a noticeable drop in accuracy.

4. Conclusion

SpaceGNN demonstrates that geometric awareness is a powerful tool for node anomaly detection. By learning optimal curvatures and ensembling across multiple spaces, the model overcomes the limitations of Euclidean-only approaches and the risks associated with pseudo-labeling. While the ensemble approach increases computational overhead, the gains in accuracy and robustness make it a compelling solution for high-stakes anomaly detection tasks. Future work may explore mixed-curvature manifolds to capture even more intricate graph topologies.

For those interested in implementation, the authors have made their code available on GitHub.

Summary updated

BibTeX
@inproceedings{dong2025spacegnn,
  author = {Xiangyu Dong and Xingyi Zhang and Lei Chen and Mingxuan Yuan and Sibo Wang},
  title = {{SpaceGNN: Multi-Space Graph Neural Network for Node Anomaly Detection with Extremely Limited Labels}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=Syt4fWwVm1},
}
Figure