SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.15823 · 2026

Aggregation of Statistical Evidence under Exchangeability

Arthur Gretton, Ilmun Kim, Antonin Schrab, Rajen Shah

arXiv · PDF

Code that ran

7 of 9 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 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/2607.15823.json · badge: /api/ran/2607.15823.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
antoninschrab/sb-paper canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
G Ran
ran, honoured the contract we drafted
antoninschrab/sb-paper/sampler.py
code served (permissive licence) · get_code("9ccbdd0ccdb2db7a")
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

# The function G takes a scalar x as input
# We need to provide a valid scalar value

# Test with a value in the range (-1, -0.5) where the first condition applies
x_value = jnp.array(-0.75)

ARGS = {
    "x": x_value
}
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 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
G_step Ran
ran, honoured the contract we drafted
antoninschrab/sb-paper/sampler.py
code served (permissive licence) · get_code("0d66a7c8d3f435fe")
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

# G_step takes a scalar x as input
# The function uses jax.lax.cond with logical comparisons on x
# x should be a JAX array or Python scalar

ARGS = {
    "x": jnp.array(-0.75)
}
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 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
f_theta Ran
ran; our contract draft was wrong, not the code
antoninschrab/sb-paper/sampler.py
code served (permissive licence) · get_code("5baa1232bce0a2ed")
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 numpy as np

# Create a small test point in [0, 1]^d
x = jnp.array([0.3, 0.5, 0.2, 0.7])  # d=4, values in (0, 1)

# Number of perturbations per dimension
p = 2

# Smoothness parameter (positive)
s = 1.5

# Perturbation multiplier (positive)
perturbation_multiplier = 0.5

# Use the full G function (not the step version)
step = False

ARGS = {
    "x": x,
    "p": p,
    "s": s,
    "perturbation_multiplier": perturbation_multiplier,
    "step": step,
}
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 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
tb_evaluate_candidate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
antoninschrab/sb-paper/conformal.py
code served (permissive licence) · get_code("1ee0fb2d77412af1")
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 numpy as np

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

# Create small test data
# n_1: number of reference samples
n_1 = 5

# S_ref_sorted: sorted reference scores, shape (n_1, n_features)
# Using shape (5, 3) for n_1=5 reference samples, 3 features
S_ref_sorted = jnp.array([
    [0.1, 0.2, 0.3],
    [0.4, 0.5, 0.6],
    [0.7, 0.8, 0.9],
    [1.0, 1.1, 1.2],
    [1.3, 1.4, 1.5]
], dtype=jnp.float32)

# u_tb: threshold value for comparison
u_tb = 0.5

# test_scores: test score values to evaluate, shape (n_features,)
# Must have same number of features as columns in S_ref_sorted
test_scores = jnp.array([0.75, 0.85, 0.95], dtype=jnp.float32)

# n_1: static argument, number of reference samples
n_1_arg = 5

# agg_func: static argument, aggregation function name
agg_func = 'min'

ARGS = {
    'S_ref_sorted': S_ref_sorted,
    'u_tb': u_tb,
    'test_scores': test_scores,
    'n_1': n_1_arg,
    'agg_func': agg_func
}
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 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
tb_exact_prediction_set Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
antoninschrab/sb-paper/conformal.py
code served (permissive licence) · get_code("9c77bd973f90c381")
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
import numpy as np

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

# Create small calibration scores: shape (n, K) where n = n_1 + n_2
# Let's use n_1 = 3, n_2 = 2, K = 4
n_1 = 3
n_2 = 2
K = 4
n = n_1 + n_2

# calib_scores: shape (5, 4) - 5 samples, 4 classes
calib_scores = jnp.array([
    [0.1, 0.2, 0.3, 0.15],
    [0.05, 0.15, 0.25, 0.10],
    [0.12, 0.18, 0.28, 0.12],
    [0.3, 0.4, 0.5, 0.35],
    [0.25, 0.35, 0.45, 0.30],
], dtype=jnp.float32)

# preds_test: shape (4,) - predictions for 4 test samples
preds_test = jnp.array([0.5, 0.6, 0.55, 0.65], dtype=jnp.float32)

# Y_true: shape (4,) - true values for 4 test samples
Y_true = jnp.array([0.48, 0.62, 0.54, 0.68], dtype=jnp.float32)

# alpha: miscoverage level
alpha = 0.1

# agg_func: aggregation function
agg_func = 'min'

ARGS = {
    'calib_scores': calib_scores,
    'preds_test': preds_test,
    'Y_true': Y_true,
    'n_1': n_1,
    'alpha': alpha,
    'agg_func': agg_func,
}
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 — 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
tb_precompute Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
antoninschrab/sb-paper/conformal.py
code served (permissive licence) · get_code("96c2ba08b3baf1d2")
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

# Create calibration scores: shape (n, K)
# n_1 will be the split point, so we need n > n_1
# Let's use n=10, K=4, n_1=6
n = 10
K = 4
n_1 = 6

# Create random calibration scores
calib_scores = jnp.array([
    [0.1, 0.2, 0.3, 0.4],
    [0.15, 0.25, 0.35, 0.45],
    [0.12, 0.22, 0.32, 0.42],
    [0.18, 0.28, 0.38, 0.48],
    [0.11, 0.21, 0.31, 0.41],
    [0.19, 0.29, 0.39, 0.49],
    [0.13, 0.23, 0.33, 0.43],
    [0.14, 0.24, 0.34, 0.44],
    [0.16, 0.26, 0.36, 0.46],
    [0.17, 0.27, 0.37, 0.47],
], dtype=jnp.float32)

# alpha parameter for quantile computation
alpha = 0.1

# aggregation function
agg_func = 'min'

ARGS = {
    'calib_scores': calib_scores,
    'n_1': n_1,
    'alpha': alpha,
    'agg_func': agg_func,
}
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
wrap_stat Ran
ran; our contract draft was wrong, not the code
antoninschrab/sb-paper/tests.py
code served (permissive licence) · get_code("59b9f84c33f2461f")
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 function. 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 inspect

torch.manual_seed(0)

def wrap_stat(func):
    """
    Inspects a function and wraps it to consistently accept (key, data).
    If the function only requires 'data', the 'key' is discarded.
    """
    try:
        sig = inspect.signature(func)
        pos_params = [p for p in sig.parameters.values() if p.kind in (p.POSITIONAL_ONLY, p.POSITIONAL_OR_KEYWORD)]
        required_params = [p for p in pos_params if p.default == inspect.Parameter.empty]
        if len(required_params) == 1 or (len(required_params) == 0 and len(pos_params) > 0):
            return lambda k, d: func(d)
        if len(required_params) >= 2:
            return lambda k, d: func(k, d)
    except ValueError:
        pass
    return lambda k, d: func(d)

# Test function 1: single required parameter (data only)
def single_param_func(data):
    return data * 2

# Test function 2: two required parameters (key and data)
def two_param_func(key, data):
    return (key, data)

# Test function 3: no required parameters but has optional positional
def optional_param_func(data=None):
    return data

ARGS = {
    "func": single_param_func
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
sb_test Not yet run
unverified (harvested, no recorded run)
antoninschrab/sb-paper/tests.py
code served (permissive licence) · get_code("289277f59050b9fd")
How it ran

no invocation recorded.

tb_test Not yet run
unverified (harvested, no recorded run)
antoninschrab/sb-paper/tests.py
code served (permissive licence) · get_code("fcd1823ec312fa3e")
How it ran

no invocation recorded.

Also present in other papers' code

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

We study aggregation of statistical evidence under unknown and potentially complex dependence using group-invariance. Building on permutation-based constructions that treat transformed datasets as exchangeable units, we aggregate evidence across statistics for each transformed dataset and calibrate the resulting aggregates across transformations. We develop a finite-sample power and adaptivity theory for this framework, together with extensions to sequential and data-dependent aggregation that preserve validity. For single-batch aggregation, which uses one collection of transformed datasets for both standardization and calibration, we show that the critical values uniformly improve on deterministic calibrations valid under arbitrary dependence, including Bonferroni correction, while adapting to the unknown dependence structure. We also introduce a sequential alpha-spending version that permits early rejection when evidence is strong, and a two-batch extension that separates standardization from calibration to accommodate learned aggregation rules and reduce computation. Applications to adaptive nonparametric testing and conformal prediction illustrate how these results sharpen existing aggregation methods.

For agents

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

get_harvested_code_for_paper("2607.15823")
get_code_for_paper("2607.15823")
have("2607.15823")

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

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

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

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

Connect an agent — have() is free.