SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.02980 · 2024

How DREAMS are made: Emulating Satellite Galaxy and Subhalo Populations with Diffusion Models and Point Clouds

arXiv · PDF · Open in the Atlas

Code that ran

10 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, 1 violated it and 0 have no contract verdict; 8 failures of our instrument; 1 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/2409.02980.json · badge: /api/ran/2409.02980.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
trivnguyen/nehod_torch canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
FunctionStatusWhere it lives
alpha Ran
ran; our contract draft was wrong, not the code
trivnguyen/nehod_torch/nehod/diffusion_utils.py
code served (permissive licence) · get_code("7f43b2aa73159ec0")
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 2, dtype family float, shape (2, 4) 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)

# The function `alpha` takes a single parameter `gamma`
# Looking at the function body:
# - gamma is used in sigma2(gamma)
# - sigma2 does F.sigmoid(-gamma), so gamma must be a tensor
# - alpha returns torch.sqrt(1 - sigma2(gamma))
# So gamma should be a tensor with float values

# Create a small tensor for gamma
gamma_tensor = torch.randn(2, 4)

ARGS = {
    "gamma": gamma_tensor
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) 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
augment_with_symmetries Ran
ran; our contract draft was wrong, not the code
trivnguyen/nehod_torch/nehod/augmentations.py
code served (permissive licence) · get_code("16a810e315cf411e")
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 2, dtype family float, shape (2, 7) 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 numpy as np

torch.manual_seed(0)

# Create a small tensor with batch size 2
# First 3 dims are positions, next 3 are velocities, rest are other data
# Shape: (batch=2, features=7) where 7 = 3 pos + 3 vel + 1 other
x = torch.randn(2, 7, dtype=torch.float32)

ARGS = {
    "x": x,
    "n_pos_dim": 3,
    "n_vel_dim": 3,
    "device": None,
}
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 Tensor, ndim 2, dtype family float, shape (2, 7) — shape (2, 7) 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
configure_optimizers Ran
ran; our contract draft was wrong, not the code
trivnguyen/nehod_torch/nehod/train_utils.py
code served (permissive licence) · get_code("6a0e2da74509a75d")
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. 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 numpy as np
import math

# Set seed for reproducibility
torch.manual_seed(0)

# Create a simple model with parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear2(torch.relu(self.linear1(x)))

model = SimpleModel()

# Create optimizer_args as a simple class/dict-like object
class OptimizerArgs:
    def __init__(self, name, lr, weight_decay):
        self.name = name
        self.lr = lr
        self.weight_decay = weight_decay

optimizer_args = OptimizerArgs(name='AdamW', lr=0.001, weight_decay=0.01)

# Create scheduler_args as a dict-like object
class SchedulerArgs(dict):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.__dict__ = self

scheduler_args = SchedulerArgs(
    name='WarmUpCosineDecayLR',
    init_value=0.0,
    peak_value=0.001,
    warmup_steps=100,
    decay_steps=1000,
    end_value=0.0,
    exponent=1.0,
    factor=0.1,
    patience=10,
    T_max=1000,
    eta_min=0.0,
    interval='step',
    frequency=1
)

# Create parameters function that returns model parameters
def parameters():
    return model.parameters()

ARGS = {
    'parameters': parameters,
    'optimizer_args': optimizer_args,
    'scheduler_args': scheduler_args
}
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 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
create_dataloader Ran
ran; our contract draft was wrong, not the code
trivnguyen/nehod_torch/datasets.py
code served (permissive licence) · get_code("e376966413c801a4")
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. 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 torch.utils.data import DataLoader, TensorDataset

torch.manual_seed(0)

# Create small sample data as tensors
# Using distinct sizes: 2 samples, features of size 4 and 3
x_data = torch.randn(2, 4)
y_data = torch.randn(2, 3)

# The function expects `data` to be an iterable of tensors that will be unpacked into TensorDataset
data = (x_data, y_data)

# kwargs for DataLoader
kwargs = {
    'batch_size': 2,
    'shuffle': False,
}

ARGS = {
    'data': data,
    **kwargs
}
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
gamma Ran
ran, violated the contract we drafted
trivnguyen/nehod_torch/nehod/diffusion_utils.py
code served (permissive licence) · get_code("d929340d298c94c8")
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 (4,) 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 numpy as np

torch.manual_seed(0)

# Analyze the function:
# def gamma(ts, gamma_min=-6, gamma_max=6):
#     return gamma_max + (gamma_min - gamma_max) * ts
#
# Parameters:
# - ts: appears to be a tensor or array that gets multiplied by a scalar
# - gamma_min: scalar with default -6
# - gamma_max: scalar with default 6
#
# The function performs: gamma_max + (gamma_min - gamma_max) * ts
# This is a linear transformation, so ts should be a tensor/array

ts = torch.tensor([0.0, 0.5, 1.0, 0.25], dtype=torch.float32)

ARGS = {
    "ts": ts,
    "gamma_min": -6,
    "gamma_max": 6,
}
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 Tensor, ndim 1, dtype family float, shape (4,) — shape (4,) 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_activation Ran
ran; our contract draft was wrong, not the code
trivnguyen/nehod_torch/nehod/train_utils.py
code served (permissive licence) · get_code("316e768647de3196")
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 ReLU. 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)

# Create a simple activation config class with the required attributes
class ActivationConfig:
    def __init__(self, name, leaky_relu_alpha=0.01):
        self.name = name
        self.leaky_relu_alpha = leaky_relu_alpha

# Test with 'relu' activation
activation = ActivationConfig(name='relu')

ARGS = {
    'activation': activation
}
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 ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU 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
random_symmetry_matrix Ran
ran, honoured the contract we drafted
trivnguyen/nehod_torch/nehod/augmentations.py
code served (permissive licence) · get_code("6186b877ecc3f8e0")
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 2, dtype family float, shape (3, 3) 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 numpy as np

torch.manual_seed(0)

ARGS = {
    "device": None
}
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 Tensor, ndim 2, dtype family float, shape (3, 3) — shape (3, 3) 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
read_dataset Ran
ran; our contract draft was wrong, not the code
trivnguyen/nehod_torch/datasets.py
code served (permissive licence) · get_code("37eca3dce6c559f1")
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 os
import numpy as np
import pandas as pd
import tempfile
import shutil

# Create a temporary directory with test data
temp_dir = tempfile.mkdtemp()

# Create sample .npz file
data_name = 'test_data'
sample_data = {
    'array1': np.random.rand(10, 5),
    'array2': np.random.rand(8, 3)
}
np.savez(os.path.join(temp_dir, f'{data_name}.npz'), **sample_data)

# Create sample conditioning CSV file
cond_df = pd.DataFrame({
    'param1': np.random.rand(10),
    'param2': np.random.rand(10),
    'param3': np.random.rand(10)
})
cond_df.to_csv(os.path.join(temp_dir, f'{data_name}_cond.csv'), index=False)

# Create flagged version of files
flag = 'train'
np.savez(os.path.join(temp_dir, f'{flag}_{data_name}.npz'), **sample_data)
cond_df.to_csv(os.path.join(temp_dir, f'{flag}_{data_name}_cond.csv'), index=False)

ARGS = {
    'data_root': temp_dir,
    'data_name': data_name,
    'flag': None,
    'conditioning_parameters': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
read_preprocess_dataset Ran
ran; our contract draft was wrong, not the code
trivnguyen/nehod_torch/datasets.py
code served (permissive licence) · get_code("7ce10c734c33b8ba")
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 os
import tempfile
import numpy as np
import pandas as pd
import torch

torch.manual_seed(0)

# Create a temporary directory for test data
temp_dir = tempfile.mkdtemp()

# Create minimal .npz file with required keys
features = np.random.randn(2, 3, 4).astype(np.float32)  # batch=2, time=3, features=4
mask = np.ones((2, 3), dtype=bool)  # batch=2, time=3
np.savez(os.path.join(temp_dir, 'test_data.npz'), features=features, mask=mask)

# Create minimal conditioning CSV
cond_df = pd.DataFrame({
    'param1': [1.0, 2.0],
    'param2': [3.0, 4.0]
})
cond_df.to_csv(os.path.join(temp_dir, 'test_data_cond.csv'), index=False)

# Create normalization dictionary
norm_dict = {
    'x_mean': np.array([0.1, 0.2, 0.3, 0.4]),
    'x_std': np.array([1.0, 1.0, 1.0, 1.0]),
    'cond_mean': np.array([2.0, 3.5]),
    'cond_std': np.array([1.5, 0.5])
}

ARGS = {
    'data_root': temp_dir,
    'data_name': 'test_data',
    'flag': None,
    'conditioning_parameters': ['param1', 'param2'],
    'norm_dict': norm_dict,
    'norm_data': True,
    'invert_mask': True,
    'return_numpy': False,
    'dtype': torch.float32
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, 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
sigma2 Ran
ran; our contract draft was wrong, not the code
trivnguyen/nehod_torch/nehod/diffusion_utils.py
code served (permissive licence) · get_code("9acaac1f96e9df81")
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 2, dtype family float, shape (2, 4) 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 a small tensor for gamma parameter
# gamma function takes ts (time steps) and returns gamma values
# sigma2 takes gamma as input, so we need a tensor that could be output from gamma()
gamma_tensor = torch.randn(2, 4)

ARGS = {
    "gamma": gamma_tensor
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) 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
read_flows_dataset Not yet run
unverified (harvested, no recorded run)
trivnguyen/nehod_torch/train_flows.py
code served (permissive licence) · get_code("34ba5cec8d35ac14")
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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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
gamma 1 other paper
1 dated earlier
2311.17141 (2023-11)
A point cloud approach to generative modeling for galaxy surveys at the field level

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

The connection between galaxies and their host dark matter (DM) halos is critical to our understanding of cosmology, galaxy formation, and DM physics. To maximize the return of upcoming cosmological surveys, we need an accurate way to model this complex relationship. Many techniques have been developed to model this connection, from Halo Occupation Distribution (HOD) to empirical and semi-analytic models to hydrodynamic. Hydrodynamic simulations can incorporate more detailed astrophysical processes but are computationally expensive; HODs, on the other hand, are computationally cheap but have limited accuracy. In this work, we present NeHOD, a generative framework based on variational diffusion model and Transformer, for painting galaxies/subhalos on top of DM with an accuracy of hydrodynamic simulations but at a computational cost similar to HOD. By modeling galaxies/subhalos as point clouds, instead of binning or voxelization, we can resolve small spatial scales down to the resolution of the simulations. For each halo, NeHOD predicts the positions, velocities, masses, and concentrations of its central and satellite galaxies. We train NeHOD on the TNG-Warm DM suite of the DREAMS project, which consists of 1024 high-resolution zoom-in hydrodynamic simulations of Milky Way-mass halos with varying warm DM mass and astrophysical parameters. We show that our model captures the complex relationships between subhalo properties as a function of the simulation parameters, including the mass functions, stellar-halo mass relations, concentration-mass relations, and spatial clustering. Our method can be used for a large variety of downstream applications, from galaxy clustering to strong lensing studies.

For agents

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

get_harvested_code_for_paper("2409.02980")
get_code_for_paper("2409.02980")
have("2409.02980")

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

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

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

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

Connect an agent — have() is free.