SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2108.12510 · 2021

Pulling Up by the Causal Bootstraps: Causal Data Augmentation for Pre-training Debiasing

arXiv · PDF · Open in the Atlas

Code that ran

14 of 17 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, 1 violated it and 10 have no contract verdict; 2 failures of our instrument; 3 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/2108.12510.json · badge: /api/ran/2108.12510.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
MLforHealth/CausalDA canonical (classifier label)
classifier basis: census
14 ran · 3 no recorded run
FunctionStatusWhere it lives
block_until_running Ran
ran, violated the contract we drafted
MLforHealth/CausalDA/launchers.py
pointer only (licence: MIT); the stored copy get_code serves, from basedrhys/ood-generalization, is pointer only (licence: NOASSERTION) · get_code("0946df67b41ca7e6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from basedrhys/ood-generalization, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

combinations Ran
ran on a synthesized input
MLforHealth/CausalDA/experiments.py
code served (permissive licence) · get_code("ef58194dbb437756")
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 list, 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
from itertools import product

# The function takes a grid parameter which is a dictionary
# where keys are parameter names and values are lists of possible values
# The function then creates all combinations using itertools.product

grid = {
    'learning_rate': [0.001, 0.01],
    'batch_size': [16, 32],
    'num_layers': [2, 3, 4],
    'activation': ['relu', 'tanh']
}

ARGS = {
    'grid': grid
}
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 list, ndim 1, dtype family float — a list 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
conv1x1 Ran
ran; our contract draft was wrong, not the code
MLforHealth/CausalDA/model/resnet_multispectral.py
code served (permissive licence) · get_code("d9def42110729a85")
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 Conv2d. 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)

# The function conv1x1 takes in_planes, out_planes, and stride as parameters
# It returns an nn.Conv2d layer configured for 1x1 convolution
# We need to provide valid integer arguments for these parameters

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
MLforHealth/CausalDA/model/resnet_multispectral.py
code served (permissive licence) · get_code("160bb14bd76201b4")
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 Conv2d. 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)

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1,
    "groups": 1,
    "dilation": 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
cost_fn Ran
ran on a synthesized input
MLforHealth/CausalDA/src/prediction.py
code served (permissive licence) · get_code("820b345e20bfded6")
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 float, 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a batch of logits (output from model)
# Shape: (batch_size=2, num_classes=4)
out = torch.randn(2, 4)

# Create target labels
# Shape: (batch_size=2,) with class indices in range [0, 3]
tar = torch.tensor([0, 2])

# Create class weights for the 4 classes
weighting = torch.tensor([1.0, 1.0, 2.0, 1.0])

ARGS = {
    "out": out,
    "tar": tar,
    "weighting": weighting
}
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 float, 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
cost_fn Ran
ran on a synthesized input
MLforHealth/CausalDA/src/training.py
code served (permissive licence) · get_code("daf19afe2e91d4a5")
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
import torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Create output logits (batch_size=2, num_classes=4)
out = torch.randn(2, 4)

# Create target class indices (batch_size=2)
tar = torch.tensor([0, 2], dtype=torch.long)

# Create class weights (one weight per class, num_classes=4)
weighting = torch.tensor([1.0, 1.5, 2.0, 0.5])

ARGS = {
    "out": out,
    "tar": tar,
    "weighting": weighting
}
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
get_num_jobs Ran
ran, honoured the contract we drafted
MLforHealth/CausalDA/launchers.py
pointer only (licence: MIT); the stored copy get_code serves, from basedrhys/ood-generalization, is pointer only (licence: NOASSERTION) · get_code("501459823473afca")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from basedrhys/ood-generalization, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prediction_analysis Ran
ran on a synthesized input
MLforHealth/CausalDA/src/prediction.py
code served (permissive licence) · get_code("d2d5ec732e91235f")
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 torch
import torch.nn as nn
import numpy as np
from torch.utils.data import DataLoader, TensorDataset

torch.manual_seed(0)

# Create a simple model that accepts data and extras
class SimpleModel(nn.Module):
    def __init__(self, input_dim=4, num_classes=2):
        super(SimpleModel, self).__init__()
        self.fc1 = nn.Linear(input_dim, 8)
        self.fc2 = nn.Linear(8, num_classes)
    
    def forward(self, data, extras=None):
        x = torch.relu(self.fc1(data))
        x = self.fc2(x)
        return x

# Create args object with necessary attributes
class Args:
    def __init__(self, data_type='CelebA_attr'):
        self.data = data_type

# Binary classification case
num_samples = 8
num_features = 4
num_classes = 2
batch_size = 2

# Create synthetic data: [data, target, extras]
data = torch.randn(num_samples, num_features)
targets = torch.randint(0, num_classes, (num_samples,))
extras = torch.randn(num_samples, 1)

dataset = TensorDataset(data, targets, extras)
data_loader = DataLoader(dataset, batch_size=batch_size, shuffle=False)

# Create model
model = SimpleModel(input_dim=num_features, num_classes=num_classes)

# Set up args
args = Args(data_type='CelebA_attr')

# Device
device = torch.device('cpu')

ARGS = {
    'args': args,
    'model': model,
    'device': device,
    'data_loader': data_loader,
    'batch_size': batch_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — 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
random_subset_seq Ran
ran on a synthesized input
MLforHealth/CausalDA/train_env.py
code served (permissive licence) · get_code("ded081dd38c7c24a")
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 int, shape (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 numpy as np

class DummyDataset:
    def __init__(self, size):
        self.size = size
    
    def __len__(self):
        return self.size

ds = DummyDataset(10)
length = 3

ARGS = {
    "ds": ds,
    "length": length
}
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 int, shape (3,) — shape (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
simple_models Ran
ran on a synthesized input
MLforHealth/CausalDA/model/simple_models.py
code served (permissive licence) · get_code("a3ceab17d25e15b2")
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 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
import numpy.random as rand
from sklearn.svm import SVC
from sklearn.neighbors import KNeighborsClassifier
from sklearn.naive_bayes import GaussianNB
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import GridSearchCV
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split, PredefinedSplit
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA

# Set random seed for reproducibility
np.random.seed(42)
rand.seed(42)

# Create small synthetic training data
n_train_samples = 20
n_test_samples = 10
n_features = 4

X_train = np.random.randn(n_train_samples, n_features)
Y_train = np.random.randint(0, 2, n_train_samples)

X_test = np.random.randn(n_test_samples, n_features)
Y_test = np.random.randint(0, 2, n_test_samples)

train_tuple = (X_train, Y_train)
test_tuple = (X_test, Y_test)

ARGS = {
    'm_type': 'svm',
    'para': 'svm',
    'train': train_tuple,
    'test': test_tuple
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
split_dataset Ran
ran on a synthesized input
MLforHealth/CausalDA/train_env.py
code served (permissive licence) · get_code("5c0450ec429262a9")
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
import torch
from torch.utils.data import Dataset, Subset

torch.manual_seed(0)

class SimpleDataset(Dataset):
    def __init__(self, size=10):
        self.size = size
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        return torch.randn(4), idx

ds = SimpleDataset(size=10)
first_frac = 0.6

ARGS = {
    "ds": ds,
    "first_frac": first_frac
}
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 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
train_step Ran
ran on a synthesized input
MLforHealth/CausalDA/src/training.py
code served (permissive licence) · get_code("c146534ad54e89c3")
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 torch
import torch.nn as nn
import torch.optim as optim

torch.manual_seed(0)

# Build a minimal model that accepts (data, extras) and outputs logits
class MinimalModel(nn.Module):
    def __init__(self, input_dim, extras_dim, num_classes):
        super().__init__()
        self.fc1 = nn.Linear(input_dim + extras_dim, num_classes)
    
    def forward(self, data, extras):
        if extras is not None:
            combined = torch.cat([data, extras], dim=1)
        else:
            combined = data
        return self.fc1(combined)

# Create model
model = MinimalModel(input_dim=4, extras_dim=3, num_classes=5)

# Create tiny tensors
batch_size = 2
data = torch.randn(batch_size, 4)  # batch_size x 4
target = torch.randint(0, 5, (batch_size,))  # batch_size, values in [0, 4]
extras = torch.randn(batch_size, 3)  # batch_size x 3

# Create optimizer
optimizer = optim.SGD(model.parameters(), lr=0.01)

# Create minimal writer (just needs to exist, not used in function body)
class MinimalWriter:
    pass

writer = MinimalWriter()

# Arguments dict
ARGS = {
    'data': data,
    'target': target,
    'extras': extras,
    'args': {},
    'model': model,
    'writer': writer,
    'device': torch.device('cpu'),
    'optimizer': optimizer,
    'batch_size': batch_size
}
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 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
validation Ran
ran on a synthesized input
MLforHealth/CausalDA/src/validation.py
code served (permissive licence) · get_code("85d5efbf0175a369")
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 torch
import torch.nn as nn
import numpy as np
from torch.utils.data import DataLoader, TensorDataset

torch.manual_seed(0)

# Create a simple model
class SimpleModel(nn.Module):
    def __init__(self, input_dim, num_classes):
        super(SimpleModel, self).__init__()
        self.fc = nn.Linear(input_dim, num_classes)
    
    def forward(self, data, extras=None):
        return self.fc(data)

# Create args object
class Args:
    def __init__(self, data_type):
        self.data = data_type

# Create model
model = SimpleModel(input_dim=4, num_classes=3)

# Create device
device = torch.device('cpu')

# Create data loader
batch_size = 2
num_samples = 6
input_dim = 4
num_classes = 3

# Create dummy data
data = torch.randn(num_samples, input_dim)
targets = torch.randint(0, num_classes, (num_samples,))
extras = torch.randn(num_samples, 2)

dataset = TensorDataset(data, targets, extras)
data_loader = DataLoader(dataset, batch_size=batch_size, shuffle=False)

# Create args for multi-class case
args = Args(data_type='NIH_multi')

ARGS = {
    'args': args,
    'model': model,
    'device': device,
    'data_loader': data_loader,
    'batch_size': batch_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — 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
wilds_get_merged_dataset Ran
ran on a synthesized input
MLforHealth/CausalDA/train_env.py
code served (permissive licence) · get_code("cac3223f3d4a4a25")
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 torch
import numpy as np
import pandas as pd

torch.manual_seed(0)

# Create a mock split_n_label function that returns a DataFrame
def split_n_label(split, domains):
    # Create a simple DataFrame with label counts indexed by domain
    # This function is called with split and domains parameters
    n_samples = 5
    labels = np.random.randint(0, 3, size=n_samples)
    df = pd.DataFrame({'labels': labels})
    return df

# Create a mock WildsDataset class
class MockWildsDataset:
    def __init__(self, labels, causal_type, data_type):
        self.labels = labels
        self.causal_type = causal_type
        self.data_type = data_type
    
    def __repr__(self):
        return f"MockWildsDataset(labels_shape={self.labels.shape}, causal_type={self.causal_type}, data_type={self.data_type})"

# Define arguments
ARGS = {
    'WildsDataset': MockWildsDataset,
    'split_n_label': split_n_label,
    'd1': ['domain1'],
    'd2': ['domain2'],
    'split': 'train'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, 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
get_hparams Not yet run
unverified (harvested, no recorded run)
MLforHealth/CausalDA/experiments.py
code served (permissive licence) · get_code("1333b4e802eba4f0")
How it ran

no invocation recorded.

get_script_name Not yet run
unverified (harvested, no recorded run)
MLforHealth/CausalDA/experiments.py
code served (permissive licence) · get_code("352f597b6a390f3a")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
MLforHealth/CausalDA/src/training.py
code served (permissive licence) · get_code("9cbb9737a804d9ab")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 6 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 6 the same month, 4 later) and 11 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
conv1x1 431 other papers
141 dated earlier, 7 the same month, 277 later, 5 same year, order not determinable, 1 undated · 38 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1506.01186 (2015-06)
Cyclical Learning Rates for Training Neural Networks
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
and 428 more not named here
conv3x3 312 other papers
84 dated earlier, 6 the same month, 218 later, 3 same year, order not determinable, 1 undated · 31 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
and 309 more not named here
block_until_running 2 other papers
1 the same month, 1 later
2108.12250 (2021-08)
A comparison of approaches to improve worst-case predictive model performance over patient subpopulations
2308.04431 (2023-08)
When More is Less: Incorporating Additional Datasets Can Hurt Performance By Introducing Spurious Correlations
get_num_jobs 2 other papers
1 the same month, 1 later
2108.12250 (2021-08)
A comparison of approaches to improve worst-case predictive model performance over patient subpopulations
2308.04431 (2023-08)
When More is Less: Incorporating Additional Datasets Can Hurt Performance By Introducing Spurious Correlations
get_hparams 1 other paper
1 the same month
2108.12250 (2021-08)
A comparison of approaches to improve worst-case predictive model performance over patient subpopulations
get_script_name 1 other paper
1 the same month
2108.12250 (2021-08)
A comparison of approaches to improve worst-case predictive model performance over patient subpopulations

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

Machine learning models achieve state-of-the-art performance on many supervised learning tasks. However, prior evidence suggests that these models may learn to rely on shortcut biases or spurious correlations (intuitively, correlations that do not hold in the test as they hold in train) for good predictive performance. Such models cannot be trusted in deployment environments to provide accurate predictions. While viewing the problem from a causal lens is known to be useful, the seamless integration of causation techniques into machine learning pipelines remains cumbersome and expensive. In this work, we study and extend a causal pre-training debiasing technique called causal bootstrapping (CB) under five practical confounded-data generation-acquisition scenarios (with known and unknown confounding). Under these settings, we systematically investigate the effect of confounding bias on deep learning model performance, demonstrating their propensity to rely on shortcut biases when these biases are not properly accounted for. We demonstrate that such a causal pre-training technique can significantly outperform existing base practices to mitigate confounding bias on real-world domain generalization benchmarking tasks. This systematic investigation underlines the importance of accounting for the underlying data-generating mechanisms and fortifying data-preprocessing pipelines with a causal framework to develop methods robust to confounding biases.

For agents

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

get_harvested_code_for_paper("2108.12510")
get_code_for_paper("2108.12510")
have("2108.12510")

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

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

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

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

Connect an agent — have() is free.