Paying for Diffusion Only Where the Detector Is Confused

Fraud detectors on transaction or review networks must find a handful of bad accounts, often under 1.3% of nodes, from very few labels. A strong recent remedy is to manufacture fake anomalies with a diffusion model, which is a generator that learns to turn random noise into realistic samples through many small denoising steps. The generated fakes teach the detector what "abnormal" looks like. The cost is steep: every fake takes dozens to hundreds of sequential network passes. Papers in this line either stop at medium-sized graphs or name the sampling cost as their main limitation. On the industrial benchmark DGraph (3.7M nodes), many detectors already run out of memory or exceed 24 hours before any augmentation is added.

This note proposes to treat the slow diffusion model as a teacher that is consulted rarely. The teacher is called only on the few nodes where a small detector is currently confused. Its outputs on those nodes train a one-step student generator, and the student then produces fakes cheaply for the whole graph. The claim to test is specific. Most of the benefit of diffusion augmentation comes from a small set of hard, heterophilic nodes, meaning nodes whose neighbors look unlike them. If so, a one-step generator distilled from teacher outputs on only those nodes should recover most of the teacher's detection gain at a small fraction of its generation compute. It should also be the only diffusion-quality option that runs on DGraph at all.

Core Claim and What Is New

Three bodies of work meet here. Diffusion augmentation for graph anomaly detection motivates the proposal by showing that the generated anomalies help. CAGAD flags heterophilic nodes and uses a denoising diffusion model to translate their normal neighbors into anomalous counterparts, reporting average gains of 2.53% AUC-ROC and 2.79% AUC-PR. BAED generates local ego-graphs guided by known anomalies and a loss-driven curriculum, cutting runtime by about 28% relative to other graph diffusion generators. DEGAD uses diffusion to enhance neighborhoods and explicitly names denoising cost as its main limitation. All three still run the full iterative sampler for every synthetic sample. None tests multi-million-node graphs.

Text-side distillation supplies the method. FreeAL uses a small model's loss distribution, fitted with a Gaussian mixture, to decide which examples an expensive LLM should re-annotate, cutting per-sample cost roughly 100x. UDAPDR lets an expensive model make a few seeds and a cheaper model scale them. DISCO shows that 75,000 filtered counterfactuals beat more than a million unfiltered ones. We borrow the idea of letting the student's own difficulty decide where the expensive teacher spends compute. We apply it not to labels but to the generation of graph counterfactuals.

Cheap embedding-space generators constrain the design and form the main competition. DAGAD permutes node embeddings to make pseudo-anomalies. GGAD optimizes outlier embeddings under two locality priors, avoiding graph decoding entirely. These methods are already nearly free to generate. The proposal is therefore only worthwhile if diffusion-quality fakes carry signal that these methods miss. That is an empirical question we put at the center rather than assume.

The new element is a closed loop. The detector's uncertainty selects nodes. The teacher is spent only on those nodes. A one-step generator is distilled from the teacher's outputs, and the generator augments the whole graph. The object of study is detection quality as a function of teacher compute. To our knowledge, based on the file, no graph anomaly work distills a diffusion augmenter into a single-step generator, and none budgets teacher calls by detector uncertainty.

Research Program

The teacher is a reimplementation of CAGAD-style neighbor translation, conditioned on a target node and its neighbors. We choose feature-level translation over BAED's discrete ego-graph generation because continuous outputs make one-step distillation tractable. Discrete topology generation is left as a later extension.

The detector is a compact graph network, such as BWGNN, the detector BAED augments. It is trained semi-supervised with the GADBench-style budget of 100 labeled nodes (20 anomalies, 80 normal) used by APF.

The loop proceeds in rounds. First, the detector is trained on current real and synthetic data. We then fit a two-component Gaussian mixture to per-node training losses, following FreeAL. Nodes with ambiguous component membership are combined with CAGAD's heterophily flags to form the candidate set. Within a fixed budget $B$ of teacher denoising passes per round, the teacher generates counterfactual neighbors for the selected nodes.

The student generator is a two-layer network that takes the target embedding, the neighbor features, and the same noise vector the teacher started from. It is trained to regress directly onto the teacher's final output, in the style of direct noise-to-sample distillation. The generator is then applied to every heterophilic node in the graph, and the detector retrains on the result.

Total cost is counted as teacher function evaluations plus generator and detector wall-clock and peak memory. The central analysis is a curve of AUPRC against teacher function evaluations, from zero up to the full CAGAD cost.

A secondary analysis asks where diffusion's benefit lives. We bucket test nodes by local homophily, as APF does, and compare full-teacher augmentation against GGAD and DAGAD in each bucket. If diffusion helps only in the low-homophily bucket, targeting teacher calls there is justified. If it helps nowhere beyond GGAD, the proposal fails early and cheaply.

Baselines

The naive reference is the same BWGNN detector trained on the 100 labels with class weighting and no synthetic data. BAED reports that such a detector is badly broken on T-Finance: AUROC rises "from 0.208 to 0.909" with anomaly-guided diffusion (BAED). We will re-run it under our splits rather than assume that number.

The tabular reference is XGBoost on node features. APF reports that it matches or beats graph models on Amazon and Elliptic, so ignoring it would inflate any graph-based gain.

The strongest non-augmentation method is APF. It reports an average AUPRC of 49.6% across GADBench with 100 labeled nodes, versus 42.9% for XGBGraph and 39.2% for BWDGI (APF).

The strongest cheap-augmentation competitors are GGAD and DAGAD. They are run with the same detector backbone, labels, and a hyperparameter search of equal trial count. GGAD is adapted from one-class to the few-anomaly setting by adding the labeled anomalies to its classifier loss.

The quality ceiling is full CAGAD-style augmentation, with the teacher called on every flagged node. For per-dataset numbers on T-Finance, Amazon, and YelpChi, we found no reported result on Lacuna for CAGAD, only cross-dataset average gains. It is therefore re-run.

The critical ablations are the following:

  • Cached teacher pool. The teacher is called on a random or heterophily-ranked node subset at the same budget $B$, and those samples are reused directly, without training a generator. This isolates whether the generator's ability to generalize adds anything.
  • Reduced-step teacher. A few-step teacher sampler at matched function-evaluation count.
  • Random selection. Random instead of loss-guided node selection.
  • Priors-only generator. The generator is trained without the teacher, using GGAD's priors only.

Beating the field means two things on each dataset. The method must reach at least 90% of the full teacher's AUPRC gain over the naive detector at no more than 10% of its teacher evaluations. It must also exceed GGAD, DAGAD, and the cached pool at matched compute. On DGraph-Fin it should run within memory and time limits and exceed the TGAT AUC of 0.792 reported by DGraph. The DGraph comparison uses its full labels, so the fair comparison is our method with full labels there, alongside a separate low-label run.

Why not just…?

Why not just use GGAD or DAGAD, which already generate anomalies almost for free? This is the real threat. GGAD shows that its prior-shaped outliers beat unsupervised baselines by up to 21% AUROC. If they match diffusion fakes, distilling a diffusion teacher only adds cost. The homophily-bucket analysis and the priors-only ablation settle this directly. If full-teacher augmentation does not beat GGAD in low-homophily buckets on at least T-Finance and YelpChi, we drop the proposal. The only thing remaining would be a negative result about the value of diffusion augmentation.

Why not just generate a fixed batch of diffusion samples once and reuse them? Caching removes repeated sampling and may be enough on medium graphs. What it cannot do is produce fresh counterfactuals for nodes the teacher never saw, or for newly arriving nodes, which is the inductive setting BAED targets. The cached-pool ablation at identical budget $B$ measures exactly this. If caching ties the distilled generator, we will report that the generator is unnecessary below some graph size and locate the size where it starts to matter.

Why not just sample the diffusion model with fewer steps? Few-step samplers are a legitimate cheaper teacher and are included at matched evaluation count. They still cost several passes per sample for every node. On DGraph this is likely to remain infeasible, since baseline detectors already fail there. The expected advantage of our approach is on the largest graphs, and we will state it only where the measured curves show it.

Why not just skip synthesis and use XGBoost or APF? APF's 49.6% average AUPRC shows that strong low-label detectors exist without generation. XGBoost dominates on some feature-rich graphs. Both are reported per dataset. Where they win, we will say synthesis is unwarranted there, instead of averaging the loss away.

Decisive Experiments

The experiments use T-Finance, Amazon, YelpChi, Elliptic, and Reddit from GADBench under the 100-label protocol, five seeds each. Metrics are AUROC and AUPRC, with teacher function evaluations, wall-clock time, and peak GPU memory reported for every method. Scalability is tested on DGraph-Fin and T-Social.

Three results decide the question. First, full diffusion augmentation must beat GGAD somewhere, concentrated on low-homophily nodes. If not, stop. Second, the distilled generator's AUPRC-versus-budget curve must dominate the cached-pool and reduced-step curves. Third, the method must complete on DGraph-Fin where the full teacher cannot. Passing all three would show that diffusion-quality augmentation can be bought selectively. Failing the second would show that the valuable part is selecting which nodes to spend the teacher on, not distilling a generator. That is a smaller finding, but still a useful one.