SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.02311 · 2024

Simulation-based inference has its own Dodelson-Schneider effect (but it knows that it does)

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 1 honoured the contract we drafted, 1 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/2412.02311.json · badge: /api/ran/2412.02311.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
homerjed/sbiax canonical (classifier label)
classifier basis: census
7 ran · 5 no recorded run
FunctionStatusWhere it lives
default_weights Ran
ran, violated the contract we drafted
homerjed/sbiax/sbiax/ndes/ensemble.py
code served (permissive licence) · get_code("8e5e561077c68249")
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 (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 jax.numpy as jnp
import numpy as np

# Build arguments for default_weights(weights, ndes)

# weights: can be None or a jax array
weights_value = None  # Test the default case
# Alternatively could be: jnp.array([0.3, 0.7])

# ndes: appears to be a sequence/list that we call len() on
# Based on usage: len(ndes) is used twice, so it's a sized container
ndes_value = [1, 2, 3, 4, 5]  # A list with 5 elements

ARGS = {
    "weights": weights_value,
    "ndes": ndes_value,
}
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 1, dtype family float, shape (5,) — shape (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
get_time_embedder Ran
ran; our contract draft was wrong, not the code
homerjed/sbiax/sbiax/ndes/cnf.py
code served (permissive licence) · get_code("371c9bb56b1ce9e1")
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 partial. 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 jnp
from functools import partial

ARGS = {
    "embedding_dim": 8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, jaxtyping — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial 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
loss Ran
ran; our contract draft was wrong, not the code
homerjed/sbiax/sbiax/compression/nn.py
code served (permissive licence) · get_code("2e6b27b854242c96")
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 equinox as eqx
from jaxtyping import Float, Array

# Create a simple model that takes input and produces output
class SimpleModel(eqx.Module):
    linear: eqx.nn.Linear
    
    def __init__(self, key):
        self.linear = eqx.nn.Linear(4, 3, key=key)
    
    def __call__(self, x):
        return self.linear(x)

# Initialize the model
key = jax.random.PRNGKey(0)
model = SimpleModel(key=key)

# Create small test data
# x: batch size 2, input dimension 4
x = jnp.array([[1.0, 2.0, 3.0, 4.0],
                [5.0, 6.0, 7.0, 8.0]])

# y: batch size 2, output dimension 3
y = jnp.array([[0.1, 0.2, 0.3],
                [0.4, 0.5, 0.6]])

ARGS = {
    'model': model,
    'x': x,
    'y': y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
equinox, jax, jaxtyping — 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
mle Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
homerjed/sbiax/sbiax/compression/linear.py
code served (permissive licence) · get_code("4ca809a7d6395250")
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 (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 jnp
import numpy as np

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

# Define dimensions
d_dim = 4  # data vector dimension
p_dim = 3  # parameter dimension

# Create small test arrays with distinct sizes for clarity
d = jnp.array(np.random.randn(d_dim), dtype=jnp.float32)

pi = jnp.array(np.random.randn(p_dim), dtype=jnp.float32)

# Fisher matrix inverse: p x p
Finv = jnp.array(np.random.randn(p_dim, p_dim), dtype=jnp.float32)

# Model evaluated at fiducial parameters: d_dim
mu = jnp.array(np.random.randn(d_dim), dtype=jnp.float32)

# Theory derivatives: p x d (parameters x data dimensions)
dmu = jnp.array(np.random.randn(p_dim, d_dim), dtype=jnp.float32)

# Precision matrix (inverse covariance): d x d
precision = jnp.array(np.random.randn(d_dim, d_dim), dtype=jnp.float32)

ARGS = {
    "d": d,
    "pi": pi,
    "Finv": Finv,
    "mu": mu,
    "dmu": dmu,
    "precision": precision,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
beartype, jax, jaxtyping, numpy — 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 (3,) — shape (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
pdf_mse_loss Ran
ran; our contract draft was wrong, not the code
homerjed/sbiax/sbiax/train/loss.py
code served (permissive licence) · get_code("d47f4a1a68572f25")
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.numpy as jnp
import equinox as eqx
from jaxtyping import Key
import jax

# Create a minimal NDE (Neural Density Estimator) module
class MinimalNDE(eqx.Module):
    def __init__(self):
        pass
    
    def loss(self, x, y, key=None):
        # Return a scalar loss value matching the shape of pdf
        return jnp.mean(x) + jnp.mean(y)

# Instantiate the NDE
nde = MinimalNDE()

# Create small JAX arrays with distinct shapes
# x: batch=2, features=4
x = jnp.array([[1.0, 2.0, 3.0, 4.0], 
                [5.0, 6.0, 7.0, 8.0]])

# y: batch=2, features=3 (distinct from x features)
y = jnp.array([[0.1, 0.2, 0.3],
                [0.4, 0.5, 0.6]])

# pdf: scalar or same shape as output
pdf = jnp.array(0.5)

# Create a JAX PRNGKey
key = jax.random.PRNGKey(0)

ARGS = {
    "nde": nde,
    "x": x,
    "y": y,
    "pdf": pdf,
    "key": key
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
equinox, jax, jaxtyping — 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
sort_sample Ran
ran; our contract draft was wrong, not the code
homerjed/sbiax/sbiax/train/loader.py
code served (permissive licence) · get_code("d781cea628a47da8")
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 Sample. 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 typing import NamedTuple, Literal, Tuple, Generator
from jaxtyping import Key, Array, Float

torch.manual_seed(0)

class Sample(NamedTuple):
    x: Array
    y: Array

# Create small test arrays
batch_size = 2
simulations_dim = 4
parameters_dim = 3

simulations = torch.randn(batch_size, simulations_dim)
parameters = torch.randn(batch_size, parameters_dim)

ARGS = {
    'train_mode': 'npe',
    'simulations': simulations,
    'parameters': parameters
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jaxtyping, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sample — a Sample 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
stop_grad Ran
ran, honoured the contract we drafted
homerjed/sbiax/sbiax/ndes/scaler.py
code served (permissive licence) · get_code("6bdc6dfc8f73252e")
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, 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 stop_grad(a):
    return jax.lax.stop_gradient(a)

# Create a small JAX array
a = jnp.array([[1.0, 2.0, 3.0, 4.0],
                [5.0, 6.0, 7.0, 8.0]])

ARGS = {
    "a": a
}
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, 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
batch_loss_fn Not yet run
unverified (harvested, no recorded run)
homerjed/sbiax/sbiax/train/loss.py
code served (permissive licence) · get_code("5b6a728d49491002")
How it ran

no invocation recorded.

get_timestep_embedding Not yet run
unverified (harvested, no recorded run)
homerjed/sbiax/sbiax/ndes/cnf.py
code served (permissive licence) · get_code("137c752532221778")
How it ran

no invocation recorded.

get_trial_hyperparameters Not yet run
unverified (harvested, no recorded run)
homerjed/sbiax/sbiax/meta/_optuna.py
code served (permissive licence) · get_code("9df76088cc0db06d")
How it ran

no invocation recorded.

linearized_model Not yet run
unverified (harvested, no recorded run)
homerjed/sbiax/sbiax/compression/linear.py
code served (permissive licence) · get_code("acfde9eeb657b869")
How it ran

no invocation recorded.

simulator Not yet run
unverified (harvested, no recorded run)
homerjed/sbiax/sbiax/compression/linear.py
code served (permissive licence) · get_code("a7e3a2d17a8e3b74")
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, 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 12 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

Making inferences about physical properties of the Universe requires knowledge of the data likelihood. A Gaussian distribution is commonly assumed for the uncertainties with a covariance matrix estimated from a set of simulations. The noise in such covariance estimates causes two problems: it distorts the width of the parameter contours, and it adds scatter to the location of those contours which is not captured by the widths themselves. For non-Gaussian likelihoods, an approximation may be derived via Simulation-Based Inference (SBI). It is often implicitly assumed that parameter constraints from SBI analyses, which do not use covariance matrices, are not affected by the same problems as parameter estimation with a covariance matrix estimated from simulations. We investigate whether SBI suffers from effects similar to those of covariance estimation in Gaussian likelihoods. We use Neural Posterior and Likelihood Estimation with continuous and masked autoregressive normalizing flows for density estimation. We fit our approximate posterior models to simulations drawn from a Gaussian linear model, so that the SBI result can be compared to the true posterior. We test linear and neural network based compression, demonstrating that neither methods circumvent the issues of covariance estimation. SBI suffers an inflation of posterior variance that is equal or greater than the analytical result in covariance estimation for Gaussian likelihoods for the same number of simulations. The assumption that SBI requires a smaller number of simulations than covariance estimation for a Gaussian likelihood analysis is inaccurate. The limitations of traditional likelihood analysis with simulation-based covariance remain for SBI with a finite simulation budget. Despite these issues, we show that SBI correctly draws the true posterior contour given enough simulations.

For agents

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

get_harvested_code_for_paper("2412.02311")
get_code_for_paper("2412.02311")
have("2412.02311")

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

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

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

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

Connect an agent — have() is free.