Motif-Consistent Counterfactuals with Adversarial Refinement for Graph-level Anomaly Detection
Chunjing Xiao, Shikang Pang, Wenxin Tai, Yanlong Huang, Goce Trajcevski, Fan Zhou
Abstract
Graph-level anomaly detection is significant in diverse domains. To improve detection performance, counterfactual graphs have been exploited to benefit the generalization capacity by learning causal relations. Most existing studies directly introduce perturbations (e.g., flipping edges) to generate counterfactual graphs, which are prone to alter the semantics of generated examples and make them off the data manifold, resulting in sub-optimal performance. To address these issues, we propose a novel approach, Motif-consistent Counterfactuals with Adversarial Refinement (MotifCAR), for graph-level anomaly detection. The model combines the motif of one graph, the core subgraph containing the identification (category) information, and the contextual subgraph (non-motif) of another graph to produce a raw counterfactual graph. However, the produced raw graph might be distorted and cannot satisfy the important counterfactual properties: Realism, Validity, Proximity and Sparsity. Towards that, we present a Generative Adversarial Network (GAN)-based graph optimizer to refine the raw counterfactual graphs. It adopts the discriminator to guide the generator to generate graphs close to realistic data, i.e., meet the property Realism. Further, we design the motif consistency to force the motif of the generated graphs to be consistent with the realistic graphs, meeting the property Validity. Also, we devise the contextual loss and connection loss to control the contextual subgraph and the newly added links to meet the properties Proximity and Sparsity. As a result, the model can generate high-quality counterfactual graphs. Experiments demonstrate the superiority of MotifCAR.
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.
Cited by top-tier papers3
- MoDiff - Graph Generation with Motif-aware Diffusion ModelYuwei Xu, Chenhao MaKDD 2025
- Beyond Single Transactions: D-EMAML - Dual-Edge Motif Neural Networks for Enhanced Anti-Money Laundering DetectionDongmei Han, Min Min, Yuchen Wang, Guoming Xu et al.AAAI 2026
- Leveraging Diffusion Model as Pseudo-Anomalous Graph Generator for Graph-Level Anomaly DetectionJinyu Cai, Yunhe Zhang, Fusheng Liu, See-Kiong NgICML 2025
Builds on21
- Out-of-Distribution Generalization via Risk Extrapolation (REx)David Krueger, Ethan Caballero, Jörn-Henrik Jacobsen, Amy Zhang et al.ICML 2021 · 1,163 citations
- Rethinking Graph Neural Networks for Anomaly DetectionJianheng Tang, Jiajin Li, Ziqi Gao, Jia LiICML 2022 · 365 citations
- G-Mixup: Graph Data Augmentation for Graph ClassificationXiaotian Han, Zhimeng Jiang, Ninghao Liu, Xia HuICML 2022 · 251 citations
- Graph Anomaly Detection via Multi-Scale Contrastive Learning Networks with Augmented ViewJingcan Duan, Siwei Wang, Pei Zhang, En Zhu et al.AAAI 2023 · 159 citations
- Robust Counterfactual Explanations on Graph Neural NetworksMohit Bajaj, Lingyang Chu, Zi Yu Xue, Jian Pei et al.NeurIPS 2021 · 140 citations
Related papers
- Generalizable Graph-level Anomaly Detection via Prompted Anomaly Expansion and Normality ExtractionGe Zhang, Jiapei Chen, Guohao Sun, Xiu Fang et al.WWW 2026
- Causal-aware Anomaly Detection for Tabular DataDang Nguyen, Tu Anh Hoang Nguyen, Thuc Le, Svetha Venkatesh et al.ICML 2026
- ADA-GAD: Anomaly-Denoised Autoencoders for Graph Anomaly DetectionJunwei He, Qianqian Xu, Yangbangyan Jiang, Zitai Wang et al.AAAI 2024 · 71 citations
- Rethinking Feature Alignment in Generalist Graph Anomaly Detection: A Relational Fingerprint-based ApproachYujing Liu, Yixin Liu, Yu Zheng, Alan Liew et al.ICML 2026 · 1 citation
- Generative Semi-supervised Graph Anomaly DetectionHezhe Qiao, Qingsong Wen, Xiaoli Li, Ee-Peng Lim et al.NeurIPS 2024 · 48 citations
