Abstract
Traditional graph anomaly detection (GAD) methods typically focus on structural irregularities or attribute deviations within Euclidean space. However, real-world networks often possess intrinsic non-Euclidean geometries—such as hierarchical or cyclical structures—that these models fail to capture. This paper introduces CurvGAD, a novel dual-pipeline graph autoencoder designed to detect geometric anomalies by leveraging mixed-curvature spaces. By disentangling geometric features from standard structural and attribute features, CurvGAD achieves state-of-the-art performance across diverse datasets, particularly in challenging heterophilic environments.
Introduction
Detecting anomalies in graph-structured data is critical for identifying fraudulent financial transactions, malicious social media bots, and network intrusions. Most existing Graph Anomaly Detection (GAD) frameworks operate under the assumption that graphs can be effectively embedded into flat, Euclidean space. This assumption is often flawed; complex networks frequently exhibit intrinsic curvature. For instance, tree-like hierarchical data is best represented in hyperbolic (negative curvature) space, while dense, cyclical clusters are better suited for spherical (positive curvature) space.
When models ignore these geometric properties, they suffer from inadequate representation and fail to identify "geometric anomalies"—outliers that manifest as irregularities in the graph's curvature rather than just its connectivity or features. Furthermore, many models struggle with the "homophily trap," failing to generalize to heterophilic graphs where connected nodes are naturally dissimilar.
The CurvGAD Framework
CurvGAD addresses these limitations through a dual-pipeline architecture that separates geometric signals from standard graph features. This disentanglement allows the model to identify a broader spectrum of anomalies while improving interpretability.
1. Curvature-Equivariant Pipeline
This pipeline is dedicated to identifying geometric anomalies. Instead of a single geometry, CurvGAD utilizes a "product manifold"—a mathematical space that combines hyperbolic, spherical, and Euclidean geometries.
- Encoding: A specialized Riemannian encoder maps the graph into this mixed-curvature space.
- Decoding: A Gaussian kernel-based decoder attempts to reconstruct the edge curvatures, specifically the Ollivier-Ricci curvature.
- Anomaly Detection: Nodes that exhibit high reconstruction errors in their local curvature are flagged as geometric anomalies, such as sudden bottlenecks in a network or irregular branching patterns in a social cascade.
2. Curvature-Invariant Pipeline
To detect standard structural and attribute anomalies without interference from the graph's complex geometry, this pipeline employs a regularization technique known as discrete Ollivier-Ricci flow.
- Flattening: The Ricci flow acts as a mathematical "iron," iteratively adjusting edge weights to drive the graph's curvature toward zero (Euclidean flatness).
- Reconstruction: Once the graph is regularized, a standard Euclidean encoder-decoder architecture reconstructs the adjacency and feature matrices.
- Anomaly Detection: Nodes with high reconstruction errors in this flattened state are identified as traditional structural or attribute outliers.
By combining the reconstruction errors from both pipelines, CurvGAD generates a unified anomaly score for every node in the network.
Experimental Results
The authors evaluated CurvGAD against 10 real-world datasets spanning social media (Reddit, Weibo), e-commerce (Amazon, YelpChi), and finance (T-Finance, Elliptic, DGraph-Fin).
Performance and Scalability
CurvGAD consistently outperformed all baseline models, including conventional Graph Neural Networks (GNNs) and Riemannian-based models. Key results include:
- State-of-the-Art Accuracy: The model achieved up to a 6.5% AUROC improvement over the previous best-performing methods.
- Success in Heterophily: The most significant gains were observed in heterophilic datasets, such as Elliptic (+4.79%) and Tolokers (+4.61%), where traditional GNNs often fail due to their reliance on homophily assumptions.
- Efficiency: To handle large-scale data, the authors utilized a linear-time combinatorial approximation for Ollivier-Ricci curvature. This allowed the model to scale to massive graphs, such as the T-Social dataset containing 73 million edges.
Key Insights
- The Power of Mixed Geometry: Ablation studies confirmed that forcing graphs into purely Euclidean space results in a performance drop of approximately 5%. Real-world graphs are geometrically diverse and require a dynamic mix of manifolds for accurate representation.
- Disentanglement as a Heuristic: By isolating curvature via Ricci flow, the model prevents geometric noise from obscuring structural anomalies. This separation provides better insight into why a specific node is considered an outlier.
- Curvature as a Diagnostic Tool: Different anomalies inhabit different curvature regimes. For example, fake news spreads in sparse, branching patterns (high negative curvature), while specific biological bottlenecks exhibit positive curvature. CurvGAD is the first model to systematically exploit these differences.
Conclusion and Future Work
CurvGAD represents a significant shift in graph anomaly detection by moving beyond Euclidean constraints. By treating curvature as a primary feature rather than a nuisance, the model provides a more robust and interpretable framework for identifying outliers in complex networks.
Future research will focus on the adversarial robustness of curvature-aware models. As detection methods evolve, malicious actors may attempt to evade detection by intentionally smoothing their connection patterns to mimic the curvature of "normal" nodes. Additionally, the authors highlight the need to monitor for algorithmic bias, ensuring that geometric distinctness in social or financial data does not lead to the unfair flagging of marginalized groups.
Summary updated