arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.12167

Is Real-World Training Data Necessary for Generalist Graph Anomaly Detection?

Yujing Liu, Yixin Liu, Yue Tan, Xiaofeng Cao, Alan Wee-Chung Liew, Heng Tao Shen, Shirui Pan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Generalist graph anomaly detection (GAD) aims to build a foundation model that detects anomalies on arbitrary unseen graphs without retraining or fine-tuning. Sufficient data are essential for foundation model training, yet generalist GAD still faces a data shortage, as real-world anomalous graphs are scarce and costly to collect and annotate. To fill this gap, we propose AG-FORGE, an Anomalous Graph generation Forge for automatic synthesis of anomalous graphs, exploring the feasibility of synthetic data-driven training for generalist GAD. Empirically, we find that synthetic data can achieve performance comparable to real-world training, but fail to push the performance boundary further due to the limited capacity of existing methods. To further unlock model capacity as training data scale up, we develop TS-GGAD, a Topology-Semantic coordinated Generalist GAD that captures complementary topological and semantic anomaly evidence, together with a curriculum learning strategy tailored to large-scale synthetic training. Extensive experiments on 14 real-world datasets demonstrate that TS-GGAD, trained on data generated by AG-FORGE, significantly outperforms state-of-the-art methods.

1 INTRODUCTION

Graph anomaly detection (GAD) aims to identify abnormal entities in graph-structured data, with applications in a wide range of real-world scenarios, such as financial fraud detection, network intrusion detection, and social security monitoring Qiao et al. (2025b). Conventional GAD methods require dataset-specific training on each target graph, leading to high deployment costs and poor generalizability in new scenarios Ding et al. (2019); Liu et al. (2021). To address these limitations, recent studies began to explore generalist GAD approaches that learn transferable anomaly patterns from diverse graphs, enabling a single GAD model to generalize to unseen graphs without dataset-specific retraining or fine-tuning Liu et al. (2024); Zhang et al. (2025). By reducing deployment costs and extending GAD to broader application scenarios, generalist GAD represents an important step toward anomaly detection foundation models for graphs Qiao et al. (2025a).

For foundation models, sufficient and high-quality training data are essential to support cross-domain generalization and transferability Kaplan et al. (2020); Hollmann et al. (2025). Generalist GAD is no exception: ample and diverse training data from different scenarios are critically needed to capture a broad spectrum of anomaly patterns Liu et al. (2026). However, unlike language and image data that are widely available at scale, real-world training data for GAD are much harder to collect – Anomalies are inherently rare, while collecting large-scale graph data can be costly and subject to privacy or access constraints. As a result, current generalist GAD models are merely trained on 1-7 datasets from limited domains, with a total of 90k nodes in average Niu et al. (2024); Qiao et al. (2025a). Such data drought, consequently, may become a key bottleneck to scaling up generalist GAD and extending its generalization to broader domains.

A promising solution for data drought is to generate training data through data synthesis. Recent breakthroughs in PFN-style models demonstrate that foundation models can be trained entirely on

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

synthetic tabular and time series data Hollmann et al. (2025); Dooley et al. (2023). Using data synthesis, training data can be generated at virtually unlimited scale, alleviating the scarcity of real-world data; more importantly, their distributions and patterns are controllable, reducing the risk of low-quality data with noise and bias. Given the potential of synthetic data and the shortage of real-world data, a natural question arises: Is real-world training data necessary for generalist GAD?

Challenge ①: Fidelity of synthetic graphs and anomalies. While data synthesis offers a promising pathway, generating training data for GAD remains non-trivial due to the inherent complexity of real-world graphs and anomaly patterns. On the one hand, real-world graphs exhibit strong data heterogeneity, with graphs from different domains often showing distinct structure and feature distributions. On the other hand, graph anomalies show highly complex and diverse patterns, with different real-world scenarios giving rise to distinct anomalous behaviors and interaction patterns. The coupling among graph structure, node features, and anomaly patterns makes it difficult to comprehensively simulate real-world anomalous graphs using simple generative models or heuristic rules.

Contribution ①: AG-FORGE for anomalous graph synthesis. To address the above challenge, we design AG-FORGE, an

Figure

Figure 1: Real-world vs. synthetic data for model training.

Anomalous Graph generation Forge for automatic synthesis of anomalous graphs. With generality and flexibility as key design goals, AG-FORGE employs a three-stage cascaded pipeline to synthesize anomalous graphs. Specifically, we incorporate four structural generation strategies and three feature synthesis schemes to construct graphs with diverse topological and semantic characteristics, together with anomaly injection mechanisms that simulate different anomalous behaviors. These components can be flexibly composed and varied, allowing AG-FORGE to generate a virtually unlimited variety of anomalous graphs. Moreover, AG-FORGE manipulates anomaly difficulty through perturbation strength and camouflage, producing anomalies with controllable levels of detectability. Trained solely on the synthetic data generated by AG-FORGE, existing generalist GAD methods achieve comparable or even slightly better performance than those trained on real-world data (see Fig. 1), demonstrating the viability of fully synthetic training for generalist GAD.

Challenge ②: Model and training bottlenecks at scale. With data generated by AG-FORGE for training, existing generalist GAD methods show no significant performance gains (Fig. 1) from scaling the training data to about 1M nodes. This exposes a new bottleneck: as training data scale up, model capacity becomes the limiting factor. Due to the limited amount and diversity of available training data, existing generalist GAD approaches are typically built with limited model complexity and expressiveness, restricting their ability to capture diverse anomaly patterns in complex synthetic graph environments. Moreover, overwhelming synthetic data with varying detection difficulty may challenge conventional uniform training strategies, potentially leading to suboptimal learning.

Contribution ②: Scalable generalist GAD model with curriculum learning. To unlock the potential of large-scale synthetic training, we develop TS-GGAD, a more powerful generalist GAD model. TS-GGAD explicitly captures anomaly-relevant Topological patterns and Semantic cues for Generalist GAD through two dedicated streams, with an adaptive module coordinating their contributions for anomaly detection. Furthermore, to effectively exploit the large-scale synthetic corpus, we design a curriculum learning strategy that progressively introduces graphs of increasing difficulty while placing greater emphasis on challenging samples. Trained purely on large-scale synthetic graphs and evaluated on 14 real-world datasets, TS-GGAD achieves the best performance on all datasets, with an average AUROC improvement of 5.39% over the best baseline.

References (59)

  • Generalized louvain method for community detection in large networks
  • Deep anomaly detection on attributed networks
  • Smoothgnn: Smoothing-aware gnn for unsupervised node anomaly detection
  • Forecastpfn: Synthetically-trained zero-shot forecasting
  • Graphpfn: A prior-data fitted graph foundation model (opens arXiv in a new tab)
  • Addressing heterophily in graph anomaly detection: A perspective of graph spectrum
  • Accurate predictions on small data with a tabular foundation model
  • Boost then convolve: Gradient boosting meets graph neural networks (opens arXiv in a new tab)
  • Anemone: Graph anomaly detection with multi-scale contrastive learning
  • Scaling Laws for Neural Language Models
  • Semi-Supervised Classification with Graph Convolutional Networks
  • Predicting dynamic embedding trajectory in temporal interaction networks
  • Anomaly detection on attributed networks via contrastive self-supervised learning
  • Arc: A generalist graph anomaly detector with in-context learning
  • Rethinking feature alignment in generalist graph anomaly detection: A relational fingerprint-based approach
  • From amateurs to connoisseurs: modeling the evolution of user expertise through online reviews
  • Zero-shot generalist graph anomaly detection with unified neighborhood prompts (opens arXiv in a new tab)
  • A critical look at the evaluation of gnns under heterophily: Are we really making progress? arXiv preprint arXiv:2302.11640, 2023 (opens arXiv in a new tab)
  • Generative semi-supervised graph anomaly detection
  • Anomalygfm: Graph foundation model for zero/few-shot anomaly detection
  • Deep graph anomaly detection: A survey and new perspectives
  • Tabicl: A tabular foundation model for in-context learning on large data
  • Collective opinion spam detection: Bridging review networks and metadata
  • Collective classification in network data
  • Pitfalls of graph neural network evaluation (opens arXiv in a new tab)
  • Timepfn: Effective multivariate time series forecasting with synthetic data
  • Rethinking graph neural networks for anomaly detection
  • Arnetminer: extraction and mining of academic social networks
  • Relational learning via latent social dimensions
  • Graph attention networks (opens arXiv in a new tab)
  • Graph anomaly detection based on hybrid node representation learning
  • Relational in-context learning via synthetic pre-training with structural prior
  • Contrastive attributed network anomaly detection with data augmentation
  • Ia-ggad: Zero-shot generalist graph anomaly detection via invariant and affinity learning
  • Most traditional GAD methods follow a dataset-specific paradigm, requiring training on each target graph before anomaly detection
  • right-shift
  • ARC Liu et al. (2024) pioneers this direction by introducing in-context learning, using a small number of target-domain normal samples to support anomaly detection on unseen graphs
  • GraphPFN Eremeev et al. (2025) explores pretraining on fully synthetic graphs, but its generated topology and feature patterns remain relatively limited
  • Given the strong heterogeneity of real-world graphs, our goal is not to approximate any particular real-world graph distribution, but to construct a synthetic space spanning diverse graph environments and anomaly patterns
  • By varying these generation factors, we construct diverse graphs varying in scale, structure, feature patterns, and anomaly patterns
  • The characteristics of these structure models are as follows:
  • A triad-formation step is further performed with probability $p_t$ to introduce local clustering
  • Each edge is then rewired with probability $p_r$ to introduce long-range connections
  • This design preserves group-level similarity and node-specific variation while introducing dependencies across feature dimensions, better reflecting real-world feature distributions
  • By varying the latent distribution, projection, and feature type, we generate diverse feature patterns with different sparsity and statistics, enriching attribute environments for generalist GAD training
  • As $\delta$ increases, $\lambda(\delta)$ decreases, weakening the feature discrepancy, while the probability of activating additional cross-community rewiring and local feature alignment increases, further obscuring the co-target structure and feature inconsistency
  • As $\delta$ increases, the activation probability of feature perturbation increases, replacing the obvious zero-feature pattern with attribute variations that are harder to distinguish from normal patterns
  • Increasing $\delta$ decreases $\lambda(\delta)$, bringing anomalous features closer to the global feature pattern, while increasing the probability of additional feature perturbation and cross-community rewiring to introduce more complex structural and attribute variations
  • Their flexible combinations can produce a virtually unlimited variety of anomalous graphs, providing rich training data for generalist GAD models
  • We first obtain the graph-propagated representation $\hat{\mathbf{X}} = \hat{\mathbf{A}}^2 \mathbf{X}$, where $\hat{\mathbf{A}} = \tilde{\mathbf{D}}^{-\frac{1}{2}} \tilde{\mathbf{A}} \tilde{\mathbf{D}}^{-\frac{1}{2}}$ and $\tilde{\mathbf{A}} = \mathbf{A} + \mathbf{I}$
  • To reduce cross-graph scale variations, we independently apply rank normalization to each statistic
  • These datasets vary substantially in graph scale, feature dimensionality, connectivity patterns, and anomaly ratios, providing diverse environments for evaluating cross-domain generalization
  • AUROC measures the ranking quality between anomalous and normal nodes, while AUPRC evaluates the trade-off between precision and recall
  • For existing generalist GAD methods, following previous work Liu et al. (2026), we divide the 14 real-world datasets into two disjoint and domain-balanced groups
  • For TS-GGAD, the topological encoder uses a hidden embedding dimension of $d' = 256$ and 4 Transformer layers, and the batch size is 512
  • For feature generation, removing Dense, Sparse, and Binary features results in average performance drops of 1.04%, 2.05%, and 2.32%, respectively
  • The experimental results are illustrated in Fig
  • We further conduct the same analysis using a model trained only on real-world data
  • These graphs represent only a subset of the 108 synthetic graphs used for model training