SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.11887 · NeurIPS · 2024

Generative Semi-supervised Graph Anomaly Detection

Qingsong Wen, Hezhe Qiao, Guansong Pang, Xiaoli Li, Ee-Peng Lim

arXiv · PDF · Open in the Atlas

Code that ran

12 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 4 failures of our instrument; 7 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.11887.json · badge: /api/ran/2402.11887.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
mala-lab/GGAD canonical (classifier label)
classifier basis: census
4 ran · 3 no recorded run
mala-lab/ggad community
Papers with Code archive
6 ran · 1 no recorded run
pygod-team/pygod unrelated (classifier label)
classifier basis: classifier_2025
2 ran · 3 no recorded run
FunctionStatusWhere it lives
AvgReadout Ran
ran on a synthesized input
mala-lab/ggad/model.py
pointer only (licence: NONE) · get_code("97fd9c96e296f10d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/ggad when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Discriminator Ran
ran on a synthesized input
mala-lab/ggad/model.py
pointer only (licence: NONE) · get_code("4b7926c71f580f82")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/ggad when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GAANBase Ran
ran on a synthesized input · constructed an object; no result was computed
pygod-team/pygod/pygod/detector/gaan.py
code served (permissive licence) · get_code("db2224755aa6cbca")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, GAANBase: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.nn.functional as F
from torch_geometric.nn import MLP
import math

torch.manual_seed(0)

ARGS = {
    'in_dim': 8,
    'noise_dim': 16,
    'hid_dim': 64,
    'num_layers': 4,
    'dropout': 0.0,
    'act': torch.nn.functional.relu,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GAANBase — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GAANBase output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
GCN Ran
ran on a synthesized input
mala-lab/ggad/model.py
pointer only (licence: NONE) · get_code("02c6a5361e2291b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/ggad when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MaxReadout Ran
ran on a synthesized input
mala-lab/ggad/model.py
pointer only (licence: NONE) · get_code("52859d7e7894cf5a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/ggad when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MinReadout Ran
ran on a synthesized input
mala-lab/ggad/model.py
pointer only (licence: NONE) · get_code("b0574c4dc72c52d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/ggad when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Model Ran
ran on a synthesized input
mala-lab/ggad/model.py
pointer only (licence: NONE) · get_code("fdec68da5b0533c4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/ggad when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

double_recon_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pygod-team/pygod/pygod/detector/gaan.py
code served (permissive licence) · get_code("7d3627fc8e076142")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for node features and structures
# x and x_ are node features (batch_size=2, feature_dim=4)
x = torch.randn(2, 4)
x_ = torch.randn(2, 4)

# s and s_ are adjacency/structure matrices (batch_size=2, num_nodes=3)
s = torch.randn(2, 3)
s_ = torch.randn(2, 3)

# Ensure s_ is in valid range [0, 1] for BCE
s_ = torch.sigmoid(s_)

ARGS = {
    'x': x,
    'x_': x_,
    's': s,
    's_': s_,
    'weight': 0.5,
    'pos_weight_a': 0.5,
    'pos_weight_s': 0.5,
    'bce_s': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
min_max_norm Ran
ran, honoured the contract we drafted
mala-lab/GGAD/model_tam.py
pointer only (licence: NONE); the stored copy get_code serves, from mala-lab/TAM-master, is pointer only (licence: NONE) · get_code("af0b22bd9efac86b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/GGAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

neighList_to_edgeList Ran
ran; our contract draft was wrong, not the code
mala-lab/GGAD/model_AnomalyDAE.py
pointer only (licence: NONE); the stored copy get_code serves, from kgccc/GCTAM, is pointer only (licence: NONE) · get_code("e5c33eda8d8c16f9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/GGAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

neighList_to_edgeList Ran
ran; our contract draft was wrong, not the code
mala-lab/GGAD/model_AEGIS.py
pointer only (licence: NONE) · get_code("8f1b9d2b492634d4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/GGAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

neighList_to_edgeList_train Ran
ran; our contract draft was wrong, not the code
mala-lab/GGAD/model_AEGIS.py
pointer only (licence: NONE) · get_code("5a685c2a4a645478")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/GGAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

DeepDetector Not yet run
unverified (harvested, no recorded run)
pygod-team/pygod/pygod/detector/gaan.py
code served (permissive licence) · get_code("d8e12c2b23e733b3")
How it ran

no invocation recorded.

Detector Not yet run
unverified (harvested, no recorded run)
pygod-team/pygod/pygod/detector/gaan.py
code served (permissive licence) · get_code("8275702b147e567e")
How it ran

no invocation recorded.

GAAN Not yet run
unverified (harvested, no recorded run)
pygod-team/pygod/pygod/detector/gaan.py
code served (permissive licence) · get_code("31e42a9deeb82cb3")
How it ran

no invocation recorded.

WSReadout Not yet run
unverified (harvested, no recorded run)
mala-lab/ggad/model.py
pointer only (licence: NONE) · get_code("83dbc56de1da4882")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/ggad when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_cos Not yet run
unverified (harvested, no recorded run)
mala-lab/GGAD/model_tam.py
pointer only (licence: NONE); the stored copy get_code serves, from mala-lab/TAM-master, is pointer only (licence: NONE) · get_code("57f1891eafdf482a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/GGAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

loss_func Not yet run
unverified (harvested, no recorded run)
mala-lab/GGAD/ocgnn.py
pointer only (licence: NONE) · get_code("7290fd3be1378160")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/GGAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

neighList_to_edgeList Not yet run
unverified (harvested, no recorded run)
mala-lab/GGAD/model_tam.py
pointer only (licence: NONE); the stored copy get_code serves, from mala-lab/TAM-master, is pointer only (licence: NONE) · get_code("5f69b7946c674637")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mala-lab/GGAD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 9 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 9 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
GCN
brick of this paper's assembly: model
2 other papers
1 dated earlier, 1 later · 1 only as an assembly brick
1809.10341 (2018-09)
Deep Graph Infomax
2510.02014 (2025-10)
Normality Calibration in Semi-supervised Graph Anomaly Detection
get_cos 2 other papers
1 dated earlier, 1 later
2306.00006 (2023-06)
Truncated Affinity Maximization: One-class Homophily Modeling for Graph Anomaly Detection
2603.01806 (2026-03)
GCTAM: Global and Contextual Truncated Affinity Combined Maximization Model For Unsupervised Graph Anomaly Detection
min_max_norm 2 other papers
1 dated earlier, 1 later
2306.00006 (2023-06)
Truncated Affinity Maximization: One-class Homophily Modeling for Graph Anomaly Detection
2603.01806 (2026-03)
GCTAM: Global and Contextual Truncated Affinity Combined Maximization Model For Unsupervised Graph Anomaly Detection
neighList_to_edgeList 2 other papers
1 dated earlier, 1 later
2306.00006 (2023-06)
Truncated Affinity Maximization: One-class Homophily Modeling for Graph Anomaly Detection
2603.01806 (2026-03)
GCTAM: Global and Contextual Truncated Affinity Combined Maximization Model For Unsupervised Graph Anomaly Detection
AvgReadout
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2510.02014 (2025-10)
Normality Calibration in Semi-supervised Graph Anomaly Detection
Discriminator
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2510.02014 (2025-10)
Normality Calibration in Semi-supervised Graph Anomaly Detection
MaxReadout
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2510.02014 (2025-10)
Normality Calibration in Semi-supervised Graph Anomaly Detection
MinReadout
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2510.02014 (2025-10)
Normality Calibration in Semi-supervised Graph Anomaly Detection
WSReadout
brick of this paper's assembly: model
1 other paper
1 later · 1 only as an assembly brick
2510.02014 (2025-10)
Normality Calibration in Semi-supervised Graph Anomaly Detection

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This work considers a practical semi-supervised graph anomaly detection (GAD) scenario, where part of the nodes in a graph are known to be normal, contrasting to the extensively explored unsupervised setting with a fully unlabeled graph. We reveal that having access to the normal nodes, even just a small percentage of normal nodes, helps enhance the detection performance of existing unsupervised GAD methods when they are adapted to the semi-supervised setting. However, their utilization of these normal nodes is limited. In this paper we propose a novel Generative GAD approach (namely GGAD) for the semi-supervised scenario to better exploit the normal nodes. The key idea is to generate pseudo anomaly nodes, referred to as outlier nodes, for providing effective negative node samples in training a discriminative one-class classifier. The main challenge here lies in the lack of ground truth information about real anomaly nodes. To address this challenge, GGAD is designed to leverage two important priors about the anomaly nodes -asymmetric local affinity and egocentric closeness -to generate reliable outlier nodes that assimilate anomaly nodes in both graph structure and feature representations. Comprehensive experiments on six real-world GAD datasets are performed to establish a benchmark for semi-supervised GAD and show that GGAD substantially outperforms state-of-the-art unsupervised and semi-supervised GAD methods with varying numbers of training normal nodes. Code is available at https://github.com/mala-lab/GGAD.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.11887")
get_code_for_paper("2402.11887")
have("2402.11887")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.11887.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.11887.svg)](https://syntology.ai/paper/2402.11887)

Connect an agent — have() is free.