DualGAD: A Generalist Graph Anomaly Detection Method via Dual-Encoder Architecture
Abstract
1. Introduction
- We propose the DualGAD dual-encoder architecture, which is the first to introduce explicit structural modeling into generalist graph anomaly detection and effectively alleviates structural instability under cross-domain settings.
- We design a structural feature construction method that characterizes relative topological deviation, together with an “attribute-dominant, structure-complementary” lightweight fusion strategy, enabling effective collaborative modeling of attribute and structural information.
- We conduct extensive experimental validation across multiple real-world datasets, demonstrating the effectiveness and superiority of DualGAD, showing remarkable cross-domain generalization performance, and validating the effectiveness of explicit structural modeling in generalist graph anomaly detection.
2. Related Work
2.1. Topological Feature-Based Graph Anomaly Detection
2.2. Deep Learning-Based Graph Anomaly Detection
2.3. Generalist Graph Anomaly Detection
3. Preliminary Knowledge
3.1. Notations
3.2. Traditional GAD Problem
3.3. Generalist GAD Problem
4. Methodology
4.1. Cross-Domain Feature Alignment
4.2. Attribute Feature Encoder
4.3. Explicit Structural Feature Encoder
4.4. Dual-Encoder Fusion Mechanism
4.5. Few-Shot Graph Attention Detection
4.6. Loss Function and Training Strategy
| Algorithm 1 The inference algorithm of DualGAD |
| Require: Test dataset with few-shot normal nodes Ensure: Well-trained model weight parameters
|
5. Experiments
5.1. Experimental Setup
- Attribute-structure fusion weight: ;
- Number of propagation hops: ;
- Hidden feature dimension: ;
- Learning rate: ;
- Number of network layers: ;
- Number of prompt nodes: ;
- Dropout rate: .
5.2. Experimental Results
5.2.1. Performance Comparison
5.2.2. Parameter Sensitivity Analysis
5.2.3. Ablation Study
5.3. Complexity Analysis
5.4. Visualization
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Wu, Z.; Pan, S.; Chen, F.; Long, G.; Zhang, C.; Yu, P.S. A comprehensive survey on graph neural networks. IEEE Trans. Neural Netw. Learn. Syst. 2020, 32, 4–24. [Google Scholar] [CrossRef] [PubMed]
- Qiao, H.; Tong, H.; An, B.; King, I.; Aggarwal, C.; Pang, G. Deep graph anomaly detection: A survey and new perspectives. IEEE Trans. Knowl. Data Eng. 2025; in press.
- Bandyopadhyay, S.; N, L.; Vivek, S.V.; Murty, M.N. Outlier resistant unsupervised deep architectures for attributed network embedding. In Proceedings of the 13th International Conference on Web Search and Data Mining, Houston, TX, USA, 3–7 February 2020; ACM: New York, NY, USA, 2020; pp. 25–33. [Google Scholar]
- Lin, Y.; Tang, J.; Zi, C.; Zhao, H.V.; Yao, Y.; Li, J. Unigad: Unifying multi-level graph anomaly detection. Adv. Neural Inf. Process. Syst. 2024, 37, 136120–136148. [Google Scholar]
- Ma, X.; Wu, J.; Xue, S.; Yang, J.; Zhou, C.; Sheng, Q.Z.; Akoglu, L. A comprehensive survey on graph anomaly detection with deep learning. IEEE Trans. Knowl. Data Eng. 2021, 35, 12012–12038. [Google Scholar] [CrossRef]
- Qiao, H.; Wen, Q.; Li, X.; Lim, E.P.; Pang, G. Generative semi-supervised graph anomaly detection. Adv. Neural Inf. Process. Syst. 2024, 37, 4660–4688. [Google Scholar]
- Ghani, R.; Senator, T.E.; Bradley, P.; Parekh, R.; He, J. (Eds.) Proceedings of the 19th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; ACM: New York, NY, USA, 2013. [Google Scholar]
- Eberle, W.; Holder, L. Anomaly detection in data represented as graphs. Intell. Data Anal. 2007, 11, 663–689. [Google Scholar] [CrossRef]
- Henderson, K.; Gallagher, B.; Eliassi-Rad, T.; Tong, H.; Basu, S.; Akoglu, L.; Li, L. Rolx: Structural role extraction & mining in large graphs. In Proceedings of the 18th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Beijing, China, 12–16 August 2012; ACM: New York, NY, USA, 2012; pp. 1231–1239. [Google Scholar]
- Kipf, T.N.; Welling, M. Semi-supervised classification with graph convolutional networks. arXiv 2016, arXiv:1609.02907. [Google Scholar]
- Veličković, P.; Cucurull, G.; Casanova, A.; Romero, A.; Lio, P.; Bengio, Y. Graph attention networks. arXiv 2017, arXiv:1710.10903. [Google Scholar]
- Zhang, Y.; Pal, S.; Coates, M.; Ustebay, D. Bayesian graph convolutional neural networks for semi-supervised classification. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 5829–5836. [Google Scholar]
- Ding, K.; Li, J.; Bhanushali, R.; Liu, H. Deep anomaly detection on attributed networks. In Proceedings of the 2019 SIAM International Conference on Data Mining, Calgary, AB, Canada, 2–4 May 2019; SIAM: Philadelphia, PA, USA, 2019; pp. 594–602. [Google Scholar]
- Liu, Y.; Li, Z.; Pan, S.; Gong, C.; Zhou, C.; Karypis, G. Anomaly detection on attributed networks via contrastive self-supervised learning. IEEE Trans. Neural Netw. Learn. Syst. 2021, 33, 2378–2392. [Google Scholar] [CrossRef] [PubMed]
- Huang, T.; Pei, Y.; Menkovski, V.; Pechenizkiy, M. Hop-count based self-supervised anomaly detection on attributed networks. In Proceedings of the Joint European Conference on Machine Learning and Knowledge Discovery in Databases, Grenoble, France, 19–23 September 2022; Springer: Cham, Switzerland, 2022; pp. 225–241. [Google Scholar]
- Liu, Y.; Li, S.; Zheng, Y.; Chen, Q.; Zhang, C.; Pan, S. Arc: A generalist graph anomaly detector with in-context learning. Adv. Neural Inf. Process. Syst. 2024, 37, 50772–50804. [Google Scholar]
- Niu, C.; Qiao, H.; Chen, C.; Chen, L.; Pang, G. Zero-shot generalist graph anomaly detection with unified neighborhood prompts. arXiv 2024, arXiv:2410.14886. [Google Scholar] [CrossRef]
- Hassanzadeh, R.; Nayak, R.; Stebila, D. Analyzing the effectiveness of graph metrics for anomaly detection in online social networks. In Proceedings of the International Conference on Web Information Systems Engineering, Paphos, Cyprus, 19–21 November 2012; Springer: Berlin/Heidelberg, Germany, 2012; pp. 624–630. [Google Scholar]
- Bonacich, P. Some unique properties of eigenvector centrality. Soc. Netw. 2007, 29, 555–564. [Google Scholar] [CrossRef]
- Fan, H.; Zhang, F.; Li, Z. Anomalydae: Dual autoencoder for anomaly detection on attributed networks. In Proceedings of the ICASSP 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Barcelona, Spain, 4–8 May 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 5685–5689. [Google Scholar]
- Wang, J.; Guo, J.; Sun, Y.; Gao, J.; Wang, S.; Yang, Y.; Yin, B. Dgnn: Decoupled graph neural networks with structural consistency between attribute and graph embedding representations. IEEE Trans. Big Data 2024, 11, 1813–1827. [Google Scholar] [CrossRef]
- Tian, C.; Zhang, F.; Wang, R. Adversarial regularized attributed network embedding for graph anomaly detection. Pattern Recognit. Lett. 2024, 183, 111–116. [Google Scholar] [CrossRef]
- Stewart, G.W. On the early history of the singular value decomposition. SIAM Rev. 1993, 35, 551–566. [Google Scholar] [CrossRef]
- Abdi, H.; Williams, L.J. Principal component analysis. Wiley Interdiscip. Rev. Comput. Stat. 2010, 2, 433–459. [Google Scholar] [CrossRef]
- Zhang, Z.; Hensley, C.; Chen, Z. Improving node classification with neural tangent kernel: A graph neural network approach. In Proceedings of the International Conference on Machine Learning, Pattern Recognition and Automation Engineering, Singapore, 7–9 August 2024; ACM: New York, NY, USA, 2024; pp. 93–97. [Google Scholar]
- Tang, L.; Liu, H. Relational learning via latent social dimensions. In Proceedings of the 15th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Paris, France, 28 June–1 July 2009; ACM: New York, NY, USA, 2009; pp. 817–826. [Google Scholar]
- Sen, P.; Namata, G.; Bilgic, M.; Getoor, L.; Galligher, B.; Eliassi-Rad, T. Collective classification in network data. AI Mag. 2008, 29, 93. [Google Scholar] [CrossRef]
- Yuan, X.; Zhou, N.; Yu, S.; Huang, H.; Chen, Z.; Xia, F. Higher-order structure based anomaly detection on attributed networks. In Proceedings of the 2021 IEEE International Conference on Big Data (Big Data), Orlando, FL, USA, 15–18 December 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 2691–2700. [Google Scholar]
- Zhang, H.; Zhou, Y.; Xu, H.; Shi, J.; Lin, X.; Gao, Y. Graph neural network approach with spatial structure to anomaly detection of network data. J. Big Data 2025, 12, 105. [Google Scholar] [CrossRef]
- Xu, Z.; Huang, X.; Zhao, Y.; Dong, Y.; Li, J. Contrastive attributed network anomaly detection with data augmentation. In Proceedings of the Pacific-Asia Conference on Knowledge Discovery and Data Mining, Chengdu, China, 16–19 May 2022; Springer: Cham, Switzerland, 2022; pp. 444–457. [Google Scholar]
- Kumar, S.; Zhang, X.; Leskovec, J. Predicting dynamic embedding trajectory in temporal interaction networks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Anchorage, AK, USA, 4–8 August 2019; ACM: New York, NY, USA, 2019; pp. 1269–1278. [Google Scholar]
- Platonov, O.; Kuznedelev, D.; Diskin, M.; Babenko, A.; Prokhorenkova, L. A critical look at the evaluation of GNNs under heterophily: Are we really making progress? arXiv 2023, arXiv:2302.11640. [Google Scholar]
- Dou, Y.; Liu, Z.; Sun, L.; Deng, Y.; Peng, H.; Yu, P.S. Enhancing graph neural network-based fraud detectors against camouflaged fraudsters. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management, Galway, Ireland, 19–23 October 2020; ACM: New York, NY, USA, 2020; pp. 315–324. [Google Scholar]
- Durak, N.; Pinar, A.; Kolda, T.G.; Seshadhri, C. Degree relations of triangles in real-world networks and graph models. In Proceedings of the 21st ACM International Conference on Information and Knowledge Management, Maui, HI, USA, 29 October–2 November 2012; ACM: New York, NY, USA, 2012; pp. 1712–1716. [Google Scholar]
- Meghanathan, N. A greedy algorithm for neighborhood overlap-based community detection. Algorithms 2016, 9, 8. [Google Scholar] [CrossRef]







| Dataset | Type | Nodes | Edges | Features | Anomalies (Rate) |
|---|---|---|---|---|---|
| PubMed | Citation Networks | 19,717 | 44,338 | 500 | 600 (3.04%) |
| Flickr | Social Networks | 7575 | 239,738 | 12,047 | 450 (5.94%) |
| Cora | Citation Networks | 2708 | 5429 | 1433 | 150 (5.53%) |
| CiteSeer | Citation Networks | 3327 | 4732 | 3703 | 150 (4.50%) |
| ACM | Citation Networks | 16,484 | 71,980 | 8337 | 597 (3.62%) |
| Social Networks | 1081 | 55,104 | 576 | 25 (2.31%) | |
| Social Networks | 8405 | 407,963 | 400 | 868 (10.30%) | |
| Social Networks | 10,984 | 168,016 | 64 | 366 (3.33%) | |
| Questions | Social Networks | 48,921 | 153,540 | 301 | 1460 (2.98%) |
| Amazon | Co-review | 10,244 | 175,608 | 25 | 693 (6.76%) |
| Metric | Method | Cora | CiteSeer | ACM | Amazon | ||
|---|---|---|---|---|---|---|---|
| AUROC | Supervised Methods | ||||||
| GCN | 59.64 ± 8.30 | 60.27 ± 8.11 | 60.49 ± 9.65 | 46.63 ± 3.47 | 29.51 ± 4.86 | 76.64 ± 17.69 | |
| GAT | 50.06 ± 2.65 | 51.59 ± 3.49 | 48.79 ± 2.73 | 50.52 ± 17.22 | 51.88 ± 2.16 | 53.06 ± 7.48 | |
| BWGNN | 54.06 ± 3.27 | 52.61 ± 2.88 | 67.59 ± 0.70 | 55.26 ± 16.95 | 45.84 ± 4.97 | 53.38 ± 1.61 | |
| Unsupervised Methods | |||||||
| DOMINANT | 72.23 ± 0.34 | 74.69 ± 0.32 | 74.34 ± 0.12 | 59.06 ± 2.80 | 49.92 ± 0.55 | 92.21 ± 0.10 | |
| CoLA | 67.62 ± 4.26 | 70.75 ± 3.42 | 69.11 ± 0.67 | 52.51 ± 6.66 | 64.70 ± 18.86 | 31.55 ± 6.02 | |
| HCM-A | 56.45 ± 4.93 | 55.54 ± 4.07 | 57.69 ± 3.59 | 42.20 ± 0.55 | 36.57 ± 10.72 | 71.89 ± 2.79 | |
| General Methods | |||||||
| UNPrompt | 64.98 ± 0.35 | 71.78 ± 1.09 | 74.00 ± 0.15 | 79.35 ± 1.27 | 80.92 ± 0.85 | 88.68 ± 1.35 | |
| ARC | 87.32 ± 0.79 | 90.74 ± 0.53 | 79.98 ± 0.24 | 78.98 ± 2.43 | 67.48 ± 0.37 | 89.13 ± 0.42 | |
| DualGAD (Ours) | 93.72 ± 0.82 | 95.13 ± 0.09 | 83.36 ± 0.56 | 82.04 ± 1.28 | 68.50 ± 1.07 | 89.63 ± 0.26 | |
| AUPRC | Supervised Methods | ||||||
| GCN | 7.41 ± 1.55 | 6.40 ± 1.40 | 5.27 ± 1.12 | 6.96 ± 2.04 | 1.59 ± 0.11 | 67.21 ± 15.20 | |
| GAT | 6.49 ± 0.84 | 5.58 ± 0.62 | 4.70 ± 0.75 | 15.74 ± 17.85 | 3.14 ± 0.37 | 33.34 ± 9.80 | |
| BWGNN | 7.25 ± 0.80 | 6.35 ± 0.73 | 7.14 ± 0.20 | 13.12 ± 11.82 | 2.54 ± 0.63 | 12.13 ± 0.71 | |
| Unsupervised Methods | |||||||
| DOMINANT | 21.35 ± 0.74 | 23.02 ± 1.55 | 22.74 ± 0.95 | 7.48 ± 0.46 | 3.56 ± 0.15 | 77.69 ± 1.43 | |
| CoLA | 13.91 ± 5.56 | 19.51 ± 3.73 | 8.48 ± 0.51 | 7.27 ± 1.13 | 15.19 ± 11.04 | 8.03 ± 1.19 | |
| HCM-A | 6.41 ± 1.33 | 4.76 ± 0.51 | 4.41 ± 0.63 | 5.64 ± 0.09 | 2.23 ± 0.76 | 27.20 ± 5.53 | |
| General Methods | |||||||
| UNPrompt | 12.00 ± 1.32 | 19.38 ± 2.01 | 20.50 ± 0.37 | 18.92 ± 0.76 | 17.85 ± 1.52 | 60.21 ± 1.37 | |
| ARC | 50.28 ± 1.23 | 46.35 ± 0.81 | 40.86 ± 1.14 | 28.10 ± 4.95 | 6.34 ± 0.28 | 65.45 ± 1.01 | |
| DualGAD (Ours) | 59.12 ± 4.13 | 56.45 ± 1.76 | 40.28 ± 1.29 | 26.61 ± 2.16 | 6.60 ± 1.03 | 66.38 ± 0.74 | |
| Training Source | Cora | CiteSeer | ACM | Amazon | Avg | ||
|---|---|---|---|---|---|---|---|
| (Pubmed + Flickr) | 93.72 | 95.13 | 83.36 | 82.04 | 68.50 | 89.63 | 85.39 |
| (Pubmed + Question) | 95.57 | 95.56 | 79.39 | 62.32 | 73.19 | 89.21 | 82.54 |
| (Flickr + Reddit) | 85.34 | 90.74 | 85.65 | 77.49 | 62.04 | 89.12 | 81.73 |
| (Questions + Reddit) | 93.81 | 94.98 | 78.59 | 54.85 | 70.57 | 89.05 | 80.31 |
| Fusion Method | Cora | CiteSeer | ACM | Amazon | ||
|---|---|---|---|---|---|---|
| Attention Fusion | ||||||
| Gated Fusion | ||||||
| DualGAD |
| Variant | Cora | CiteSeer | ACM | Amazon | Avg | ||
|---|---|---|---|---|---|---|---|
| w/o Attr | 74.15 | 75.56 | 63.82 | 48.93 | 43.33 | 65.41 | 61.87 |
| w/o Struct | 88.34 | 89.76 | 78.91 | 63.12 | 84.22 | 76.58 | 80.16 |
| DualGAD | 93.72 | 95.13 | 83.36 | 68.50 | 89.63 | 82.04 | 85.39 |
| Dataset | Shot = 2 | Shot = 5 | Shot = 10 | Shot = 20 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ours | w/o Attr | w/o Struct | Ours | w/o Attr | w/o Struct | Ours | w/o Attr | w/o Struct | Ours | w/o Attr | w/o Struct | |
| Cora | 93.03 | 74.23 | 86.97 | 93.29 | 74.22 | 87.00 | 93.72 | 74.40 | 85.26 | 93.22 | 74.25 | 86.97 |
| CiteSeer | 93.34 | 75.19 | 91.83 | 93.37 | 75.18 | 91.90 | 95.13 | 75.16 | 91.30 | 93.36 | 75.14 | 91.95 |
| ACM | 76.88 | 72.72 | 79.84 | 76.88 | 72.74 | 79.90 | 83.36 | 72.49 | 78.98 | 76.89 | 72.74 | 79.92 |
| 70.86 | 74.60 | 70.64 | 70.49 | 74.60 | 70.59 | 68.50 | 74.44 | 68.37 | 70.31 | 74.63 | 70.49 | |
| 88.46 | 42.60 | 87.95 | 88.61 | 42.52 | 88.19 | 89.63 | 43.33 | 88.92 | 88.62 | 42.61 | 88.32 | |
| Amazon | 80.87 | 55.16 | 63.76 | 80.98 | 55.15 | 63.66 | 82.04 | 55.17 | 67.21 | 80.31 | 55.15 | 63.97 |
| Variant | Cora | CiteSeer | ACM | Amazon | Avg | ||
|---|---|---|---|---|---|---|---|
| w/o Degree | 93.21 | 94.58 | 82.87 | 67.92 | 89.15 | 81.52 | 84.87 |
| w/o Triangle | 93.45 | 94.89 | 83.01 | 68.11 | 89.32 | 81.78 | 85.09 |
| w/o Overlap | 93.18 | 94.67 | 82.94 | 68.23 | 89.28 | 81.69 | 84.99 |
| w/o InOut | 93.72 | 95.13 | 80.78 | 68.50 | 89.41 | 81.75 | 84.88 |
| DualGAD | 93.72 | 95.13 | 83.36 | 68.50 | 89.63 | 82.04 | 85.39 |
| Method | Cora | CiteSeer | ACM | Amazon | Avg | ||
|---|---|---|---|---|---|---|---|
| PCA (Ours) | 93.72 | 95.13 | 83.36 | 68.50 | 89.63 | 82.04 | 85.39 |
| t-SNE | 81.03 | 87.06 | 59.14 | 68.73 | 57.96 | 70.47 | 70.73 |
| UMAP | 63.42 | 64.55 | 56.34 | 59.65 | 52.36 | 64.52 | 60.14 |
| Methods | AnomalyDAE | GAT | BWGNN | UNPrompt | ARC | DualGAD |
|---|---|---|---|---|---|---|
| Training Time | 86.04 | 2.43 | 4.86 | 3.86 | 0.35 | 0.39 |
| Inference Time | 264.29 | 300.90 | 330.99 | 105.17 | 0.15 | 0.25 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Liu, J.; Mao, S.; Zhang, S.; Shan, F.; Li, J. DualGAD: A Generalist Graph Anomaly Detection Method via Dual-Encoder Architecture. Information 2026, 17, 416. https://doi.org/10.3390/info17050416
Liu J, Mao S, Zhang S, Shan F, Li J. DualGAD: A Generalist Graph Anomaly Detection Method via Dual-Encoder Architecture. Information. 2026; 17(5):416. https://doi.org/10.3390/info17050416
Chicago/Turabian StyleLiu, Jizhao, Shuo Mao, Shuqin Zhang, Fangfang Shan, and Jun Li. 2026. "DualGAD: A Generalist Graph Anomaly Detection Method via Dual-Encoder Architecture" Information 17, no. 5: 416. https://doi.org/10.3390/info17050416
APA StyleLiu, J., Mao, S., Zhang, S., Shan, F., & Li, J. (2026). DualGAD: A Generalist Graph Anomaly Detection Method via Dual-Encoder Architecture. Information, 17(5), 416. https://doi.org/10.3390/info17050416
