SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.07664 · 2023

Outlier Detection in the DESI Bright Galaxy Survey

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 5 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/2307.07664.json · badge: /api/ran/2307.07664.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
pmelchior/spender canonical (classifier label)
classifier basis: census
6 ran · 5 no recorded run
FunctionStatusWhere it lives
build_ladder Ran
ran, honoured the contract we drafted
pmelchior/spender/train/fp16_train.py
code served (permissive licence) · get_code("3ee0c53d526b15a2")
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 1, dtype family int, shape (15,) 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

ARGS = {
    "train_sequence": [
        {"iteration": 5},
        {"iteration": 3},
        {"iteration": 7}
    ]
}
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 1, dtype family int, shape (15,) — shape (15,) 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
get_all_parameters Ran
ran; our contract draft was wrong, not the code
pmelchior/spender/train/fp16_train.py
code served (permissive licence) · get_code("c1bd08736ffac1e4")
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. 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

torch.manual_seed(0)

# Define a minimal encoder module
class MinimalEncoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Define a minimal decoder module
class MinimalDecoder(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear(x)

# Define a minimal model that has encoder and decoder
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.encoder = MinimalEncoder()
        self.decoder = MinimalDecoder()
    
    def forward(self, x):
        encoded = self.encoder(x)
        decoded = self.decoder(encoded)
        return decoded

# Define a minimal instrument module
class MinimalInstrument(nn.Module):
    def __init__(self):
        super().__init__()
        self.param_layer = nn.Linear(2, 1)
    
    def forward(self, x):
        return self.param_layer(x)

# Create instances for the function
model1 = MinimalModel()
model2 = MinimalModel()
models = [model1, model2]

instrument1 = MinimalInstrument()
instrument2 = None
instruments = [instrument1, instrument2]

ARGS = {
    'models': models,
    'instruments': instruments
}
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 tuple — a tuple 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
get_latent_data_loader Ran
ran; our contract draft was wrong, not the code
pmelchior/spender/train/train_DESI_flow.py
code served (permissive licence) · get_code("fc98bfb1da64f835")
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 DataLoader. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 os
import tempfile
import pickle
from functools import partial
from io import BytesIO

torch.manual_seed(0)

# Create a temporary directory with mock batch files
temp_dir = tempfile.mkdtemp()

# Create mock batch files with pickled tensors
for i in range(10):
    batch_data = [
        torch.randn(2, 4),
        torch.randn(2, 3),
    ]
    filename = os.path.join(temp_dir, f'batch_star_k2-DESIStars_{i}.pkl')
    with open(filename, 'wb') as f:
        pickle.dump(batch_data, f)

# Define device (CPU only)
device = torch.device('cpu')

# Define the load_batch function as used in the module
def load_batch(batch_name):
    with open(batch_name, 'rb') as f:
        batch = pickle.load(f)
    batch = [item.detach().to(device) for item in batch]
    return batch

# Define ARGS dictionary with all parameters for get_latent_data_loader
ARGS = {
    'dir': temp_dir,
    'which': 'train',
    'batch_size': 2,
    'shuffle': False,
    'shuffle_instance': True,
    'latent_tag': 'star_k2-DESIStars',
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
load_batch Ran
ran; our contract draft was wrong, not the code
pmelchior/spender/spender/util.py
code served (permissive licence) · get_code("98d5335a1f96e36b")
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 dict. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 io
import pickle
import torch
import tempfile
import os

torch.manual_seed(0)

# Create a temporary pickle file with a small batch dictionary
temp_dir = tempfile.mkdtemp()
batch_file = os.path.join(temp_dir, "batch.pkl")

# Create a sample batch with some tensors
sample_batch = {
    "data": torch.randn(2, 4),
    "labels": torch.randint(0, 2, (2,)),
    "subset_key": torch.randn(2, 4)
}

# Pickle the batch to a file
with open(batch_file, 'wb') as f:
    pickle.dump(sample_batch, f)

ARGS = {
    "batch_name": batch_file,
    "subset": None
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
prepare_train Ran
ran; our contract draft was wrong, not the code
pmelchior/spender/train/fp16_train.py
code served (permissive licence) · get_code("ff48aeb7e8dd60df")
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 list, ndim 1, 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 torch
import numpy as np

torch.manual_seed(0)

# Construct a sequence of dictionaries with 'data' keys
# The function expects each dict to potentially have 'iteration' and 'encoder' keys
# It will add 'iteration' if missing and set 'encoder' to the value of 'data'

seq = [
    {'data': torch.randn(2, 4)},
    {'data': torch.randn(2, 4), 'iteration': 500},
    {'data': np.array([1, 2, 3])},
]

ARGS = {
    'seq': seq,
    'niter': 1000,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
prepare_train Ran
ran; our contract draft was wrong, not the code
pmelchior/spender/train/train_DESI.py
code served (permissive licence) · get_code("c5f2db8ecb1ed902")
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 list, ndim 1, 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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - seq: a sequence (list) of dictionaries
# - niter: an integer (default 800)
# - The function iterates over seq
# - For each dict d, it checks/sets 'iteration' key and 'encoder' key
# - 'encoder' is set to d['data']
# So each dict needs at least a 'data' key

# Create a minimal seq with dicts that have 'data' keys
seq = [
    {'data': torch.randn(2, 4)},
    {'data': torch.randn(2, 4), 'iteration': 500},
    {'data': torch.randn(2, 4), 'encoder': 'existing_encoder'}
]

niter = 800

ARGS = {
    'seq': seq,
    'niter': niter
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
calc_normalization Not yet run
unverified (harvested, no recorded run)
pmelchior/spender/spender/util.py
code served (permissive licence) · get_code("bf3abcb40d25c711")
How it ran

no invocation recorded.

get_skyline_mask Not yet run
unverified (harvested, no recorded run)
pmelchior/spender/spender/instrument.py
code served (permissive licence) · get_code("63a60f1c8deffdef")
How it ran

no invocation recorded.

help Not yet run
unverified (harvested, no recorded run)
pmelchior/spender/spender/hub.py
code served (permissive licence) · get_code("179c64a050514166")
How it ran

no invocation recorded.

load Not yet run
unverified (harvested, no recorded run)
pmelchior/spender/spender/hub.py
code served (permissive licence) · get_code("07a04b556c3e1d1f")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
pmelchior/spender/train/train_sdss.py
code served (permissive licence) · get_code("4a3cdd668cf53501")
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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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.

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

We present an unsupervised search for outliers in the Bright Galaxy Survey (BGS) dataset from the DESI Early Data Release. This analysis utilizes an autoencoder to compress galaxy spectra into a compact, redshift-invariant latent space, and a normalizing flow to identify low-probability objects. The most prominent outliers show distinctive spectral features such as irregular or double-peaked emission lines, or originate from galaxy mergers, blended sources, and rare quasar types, including one previously unknown Broad Absorption Line system. A significant portion of the BGS outliers are stars spectroscopically misclassified as galaxies. By building our own star model trained on spectra from the DESI Milky Way Survey, we have determined that the misclassification likely stems from the Principle Component Analysis of stars in the DESI pipeline. To aid follow-up studies, we make the full probability catalog of all BGS objects and our pre-trained models publicly available.

For agents

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

get_harvested_code_for_paper("2307.07664")
get_code_for_paper("2307.07664")
have("2307.07664")

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

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

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

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

Connect an agent — have() is free.