SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.14459 · ICLR · 2025

Doubly robust identification of treatment effects from multiple environments

Fanny Yang, Piersilvio De Bartolomeis, Yixin Wang, Javier Abad, Julia Kostin

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2503.14459.json · badge: /api/ran/2503.14459.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
jaabmar/ramen canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
jaabmar/RAMEN marked official in Papers with Code
Papers with Code archive
4 ran · 0 no recorded run
FunctionStatusWhere it lives
Ramen Ran
ran on a synthesized input · constructed an object; no result was computed
jaabmar/RAMEN/RAMEN/models/ramen.py
code served (permissive licence) · get_code("fc03fd1ee638b0eb")
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, Ramen: 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 unittest.mock import MagicMock

torch.manual_seed(0)

# Create a minimal logger mock
logger = MagicMock()
logger.info = MagicMock()

# Define ARGS with all parameters for Ramen.__init__
ARGS = {
    'input_dim': 4,
    'n_env': 2,
    'use_xgboost': False,
    'logger': logger,
    'max_workers': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch, xgboost — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Ramen — 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 Ramen 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
compute_cross_statistic Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jaabmar/RAMEN/RAMEN/models/ramen.py
code served (permissive licence) · get_code("22dfbca033058bee")
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 Tensor, 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 torch

torch.manual_seed(0)

# Analyze the function to understand what's needed:
# - psi: indexed with idx_i and idx_j, needs to be a 1D tensor with m1 + m2 elements
# - K: 2D tensor with shape (m1, m2), used for .shape and .flatten()

# Create small distinct dimensions for clarity
m1 = 2
m2 = 3

# psi needs m1 + m2 = 5 elements
psi = torch.randn(m1 + m2)

# K needs shape (m1, m2) = (2, 3)
K = torch.randn(m1, m2)

ARGS = {
    "psi": psi,
    "K": K,
}
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 Tensor, 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
construct_cross_kernel_matrix Ran
ran, honoured the contract we drafted
jaabmar/RAMEN/RAMEN/models/ramen.py
code served (permissive licence) · get_code("646c931bac67bc22")
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 Tensor, ndim 2, dtype family float, shape (2, 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

torch.manual_seed(0)

# Construct a small tensor input for construct_cross_kernel_matrix
# The function expects x with shape (2m, d) where it splits into x_i and x_j
# Let's use batch size 4 (so m=2) and dimension 3
x = torch.randn(4, 3)

ARGS = {
    "x": x
}
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 Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 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
gaussian_kernel Ran
ran, honoured the contract we drafted
jaabmar/RAMEN/RAMEN/models/ramen.py
code served (permissive licence) · get_code("1c4221b5f7ba7e83")
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 Tensor, ndim 2, dtype family float, shape (2, 3) 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

torch.manual_seed(0)

# Create small tensors for xi and xj
# xi: shape (2, 4) - 2 points in 4D space
# xj: shape (3, 4) - 3 points in 4D space (distinct from xi count for clarity)
xi = torch.randn(2, 4)
xj = torch.randn(3, 4)

# sigma: positive scalar controlling kernel width
sigma = torch.tensor(1.0)

ARGS = {
    "xi": xi,
    "xj": xj,
    "sigma": sigma,
}
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 Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
generate_subsets Ran
ran; our contract draft was wrong, not the code
jaabmar/ramen/RAMEN/models/ramen.py
code served (permissive licence) · get_code("3e997d59c0fc8553")
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 chain. 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.

from itertools import chain, combinations

def generate_subsets(data):
    return chain.from_iterable((combinations(data, r) for r in range(1, len(data) + 1)))

# Setup code
data = [1, 2, 3, 4, 5]

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type chain — a chain output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a chain 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

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, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 later) and 0 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.

FunctionAlso present inEarliest-datedOthers named
Ramen
brick of this paper's assembly: entry
1 other paper
1 dated earlier
2502.04262 (2025-02)
Efficient Randomized Experiments Using Foundation Models
compute_cross_statistic
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2502.04262 (2025-02)
Efficient Randomized Experiments Using Foundation Models
construct_cross_kernel_matrix
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2502.04262 (2025-02)
Efficient Randomized Experiments Using Foundation Models
gaussian_kernel
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2502.04262 (2025-02)
Efficient Randomized Experiments Using Foundation Models
generate_subsets
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2502.04262 (2025-02)
Efficient Randomized Experiments Using Foundation Models

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

Practical and ethical constraints often require the use of observational data for causal inference, particularly in medicine and social sciences. Yet, observational datasets are prone to confounding, potentially compromising the validity of causal conclusions. While it is possible to correct for biases if the underlying causal graph is known, this is rarely a feasible ask in practical scenarios. A common strategy is to adjust for all available covariates, yet this approach can yield biased treatment effect estimates, especially when post-treatment or unobserved variables are present. We propose Ramen, an algorithm that produces unbiased treatment effect estimates by leveraging the heterogeneity of multiple data sources without the need to know or learn the underlying causal graph. Notably, Ramen achieves doubly robust identification: it can identify the treatment effect whenever the causal parents of the treatment or those of the outcome are observed, and the node whose parents are observed satisfies an invariance assumption. Empirical evaluations on synthetic and real-world datasets show that our approach outperforms existing methods 1 .

For agents

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

get_harvested_code_for_paper("2503.14459")
get_code_for_paper("2503.14459")
have("2503.14459")

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

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

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

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

Connect an agent — have() is free.