SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.14535 · 2023

ADA-GAD: Anomaly-Denoised Autoencoders for Graph Anomaly Detection

arXiv · PDF · Open in the Atlas

Code that ran

2 of 2 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2312.14535.json · badge: /api/ran/2312.14535.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
jweihe/ADA-GAD canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
create_norm Ran
ran; our contract draft was wrong, not the code
jweihe/ADA-GAD/pygod/pygod/models/adanet.py
code served (permissive licence) · get_code("be0665b74708e019")
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) and returned type. 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
from functools import partial

torch.manual_seed(0)

class NormLayer(nn.Module):
    def __init__(self, num_features, norm_type='groupnorm'):
        super().__init__()
        self.norm_type = norm_type
        if norm_type == 'groupnorm':
            self.norm = nn.GroupNorm(num_groups=2, num_channels=num_features)
    
    def forward(self, x):
        return self.norm(x)

ARGS = {
    'name': 'layernorm'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
setup_module Ran
ran; our contract draft was wrong, not the code
jweihe/ADA-GAD/pygod/pygod/models/adanet.py
code served (permissive licence) · get_code("d70a167963b35ed4")
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) and returned Sequential. 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
from functools import partial

torch.manual_seed(0)

# Stand-in classes for missing dependencies
class NormLayer(nn.Module):
    def __init__(self, num_features, norm_type='groupnorm'):
        super().__init__()
        self.norm_type = norm_type
        if norm_type == 'groupnorm':
            self.norm = nn.GroupNorm(num_groups=1, num_channels=num_features)
    
    def forward(self, x):
        return self.norm(x)

class GAT(nn.Module):
    def __init__(self, in_dim, num_hidden, out_dim, num_layers, nhead, nhead_out, 
                 concat_out, activation, feat_drop, attn_drop, negative_slope, 
                 residual, norm, encoding):
        super().__init__()
        self.linear = nn.Linear(in_dim, out_dim)
    
    def forward(self, x):
        return self.linear(x)

class GIN(nn.Module):
    def __init__(self, in_dim, num_hidden, out_dim, num_layers, dropout, 
                 activation, residual, norm, encoding):
        super().__init__()
        self.linear = nn.Linear(in_dim, out_dim)
    
    def forward(self, x):
        return self.linear(x)

class GCN(nn.Module):
    def __init__(self, in_channels, hidden_channels, num_layers, out_channels, 
                 dropout, act, aggr):
        super().__init__()
        self.linear = nn.Linear(in_channels, out_channels)
    
    def forward(self, x):
        return self.linear(x)

ARGS = {
    'm_type': 'mlp',
    'enc_dec': 'encoding',
    'in_dim': 8,
    'num_hidden': 16,
    'out_dim': 4,
    'num_layers': 2,
    'dropout': 0.1,
    'activation': 'relu',
    'residual': False,
    'norm': 'layernorm',
    'nhead': 4,
    'nhead_out': 2,
    'attn_drop': 0.1,
    'negative_slope': 0.2,
    'concat_out': True,
    'aggr': 'sum'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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

Also present in other papers' code

Of 2 samples lifted from this paper's linked repositories, 2 carry a function identity and 0 do not. Of the 2 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 1 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
create_norm 1 other paper
1 later
2404.15806 (2024-04)
Where to Mask: Structure-Guided Masking for Graph Masked Autoencoders

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-22.

Repositories linked to this paper

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

Abstract

Graph anomaly detection is crucial for identifying nodes that deviate from regular behavior within graphs, benefiting various domains such as fraud detection and social network. Although existing reconstruction-based methods have achieved considerable success, they may face the \textit{Anomaly Overfitting} and \textit{Homophily Trap} problems caused by the abnormal patterns in the graph, breaking the assumption that normal nodes are often better reconstructed than abnormal ones. Our observations indicate that models trained on graphs with fewer anomalies exhibit higher detection performance. Based on this insight, we introduce a novel two-stage framework called Anomaly-Denoised Autoencoders for Graph Anomaly Detection (ADA-GAD). In the first stage, we design a learning-free anomaly-denoised augmentation method to generate graphs with reduced anomaly levels. We pretrain graph autoencoders on these augmented graphs at multiple levels, which enables the graph autoencoders to capture normal patterns. In the next stage, the decoders are retrained for detection on the original graph, benefiting from the multi-level representations learned in the previous stage. Meanwhile, we propose the node anomaly distribution regularization to further alleviate \textit{Anomaly Overfitting}. We validate the effectiveness of our approach through extensive experiments on both synthetic and real-world datasets.

For agents

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

get_harvested_code_for_paper("2312.14535")
get_code_for_paper("2312.14535")
have("2312.14535")

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

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

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

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

Connect an agent — have() is free.