SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.12489 · 2026

When Can You Trust Offline Evaluation of Equal-Cost Top-k Allocation? A Controlled, Reproducible Benchmark and Practitioner's Guide

Binshuang Li

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 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/2608.12489.json · badge: /api/ran/2608.12489.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
binshuangli/allocation-ope-bench canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
cluster_bootstrap_ci Ran
ran, honoured the contract we drafted
binshuangli/allocation-ope-bench/src/allocation_ope_bench/analysis/trust_inference.py
code served (permissive licence) · get_code("9bc50dccefe4c389")
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 1, 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 numpy as np
import pandas as pd

# Create a small DataFrame with the required columns
np.random.seed(42)
n_rows = 20

df = pd.DataFrame({
    'metric_1': np.random.randn(n_rows),
    'abs_rel_bias': np.random.rand(n_rows),
    'cluster_a': np.repeat(['A', 'B', 'C'], [7, 7, 6]),
    'cluster_b': np.tile(['X', 'Y'], n_rows // 2 + 1)[:n_rows]
})

ARGS = {
    'df': df,
    'diag': 'metric_1',
    'cluster_cols': ['cluster_a', 'cluster_b'],
    'n_boot': 100,
    'seed': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
latex_table Ran
ran; our contract draft was wrong, not the code
binshuangli/allocation-ope-bench/src/allocation_ope_bench/analysis/misspec.py
code served (permissive licence) · get_code("5ef54df1962f9c8f")
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 str. 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 pandas as pd
from pathlib import Path

# Create a small DataFrame with the required columns
tab = pd.DataFrame({
    'dataset': ['synthetic', 'synthetic', 'acic_s3', 'acic_s3', 'acic_s5', 'acic_s5'],
    'outcome_model': ['lightgbm', 'stump', 'lightgbm', 'ridge', 'stump', 'ridge'],
    'dm': [0.95, 1.05, 0.87, 0.92, 0.88, 0.91],
    'dr': [0.92, 1.02, 0.85, 0.90, 0.86, 0.89],
    'snips': [0.94, 1.01, 0.86, 0.91, 0.87, 0.90],
    'ips': [1.10, 1.15, 1.05, 1.08, 1.04, 1.07],
    'best': ['dm', 'dr', 'snips', 'ips', 'dm', 'dr']
})

out_dir = None

ARGS = {
    'tab': tab,
    'out_dir': out_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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_results Ran
ran; our contract draft was wrong, not the code
binshuangli/allocation-ope-bench/src/allocation_ope_bench/analysis/aggregate.py
code served (permissive licence) · get_code("f9641ec6cc54b3ce")
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 pandas as pd
from pathlib import Path
import tempfile
import os

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

# Create sample parquet files
estimates_df = pd.DataFrame({
    'param': ['a', 'b', 'c'],
    'value': [1.0, 2.0, 3.0]
})
estimates_df.to_parquet(os.path.join(temp_dir, 'estimates.parquet'))

selection_df = pd.DataFrame({
    'budget_k': [0.5, 0.8, 1.5, 0.3],
    'metric': ['x', 'y', 'z', 'w']
})
selection_df.to_parquet(os.path.join(temp_dir, 'selection.parquet'))

optimization_bias_df = pd.DataFrame({
    'bias': [0.1, 0.2],
    'type': ['A', 'B']
})
optimization_bias_df.to_parquet(os.path.join(temp_dir, 'optimization_bias.parquet'))

ARGS = {
    'results_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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_runs Ran
ran; our contract draft was wrong, not the code
binshuangli/allocation-ope-bench/src/allocation_ope_bench/analysis/misspec.py
code served (permissive licence) · get_code("22f69fd6c8d729de")
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 DataFrame. 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 tempfile
from pathlib import Path
import pandas as pd
import os

# Create a temporary directory structure with parquet files
tmpdir = tempfile.TemporaryDirectory()
root = Path(tmpdir.name)

# Create directory structure and parquet files for each model
for model_name in ['lightgbm', 'stump', 'ridge']:
    model_dir = root / model_name
    model_dir.mkdir(parents=True, exist_ok=True)
    
    # Create a simple DataFrame and save as parquet
    df = pd.DataFrame({
        'metric1': [0.1, 0.2, 0.3],
        'metric2': [0.4, 0.5, 0.6],
        'value': [1.0, 2.0, 3.0]
    })
    parquet_path = model_dir / 'estimates.parquet'
    df.to_parquet(parquet_path)

ARGS = {
    'root': root
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
lodo_rhos Ran
ran, honoured the contract we drafted
binshuangli/allocation-ope-bench/src/allocation_ope_bench/analysis/trust_inference.py
code served (permissive licence) · get_code("16702eeab08d5abe")
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 Series. 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 pandas as pd
import numpy as np

# Create a sample DataFrame with the required columns
np.random.seed(0)

# Create sample data with multiple datasets and diagnostics
n_rows = 20
data = {
    'dataset': np.repeat(['dataset_A', 'dataset_B', 'dataset_C'], n_rows // 3 + 1)[:n_rows],
    'diag_1': np.random.randn(n_rows),
    'diag_2': np.random.randn(n_rows),
    'abs_rel_bias': np.random.randn(n_rows)
}

df = pd.DataFrame(data)

ARGS = {
    'df': df,
    'diag': 'diag_1'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series output the recorded ndim 1 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
policy_action_prob Ran
ran, violated the contract we drafted
binshuangli/allocation-ope-bench/src/allocation_ope_bench/estimators/base.py
code served (permissive licence) · get_code("a07e59e2fbad5bbc")
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 (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 numpy as np

# Create sample data for the function
# prob_treat: probability of treatment for each sample, shape (batch_size,)
prob_treat = np.array([0.3, 0.7, 0.5, 0.9])

# action: binary action indicators (0 or 1) for each sample, shape (batch_size,)
action = np.array([1, 0, 1, 0])

ARGS = {
    "prob_treat": prob_treat,
    "action": action,
}
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 ndarray, ndim 1, dtype family float, shape (4,) — shape (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
within_dataset_rhos Ran
ran, honoured the contract we drafted
binshuangli/allocation-ope-bench/src/allocation_ope_bench/analysis/trust_inference.py
code served (permissive licence) · get_code("23b288bea575a879")
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 Series. 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 pandas as pd
import numpy as np

# Create a sample DataFrame with the required columns
np.random.seed(0)

# Create dataset with multiple groups and diagnostic columns
data = {
    'dataset': ['ds1', 'ds1', 'ds1', 'ds1', 'ds2', 'ds2', 'ds2', 'ds2'],
    'diag_col1': [1.0, 2.0, 3.0, 4.0, 1.5, 2.5, 3.5, 4.5],
    'diag_col2': [0.1, 0.2, 0.3, 0.4, 0.15, 0.25, 0.35, 0.45],
    'abs_rel_bias': [0.05, 0.1, 0.15, 0.2, 0.06, 0.12, 0.18, 0.24],
}

df = pd.DataFrame(data)

# The function expects:
# - df: a DataFrame with 'dataset' column for grouping, a 'diag' column, and 'abs_rel_bias' column
# - diag: the name of the diagnostic column to correlate with 'abs_rel_bias'

ARGS = {
    'df': df,
    'diag': 'diag_col1',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series output the recorded ndim 1 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

Also present in other papers' code

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

Organizations routinely decide whom to treat under a budget, and want to know what a targeting rule would have earned before deploying it. Off-policy evaluation promises this from logged data. But the deployable rule is a deterministic top-k policy: it removes all averaging over actions, so weak overlap hits the estimate directly. We benchmark six estimators across five datasets and two known-effect sweeps, and validate the mechanisms against a non-simulated paired reference. First, weak overlap is governed by logger-target action alignment, not by logging sharpness alone. Temperature is not a valid overlap parameter: what governs support is the logger's probability of the target's actions. Over the tested range, sharpening a logger built from the target's own score barely moves overlap; disagreement at the action level collapses it. Effective sample size, computed from logged actions and propensities, ranks this risk across logging environments -guidance for designing logs and choosing estimator families, since it is weak at ranking candidate policies within the single fixed log a practitioner holds, and its cut point does not transfer. Second, the optimizer's curse is not fixed by cross-fitting the outcome nuisance. When the rule is fit on the data used to evaluate it, cross-fitting the nuisance alone leaves the reuse bias in place and makes it worse. Honest policy-level splitting avoids the reuse by targeting the learning procedure's value -a change of estimand, not a de-biasing of the full-sample policy. Third, propensity-estimation error is the largest degradation we measure. Replacing the exact propensity with an out-of-fold estimate hurts IPS more than any other stress we apply, leaves doubly-robust estimation almost unchanged, and can invert the overlap diagnostic itself. Section 4.1 states what this benchmark cannot tell you. Logging is synthesized throughout and propensities are floored at 0.02, so every failure we document occurs with bounded weights; the floor also reduces the two tuned hybrids to their untuned parents in most cells, leaving four practically distinct estimators. All exact-value surfaces are synthetic or semi-synthetic -hence the non-simulated check. Section 6 distills the operational guidance. We release the benchmark; public data only.

For agents

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

get_harvested_code_for_paper("2608.12489")
get_code_for_paper("2608.12489")
have("2608.12489")

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

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

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

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

Connect an agent — have() is free.