Advancing unsupervised graph anomaly detection: A multi-level contrastive learning framework to mitigate local consistency deception
Graph anomaly detection plays a crucial role in various fields such as social networks, financial transactions, and cybersecurity. Due to the high cost of acquiring labeled node data, contrastive learning, an important paradigm in unsupervised learning, has gained significant attention and demonstrated effective performance in practical applications. Traditional contrastive learning methods evaluate anomalies by detecting inconsistencies between nodes and their neighbors or subgraphs, often expanding these scopes using techniques like Random Walk with Restart (RWR) to gather more information. However, in real-world anomaly datasets, normal and anomalous nodes often exhibit complex hybrid distributions. This complexity can deceive the consistency discrimination of contrastive learning methods under local views, leading to substantial performance drops. To address this issue, we propose TCL-GAD, a novel solution that incorporates global information for graph anomaly detection. TCL-GAD uses a Simple GCN module to extract node and neighborhood information while employing a Hierarchical Transformer to prevent over-reliance on higher-order node information, which could negatively impact the model, while efficiently extracting valuable global information. The Multi-Level Contrastive Learning framework enhances negative node sampling and effectively leverages multi-level graph information to boost overall detection performance. We evaluated TCL-GAD against thirteen state-of-the-art baseline methods across seven diverse datasets. Results show that TCL-GAD achieves excellent operational efficiency and consistently demonstrates superior performance, showing significant improvements over the runner-up methods especially on complex real-world datasets. • Introduces TCL-GAD, a Transformer-based contrastive learning framework for Graph Anomaly Detection, effectively leveraging expanded receptive fields, mitigating deceptive behaviors in complex distributions, and reducing computational costs. • Mitigates over-globalization by hierarchically aggregating global information using latent community structures, effectively expanding the receptive field for node information aggregation. • Incorporates SNS based on community partitioning to reduce bias from random negative sampling, enhancing model robustness and performance in handling complex anomaly distributions. • Achieves near-linear time complexity with non-weighted message passing and improved Transformer computations, demonstrating superior results across seven real-world anomaly datasets, surpassing thirteen baseline methods.
Authors
- Yijun Gu
- W. Wu (ORCID: https://orcid.org/0000-0003-4619-1378)
Institutions
- China People's Public Security University (CN)
Publication Details
- Journal
- Neurocomputing
- Published
- 2025-05-27
- DOI
- https://doi.org/10.1016/j.neucom.2025.130507
- Citations
- 4
- Primary Topic
- Advanced Graph Neural Networks
- Type
- article
- Field-Weighted Citation Impact
- 9.92
Funders
- Fundamental Research Funds for the Central Universities