SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.17141 · 2023

A point cloud approach to generative modeling for galaxy surveys at the field level

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 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; 3 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 4 failures of our instrument; 3 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/2311.17141.json · badge: /api/ran/2311.17141.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
smsharma/point-cloud-galaxy-diffusion canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
alpha Ran
ran, honoured the contract we drafted
smsharma/point-cloud-galaxy-diffusion/models/diffusion_utils.py
code served (permissive licence) · get_code("ac1f1b08a75d8b9d")
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 ArrayImpl, ndim 0, dtype family float, shape () 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 jax
import jax.numpy as jnp
import numpy as np

# The function `alpha` takes a single parameter `gamma`
# which should be a numeric value or array that can be used with jax operations

# Create a small gamma value using jax.numpy
gamma_input = jnp.array(0.5)

ARGS = {
    "gamma": gamma_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 0, dtype family float, shape () — shape () 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
apply_pbc Ran
ran, honoured the contract we drafted
smsharma/point-cloud-galaxy-diffusion/models/graph_utils.py
code served (permissive licence) · get_code("3f0ebf6adb87d2d2")
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 ArrayImpl, ndim 2, dtype family float, shape (2, 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 jax.numpy as np

# Create displacement vectors (N=2 displacements, 3D coordinates)
dr = np.array([
    [0.5, 0.3, 0.2],
    [-0.4, 0.6, -0.1]
], dtype=np.float32)

# Create a 3x3 cell matrix (box dimensions and orientation)
cell = np.array([
    [1.0, 0.0, 0.0],
    [0.0, 1.0, 0.0],
    [0.0, 0.0, 1.0]
], dtype=np.float32)

ARGS = {
    "dr": dr,
    "cell": cell
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 3) — shape (2, 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
create_input_iter Ran
ran; our contract draft was wrong, not the code
smsharma/point-cloud-galaxy-diffusion/models/train_utils.py
code served (permissive licence) · get_code("3695aed14d3d5db1")
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 generator. 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
import jax
import jax.numpy as jnp

class FakeDataset:
    """Fake dataset that yields objects with _numpy() method."""
    def __init__(self, num_samples=2):
        self.num_samples = num_samples
    
    def __iter__(self):
        for i in range(self.num_samples):
            yield FakeBatch()

class FakeBatch:
    """Fake batch with _numpy() method that returns numpy arrays."""
    def __init__(self):
        self.data = np.random.randn(2, 4).astype(np.float32)
    
    def _numpy(self):
        return self.data
    
    def __iter__(self):
        # Support tree_map by making it iterable as a leaf
        yield self

# Create the dataset
ds = FakeDataset(num_samples=2)

ARGS = {
    "ds": ds,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
smsharma/point-cloud-galaxy-diffusion/models/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_halo_data Ran
ran; our contract draft was wrong, not the code
smsharma/point-cloud-galaxy-diffusion/datasets.py
code served (permissive licence) · get_code("30181bb36a0d0431")
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 jax.numpy as np
import pandas as pd
from pathlib import Path
import tempfile
import os

# Create a temporary directory to hold mock data files
tmpdir = tempfile.mkdtemp()
data_dir = Path(tmpdir)

# Create mock .npy files for different simulation sets
# train_halos.npy: shape (2, 5, 7) - 2 samples, 5 particles, 7 features
train_halos = np.ones((2, 5, 7))
train_halos = train_halos.at[:, :, -1].set(100.0)  # Set last feature to positive values for log10
np.save(str(data_dir / 'train_halos.npy'), train_halos)

# train_cosmology.csv: conditioning parameters
train_cosmology_df = pd.DataFrame({
    'Omega_m': [0.3, 0.31],
    'sigma_8': [0.8, 0.81],
})
train_cosmology_df.to_csv(str(data_dir / 'train_cosmology.csv'), index=False)

# Combined files for 'lhc+fiducial' simulation set
train_halos_combined = np.ones((2, 5, 7))
train_halos_combined = train_halos_combined.at[:, :, -1].set(100.0)
np.save(str(data_dir / 'train_halos_combined.npy'), train_halos_combined)

train_cosmology_combined_df = pd.DataFrame({
    'Omega_m': [0.3, 0.31],
    'sigma_8': [0.8, 0.81],
})
train_cosmology_combined_df.to_csv(str(data_dir / 'train_cosmology_combined.csv'), index=False)

# Fiducial files for 'fiducial' simulation set
train_halos_fiducial = np.ones((2, 5, 7))
train_halos_fiducial = train_halos_fiducial.at[:, :, -1].set(100.0)
np.save(str(data_dir / 'train_halos_fiducial.npy'), train_halos_fiducial)

ARGS = {
    'data_dir': data_dir,
    'n_features': 7,
    'n_particles': 5,
    'split': 'train',
    'simulation_set': 'lhc',
    'conditioning_parameters': ['Omega_m', 'sigma_8'],
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, 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
make_dataloader Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
smsharma/point-cloud-galaxy-diffusion/datasets.py
code served (permissive licence) · get_code("2b82302daabd3921")
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 _ShuffleDataset. 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 tensorflow as tf
import jax
import numpy as np

# Create small test data
n_samples = 8
feature_dim = 4
conditioning_dim = 3
mask_dim = 2

# Create numpy arrays for x, conditioning, and mask
x = np.random.randn(n_samples, feature_dim).astype(np.float32)
conditioning = np.random.randn(n_samples, conditioning_dim).astype(np.float32)
mask = np.random.randint(0, 2, size=(n_samples, mask_dim)).astype(np.float32)

batch_size = 2
seed = 42
shuffle = True

ARGS = {
    "x": x,
    "conditioning": conditioning,
    "mask": mask,
    "batch_size": batch_size,
    "seed": seed,
    "shuffle": shuffle,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type _ShuffleDataset — a _ShuffleDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _ShuffleDataset 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
nearest_neighbors Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
smsharma/point-cloud-galaxy-diffusion/models/graph_utils.py
code served (permissive licence) · get_code("f7668567a0a11171")
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 jax
import jax.numpy as jnp
import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small sample positions (N=4 nodes, 3D coordinates)
positions = jnp.array([
    [0.0, 0.0, 0.0],
    [1.0, 0.0, 0.0],
    [0.0, 1.0, 0.0],
    [1.0, 1.0, 0.0]
], dtype=jnp.float32)

# Number of nearest neighbors to find
k = 2

# Node mask (all nodes are active)
mask = jnp.array([1, 1, 1, 1], dtype=jnp.int32)

# Cell matrix for periodic boundary conditions (3x3)
cell = jnp.array([
    [10.0, 0.0, 0.0],
    [0.0, 10.0, 0.0],
    [0.0, 0.0, 10.0]
], dtype=jnp.float32)

# Periodic boundary conditions flag
pbc = False

ARGS = {
    "x": positions,
    "k": k,
    "mask": mask,
    "cell": cell,
    "pbc": pbc
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — 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
param_count Ran
ran, honoured the contract we drafted
smsharma/point-cloud-galaxy-diffusion/models/train_utils.py
code served (permissive licence) · get_code("9798c58198048703")
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 int, ndim 0, dtype family int, shape () 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 jax
import jax.numpy as jnp

# Create a simple pytree structure using nested dicts and lists with JAX arrays
pytree = {
    'layer1': {
        'weights': jnp.ones((4, 3)),
        'bias': jnp.zeros((3,)),
    },
    'layer2': {
        'weights': jnp.ones((3, 2)),
        'bias': jnp.zeros((2,)),
    },
    'metadata': [
        jnp.array(5.0),
        jnp.array([1.0, 2.0, 3.0]),
    ]
}

ARGS = {
    'pytree': pytree
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () 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
sigma2 Ran
ran, violated the contract we drafted
smsharma/point-cloud-galaxy-diffusion/models/diffusion_utils.py
code served (permissive licence) · get_code("d507bf93452fe83b")
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 ArrayImpl, 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 jax
import jax.numpy as jnp

def gamma(ts, gamma_min=-6, gamma_max=6):
    return gamma_max + (gamma_min - gamma_max) * ts

def sigma2(gamma):
    return jax.nn.sigmoid(-gamma)

# Create a small JAX array to pass as gamma parameter
# The function applies jax.nn.sigmoid(-gamma), so we need an array input
gamma_input = jnp.array([0.5, 1.2, -0.3, 2.1])

ARGS = {
    "gamma": gamma_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, 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
fourier_features Not yet run
unverified (harvested, no recorded run)
smsharma/point-cloud-galaxy-diffusion/models/graph_utils.py
code served (permissive licence) · get_code("85de4ca054b2412b")
How it ran

no invocation recorded.

get_nbody_data Not yet run
unverified (harvested, no recorded run)
smsharma/point-cloud-galaxy-diffusion/datasets.py
code served (permissive licence) · get_code("ba95caec6da9166e")
How it ran

no invocation recorded.

train_step Not yet run
unverified (harvested, no recorded run)
smsharma/point-cloud-galaxy-diffusion/models/train_utils.py
code served (permissive licence) · get_code("23d317520a5f2b18")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 3 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 3 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
create_input_iter 1 other paper
1 later
2403.08851 (2024-03)
PAPERCLIP: Associating Astronomical Observations and Natural Language with Multi-Modal Models
gamma 1 other paper
1 later
2409.02980 (2024-09)
How DREAMS are made: Emulating Satellite Galaxy and Subhalo Populations with Diffusion Models and Point Clouds
param_count 1 other paper
1 later
2403.08851 (2024-03)
PAPERCLIP: Associating Astronomical Observations and Natural Language with Multi-Modal Models

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 introduce a diffusion-based generative model to describe the distribution of galaxies in our Universe directly as a collection of points in 3-D space (coordinates) optionally with associated attributes (e.g., velocities and masses), without resorting to binning or voxelization. The custom diffusion model can be used both for emulation, reproducing essential summary statistics of the galaxy distribution, as well as inference, by computing the conditional likelihood of a galaxy field. We demonstrate a first application to massive dark matter haloes in the Quijote simulation suite. This approach can be extended to enable a comprehensive analysis of cosmological data, circumventing limitations inherent to summary statistic -- as well as neural simulation-based inference methods.

For agents

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

get_harvested_code_for_paper("2311.17141")
get_code_for_paper("2311.17141")
have("2311.17141")

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

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

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

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

Connect an agent — have() is free.