Proceedings

Rethinking Contrastive Learning in Graph Anomaly Detection: A Clean-View Perspective

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 3009-3017.

https://doi.org/10.24963/ijcai.2025/335

Abstract

Graph anomaly detection aims to identify unusual patterns in graph-based data, with wide applications in fields such as web security and financial fraud detection. Existing methods typically rely on contrastive learning, assuming that a lower similarity between a node and its local subgraph indicates abnormality. However, these approaches overlook a crucial limitation: the presence of interfering edges invalidates this assumption, since it introduces disruptive noise that compromises the contrastive learning process. Consequently, this limitation impairs the ability to effectively learn meaningful representations of normal patterns, leading to suboptimal detection performance. To address this issue, we propose a Clean-View Enhanced Graph Anomaly Detection framework (CVGAD), which includes a multi-scale anomaly awareness module to identify key sources of interference in the contrastive learning process. Moreover, to mitigate bias from the one-step edge removal process, we introduce a novel progressive purification module. This module incrementally refines the graph by iteratively identifying and removing interfering edges, thereby enhancing model performance. Extensive experiments on five benchmark datasets validate the effectiveness of our approach.

  1. [Aghabozorgi and Khayyambashi, 2018] Farshad Aghabo- zorgi and Mohammad Reza Khayyambashi. A new similarity measure for link prediction based on local structures in social networks. Physica A: Statistical Mechanics and its Applications, 501:12-23, 2018.
  2. [Ding et al., 2019] Kaize Ding, Jundong Li, Rohit Bhanushali, and Huan Liu. Deep anomaly detection on attributed networks. In Proceedings of the 2019 SIAM International Conference on Data Mining, pages 594-602, 2019.
  3. [Du et al., 2023] Yingjun Du, Jiayi Shen, Xiantong Zhen, and Cees GM Snoek. Superdisco: Super-class discovery improves visual recognition for the long-tail. In Proceed- ings of the IEEE Conference on Computer Vision and Pat- tern Recognition, pages 19944-19954, 2023.
  4. [Duan et al., 2023a] Jingcan Duan, Siwei Wang, Pei Zhang, En Zhu, Jingtao Hu, Hu Jin, Yue Liu, and Zhibin Dong. Graph anomaly detection via multi-scale contrastive learn- ing networks with augmented view. In Proceedings of the Thirty-Seventh AAAI Conference on Artificial Intelligence, pages 7459-7467, 2023.
  5. [Duan et al., 2023b] Jingcan Duan, Pei Zhang, Siwei Wang, Jingtao Hu, Hu Jin, Jiaxin Zhang, Haifang Zhou, and Xin- wang Liu. Normality learning-based graph anomaly detec- tion via multi-scale contrastive learning. In Proceedings of the Thirty-First ACM International Conference on Multi- media, pages 7502-7511, 2023.
  6. [Fan et al., 2020] Haoyi Fan, Fengbin Zhang, and Zuoyong Li. Anomalydae: Dual autoencoder for anomaly detection on attributed networks. In Proceedings of the 2020 IEEE International Conference on Acoustics, Speech and Signal Processing, pages 5685-5689, 2020.
  7. [Feng et al., 2024] Bingdao Feng, Di Jin, Xiaobao Wang, Fangyu Cheng, and Siqi Guo. Backdoor attacks on unsu- pervised graph representation learning. Neural Networks, 180:106668, 2024.
  8. [Hamilton et al., 2017] Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Proceedings of the Annual Conference on Neural Information Processing Systems, page 1025-1035, 2017.
  9. [He et al., 2024a] Dongxiao He, Jinghan Zhang, Xiaobao Wang, Meng Ge, Zhiyong Feng, Longbiao Wang, and Xi- aoke Ma. Tut4crs: Time-aware user-preference tracking for conversational recommendation system. In Proceed- ings of the Thirty-Second ACM International Conference on Multimedia, pages 5856-5864, 2024.
  10. [He et al., 2024b] Junwei He, Qianqian Xu, Yangbangyan Jiang, Zitai Wang, and Qingming Huang. Ada-gad: Anomaly-denoised autoencoders for graph anomaly detec- tion. In Proceedings of the Thirty-Eighth AAAI Conference on Artificial Intelligence, pages 8481-8489, 2024.
  11. [Huang et al., 2022] Tianjin Huang, Yulong Pei, Vlado Menkovski, and Mykola Pechenizkiy. Hop-count based self-supervised anomaly detection on attributed networks. In Proceedings of the Joint European Conference on Ma- chine Learning and Knowledge Discovery in Databases, pages 225-241, 2022.
  12. [Jaiswal et al., 2020] Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, and Fillia Makedon. A survey on contrastive self-supervised learn- ing. Technologies, 9(1):2, 2020.
  13. [Jin et al., 2021] Ming Jin, Yixin Liu, Yu Zheng, Lianhua Chi, Yuan-Fang Li, and Shirui Pan. Anemone: Graph anomaly detection with multi-scale contrastive learning. In Proceedings of the Thirtieth ACM International Confer- ence on Information and Knowledge Management, pages 3122-3126, 2021.
  14. [Jin et al., 2023] Di Jin, Bingdao Feng, Siqi Guo, Xiaobao Wang, Jianguo Wei, and Zhen Wang. Local-global de- fense against unsupervised adversarial attacks on graphs. In Proceedings of the Thirty-Seventh AAAI Conference on Artificial Intelligence, pages 8105-8113, 2023.
  15. [Jin et al., 2025] Di Jin, Yujun Zhang, Bingdao Feng, Xi- aobao Wang, Dongxiao He, and Zhen Wang. Backdoor attack on propagation-based rumor detectors. In Proceed- ings of the Thirty-Ninth AAAI Conference on Artificial In- telligence, pages 17680-17688, 2025.
  16. [Kim et al., 2022] Hwan Kim, Byung Suk Lee, Won-Yong Shin, and Sungsu Lim. Graph anomaly detection with graph neural networks: Current status and challenges. IEEE Access, 10:111820-111829, 2022.
  17. [Kumar et al., 2020] Ajay Kumar, Shashank Sheshar Singh, Kuldeep Singh, and Bhaskar Biswas. Link prediction tech- niques, applications, and performance: A survey. Physica A: Statistical Mechanics and its Applications, 553:124289, 2020.
  18. [Lanciano et al., 2020] Tommaso Lanciano, Francesco Bonchi, and A. Gionis. Explainable classification of brain networks via contrast subgraphs. In Proceedings of the Twenty-Sixth ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 3308-3318, 2020.
  19. [Li et al., 2017] Jundong Li, Harsh Dani, Xia Hu, and Huan Liu. Radar: Residual analysis for anomaly detection in attributed networks. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, pages 2152-2158, 2017. IJCAI
  20. [Li et al., 2021] Yunfan Li, Peng Hu, Zitao Liu, Dezhong Peng, Joey Tianyi Zhou, and Xi Peng. Contrastive cluster- ing. In Proceedings of the Thirty-Fifth AAAI Conference on Artificial Intelligence, pages 8547-8555, 2021.
  21. [Li et al., 2024] Jinghan Li, Yuan Gao, Jinda Lu, Junfeng Fang, Congcong Wen, Hui Lin, and Xiang Wang. Diffgad: A diffusion-based unsupervised graph anomaly detector. Proceedings of the International Conference on Learning Representations, 2024.
  22. [Liu et al., 2021] Yixin Liu, Zhao Li, Shirui Pan, Chen Gong, Chuan Zhou, and George Karypis. Anomaly detec- tion on attributed networks via contrastive self-supervised learning. IEEE Transactions on Neural Networks and Learning Systems, 33(6):2378-2392, 2021.
  23. [Liu et al., 2024] Yuting Liu, Liu Yang, and Yu Wang. Hier- archical fine-grained visual classification leveraging con- sistent hierarchical knowledge. In Proceedings of the Joint European Conference on Machine Learning and Knowl- edge Discovery in Databases, pages 279-295, 2024.
  24. [Luo et al., 2022] Xuexiong Luo, Jia Wu, Amin Beheshti, Jian Yang, Xiankun Zhang, Yuan Wang, and Shan Xue. Comga: Community-aware attributed graph anomaly de- tection. In Proceedings of the Fifteenth ACM International Conference on Web Search and Data Mining, pages 657- 665, 2022.
  25. [Noble and Cook, 2003] Caleb C Noble and Diane J Cook. Graph-based anomaly detection. In Proceedings of the ninth ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 631-636, 2003.
  26. [Peng et al., 2018] Zhen Peng, Minnan Luo, Jundong Li, Huan Liu, Qinghua Zheng, et al. Anomalous: A joint mod- eling approach for anomaly detection on attributed net- works. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, pages 3513- 3519, 2018. IJCAI
  27. [Perozzi and Akoglu, 2016] Bryan Perozzi and Leman Akoglu. Scalable anomaly ranking of attributed neighbor- hoods. In Proceedings of the 2016 SIAM International Conference on Data Mining, pages 207-215, 2016.
  28. [Sen et al., 2008] Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI Magazine, 29(3):93-93, 2008.
  29. [Tang et al., 2008] Jie Tang, Jing Zhang, Limin Yao, Juan-Zi Li, Li Zhang, and Zhong Su. Arnetminer: extraction and mining of academic social networks. In Proceedings of the Fourteenth ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 990-998, 2008.
  30. [Tong et al., 2006] Hanghang Tong, Christos Faloutsos, and Jia-Yu Pan. Fast random walk with restart and its appli- cations. In Proceedings of the Sixth IEEE International Conference on Data Mining, pages 613-622, 2006.
  31. [Wang et al., 2023] Xiaobao Wang, Yiqi Dong, Di Jin, Yawen Li, Longbiao Wang, and Jianwu Dang. Augment- ing affective dependency graph via iterative incongruity graph learning for sarcasm detection. In Proceedings of the Thirty-Seventh AAAI Conference on Artificial Intelli- gence, pages 4702-4710, 2023.
  32. [Wang et al., 2025] Xiaobao Wang, Yujing Wang, Dongxiao He, Zhe Yu, Yawen Li, Longbiao Wang, Jianwu Dang, and Di Jin. Elevating knowledge-enhanced entity and relation- ship understanding for sarcasm detection. IEEE Transac- tions on Knowledge and Data Engineering, 2025.
  33. [Wu et al., 2019] Shu Wu, Yuyuan Tang, Yanqiao Zhu, Liang Wang, Xing Xie, and Tieniu Tan. Session-based rec- ommendation with graph neural networks. In Proceedings of the Thirty-Third AAAI Conference on Artificial Intelli- gence, pages 346-353, 2019.
  34. [Xiang et al., 2023] Haolong Xiang, Xuyun Zhang, Hong- sheng Hu, Lianyong Qi, Wanchun Dou, Mark Dras, Amin Beheshti, and Xiaolong Xu. Optiforest: Optimal isola- tion forest for anomaly detection. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, pages 2379-2387, 2023. IJCAI
  35. [Xiang et al., 2024] Haolong Xiang, Xuyun Zhang, Xiao- long Xu, Amin Beheshti, Lianyong Qi, Yujie Hong, and Wanchun Dou. Federated learning-based anomaly detec- tion with isolation forest in the iot-edge continuum. ACM Transactions on Multimedia Computing, Communications and Applications, 2024.
  36. [Zhang et al., 2022] Jiaqiang Zhang, Senzhang Wang, and Songcan Chen. Reconstruction enhanced multi-view con- trastive learning for anomaly detection on attributed net- works. In Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, pages 2376- 2382, 2022. IJCAI
  37. [Zheng et al., 2021] Yu Zheng, Ming Jin, Yixin Liu, Lianhua Chi, Khoa T Phan, and Yi-Ping Phoebe Chen. Generative and contrastive self-supervised learning for graph anomaly detection. IEEE Transactions on Knowledge and Data En- gineering, 35(12):12220-12233, 2021.
  38. [Zou et al., 2024] Dongcheng Zou, Hao Peng, and Chun- yang Liu. A structural information guided hierarchical reconstruction for graph anomaly detection. In Proceed- ings of the Thirty-Third ACM International Conference on Information and Knowledge Management, pages 4318- 4323, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards