SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.02372 · ICLR · 2025

Learning General-Purpose Biomedical Volume Representations using Randomized Synthesis

Neel Dey, Polina Golland, Mengwei Ren, Clinton Wang, P Grant, Benjamin Billot, Hallee Wong, Adrian Dalca

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 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, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2411.02372.json · badge: /api/ran/2411.02372.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
neel-dey/anatomix canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
FunctionStatusWhere it lives
dice_score Ran
ran, honoured the contract we drafted
neel-dey/anatomix/anatomix/registration/registration_infrastructure/metrics.py
code served (permissive licence) · get_code("18f1c960100cfa68")
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 numpy as np
from sklearn.metrics import f1_score

def dice_score(fixed_seg, moved_seg):
    """Mean Dice over nonzero labels present in fixed_seg; NaN if none exist."""
    gt = np.asarray(fixed_seg).astype(np.int64).flatten()
    pred = np.asarray(moved_seg).astype(np.int64).flatten()
    labels = [int(v) for v in np.unique(gt) if v != 0]
    if not labels:
        return float('nan')
    return float(f1_score(gt, pred, labels=labels, average='macro', zero_division=0))

# Create sample segmentation arrays
# fixed_seg: ground truth with multiple nonzero labels
fixed_seg = np.array([
    [0, 1, 2, 0],
    [1, 1, 2, 0],
    [0, 2, 2, 1]
]).astype(np.int64)

# moved_seg: predicted segmentation
moved_seg = np.array([
    [0, 1, 2, 0],
    [1, 1, 1, 0],
    [0, 2, 2, 1]
]).astype(np.int64)

ARGS = {
    'fixed_seg': fixed_seg,
    'moved_seg': moved_seg
}
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 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_actvn_layer Ran
ran; our contract draft was wrong, not the code
neel-dey/anatomix/anatomix/model/network.py
code served (permissive licence) · get_code("5878f9944f0201b5")
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 ReLU. 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 get_actvn_layer takes a single parameter 'activation'
# which is a string specifying the type of activation function.
# It returns the corresponding PyTorch activation layer or None.

# Test with different activation types
ARGS = {
    'activation': 'relu'
}
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 ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_norm_layer Ran
ran; our contract draft was wrong, not the code
neel-dey/anatomix/anatomix/model/network.py
code served (permissive licence) · get_code("f40e93b2cc545a98")
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 partial. 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
from functools import partial

torch.manual_seed(0)

# Test case 1: batch normalization with 2 dimensions
ARGS_1 = {
    'ndims': 2,
    'norm': 'batch',
    'eps': 1e-05
}

# Test case 2: instance normalization with 3 dimensions
ARGS_2 = {
    'ndims': 3,
    'norm': 'instance',
    'eps': 1e-05
}

# Test case 3: instance affine normalization with 1 dimension
ARGS_3 = {
    'ndims': 1,
    'norm': 'instance_affine',
    'eps': 1e-02
}

# Test case 4: no normalization
ARGS_4 = {
    'ndims': 2,
    'norm': 'none',
    'eps': 1e-05
}

# Primary test case using batch norm 2d (most common case)
ARGS = {
    'ndims': 2,
    'norm': 'batch',
    'eps': 1e-05
}
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 partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_train_transforms Ran
ran; our contract draft was wrong, not the code
neel-dey/anatomix/anatomix/segmentation/segmentation_utils.py
code served (permissive licence) · get_code("126f85054080d339")
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 Compose. 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

# The function only takes crop_size as a parameter
# It's an integer that specifies the spatial dimension for cropping

ARGS = {
    "crop_size": 32
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
monai, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
keypoint_metrics Ran
ran; our contract draft was wrong, not the code
neel-dey/anatomix/anatomix/registration/registration_infrastructure/metrics.py
code served (permissive licence) · get_code("8a2db06633d512f1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create small sample keypoint arrays with shape (K, 3)
# K=4 keypoints, 3 coordinates each (x, y, z)
np.random.seed(0)

warped = np.random.randn(4, 3).astype(np.float64)
target = np.random.randn(4, 3).astype(np.float64)
source = np.random.randn(4, 3).astype(np.float64)

ARGS = {
    'warped': warped,
    'target': target,
    'source': source,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
minmax_normalize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neel-dey/anatomix/anatomix/registration/registration_infrastructure/features.py
code served (permissive licence) · get_code("433b1729c7367b19")
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, 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

torch.manual_seed(0)

# Create a small tensor with finite values for normalization
arr = torch.randn(2, 4)

# Define ARGS with all parameters
ARGS = {
    'arr': arr,
    'minclip': -1.0,
    'maxclip': 1.0,
    'name': 'TestImage'
}
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, 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
normalize_features Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neel-dey/anatomix/anatomix/registration/registration_infrastructure/features.py
code served (permissive licence) · get_code("ab04d4ab57907df5")
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, 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 torch.nn.functional as F

torch.manual_seed(0)

# Create a small feature tensor: shape (batch=2, channels=4)
# Each row represents a voxel, each column a channel
feats = torch.randn(2, 4)

# Test all three normalization methods
methods = ['l2', 'standardized', 'none']

# Create ARGS dict for each method - we'll test with 'l2' as the primary case
ARGS = {
    'feats': feats,
    'method': 'l2'
}
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, 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
read_keypoints Ran
ran; our contract draft was wrong, not the code
neel-dey/anatomix/anatomix/registration/registration_infrastructure/io_utils.py
code served (permissive licence) · get_code("35bdeca6e0664e02")
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 tempfile
import csv
import os

# Create a temporary CSV file with valid keypoint data
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, "keypoints.csv")

# Write a valid keypoint CSV with x, y, z columns
with open(csv_path, 'w', newline='') as f:
    writer = csv.DictWriter(f, fieldnames=['x', 'y', 'z', 'extra_column'])
    writer.writeheader()
    writer.writerow({'x': '1.5', 'y': '2.5', 'z': '3.5', 'extra_column': 'data1'})
    writer.writerow({'x': '4.2', 'y': '5.1', 'z': '6.3', 'extra_column': 'data2'})
    writer.writerow({'x': '7.8', 'y': '8.9', 'z': '9.1', 'extra_column': 'data3'})

ARGS = {
    'path': csv_path
}
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 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
read_pairs_csv Ran
ran; our contract draft was wrong, not the code
neel-dey/anatomix/anatomix/registration/registration_infrastructure/io_utils.py
code served (permissive licence) · get_code("46eb267d31d69596")
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 csv
import os
import tempfile

# Create a temporary CSV file with test data
with tempfile.NamedTemporaryFile(mode='w', suffix='.csv', delete=False, newline='') as f:
    csv_path = f.name
    writer = csv.writer(f)
    # Write header with required 'fixed' and 'moving' columns plus optional ones
    writer.writerow(['fixed', 'moving', 'fixed_mask', 'moving_mask', 'metadata'])
    # Write sample rows with relative paths and absolute paths
    writer.writerow(['data/fixed1.nii.gz', 'data/moving1.nii.gz', 'data/mask1.nii.gz', '', 'sample1'])
    writer.writerow(['data/fixed2.nii.gz', 'data/moving2.nii.gz', '', 'data/mask2.nii.gz', 'sample2'])
    # Write row with absolute path
    writer.writerow(['/abs/fixed3.nii.gz', 'data/moving3.nii.gz', '', '', 'sample3'])

ARGS = {
    'path': csv_path
}
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 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
strip_nifti_ext Ran
ran; our contract draft was wrong, not the code
neel-dey/anatomix/anatomix/registration/registration_infrastructure/io_utils.py
code served (permissive licence) · get_code("6f93979ea265b74a")
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 os

def strip_nifti_ext(path):
    """Return the file stem of ``path`` with a ``.nii``/``.nii.gz`` suffix removed."""
    name = os.path.basename(path)
    if name.endswith('.nii.gz'):
        return name[:-7]
    if name.endswith('.nii'):
        return name[:-4]
    return os.path.splitext(name)[0]


ARGS = {
    'path': '/home/user/data/brain_scan.nii.gz'
}
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 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
count_folds Not yet run
unverified (harvested, no recorded run)
neel-dey/anatomix/anatomix/registration/registration_infrastructure/metrics.py
code served (permissive licence) · get_code("f5092f9ea7dbbbb9")
How it ran

no invocation recorded.

Also present in other papers' code

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

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

Current volumetric biomedical foundation models struggle to generalize as public 3D datasets are small and do not cover the broad diversity of medical procedures, conditions, anatomical regions, and imaging protocols. We address this by creating a representation learning method that instead anticipates strong domain shifts at training time itself. We first propose a data engine that synthesizes highly variable training samples that would enable generalization to new biomedical contexts. To then train a single 3D network for any voxel-level task, we develop a contrastive learning method that pretrains the network to be stable against nuisance imaging variation simulated by the data engine, a key inductive bias for generalization. This network's features can be used as robust representations of input images for downstream tasks and its weights provide a strong, dataset-agnostic initialization for finetuning on new datasets. As a result, we set new standards across both multimodality registration and few-shot segmentation, a first for any 3D biomedical vision model, all without (pre-)training on any existing dataset of real images.

For agents

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

get_harvested_code_for_paper("2411.02372")
get_code_for_paper("2411.02372")
have("2411.02372")

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

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

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

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

Connect an agent — have() is free.