SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.17161 · NeurIPS · 2023

Flow Matching for Scalable Simulation-Based Inference

Bernhard Schölkopf, Simon Buchholz, Jakob Macke, Jonas Wildberger, Maximilian Dax, Stephen Green

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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 4 have no contract verdict; 1 failure 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/2305.17161.json · badge: /api/ran/2305.17161.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
dingo-gw/dingo canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
dingo-gw/flow-matching-posterior-estimation canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
apply_func_with_multiprocessing Ran
ran on a synthesized input
dingo-gw/dingo/dingo/core/multiprocessing.py
code served (permissive licence) · get_code("7d98fc0f6dc4c278")
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 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 numpy as np
import pandas as pd

def simple_func(params_dict):
    """A simple function that takes a dict of parameters and returns a scalar."""
    return params_dict['a'] + params_dict['b'] * 2

# Create a small DataFrame with multiple rows
theta = pd.DataFrame({
    'a': [1.0, 2.0, 3.0],
    'b': [4.0, 5.0, 6.0]
})

ARGS = {
    'func': simple_func,
    'theta': theta,
    'num_processes': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, threadpoolctl — 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 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
check_equal_dict_of_arrays Ran
ran on a synthesized input
dingo-gw/dingo/dingo/core/result.py
code served (permissive licence) · get_code("4411e5ae14376a3a")
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 bool, 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 numpy as np

# Create test data structures
array_1d = np.array([1, 2, 3, 4])
array_2d = np.array([[1, 2], [3, 4]])
array_3d = np.array([[[1, 2], [3, 4]], [[5, 6], [7, 8]]])

# Create matching dictionaries with arrays
dict_a = {
    "tensor1": array_1d,
    "tensor2": array_2d,
    "nested": {
        "tensor3": array_3d,
        "tensor4": np.array([0.5, 1.5, 2.5])
    }
}

dict_b = {
    "tensor1": np.array([1, 2, 3, 4]),
    "tensor2": np.array([[1, 2], [3, 4]]),
    "nested": {
        "tensor3": np.array([[[1, 2], [3, 4]], [[5, 6], [7, 8]]]),
        "tensor4": np.array([0.5, 1.5, 2.5])
    }
}

ARGS = {
    "a": dict_a,
    "b": dict_b
}
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 bool, 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
chunk_and_concat Ran
ran on a synthesized input
dingo-gw/dingo/dingo/core/inference/composer.py
code served (permissive licence) · get_code("3e6dcf1f1a31bfcf")
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

torch.manual_seed(0)

def run_once_impl(n: int) -> tuple[dict[str, torch.Tensor], torch.Tensor]:
    """Mock run_once that returns samples and log probabilities."""
    samples = {
        'x': torch.randn(n, 4),
        'y': torch.randn(n, 3),
    }
    log_prob = torch.randn(n)
    return (samples, log_prob)

ARGS = {
    'total': 10,
    'batch_size': 3,
    'run_once': run_once_impl,
}
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_default_nde_settings_3d Ran
ran on a synthesized input
dingo-gw/dingo/dingo/core/density/nde_settings.py
code served (permissive licence) · get_code("b81decc0a23cd13b")
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 numpy as np

torch.manual_seed(0)

# Build inference_parameters as a simple dict or None
inference_parameters = {
    'num_samples': 100,
    'batch_size': 32
}

# Construct ARGS dict with all parameters
ARGS = {
    'device': 'cpu',
    'num_workers': 0,
    'inference_parameters': inference_parameters
}
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
load_dataset Ran
ran; our contract draft was wrong, not the code
dingo-gw/flow-matching-posterior-estimation/sbi-benchmark/run_sbibm.py
code served (permissive licence) · get_code("0e2573db45f61f85")
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) and returned SbiDataset. 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
import tempfile
import os

torch.manual_seed(0)

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

# Create small test data
# theta: 2 samples, 3 dimensions
theta_data = np.random.randn(2, 3).astype(np.float32)
# x: 2 samples, 4 dimensions
x_data = np.random.randn(2, 4).astype(np.float32)

# Save to temporary directory
np.save(os.path.join(temp_dir, 'theta.npy'), theta_data)
np.save(os.path.join(temp_dir, 'x.npy'), x_data)

# Create settings dict with task key
settings = {
    'task': {}
}

ARGS = {
    'directory_save': temp_dir,
    'settings': settings
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SbiDataset — a SbiDataset 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
freeze Not yet run
unverified (harvested, no recorded run)
dingo-gw/dingo/dingo/core/result.py
code served (permissive licence) · get_code("b9536168e2d5ca71")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 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 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.

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

Neural posterior estimation methods based on discrete normalizing flows have become established tools for simulation-based inference (SBI), but scaling them to high-dimensional problems can be challenging. Building on recent advances in generative modeling, we here present flow matching posterior estimation (FMPE), a technique for SBI using continuous normalizing flows. Like diffusion models, and in contrast to discrete flows, flow matching allows for unconstrained architectures, providing enhanced flexibility for complex data modalities. Flow matching, therefore, enables exact density evaluation, fast training, and seamless scalability to large architectures-making it ideal for SBI. We show that FMPE achieves competitive performance on an established SBI benchmark, and then demonstrate its improved scalability on a challenging scientific problem: for gravitational-wave inference, FMPE outperforms methods based on comparable discrete flows, reducing training time by 30% with substantially improved accuracy. Our work underscores the potential of FMPE to enhance performance in challenging inference scenarios, thereby paving the way for more advanced applications to scientific problems.

For agents

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

get_harvested_code_for_paper("2305.17161")
get_code_for_paper("2305.17161")
have("2305.17161")

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

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

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

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

Connect an agent — have() is free.