SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.06484 · 2026

Estimate Level Adjustment For Inference With Proxies Under Random Distribution Shifts

Alexandra Darmon, Deeksha Sinha, Steven Wilkins-Reeves

arXiv · PDF · Open in the Atlas

Code that ran

5 of 13 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, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 8 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/2605.06484.json · badge: /api/ran/2605.06484.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
facebookresearch/estimate-level-adjustment community
Papers with Code archive
5 ran · 8 no recorded run
FunctionStatusWhere it lives
alpha_to_z Ran
ran, honoured the contract we drafted
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("5030f53ef074c950")
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 float64, ndim 0, 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 scipy.stats as st

def alpha_to_z(alpha: float) -> float:
    z = st.norm.ppf(1 - alpha * 0.5)
    return z

ARGS = {
    "alpha": 0.05
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
conf_to_z Ran
ran, honoured the contract we drafted
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("12cb1e5e75e3951d")
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 float64, ndim 0, 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 scipy.stats as st

def alpha_to_z(alpha: float) -> float:
    z = st.norm.ppf(1 - alpha * 0.5)
    return z

def conf_to_z(conf: int) -> float:
    alpha = (100 - conf) / 100
    return alpha_to_z(alpha)

ARGS = {
    "conf": 95
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
fit_latent_normal Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("a9c1a5d3063afce2")
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 FitResult. 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

# Create small synthetic data for testing
np.random.seed(0)

# Generate observed data Y and known standard deviations sigma
n_observations = 10
Y = np.random.normal(loc=2.5, scale=1.5, size=n_observations).astype(np.float64)
sigma = np.abs(np.random.normal(loc=0.8, scale=0.2, size=n_observations)).astype(np.float64)

# Construct arguments dictionary for fit_latent_normal
ARGS = {
    'Y': Y,
    'sigma': sigma,
    'constrain_mean_0': False,
    'method': 'MoM'
}
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 FitResult — a FitResult output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a FitResult 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
get_ci Ran
ran, honoured the contract we drafted
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("a30e49e03f54918b")
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 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 torch
import numpy as np
import scipy.stats as st

# The function get_ci takes:
# - delta: float (a point estimate)
# - se: float (standard error)
# - conf: int (confidence level, default 90)

# All parameters are simple scalars, so we just need to provide reasonable values

ARGS = {
    "delta": 0.5,
    "se": 0.1,
    "conf": 90
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, scipy, torch — 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
negative_log_likelihood Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("e09a30d552ae235c")
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 float64, ndim 0, 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

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

# Create small sample data
n_samples = 5
Y = np.array([1.2, 2.3, 0.5, 1.8, 2.1], dtype=np.float64)
sigma_sq = np.array([0.1, 0.15, 0.2, 0.12, 0.18], dtype=np.float64)

# Test case 1: unconstrained (both rho and gamma_squared as parameters)
params_unconstrained = (0.5, 0.3)

# Test case 2: constrained to mean 0 (only gamma_squared as parameter)
params_constrained = (0.3,)

# Build ARGS dict with unconstrained case
ARGS = {
    "params": params_unconstrained,
    "Y": Y,
    "sigma_sq": sigma_sq,
    "constrain_mean_0": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
AdjustedCovShiftPPIEstimator Not yet run
unverified (harvested, no recorded run)
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("47de9d1f1c180ec1")
How it ran

no invocation recorded.

AdjustedEstimate Not yet run
unverified (harvested, no recorded run)
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("ed23a6a4d94a3f60")
How it ran

no invocation recorded.

BootstrapEstimate Not yet run
unverified (harvested, no recorded run)
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("7926d3206a2e430f")
How it ran

no invocation recorded.

CovShiftPPIEstimator Not yet run
unverified (harvested, no recorded run)
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("493c90af733ce0c6")
How it ran

no invocation recorded.

DomainBootstrapEstimate Not yet run
unverified (harvested, no recorded run)
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("27696f0174161dfd")
How it ran

no invocation recorded.

DomainEstimateStats Not yet run
unverified (harvested, no recorded run)
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("4fb7e2399b4d8a3c")
How it ran

no invocation recorded.

Estimate Not yet run
unverified (harvested, no recorded run)
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("dccc4bd1492e50bb")
How it ran

no invocation recorded.

FitResult Not yet run
unverified (harvested, no recorded run)
facebookresearch/estimate-level-adjustment/estimate_level_adjustment/adjusted_ppi_estimator.py
code served (permissive licence) · get_code("438536fdbafd498b")
How it ran

no invocation recorded.

Also present in other papers' code

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

In many scientific domains, including experimentation, researchers rely on measurements of proxy outcomes to achieve faster and more frequent reads, especially when the primary outcome of interest is challenging to measure directly. While proxies offer a more readily accessible observation for inference, the ultimate goal is to draw statistical inferences about the primary outcome parameter and proxy data are typically imperfect in some ways. To correct for these imperfections, current statistical inference methods often depend on strict identifying assumptions (such as surrogacy, covariate/label shift, or missingness assumptions). These assumptions can be difficult to validate and may be violated by various additional sources of distribution shift, potentially leading to biased parameter estimates and miscalibrated uncertainty quantification. We introduce an estimate-level framework, inspired by domain adaptation techniques, to empirically calibrate proxy-based inference. This framework models the proxy-primary metric discrepancy as a random effect at the parameter level, estimating its distribution from aggregated historical observations across past domains (e.g., experiments, time periods, or distinct segments). This method avoids the requirement for retaining individual-level response data. Additionally, this adjustment can be layered on top of existing proxy-correction methods (such as prediction-powered inference or importance weighting) to account for additional biases not addressed by those corrections. To manage uncertainty when the number of historical domains is limited, we provide both a method-of-moments estimator and a domain bootstrap procedure. Through extensive simulations, our adjusted intervals demonstrate improved calibration and more reliable coverage across various proxy procedures and deviations from standard covariate shift mechanisms. We further validate this approach using publicly available datasets and real-world experiments. Code for replicating simulations and experiments on public datasets are available at github.com/facebookresearch/estimate-level-adjustment.

For agents

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

get_harvested_code_for_paper("2605.06484")
get_code_for_paper("2605.06484")
have("2605.06484")

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

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

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

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

Connect an agent — have() is free.