SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.09723 · 2022

Robust and Efficient Medical Imaging with Self-Supervision

arXiv · PDF · Open in the Atlas

Code that ran

20 of 28 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; 0 honoured the contract we drafted, 1 violated it and 13 have no contract verdict; 6 failures of our instrument; 8 no recorded run), measured 2026-11-22; 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/2205.09723.json · badge: /api/ran/2205.09723.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
google-research/big_transfer canonical (classifier label)
classifier basis not recorded on the link
11 ran · 5 no recorded run
google-research/medical-ai-research-foundations community (classifier label)
classifier basis not recorded on the link
9 ran · 3 no recorded run
FunctionStatusWhere it lives
add_contrastive_loss Ran
ran; our contract draft was wrong, not the code
google-research/medical-ai-research-foundations/objective.py
code served (permissive licence) · get_code("8924ee1d1cde05c4")
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. 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 tensorflow.compat.v1 as tf
import numpy as np

tf.disable_v2_behavior()

# Create a simple TPUContext stand-in class
class TPUContext:
    def __init__(self, num_replicas=1):
        self.num_replicas = num_replicas

# Create test data
# hidden should be shape (bsz, dim) where bsz is batch size
# The function splits it in half along dimension 0, so we need even batch size
batch_size = 4
hidden_dim = 8

# Create hidden tensor: shape (batch_size, hidden_dim)
# Since the function splits on dimension 0, we need batch_size to be even
hidden_np = np.random.randn(batch_size, hidden_dim).astype(np.float32)
hidden_tensor = tf.constant(hidden_np)

# Test without TPU context (simpler case)
tpu_context = None

ARGS = {
    "hidden": hidden_tensor,
    "hidden_norm": True,
    "temperature": 1.0,
    "tpu_context": tpu_context,
    "weights": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, tensorflow — 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
add_name_prefix Ran
ran on a synthesized input
google-research/big_transfer/bit_tf2/models.py
code served (permissive licence) · get_code("113df01dadeca915")
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 torch

torch.manual_seed(0)

ARGS = {
    'name': 'layer_1',
    'prefix': 'model'
}
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 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
add_supervised_loss Ran
ran on a synthesized input
google-research/medical-ai-research-foundations/objective.py
code served (permissive licence) · get_code("8af989f02c354e14")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf
import numpy as np

tf.disable_v2_behavior()

# Create small tensors for the function
batch_size = 2
num_classes = 4

# labels: one-hot encoded labels, shape [batch_size, num_classes]
labels = tf.constant(
    [[1.0, 0.0, 0.0, 0.0],
     [0.0, 1.0, 0.0, 0.0]], 
    dtype=tf.float32
)

# logits: raw model outputs, shape [batch_size, num_classes]
logits = tf.constant(
    [[2.5, 1.2, 0.3, 0.1],
     [0.1, 3.2, 0.5, 0.2]], 
    dtype=tf.float32
)

# weights: per-sample weights, shape [batch_size]
weights = tf.constant([1.0, 1.0], dtype=tf.float32)

ARGS = {
    "labels": labels,
    "logits": logits,
    "weights": weights,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
conv1x1 Ran
ran; our contract draft was wrong, not the code
google-research/big_transfer/bit_pytorch/models.py
code served (permissive licence) · get_code("ee80cf467065076b")
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 StdConv2d. 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 = {
    'cin': 3,
    'cout': 16,
    'stride': 1,
    'bias': False,
}
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 StdConv2d — a StdConv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a StdConv2d 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
google-research/big_transfer/bit_pytorch/models.py
code served (permissive licence) · get_code("f01b8d3901f0b289")
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 StdConv2d. 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 = {
    'cin': 3,
    'cout': 16,
    'stride': 1,
    'groups': 1,
    'bias': False,
}
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 StdConv2d — a StdConv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a StdConv2d 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
dropblock Ran
ran; our contract draft was wrong, not the code
google-research/medical-ai-research-foundations/resnet.py
code served (permissive licence) · get_code("a068248c1b6c4117")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf
import numpy as np

tf.disable_v2_behavior()

# Create a small input tensor with shape [batch, channels, height, width]
# Using batch=2, channels=3, height=4, width=4 (square spatial dims required)
batch_size = 2
channels = 3
spatial_size = 4

net = tf.constant(
    np.random.randn(batch_size, channels, spatial_size, spatial_size).astype(np.float32)
)

is_training = True
keep_prob = 0.9
dropblock_size = 2
data_format = 'channels_first'

ARGS = {
    'net': net,
    'is_training': is_training,
    'keep_prob': keep_prob,
    'dropblock_size': dropblock_size,
    'data_format': data_format,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
equalize_histogram_fn Ran
ran on a synthesized input
google-research/medical-ai-research-foundations/data_util.py
code served (permissive licence) · get_code("6cc1fe250eeb4811")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf
import numpy as np

tf.disable_v2_behavior()

# Create a small RGB image tensor
# Shape: (height, width, channels) = (4, 3, 3) for RGB
image_data = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8).astype(np.float32)
image_tensor = tf.constant(image_data / 255.0, dtype=tf.float32)

ARGS = {
    "image": image_tensor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
fixed_padding Ran
ran on a synthesized input
google-research/big_transfer/bit_jax/models.py
code served (permissive licence) · get_code("d65ebdb640d62fc2")
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 4, dtype family float, shape (2, 6, 6, 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 jax
import jax.numpy as jnp

# The function expects:
# - x: a JAX array with shape (batch, height, width, channels)
# - kernel_size: an integer

# Create a small input tensor with shape (batch=2, height=4, width=4, channels=3)
x = jnp.ones((2, 4, 4, 3))

# kernel_size should be an integer
kernel_size = 3

ARGS = {
    "x": x,
    "kernel_size": kernel_size,
}
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 4, dtype family float, shape (2, 6, 6, 3) — shape (2, 6, 6, 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
fixed_padding Ran
ran; our contract draft was wrong, not the code
google-research/medical-ai-research-foundations/resnet.py
code served (permissive licence) · get_code("b1b73febd494c9b7")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf

tf.disable_v2_behavior()

# Create a small tensor with shape [batch, channels, height, width] for channels_first
batch_size = 2
channels = 3
height = 4
width = 5

inputs_channels_first = tf.constant(
    [[[[1.0, 2.0, 3.0, 4.0, 5.0],
       [6.0, 7.0, 8.0, 9.0, 10.0],
       [11.0, 12.0, 13.0, 14.0, 15.0],
       [16.0, 17.0, 18.0, 19.0, 20.0]],
      [[21.0, 22.0, 23.0, 24.0, 25.0],
       [26.0, 27.0, 28.0, 29.0, 30.0],
       [31.0, 32.0, 33.0, 34.0, 35.0],
       [36.0, 37.0, 38.0, 39.0, 40.0]],
      [[41.0, 42.0, 43.0, 44.0, 45.0],
       [46.0, 47.0, 48.0, 49.0, 50.0],
       [51.0, 52.0, 53.0, 54.0, 55.0],
       [56.0, 57.0, 58.0, 59.0, 60.0]]],
     [[[61.0, 62.0, 63.0, 64.0, 65.0],
       [66.0, 67.0, 68.0, 69.0, 70.0],
       [71.0, 72.0, 73.0, 74.0, 75.0],
       [76.0, 77.0, 78.0, 79.0, 80.0]],
      [[81.0, 82.0, 83.0, 84.0, 85.0],
       [86.0, 87.0, 88.0, 89.0, 90.0],
       [91.0, 92.0, 93.0, 94.0, 95.0],
       [96.0, 97.0, 98.0, 99.0, 100.0]],
      [[101.0, 102.0, 103.0, 104.0, 105.0],
       [106.0, 107.0, 108.0, 109.0, 110.0],
       [111.0, 112.0, 113.0, 114.0, 115.0],
       [116.0, 117.0, 118.0, 119.0, 120.0]]]],
    dtype=tf.float32
)

kernel_size = 3

ARGS = {
    'inputs': inputs_channels_first,
    'kernel_size': kernel_size,
    'data_format': 'channels_first'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
get_mixup Ran
ran on a synthesized input
google-research/big_transfer/bit_hyperrule.py
code served (permissive licence) · get_code("7d63034d0bfadd78")
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 numpy as np

torch.manual_seed(0)

# The function get_mixup takes dataset_size as a parameter
# It returns 0.0 if dataset_size < 20000, else 0.1
# We need to construct a valid dataset_size argument

# Test with a small dataset size (less than 20000)
dataset_size_small = 15000

# Test with a large dataset size (>= 20000)
dataset_size_large = 25000

# We can use either one; let's use the large one to test the else branch
ARGS = {
    "dataset_size": 25000
}
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 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
get_resolution Ran
ran on a synthesized input
google-research/big_transfer/bit_hyperrule.py
code served (permissive licence) · get_code("a933bb17fdb8ebb4")
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 int; 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

torch.manual_seed(0)

# The function takes original_resolution as a parameter
# It expects a tuple or sequence with at least 2 elements (H, W)
# It accesses original_resolution[0] and original_resolution[1]
# and performs multiplication and comparison operations

ARGS = {
    "original_resolution": (100, 100)
}
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 int — 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_resolution_from_dataset Ran
ran on a synthesized input
google-research/big_transfer/bit_hyperrule.py
code served (permissive licence) · get_code("53256b67d70b0daf")
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 int; 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

ARGS = {
    'dataset': 'cifar10'
}
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 int — 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
group_normalize Ran
ran on a synthesized input
google-research/big_transfer/bit_tf2/normalization.py
code served (permissive licence) · get_code("65a7c9919024b795")
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 EagerTensor, ndim 4, dtype family float, shape (2, 3, 4, 8) 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 tensorflow.compat.v2 as tf
import numpy as np

tf.enable_v2_behavior()

# Create a small batch of data in NHWC format
# N=2 (batch), H=3, W=4, C=8 (channels)
batch_size = 2
height = 3
width = 4
num_channels = 8

x = tf.constant(
    np.random.randn(batch_size, height, width, num_channels).astype(np.float32)
)

# gamma and beta must have shape (C,) - one learnable parameter per channel
gamma = tf.constant(np.ones(num_channels, dtype=np.float32))
beta = tf.constant(np.zeros(num_channels, dtype=np.float32))

# num_groups must divide num_channels
# Using num_groups=4, so group_size = 8/4 = 2
num_groups = 4

ARGS = {
    'x': x,
    'gamma': gamma,
    'beta': beta,
    'num_groups': num_groups,
    'group_size': None,
    'eps': 1e-05,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 3, 4, 8) — shape (2, 3, 4, 8) 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
pad_to_batch Ran
ran on a synthesized input
google-research/medical-ai-research-foundations/data.py
code served (permissive licence) · get_code("0c26c80b6286f5ec")
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 DatasetV1Adapter. 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 tensorflow.compat.v1 as tf
import numpy as np

tf.disable_v2_behavior()

# Create a simple dataset with tensors of shape (2, 4)
# The dataset should yield individual elements that will be batched
def create_dataset():
    # Create sample data: 3 samples, each with shape (4,)
    data = np.array([[1.0, 2.0, 3.0, 4.0],
                     [5.0, 6.0, 7.0, 8.0],
                     [9.0, 10.0, 11.0, 12.0]], dtype=np.float32)
    
    # Create a tf.data.Dataset from the numpy array
    dataset = tf.data.Dataset.from_tensor_slices(data)
    return dataset

dataset = create_dataset()
batch_size = 4

ARGS = {
    'dataset': dataset,
    '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, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DatasetV1Adapter — a DatasetV1Adapter output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DatasetV1Adapter 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
random_apply Ran
ran on a synthesized input
google-research/medical-ai-research-foundations/data_util.py
code served (permissive licence) · get_code("d04f187058cb2a9c")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf

tf.disable_v2_behavior()

def simple_transform(x):
    """Simple transformation function that doubles the input."""
    return x * 2

# Create a small tensor
x = tf.constant([1.0, 2.0, 3.0, 4.0], dtype=tf.float32)

# Define probability
p = 0.7

# Define function to apply
func = simple_transform

ARGS = {
    "func": func,
    "p": p,
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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_brightness Ran
ran on a synthesized input
google-research/medical-ai-research-foundations/data_util.py
code served (permissive licence) · get_code("6c4f36fab52ddbe9")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf
import numpy as np

# Disable eager execution for TensorFlow v1 compatibility
tf.disable_eager_execution()

# Create a small test image tensor
# Using shape (2, 3, 4, 3) for a batch of 2 images with height 3, width 4, and 3 channels
image_data = np.random.rand(2, 3, 4, 3).astype(np.float32)
image_tensor = tf.constant(image_data)

# Set max_delta to a reasonable value for brightness adjustment
max_delta = 0.3

ARGS = {
    "image": image_tensor,
    "max_delta": max_delta
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
setup_logger Ran
ran on a synthesized input
google-research/big_transfer/bit_common.py
code served (permissive licence) · get_code("12323f0640436acc")
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 Logger. 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 logging.config
import os
import tempfile

# Create a temporary directory for logging
temp_logdir = tempfile.mkdtemp()

# Create a simple args class with the required attributes
class Args:
    def __init__(self, logdir, name):
        self.logdir = logdir
        self.name = name

ARGS = {
    "args": Args(logdir=temp_logdir, name="test_run")
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
standardize Ran
ran on a synthesized input
google-research/big_transfer/bit_jax/models.py
code served (permissive licence) · get_code("c272f024d815d59d")
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 2, dtype family float, shape (2, 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 jax.numpy as jnp

# Create a small test array
x = jnp.array([[1.0, 2.0, 3.0, 4.0],
                [5.0, 6.0, 7.0, 8.0]])

# Define parameters for the standardize function
axis = 1  # standardize along the feature dimension
eps = 1e-6  # small epsilon for numerical stability

ARGS = {
    "x": x,
    "axis": axis,
    "eps": eps
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
tf2th Ran
ran, violated the contract we drafted
google-research/big_transfer/bit_pytorch/models.py
code served (permissive licence) · get_code("7023eb86801bb3a3")
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 4, dtype family float, shape (6, 5, 3, 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 torch
import numpy as np

torch.manual_seed(0)

# Create a 4D numpy array in HWIO format (Height, Width, Input channels, Output channels)
# Using distinct dimensions: H=3, W=4, I=5, O=6
conv_weights = np.random.randn(3, 4, 5, 6).astype(np.float32)

ARGS = {
    "conv_weights": conv_weights
}
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 Tensor, ndim 4, dtype family float, shape (6, 5, 3, 4) — shape (6, 5, 3, 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
tpu_cross_replica_concat Ran
ran; our contract draft was wrong, not the code
google-research/medical-ai-research-foundations/objective.py
code served (permissive licence) · get_code("7aac0de5d1568953")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf

tf.disable_v2_behavior()

class TPUContext:
    """Stand-in TPUContext class with required attributes."""
    def __init__(self, num_replicas=1):
        self.num_replicas = num_replicas

# Create a small tensor (batch=2, features=4)
tensor = tf.constant([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], dtype=tf.float32)

# Create a TPUContext with num_replicas > 1 to exercise the main logic
tpu_context = TPUContext(num_replicas=2)

ARGS = {
    "tensor": tensor,
    "tpu_context": tpu_context,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor 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
create_dat Not yet run
unverified (harvested, no recorded run)
google-research/big_transfer/bit_pytorch/lbtoolbox.py
code served (permissive licence) · get_code("d38eeb648f68f197")
How it ran

no invocation recorded.

find_fewshot_indices Not yet run
unverified (harvested, no recorded run)
google-research/big_transfer/bit_pytorch/fewshot.py
code served (permissive licence) · get_code("eec365515fbb2119")
How it ran

no invocation recorded.

find_indices_loader Not yet run
unverified (harvested, no recorded run)
google-research/big_transfer/bit_pytorch/fewshot.py
code served (permissive licence) · get_code("55be7cb60b3a523c")
How it ran

no invocation recorded.

get_train_steps Not yet run
unverified (harvested, no recorded run)
google-research/medical-ai-research-foundations/model_util.py
code served (permissive licence) · get_code("14ec8ff095316493")
How it ran

no invocation recorded.

learning_rate_schedule Not yet run
unverified (harvested, no recorded run)
google-research/medical-ai-research-foundations/model_util.py
code served (permissive licence) · get_code("fb45bd9f63767265")
How it ran

no invocation recorded.

linear_layer Not yet run
unverified (harvested, no recorded run)
google-research/medical-ai-research-foundations/model_util.py
code served (permissive licence) · get_code("c2be9d262aacedc9")
How it ran

no invocation recorded.

load_dat Not yet run
unverified (harvested, no recorded run)
google-research/big_transfer/bit_pytorch/lbtoolbox.py
code served (permissive licence) · get_code("12109eac56e48b6b")
How it ran

no invocation recorded.

sample_subset Not yet run
unverified (harvested, no recorded run)
google-research/big_transfer/input_pipeline_tf2_or_jax.py
code served (permissive licence) · get_code("1614afcca20ebedf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 28 samples lifted from this paper's linked repositories, 28 carry a function identity and 0 do not. Of the 28 distinct functions with an identity, 19 are also present in other papers whose code we hold (18 with at least one paper dated earlier, 1 the same month, 8 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.

FunctionAlso present inEarliest-datedOthers named
conv1x1 33 other papers
16 dated earlier, 17 later · 3 only as an assembly brick
1912.11370 (2019-12)
Big Transfer (BiT): General Visual Representation Learning
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2102.04306 (2021-02)
TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation
and 30 more not named here
conv3x3 33 other papers
16 dated earlier, 17 later · 3 only as an assembly brick
1912.11370 (2019-12)
Big Transfer (BiT): General Visual Representation Learning
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2102.04306 (2021-02)
TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation
and 30 more not named here
tf2th 17 other papers
7 dated earlier, 10 later
1912.11370 (2019-12)
Big Transfer (BiT): General Visual Representation Learning
2104.02610 (2021-04)
On the Robustness of Vision Transformers to Adversarial Examples
2106.01127 (2021-06)
Towards Robust Classification Model by Counterfactual and Invariant Data Generation
and 14 more not named here
create_dat 4 other papers
3 dated earlier, 1 later
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
2111.09805 (2021-11)
DICE: Leveraging Sparsification for Out-of-Distribution Detection
2204.08491 (2022-04)
Active Learning Helps Pretrained Models Learn the Intended Task
and 1 more not named here
get_mixup 4 other papers
3 dated earlier, 1 later
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
2111.09805 (2021-11)
DICE: Leveraging Sparsification for Out-of-Distribution Detection
2204.08491 (2022-04)
Active Learning Helps Pretrained Models Learn the Intended Task
and 1 more not named here
get_train_steps 4 other papers
3 dated earlier, 1 same year, order not determinable
2006.05576 (2020-06)
Self-supervised Learning from a Multi-view Perspective
2006.10029 (2020-06)
Big Self-Supervised Models are Strong Semi-Supervised Learners
2109.12909 (2021-09)
Compressive Visual Representations
and 1 more not named here
load_dat 4 other papers
3 dated earlier, 1 later
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
2111.09805 (2021-11)
DICE: Leveraging Sparsification for Out-of-Distribution Detection
2204.08491 (2022-04)
Active Learning Helps Pretrained Models Learn the Intended Task
and 1 more not named here
random_apply 4 other papers
4 dated earlier
2006.05576 (2020-06)
Self-supervised Learning from a Multi-view Perspective
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2108.10310 (2021-08)
Ranking Models in Unlabeled New Environments
and 1 more not named here
fixed_padding 3 other papers
3 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1907.10701 (2019-07)
Benchmarking TPU, GPU, and CPU Platforms for Deep Learning
2006.05576 (2020-06)
Self-supervised Learning from a Multi-view Perspective
get_resolution 3 other papers
2 dated earlier, 1 later
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
2111.09805 (2021-11)
DICE: Leveraging Sparsification for Out-of-Distribution Detection
2303.13995 (2023-03)
LINe: Out-of-Distribution Detection by Leveraging Important Neurons
get_resolution_from_dataset 3 other papers
2 dated earlier, 1 later
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
2111.09805 (2021-11)
DICE: Leveraging Sparsification for Out-of-Distribution Detection
2303.13995 (2023-03)
LINe: Out-of-Distribution Detection by Leveraging Important Neurons
setup_logger 2 other papers
2 dated earlier
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
2204.08491 (2022-04)
Active Learning Helps Pretrained Models Learn the Intended Task
tpu_cross_replica_concat 2 other papers
2 dated earlier
2002.05709 (2020-02)
A Simple Framework for Contrastive Learning of Visual Representations
2006.05576 (2020-06)
Self-supervised Learning from a Multi-view Perspective
add_contrastive_loss 1 other paper
1 dated earlier
2002.05709 (2020-02)
A Simple Framework for Contrastive Learning of Visual Representations
add_supervised_loss 1 other paper
1 dated earlier
2006.05576 (2020-06)
Self-supervised Learning from a Multi-view Perspective
dropblock 1 other paper
1 dated earlier
2006.05576 (2020-06)
Self-supervised Learning from a Multi-view Perspective
learning_rate_schedule 1 other paper
1 dated earlier
2006.05576 (2020-06)
Self-supervised Learning from a Multi-view Perspective
pad_to_batch 1 other paper
1 dated earlier
2006.05576 (2020-06)
Self-supervised Learning from a Multi-view Perspective
standardize 1 other paper
1 the same month
2205.01580 (2022-05)
Better plain ViT baselines for ImageNet-1k

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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent progress in Medical Artificial Intelligence (AI) has delivered systems that can reach clinical expert level performance. However, such systems tend to demonstrate sub-optimal "out-of-distribution" performance when evaluated in clinical settings different from the training environment. A common mitigation strategy is to develop separate systems for each clinical setting using site-specific data [1]. However, this quickly becomes impractical as medical data is time-consuming to acquire and expensive to annotate [2]. Thus, the problem of "data-efficient generalization" presents an ongoing difficulty for Medical AI development. Although progress in representation learning shows promise, their benefits have not been rigorously studied, specifically for out-of-distribution settings. To meet these challenges, we present REMEDIS, a unified representation learning strategy to improve robustness and data-efficiency of medical imaging AI. REMEDIS uses a generic combination of large-scale supervised transfer learning with self-supervised learning and requires little task-specific customization. We study a diverse range of medical imaging tasks and simulate three realistic application scenarios using retrospective data. REMEDIS exhibits significantly improved in-distribution performance with up to 11.5% relative improvement in diagnostic accuracy over a strong supervised baseline. More importantly, our strategy leads to strong data-efficient generalization of medical imaging AI, matching strong supervised baselines using between 1% to 33% of retraining data across tasks. These results suggest that REMEDIS can significantly accelerate the life-cycle of medical imaging AI development thereby presenting an important step forward for medical imaging AI to deliver broad impact.

For agents

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

get_harvested_code_for_paper("2205.09723")
get_code_for_paper("2205.09723")
have("2205.09723")

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

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

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

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

Connect an agent — have() is free.