SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2107.07405 · 2021

Lossless, Scalable Implicit Likelihood Inference for Cosmological Fields

arXiv · PDF · Open in the Atlas

Code that ran

3 of 8 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 3 have no contract verdict; 0 failures of our instrument; 5 no recorded run), measured 2026-11-22; 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/2107.07405.json · badge: /api/ran/2107.07405.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
tlmakinen/kosmo-kompress canonical (classifier label)
classifier basis: census
0 ran · 2 no recorded run
tlmakinen/powerbox-jax community (classifier label)
classifier basis not recorded on the link
3 ran · 3 no recorded run
FunctionStatusWhere it lives
angular_average Ran
ran on a synthesized input
tlmakinen/powerbox-jax/powerbox_jax/tools.py
code served (permissive licence) · get_code("a6a84664aa9a3e0f")
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 jax.numpy as jnp
import numpy as np

# Create small test data
np.random.seed(0)

# 2D field (4x3 grid)
field = jnp.array(np.random.randn(4, 3), dtype=jnp.float32)

# Coordinates - either magnitude or list of 1D arrays
# Using list of coordinate arrays for 2D case
coords_x = jnp.linspace(-2, 2, 4)
coords_y = jnp.linspace(-1.5, 1.5, 3)
coords = [coords_x, coords_y]

# Magnitude of coordinates (alternative format)
# Create a grid and compute magnitude
X, Y = jnp.meshgrid(coords_x, coords_y, indexing='ij')
coords_magnitude = jnp.sqrt(X**2 + Y**2)

# Weights - same shape as field
weights = jnp.array(np.random.rand(4, 3), dtype=jnp.float32)

# Bins - can be int or array
bins = 5

ARGS = {
    'field': field,
    'coords': coords_magnitude,
    'bins': bins,
    'weights': weights,
    'average': True,
    'bin_ave': True,
    'get_variance': False,
    'log_bins': False
}
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, 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
fftshift Ran
ran on a synthesized input
tlmakinen/powerbox-jax/powerbox_jax/dft.py
code served (permissive licence) · get_code("f17b2879eb430740")
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.numpy as jnp
import numpy as np

# The function fftshift takes:
# - x: an array-like object (the data to shift)
# - *args: variable positional arguments passed to jax.numpy.fft.fftshift
# - **kwargs: variable keyword arguments passed to jax.numpy.fft.fftshift

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

ARGS = {
    'x': x,
}
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 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
ifft Ran
ran on a synthesized input
tlmakinen/powerbox-jax/powerbox_jax/dft.py
code served (permissive licence) · get_code("601dc9092738ee00")
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

# Construct valid arguments for the ifft function
# X: array - the field to be transformed
X = jnp.ones((4, 3))  # Small 2D array

# Lk: float or array-like, optional - length of box in frequency space
Lk = 2.0

# L: float or array-like, optional - length of box in real space
L = None

# freq: optional - frequency components (not used in function body, kept as None)
freq = None

# a: float, optional - Fourier convention parameter
a = 0

# b: float, optional - Fourier convention parameter
b = 2 * jnp.pi

# axes: sequence of ints, optional - which axes to transform
axes = None

# left_edge: float or array-like, optional - left edge coordinate
left_edge = None

# ret_cubegrid: bool, optional - whether to return grid
ret_cubegrid = False

ARGS = {
    'X': X,
    'Lk': Lk,
    'L': L,
    'freq': freq,
    'a': a,
    'b': b,
    'axes': axes,
    'left_edge': left_edge,
    'ret_cubegrid': ret_cubegrid,
}
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 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
InceptBlock Not yet run
unverified (harvested, no recorded run)
tlmakinen/kosmo-kompress/fields/3d-conv-stax.py
code served (permissive licence) · get_code("d830c550e9c9d82c")
How it ran

no invocation recorded.

InceptBlock2 Not yet run
unverified (harvested, no recorded run)
tlmakinen/kosmo-kompress/fields/3d-conv-stax.py
code served (permissive licence) · get_code("bb0079e95e922d84")
How it ran

no invocation recorded.

angular_average_nd Not yet run
unverified (harvested, no recorded run)
tlmakinen/powerbox-jax/powerbox_jax/tools.py
code served (permissive licence) · get_code("82666e7bb4e4b807")
How it ran

no invocation recorded.

fft Not yet run
unverified (harvested, no recorded run)
tlmakinen/powerbox-jax/powerbox_jax/dft.py
code served (permissive licence) · get_code("5f4891cdc0e79720")
How it ran

no invocation recorded.

get_power Not yet run
unverified (harvested, no recorded run)
tlmakinen/powerbox-jax/powerbox_jax/tools.py
code served (permissive licence) · get_code("dd412f30d0111417")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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 6 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
InceptBlock 1 other paper
1 dated earlier
1903.00007 (2019-03)
Fast likelihood-free cosmology with neural density estimators and active learning
InceptBlock2 1 other paper
1 dated earlier
1903.00007 (2019-03)
Fast likelihood-free cosmology with neural density estimators and active learning

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-22.

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 a comparison of simulation-based inference to full, field-based analytical inference in cosmological data analysis. To do so, we explore parameter inference for two cases where the information content is calculable analytically: Gaussian random fields whose covariance depends on parameters through the power spectrum; and correlated lognormal fields with cosmological power spectra. We compare two inference techniques: i) explicit field-level inference using the known likelihood and ii) implicit likelihood inference with maximally informative summary statistics compressed via Information Maximising Neural Networks (IMNNs). We find that a) summaries obtained from convolutional neural network compression do not lose information and therefore saturate the known field information content, both for the Gaussian covariance and the lognormal cases, b) simulation-based inference using these maximally informative nonlinear summaries recovers nearly losslessly the exact posteriors of field-level inference, bypassing the need to evaluate expensive likelihoods or invert covariance matrices, and c) even for this simple example, implicit, simulation-based likelihood incurs a much smaller computational cost than inference with an explicit likelihood. This work uses a new IMNNs implementation in $\texttt{Jax}$ that can take advantage of fully-differentiable simulation and inference pipeline. We also demonstrate that a single retraining of the IMNN summaries effectively achieves the theoretically maximal information, enhancing the robustness to the choice of fiducial model where the IMNN is trained.

For agents

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

get_harvested_code_for_paper("2107.07405")
get_code_for_paper("2107.07405")
have("2107.07405")

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

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

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

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

Connect an agent — have() is free.