SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1905.12022 · 2019

Bayesian Nonparametric Federated Learning of Neural Networks

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 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, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/1905.12022.json · badge: /api/ran/1905.12022.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
IBM/probabilistic-federated-neural-matching canonical (classifier label)
classifier basis: classifier_2025
3 ran · 1 no recorded run
FunctionStatusWhere it lives
matching_upd_j Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
IBM/probabilistic-federated-neural-matching/matching/pfnm.py
code served (permissive licence) · get_code("7c17c9fb83c5b93c")
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 numpy as np
from scipy.optimize import linear_sum_assignment

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

# Define small tensors and parameters for the function
# weights_j: shape (Lj, D) - local weights for client j
Lj = 3
D = 4
weights_j = np.random.randn(Lj, D).astype(np.float64)

# global_weights: shape (L, D) - current global weights
L = 2
global_weights = np.random.randn(L, D).astype(np.float64)

# sigma_inv_j: shape (D,) - inverse sigma for client j
sigma_inv_j = np.ones(D, dtype=np.float64) * 0.5

# global_sigmas: shape (L, D) - current global sigmas
global_sigmas = np.ones((L, D), dtype=np.float64) * 0.3

# prior_mean_norm: shape (D,) - prior mean
prior_mean_norm = np.zeros(D, dtype=np.float64)

# prior_inv_sigma: shape (D,) - prior inverse sigma
prior_inv_sigma = np.ones(D, dtype=np.float64) * 0.2

# popularity_counts: list of popularity counts for each global cluster
popularity_counts = [5, 3]

# gamma: concentration parameter
gamma = 1.0

# J: total number of clients
J = 10

ARGS = {
    "weights_j": weights_j,
    "global_weights": global_weights,
    "sigma_inv_j": sigma_inv_j,
    "global_sigmas": global_sigmas,
    "prior_mean_norm": prior_mean_norm,
    "prior_inv_sigma": prior_inv_sigma,
    "popularity_counts": popularity_counts,
    "gamma": gamma,
    "J": J,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
parse_class_dist Ran
ran; our contract draft was wrong, not the code
IBM/probabilistic-federated-neural-matching/experiment.py
code served (permissive licence) · get_code("53152f963579ea8a")
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 torch.nn as nn

torch.manual_seed(0)

# Analyzing the function:
# - parse_class_dist takes net_class_config as parameter
# - It iterates through net_class_config with enumerate (so it's iterable)
# - For each net_idx and net_classes pair, it iterates through net_classes
# - Each element net_cls is used as a dict key
# - net_idx is appended to a list value
# So net_class_config should be a list of iterables, where each inner iterable
# contains hashable elements (class identifiers)

# Example structure: a list where each element represents classes for a network
net_class_config = [
    ['class_a', 'class_b', 'class_c'],
    ['class_b', 'class_d'],
    ['class_a', 'class_e']
]

ARGS = {
    'net_class_config': net_class_config
}
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 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
row_param_cost Ran
ran, honoured the contract we drafted
IBM/probabilistic-federated-neural-matching/matching/pfnm.py
code served (permissive licence) · get_code("0ace64368463faf6")
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 (2,) 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)

# Analyzing the function:
# - global_weights: used in arithmetic operations, needs .sum(axis=1), so 2D array
# - weights_j_l: used in arithmetic operations, needs .sum(axis=1), so 2D array
# - global_sigmas: used in arithmetic operations, needs .sum(axis=1), so 2D array
# - sigma_inv_j: used in arithmetic operations, needs .sum(axis=1), so 2D array
# All operations are element-wise arithmetic and sum along axis 1

# Create small numpy arrays with distinct shapes for clarity
batch_size = 2
feature_dim = 4

global_weights = np.random.randn(batch_size, feature_dim).astype(np.float32)
weights_j_l = np.random.randn(batch_size, feature_dim).astype(np.float32)
global_sigmas = np.abs(np.random.randn(batch_size, feature_dim).astype(np.float32)) + 0.1
sigma_inv_j = np.abs(np.random.randn(batch_size, feature_dim).astype(np.float32)) + 0.1

ARGS = {
    "global_weights": global_weights,
    "weights_j_l": weights_j_l,
    "global_sigmas": global_sigmas,
    "sigma_inv_j": sigma_inv_j
}
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 ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) 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
compute_cost Not yet run
unverified (harvested, no recorded run)
IBM/probabilistic-federated-neural-matching/matching/pfnm.py
code served (permissive licence) · get_code("beed9270a5b69d7a")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In federated learning problems, data is scattered across different servers and exchanging or pooling it is often impractical or prohibited. We develop a Bayesian nonparametric framework for federated learning with neural networks. Each data server is assumed to provide local neural network weights, which are modeled through our framework. We then develop an inference approach that allows us to synthesize a more expressive global network without additional supervision, data pooling and with as few as a single communication round. We then demonstrate the efficacy of our approach on federated learning problems simulated from two popular image classification datasets.

For agents

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

get_harvested_code_for_paper("1905.12022")
get_code_for_paper("1905.12022")
have("1905.12022")

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

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

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

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

Connect an agent — have() is free.