SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.15376 · NeurIPS · 2023

ADGym: Design Choices for Deep Anomaly Detection

Yue Zhao, Minqi Jiang, Qingsong Wen, Songqiao Han, Xiyang Hu, Hailiang Huang, Chaochuan Hou, Ao Zheng

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 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 6 have no contract verdict; 1 failure of our instrument; 4 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/2309.15376.json · badge: /api/ran/2309.15376.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
minqi824/adgym canonical (classifier label)
classifier basis: census
1 ran · 1 no recorded run
kishordgupta/pyod community (classifier label)
classifier basis not recorded on the link
6 ran · 3 no recorded run
FunctionStatusWhere it lives
aucPerformance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
minqi824/adgym/baseline/DevNet/utils.py
pointer only (licence: NONE) · get_code("53b7f4edd07882e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, minqi824/adgym 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.

map_scores_to_timestamps Ran
ran on a synthesized input
kishordgupta/pyod/pyod/models/_ts_utils.py
code served (permissive licence) · get_code("edb11a61b117738c")
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 tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

# Construct arguments for map_scores_to_timestamp
window_scores = np.array([0.9, 0.7, 0.8, 0.6])
window_size = 5
step = 2
n_timestamps = 12
aggregation = 'max'

ARGS = {
    'window_scores': window_scores,
    'window_size': window_size,
    'step': step,
    'n_timestamps': n_timestamps,
    'aggregation': aggregation
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
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
sliding_windows Ran
ran on a synthesized input
kishordgupta/pyod/pyod/models/_ts_utils.py
code served (permissive licence) · get_code("3a05de4b44bc9d5d")
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 ndarray, ndim 2, dtype family float, shape (4, 12) 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 numpy as np

# Create a simple time series array
# Shape: (n_timestamps=10, n_channels=3)
X = np.random.randn(10, 3)

# Window size parameter
window_size = 4

# Step parameter
step = 2

ARGS = {
    "X": X,
    "window_size": window_size,
    "step": step,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 12) — shape (4, 12) 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
to_dense_adj_numpy Ran
ran on a synthesized input
kishordgupta/pyod/pyod/models/_pyg_utils.py
code served (permissive licence) · get_code("c001c12565b4768d")
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 ndarray, ndim 2, dtype family float, shape (5, 5) 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 numpy as np

# Construct edge_index: COO format with shape (2, n_edges)
# Let's create a simple graph with 5 nodes and 4 edges
edge_index = np.array([
    [0, 1, 2, 3],  # source nodes
    [1, 2, 3, 4]   # target nodes
], dtype=np.int64)

num_nodes = 5

ARGS = {
    "edge_index": edge_index,
    "num_nodes": num_nodes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 5) — shape (5, 5) 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
to_sparse_adj Ran
ran on a synthesized input
kishordgupta/pyod/pyod/models/_pyg_utils.py
code served (permissive licence) · get_code("6e023ab4ca4d949d")
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 csr_matrix. 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 numpy as np

# Create edge_index: COO format with shape (2, n_edges)
# Using 5 edges connecting 4 nodes
edge_index = np.array([
    [0, 1, 2, 3, 1],  # source nodes
    [1, 2, 3, 0, 3]   # target nodes
], dtype=np.int32)

num_nodes = 4

ARGS = {
    "edge_index": edge_index,
    "num_nodes": num_nodes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type csr_matrix — a csr_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a csr_matrix 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
validate_graph_input Ran
ran on a synthesized input
kishordgupta/pyod/pyod/models/_pyg_utils.py
code served (permissive licence) · get_code("2a1162c00e08e534")
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 Data. 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 numpy as np
from torch_geometric.data import Data

torch.manual_seed(0)

# Setup for Case 1: X is a PyG Data object
node_features = torch.randn(2, 4)
edge_index = torch.tensor([[0, 1], [1, 0]], dtype=torch.long)
data_obj = Data(x=node_features, edge_index=edge_index)

# Setup for Case 2: X is numpy array with edge_index
X_numpy = np.random.randn(2, 4).astype(np.float32)
edge_index_numpy = np.array([[0, 1], [1, 0]], dtype=np.int64)

# Create arguments dict - testing with numpy arrays case
ARGS = {
    "X": X_numpy,
    "edge_index": edge_index_numpy
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Data — a Data output has no array shape of its own; none is 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
validate_ts_input Ran
ran on a synthesized input
kishordgupta/pyod/pyod/models/_ts_utils.py
code served (permissive licence) · get_code("2a9fd30f82830426")
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 ndarray, ndim 2, dtype family float, shape (5, 1) 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 numpy as np

# Test case 1: 1D time series (should be reshaped to 2D)
X_1d = np.array([1.0, 2.0, 3.0, 4.0, 5.0])

# Test case 2: 2D time series (n_timestamps=6, n_channels=3)
X_2d = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0],
    [13.0, 14.0, 15.0],
    [16.0, 17.0, 18.0]
])

# Using 1D input as the primary test case
ARGS = {
    "X": X_1d
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 1) — shape (5, 1) 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
build_detector Not yet run
unverified (harvested, no recorded run)
kishordgupta/pyod/pyod/mcp_server.py
code served (permissive licence) · get_code("3f180a99a57a0025")
How it ran

no invocation recorded.

dataLoading Not yet run
unverified (harvested, no recorded run)
minqi824/adgym/baseline/DevNet/utils.py
pointer only (licence: NONE) · get_code("ca99dd7338af584e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, minqi824/adgym 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.

plan_detection Not yet run
unverified (harvested, no recorded run)
kishordgupta/pyod/pyod/mcp_server.py
code served (permissive licence) · get_code("a1fa9b194ed1d24f")
How it ran

no invocation recorded.

profile_data Not yet run
unverified (harvested, no recorded run)
kishordgupta/pyod/pyod/mcp_server.py
code served (permissive licence) · get_code("b82893de917f6c66")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 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
aucPerformance 1 other paper
1 dated earlier
2302.04549 (2023-02)
Weakly Supervised Anomaly Detection: A Survey
dataLoading 1 other paper
1 dated earlier
2302.04549 (2023-02)
Weakly Supervised Anomaly Detection: A Survey

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

Deep learning (DL) techniques have recently found success in anomaly detection (AD) across various fields such as finance, medical services, and cloud computing. However, most of the current research tends to view deep AD algorithms as a whole, without dissecting the contributions of individual design choices like loss functions and network architectures. This view tends to diminish the value of preliminary steps like data preprocessing, as more attention is given to newly designed loss functions, network architectures, and learning paradigms. In this paper, we aim to bridge this gap by asking two key questions: (i) Which design choices in deep AD methods are crucial for detecting anomalies? (ii) How can we automatically select the optimal design choices for a given AD dataset, instead of relying on generic, preexisting solutions? To address these questions, we introduce ADGym, a platform specifically crafted for comprehensive evaluation and automatic selection of AD design elements in deep methods. Our extensive experiments reveal that relying solely on existing leading methods is not sufficient. In contrast, models developed using ADGym significantly surpass current state-of-the-art techniques. * Contribute equally. † Corresponding authors. 2 For brevity, AD methods in this work refer to deep WSAD methods. 37th Conference on Neural Information Processing Systems (NeurIPS 2023) Track on Datasets and Benchmarks.

For agents

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

get_harvested_code_for_paper("2309.15376")
get_code_for_paper("2309.15376")
have("2309.15376")

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

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

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

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

Connect an agent — have() is free.