Truncated Affinity Maximization: One-class Homophily Modeling for Graph Anomaly Detection
Hezhe Qiao, Guansong Pang
Abstract
We reveal a one-class homophily phenomenon, which is one prevalent property we find empirically in real-world graph anomaly detection (GAD) datasets, i.e., normal nodes tend to have strong connection/affinity with each other, while the homophily in abnormal nodes is significantly weaker than normal nodes. However, this anomaly-discriminative property is ignored by existing GAD methods that are typically built using a conventional anomaly detection objective, such as data reconstruction. In this work, we explore this property to introduce a novel unsupervised anomaly scoring measure for GAD -local node affinity -that assigns a larger anomaly score to nodes that are less affiliated with their neighbors, with the affinity defined as similarity on node attributes/representations. We further propose Truncated Affinity Maximization (TAM) that learns tailored node representations for our anomaly measure by maximizing the local affinity of nodes to their neighbors. Optimizing on the original graph structure can be biased by nonhomophily edges (i.e., edges connecting normal and abnormal nodes). Thus, TAM is instead optimized on truncated graphs where non-homophily edges are removed iteratively to mitigate this bias. The learned representations result in significantly stronger local affinity for normal nodes than abnormal nodes. Extensive empirical results on 10 real-world GAD datasets show that TAM substantially outperforms seven competing models, achieving over 10% increase in AUROC/AUPRC compared to the best contenders on challenging datasets. Our code is available at https://github.com/mala-lab/TAM-master/ .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext ad2e1abb-6aa7-415c-ad36-328e3a5f00dfCited by top-tier papers33
- ARC: A Generalist Graph Anomaly Detector with In-Context LearningYixin Liu, Shiyuan Li, Yu Zheng, Qingfeng Chen et al.NeurIPS 2024 · 73 citations
- Generative Semi-supervised Graph Anomaly DetectionHezhe Qiao, Qingsong Wen, Xiaoli Li, Ee-Peng Lim et al.NeurIPS 2024 · 48 citations
- A Label-free Heterophily-guided Approach for Unsupervised Graph Fraud DetectionJunjun Pan, Yixin Liu, Xin Zheng, Yizhen Zheng et al.AAAI 2025 · 29 citations
- SmoothGNN: Smoothing-aware GNN for Unsupervised Node Anomaly DetectionXiangyu Dong, Xingyi Zhang, Yanni Sun, Lei Chen et al.WWW 2025 · 16 citations
- Cluster Aware Graph Anomaly DetectionLecheng Zheng, John R. Birge, Haiyue Wu, Yifang Zhang et al.WWW 2025 · 13 citations
Builds on14
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- Graph Representation Learning via Graphical Mutual Information MaximizationZhen Peng, Wenbing Huang, Minnan Luo, Qinghua Zheng et al.WWW 2020 · 682 citations
- Pick and Choose: A GNN-based Imbalanced Learning Approach for Fraud DetectionYang Liu, Xiang Ao, Zidi Qin, Jianfeng Chi et al.WWW 2021 · 527 citations
- Graph Neural Networks with HeterophilyJiong Zhu, Ryan A. Rossi, Anup Rao, Tung Mai et al.AAAI 2021 · 393 citations
- Rethinking Graph Neural Networks for Anomaly DetectionJianheng Tang, Jiajin Li, Ziqi Gao, Jia LiICML 2022 · 365 citations
Related papers
- UMGAD: Unsupervised Multiplex Graph Anomaly DetectionXiang Li, Jianpeng Qi, Zhongying Zhao, Guanjie Zheng et al.ICDE 2025 · 4 citations
- DR-GGAD: Dual Residual Centering for Mitigating Anomaly Non‑Discriminativity in Generalist Graph Anomaly DetectionChanglong Fu, Zhenli He, Xiong Zhang, Cheng Xie et al.ICLR 2026
- ADA-GAD: Anomaly-Denoised Autoencoders for Graph Anomaly DetectionJunwei He, Qianqian Xu, Yangbangyan Jiang, Zitai Wang et al.AAAI 2024 · 71 citations
- Semi-supervised Graph Anomaly Detection via Robust Homophily LearningGuoguo Ai, Hezhe Qiao, Hui Yan, Guansong PangNeurIPS 2025 · 7 citations
- HSMAD: Heterophily-Driven Spectral and Manifold Learning for Graph Anomaly DetectionChen Zhu, YAYING ZHANGICML 2026
