SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.23155 · 2026

Neural Parameter Calibration for Finite-State Mean Field Games

Yonathan Efroni, Mathieu Laurière, Grégoire Lambrecht, Anna Thöni, Gökçe Dayanıklı, Tal Kachman

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2606.23155.json · badge: /api/ran/2606.23155.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
KachmanLab/MFGParameterCalibration community
Papers with Code archive
4 ran · 1 no recorded run
FunctionStatusWhere it lives
BaseTrainer Ran
ran on a synthesized input · constructed an object; no result was computed
KachmanLab/MFGParameterCalibration/src/calibration/BaseTrainer.py
code served (permissive licence) · get_code("18835f28278eb0a9")
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 an instance of its own class, BaseTrainer: the run constructed the object and did not call it, so no result was computed. 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
from dataclasses import dataclass

@dataclass
class TrainingConfig:
    """Minimal TrainingConfig for testing BaseTrainer."""
    num_seeds: int = 2
    epochs: int = 10
    batch_size: int = 2
    delta_ratio: float = 0.2
    learning_rate: float = 0.005
    test_interval: int = 5
    is_mfc: bool = False
    num_samples: int = 5
    num_test_samples: int = 2
    T: float = 2.0
    N: int = 10
    constant_gamma: bool = False
    gamma_size: int = 1
    gamma_loss_idx: int = None
    picard_damping: float = 0.0
    root_dir: str = 'results'
    experiment_name: str = 'base_experiment'

    @property
    def dt(self) -> float:
        return self.T / (self.N - 1)

    @property
    def delta_steps(self) -> int:
        return int(self.N * self.delta_ratio)


# Create a minimal TrainingConfig instance
cfg = TrainingConfig(
    num_seeds=2,
    epochs=10,
    batch_size=2,
    delta_ratio=0.2,
    learning_rate=0.005,
    test_interval=5,
    is_mfc=False,
    num_samples=5,
    num_test_samples=2,
    T=2.0,
    N=10,
    constant_gamma=False,
    gamma_size=1,
    gamma_loss_idx=None,
    picard_damping=0.0,
    root_dir='results',
    experiment_name='base_experiment'
)

ARGS = {
    'cfg': cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, numpy, optax, orbax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BaseTrainer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BaseTrainer 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
ParameterNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
KachmanLab/MFGParameterCalibration/src/calibration/BaseTrainer.py
code served (permissive licence) · get_code("6499df860cdead3c")
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 an instance of its own class, ParameterNetwork: the run constructed the object and did not call it, so no result was computed. 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 flax import linen as nn

ARGS = {
    "constant_gamma": False,
    "out_size": 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ParameterNetwork — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ParameterNetwork 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
TrainingConfig Ran
ran on a synthesized input · constructed an object; no result was computed
KachmanLab/MFGParameterCalibration/src/calibration/BaseTrainer.py
code served (permissive licence) · get_code("3d040181c39fbbc8")
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 an instance of its own class, TrainingConfig: the run constructed the object and did not call it, so no result was computed. 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 dataclasses import dataclass

torch.manual_seed(0)

# Since TrainingConfig is a dataclass with all primitive types and no custom objects,
# we simply need to provide values for each field that match the expected types.

ARGS = {
    'num_seeds': 5,
    'epochs': 500,
    'batch_size': 10,
    'delta_ratio': 0.2,
    'learning_rate': 0.005,
    'test_interval': 20,
    'is_mfc': False,
    'num_samples': 200,
    'num_test_samples': 20,
    'T': 2.0,
    'N': 100,
    'constant_gamma': False,
    'gamma_size': 1,
    'gamma_loss_idx': None,
    'picard_damping': 0.0,
    'root_dir': 'results',
    'experiment_name': 'base_experiment',
}
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 TrainingConfig — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TrainingConfig 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
stat Ran
ran, honoured the contract we drafted
KachmanLab/MFGParameterCalibration/src/calibration/BaseTrainer.py
code served (permissive licence) · get_code("cab9e21529efd0b5")
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

# The function expects:
# - results: List[Dict] - a list of dictionaries
# - key: str - a key to extract from each dictionary
#
# The function accesses r[key] for each r in results, expecting it to be stackable into a jnp array
# Then it computes mean and std along axis=0

ARGS = {
    "results": [
        {"loss": jnp.array([1.0, 2.0, 3.0, 4.0])},
        {"loss": jnp.array([1.1, 2.1, 3.1, 4.1])},
        {"loss": jnp.array([0.9, 1.9, 2.9, 3.9])},
    ],
    "key": "loss",
}
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, 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
_log Not yet run
unverified (harvested, no recorded run)
KachmanLab/MFGParameterCalibration/src/calibration/BaseTrainer.py
code served (permissive licence) · get_code("45ed950b56969147")
How it ran

no invocation recorded.

Also present in other papers' code

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

Mean field games efficiently approximate a very large population of strategic agents. While these games can aid the understanding of complex systems, their deployment in real-world settings is challenged by the specification of their parameters: mean field games (MFGs) often involve hidden preferences, constraints, and interactions that can rarely be theoretically derived or directly observed. To address this gap, we present a neural networkbased framework for learning parametric, finite-state MFGs from observed population dynamics. To do so, we formulate the parameter calibration as an inverse problem and use implicit differentiation to backpropagate through the games' equilibrium. The resulting approach is fully differentiable and enables us to estimate flexible trajectory-wise parameter paths, including state-and time-dependent specifications without requiring observations of the individual agents' actions or rewards. We provide a proof for the exactness of the gradient computation in a discrete-time formulation. We validate our framework through numerical experiments across four systems of increasing complexity, ranging from synthetic linear-quadratic benchmarks to real-world urban mobility datasets.

For agents

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

get_harvested_code_for_paper("2606.23155")
get_code_for_paper("2606.23155")
have("2606.23155")

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

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

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

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

Connect an agent — have() is free.