SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.09507 · ICML · 2025

When and How Does CLIP Enable Domain and Compositional Generalization?

Thomas Brox, Simon Schrodi, Max Argus, Elias Kempf

arXiv · PDF · Open in the Atlas

Code that ran

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

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2502.09507.json · badge: /api/ran/2502.09507.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
saprmarks/feature-circuits canonical (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
neuroexplicit-saar/discover-then-name canonical (classifier label)
classifier basis not recorded on the link
6 ran · 3 no recorded run
ndif-team/nnsight canonical (classifier label)
classifier basis not recorded on the link
6 ran · 2 no recorded run
salesforce/LAVIS canonical (classifier label)
classifier basis not recorded on the link
5 ran · 2 no recorded run
FunctionStatusWhere it lives
apply Ran
ran on a synthesized input
ndif-team/nnsight/src/nnsight/util.py
code served (permissive licence) · get_code("013ac77858f729a5")
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 torch
import numpy as np
from collections import namedtuple

torch.manual_seed(0)

# Define a simple class to test object descent
class SimpleObject:
    def __init__(self, value):
        self.value = value
        self.nested = None

# Define a namedtuple to test tuple handling
Point = namedtuple('Point', ['x', 'y'])

# Create test data structure with various container types and objects
int_value = 42
list_data = [1, 2, 3]
tuple_data = (4, 5, 6)
dict_data = {'a': 7, 'b': 8}
set_data = {9, 10}
frozenset_data = frozenset([11, 12])
slice_data = slice(0, 10, 2)
namedtuple_data = Point(13, 14)

# Create nested object for testing object descent
obj1 = SimpleObject(15)
obj1.nested = SimpleObject(16)
obj1.container = [17, 18]
obj1.dict_attr = {'key': 19}

# Complex nested structure
data = {
    'integers': [int_value, 20],
    'list': list_data,
    'tuple': tuple_data,
    'dict': dict_data,
    'set': set_data,
    'frozenset': frozenset_data,
    'slice': slice_data,
    'namedtuple': namedtuple_data,
    'object': obj1,
    'nested_container': {
        'inner_list': [21, 22],
        'inner_tuple': (23, 24),
    }
}

# Define a transformation function that multiplies integers by 2
def multiply_by_two(x):
    return x * 2

ARGS = {
    'data': data,
    'fn': multiply_by_two,
    'cls': int,
    'n': 2
}
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 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
basic_clean Ran
ran; our contract draft was wrong, not the code
neuroexplicit-saar/discover-then-name/clip/simple_tokenizer.py
pointer only (licence: MIT); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("98f385d847636a3e")
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 ltpwy/MSCI, and GitHub detected no licence in that repository when it was checked. 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.

concat Ran
ran on a synthesized input
ndif-team/nnsight/src/nnsight/intervention/batching.py
code served (permissive licence) · get_code("4426e27aa118f08d")
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 (6, 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)

# The concat function takes a list of structures and concatenates them along dim 0
# It handles tensors, lists, tuples, dicts, and leaf values (like None)

# Create test structures - we'll test with a mix of types
tensor1 = torch.randn(2, 4)
tensor2 = torch.randn(2, 4)
tensor3 = torch.randn(2, 4)

# Test case 1: List of tensors
structures_tensors = [tensor1, tensor2, tensor3]

# Test case 2: List of dicts containing tensors
structures_dicts = [
    {"a": torch.randn(2, 4), "b": torch.randn(2, 3)},
    {"a": torch.randn(2, 4), "b": torch.randn(2, 3)},
    {"a": torch.randn(2, 4), "b": torch.randn(2, 3)},
]

# Test case 3: List of tuples containing tensors and None
structures_tuples = [
    (torch.randn(2, 4), None, torch.randn(2, 5)),
    (torch.randn(2, 4), None, torch.randn(2, 5)),
    (torch.randn(2, 4), None, torch.randn(2, 5)),
]

# Test case 4: List of nested structures (dict with list/tuple)
structures_nested = [
    {"tensors": [torch.randn(2, 4), torch.randn(2, 3)], "value": None},
    {"tensors": [torch.randn(2, 4), torch.randn(2, 3)], "value": None},
]

# Use the simplest case: list of tensors
ARGS = {
    "structures": structures_tensors
}
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 (6, 4) — shape (6, 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
from_import_path Ran
ran on a synthesized input
ndif-team/nnsight/src/nnsight/util.py
code served (permissive licence) · get_code("5a59e925d9bdd730")
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 type. 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 importlib
import torch
import torch.nn as nn

torch.manual_seed(0)

# The function from_import_path takes a dotted import path string
# and resolves it to an actual Python object using importlib.
# 
# It expects a string like "module.submodule.ClassName" or
# "module.submodule.ClassName.nested_attr" and resolves it
# by importing the module and then getattr'ing through the qualname parts.
#
# We need to construct a valid import path to an actual object.
# A simple approach is to use a built-in or standard library object.
# For example, "torch.nn.Module" is a valid path.

ARGS = {
    "path": "torch.nn.Module",
}
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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
getAttMap Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
salesforce/LAVIS/lavis/common/gradcam.py
code served (permissive licence) · get_code("7d214655954e2bc6")
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 3, dtype family float, shape (4, 3, 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
from matplotlib import pyplot as plt
from scipy.ndimage import filters
from skimage import transform as skimage_transform

# Create a small RGB image (height=4, width=3, channels=3)
img = np.random.rand(4, 3, 3).astype(np.float32)

# Create an attention map (height=2, width=2) - smaller than img
attMap = np.random.rand(2, 2).astype(np.float32)

ARGS = {
    'img': img,
    'attMap': attMap,
    'blur': True,
    'overlap': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, scipy, skimage — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (4, 3, 3) — shape (4, 3, 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
get_annotation Ran
ran on a synthesized input
saprmarks/feature-circuits/data_loading_utils.py
code served (permissive licence) · get_code("07b539dc323f7bf6")
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 torch
import torch.nn as nn

torch.manual_seed(0)

class MockTokenizer:
    def __call__(self, text, return_tensors=None, padding=False):
        # Simulate tokenization: each word gets 1-2 tokens
        tokens = text.strip().split()
        num_tokens = len(tokens) + (1 if text.startswith(' ') else 0)
        # Return a mock result with input_ids tensor
        result = type('obj', (object,), {
            'input_ids': torch.randint(0, 100, (1, num_tokens))
        })()
        return result

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.tokenizer = MockTokenizer()
    
    def forward(self, x):
        return x

# Create mock dataset string
dataset = "rc.json"

# Create mock model
model = MockModel()

# Create mock data dict with clean_prefix
data = {
    'clean_prefix': 'The cat that the dog'
}

ARGS = {
    'dataset': dataset,
    'model': model,
    'data': data
}
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 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
get_name_gemma Ran
ran on a synthesized input
saprmarks/feature-circuits/circuit_plotting.py
code served (permissive licence) · get_code("78a00cb43e4b428b")
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 = {
    'component': 'attention',
    'layer': 5,
    'idx': [42, 2**14]
}
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
get_name_pythia Ran
ran on a synthesized input
saprmarks/feature-circuits/circuit_plotting.py
code served (permissive licence) · get_code("77dfb02ffefe5bbc")
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 = {
    'component': 'attn',
    'layer': 5,
    'idx': [[10, 32768]]
}
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
get_pairs Ran
ran; our contract draft was wrong, not the code
neuroexplicit-saar/discover-then-name/clip/simple_tokenizer.py
code served (permissive licence) · get_code("d919ae32e5e4e616")
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 set. 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)

# The function get_pairs takes a word parameter
# A word is represented as a tuple of symbols (variable-length strings)
# The function iterates through the word and creates pairs of consecutive symbols

word = ("hello", "world", "test")

ARGS = {
    "word": word
}
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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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_probe_classifier_ckpt Ran
ran on a synthesized input
neuroexplicit-saar/discover-then-name/dncbm/utils.py
code served (permissive licence) · get_code("0b14ce4fe263ff5b")
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 tempfile
import os

torch.manual_seed(0)

# Create a temporary directory structure for the checkpoint paths
temp_dir = tempfile.mkdtemp()
probe_cs_save_dir = os.path.join(temp_dir, 'probe_checkpoints')
probe_config_name = 'test_config'
ckpt_dir = os.path.join(probe_cs_save_dir, probe_config_name, 'on_concepts_ckpts')
os.makedirs(ckpt_dir, exist_ok=True)

# Create a dummy checkpoint file
dummy_state_dict = {
    'layer1.weight': torch.randn(4, 3),
    'layer1.bias': torch.randn(4),
}
which_ckpt_value = 'best'
ckpt_fname = os.path.join(ckpt_dir, f'on_concepts_{which_ckpt_value}_{probe_config_name}.pt')
torch.save(dummy_state_dict, ckpt_fname)

# Create args object as a simple class
class Args:
    def __init__(self):
        self.probe_classifier_which_ckpt = which_ckpt_value
        self.probe_cs_save_dir = probe_cs_save_dir
        self.probe_config_name = probe_config_name

ARGS = {
    'args': Args(),
    'which_ckpt': None,
    'name_only': False,
}
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
interpolate_pos_embed Ran
ran; our contract draft was wrong, not the code
salesforce/LAVIS/lavis/models/vit.py
code served (permissive licence) · get_code("c6ec173f19f5c34d")
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 Tensor, ndim 3, dtype family float, shape (1, 17, 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 as nn

torch.manual_seed(0)

class PatchEmbed(nn.Module):
    def __init__(self, num_patches):
        super().__init__()
        self.num_patches = num_patches

class VisualEncoder(nn.Module):
    def __init__(self, num_patches, pos_embed_shape):
        super().__init__()
        self.patch_embed = PatchEmbed(num_patches)
        self.pos_embed = torch.randn(pos_embed_shape)

# Create a visual encoder with 16 patches (4x4 grid)
# pos_embed shape: (1, num_patches + num_extra_tokens, embedding_dim)
num_patches = 16
num_extra_tokens = 1
embedding_size = 4
visual_encoder = VisualEncoder(
    num_patches=num_patches,
    pos_embed_shape=(1, num_patches + num_extra_tokens, embedding_size)
)

# Create pos_embed_checkpoint with original size 2x2 (4 patches) + 1 extra token
# This will trigger interpolation from 2x2 to 4x4
orig_size = 2
orig_num_patches = orig_size * orig_size
pos_embed_checkpoint = torch.randn(1, orig_num_patches + num_extra_tokens, embedding_size)

ARGS = {
    "pos_embed_checkpoint": pos_embed_checkpoint,
    "visual_encoder": visual_encoder,
}
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 Tensor, ndim 3, dtype family float, shape (1, 17, 4) — shape (1, 17, 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
is_model_running Ran
ran on a synthesized input
ndif-team/nnsight/src/nnsight/ndif.py
code served (permissive licence) · get_code("a31e3e8047f3f679")
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 bool, 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 os
import sys

# Mock the CONFIG object that's referenced in _get but not defined in the function signature
class MockAPI:
    HOST = "http://localhost:8000"

class MockConfig:
    API = MockAPI()

# Inject CONFIG into sys.modules so it can be imported
sys.modules['config'] = type(sys)('config')
sys.modules['config'].CONFIG = MockConfig()

# Now set up the arguments for is_model_running
ARGS = {
    'repo_id': 'openai-community/gpt2',
    'revision': 'main'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
httpx, huggingface_hub — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
load_examples_nopair Ran
ran on a synthesized input
saprmarks/feature-circuits/data_loading_utils.py
code served (permissive licence) · get_code("900950517fc5e4d5")
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
import torch.nn as nn

torch.manual_seed(0)

class MockTokenizer:
    def __call__(self, text, return_tensors=None):
        # Return a mock result that has input_ids with shape (1, num_tokens)
        # We'll make it return shape (1, 1) for single-token answers to pass the filter
        class TokenizerOutput:
            def __init__(self, input_ids):
                self.input_ids = input_ids
        
        # For the answer filtering, we want it to pass (shape[1] == 1)
        return TokenizerOutput(torch.zeros(1, 1, dtype=torch.long))

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.tokenizer = MockTokenizer()

# Create a small dataset as a dict
dataset = {
    "context_0": {
        "context": ["Hello ", "world"],
        "answer": "yes"
    },
    "context_1": {
        "context": ["What ", "is ", "this"],
        "answer": "no"
    },
    "context_2": {
        "context": ["Another ", "example"],
        "answer": "ok"
    }
}

model = MockModel()

ARGS = {
    "dataset": dataset,
    "num_examples": 2,
    "model": 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 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
main_process Ran
ran; our contract draft was wrong, not the code
salesforce/LAVIS/lavis/common/dist_utils.py
code served (permissive licence) · get_code("98589643273920ba")
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 function. 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 functools

torch.manual_seed(0)

def get_dist_info():
    import torch.distributed as dist
    if torch.__version__ < '1.0':
        initialized = dist._initialized
    else:
        initialized = dist.is_initialized()
    if initialized:
        rank = dist.get_rank()
        world_size = dist.get_world_size()
    else:
        rank = 0
        world_size = 1
    return (rank, world_size)

def main_process(func):
    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        rank, _ = get_dist_info()
        if rank == 0:
            return func(*args, **kwargs)
    return wrapper

# Create a simple test function to decorate
def sample_function(x, y):
    return x + y

# Apply the decorator
decorated_func = main_process(sample_function)

# The main_process function takes a single parameter: func (a callable)
ARGS = {
    'func': sample_function
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
node_to_dict Ran
ran; our contract draft was wrong, not the code
salesforce/LAVIS/lavis/common/config.py
code served (permissive licence) · get_code("791c72070c0b1cfb")
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.

from omegaconf import OmegaConf

# Create a simple OmegaConf node to pass to node_to_dict
# The function converts an OmegaConf node to a regular Python container
node = OmegaConf.create({
    "model": {
        "name": "test_model",
        "layers": 3,
        "hidden_dim": 128
    },
    "training": {
        "lr": 0.001,
        "epochs": 100,
        "batch_size": 32
    },
    "data": ["sample1", "sample2", "sample3"]
})

ARGS = {
    "node": node
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
omegaconf — 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
sparse_flatten Ran
ran on a synthesized input
saprmarks/feature-circuits/coo_utils.py
code served (permissive licence) · get_code("fd2e79ac3e8d7ce8")
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. 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 as t
import torch.nn as nn

t.manual_seed(0)

# sparse_flatten takes one parameter: x
# x is expected to be a sparse COO tensor
# The function calls: x.coalesce(), x.indices(), x.values(), x.shape

# Create a small sparse COO tensor
# Shape: (4, 3) - a 4x3 sparse matrix
indices = t.tensor([[0, 1, 2, 3], [0, 1, 2, 0]], dtype=t.long)
values = t.tensor([1.0, 2.0, 3.0, 4.0], dtype=t.float32)
sparse_tensor = t.sparse_coo_tensor(indices, values, (4, 3))

ARGS = {
    "x": sparse_tensor
}
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, shape (12,) — shape (12,) as a later run recorded it
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
sparse_mean Ran
ran on a synthesized input
saprmarks/feature-circuits/coo_utils.py
code served (permissive licence) · get_code("5d898b6d7272c096")
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 numpy as np

torch.manual_seed(0)

# Create a small tensor for testing
# Using shape (2, 3, 4) to have distinct dimensions
x = torch.randn(2, 3, 4)

# Test with single dimension as int
dim_int = 1

# Test with multiple dimensions as tuple
dim_tuple = (0, 2)

# Prepare arguments - we'll test with int dim first
ARGS = {
    "x": x,
    "dim": dim_int
}
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 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
sparse_reshape Ran
ran on a synthesized input
saprmarks/feature-circuits/coo_utils.py
code served (permissive licence) · get_code("eaebec17f584ac1f")
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. 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 as t

t.manual_seed(0)

# Create a small sparse COO tensor
# Let's create a sparse tensor with shape (4, 5)
# We'll add a few non-zero values at specific indices
indices = t.tensor([[0, 2, 3], [1, 3, 4]])  # 2 x 3 tensor with indices
values = t.tensor([1.0, 2.0, 3.0])  # 3 values
x = t.sparse_coo_tensor(indices, values, (4, 5))

# Define the target shape for reshaping
# Original has 4*5 = 20 elements, so new shape should have 20 elements too
# Using 2 x 10 as distinct dimensions
new_shape = (2, 10)

ARGS = {
    "x": x,
    "shape": new_shape,
}
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, shape (2, 10) — shape (2, 10) as a later run recorded it
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
status Ran
ran on a synthesized input
ndif-team/nnsight/src/nnsight/ndif.py
code served (permissive licence) · get_code("fb66304fd81f1b4a")
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 NdifStatus. 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
import sys

# Mock the CONFIG object that _get() uses
class MockConfig:
    class API:
        HOST = "http://localhost:8000"

# Inject into module namespace before importing
sys.modules['config'] = type(sys)('config')
sys.modules['config'].CONFIG = MockConfig()

# Now define ARGS for the status function
ARGS = {
    'raw': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
httpx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NdifStatus — a NdifStatus output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NdifStatus output the recorded ndim 1 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
tile Ran
ran; our contract draft was wrong, not the code
salesforce/LAVIS/lavis/models/base_model.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from MengzhouLu/RetroMPA, is pointer only (licence: NONE) · get_code("cb33571427334815")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from MengzhouLu/RetroMPA, and GitHub detected no licence in that repository when it was checked. 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.

to_import_path Ran
ran on a synthesized input
ndif-team/nnsight/src/nnsight/util.py
code served (permissive licence) · get_code("c3262cc8bbc0cf2f")
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
import torch.nn as nn

class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)

class CustomClass:
    pass

class AnotherCustomClass:
    pass

# Test with a simple class type
test_class = SimpleModule

ARGS = {
    "obj": test_class
}
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
to_numpy Ran
ran on a synthesized input
neuroexplicit-saar/discover-then-name/dncbm/visualization/drawing_functions.py
code served (permissive licence) · get_code("77c07376a0e1c1a0")
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 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 numpy as np

torch.manual_seed(0)

# The function accepts either a torch.Tensor or np.ndarray
# Test with a torch.Tensor
tensor_input = torch.randn(2, 4)

ARGS = {
    'tensor': tensor_input
}
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 ndarray, 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
to_numpy_img Ran
ran on a synthesized input
neuroexplicit-saar/discover-then-name/dncbm/visualization/drawing_functions.py
code served (permissive licence) · get_code("abb04880ee7994e0")
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 3, dtype family float, shape (4, 5, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function to_numpy_img expects a tensor with 3 dimensions in format (C, H, W)
# It checks if len(tensor) == 6 (which checks the first dimension size)
# and permutes from (C, H, W) to (H, W, C)

# Create a tensor with shape (3, 4, 5) representing (C=3, H=4, W=5)
tensor_3d = torch.randn(3, 4, 5)

# Also create a tensor with 6 channels to test the first condition
tensor_6d = torch.randn(6, 4, 5)

ARGS = {
    "tensor": tensor_3d
}
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 ndarray, ndim 3, dtype family float, shape (4, 5, 3) — shape (4, 5, 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
whitespace_clean Ran
ran; our contract draft was wrong, not the code
neuroexplicit-saar/discover-then-name/clip/simple_tokenizer.py
pointer only (licence: MIT); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("9542161e9640b858")
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 ltpwy/MSCI, and GitHub detected no licence in that repository when it was checked. 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.

all_gather_with_grad Not yet run
unverified (harvested, no recorded run)
salesforce/LAVIS/lavis/models/base_model.py
code served (permissive licence) · get_code("0ec9fc2025c16f65")
How it ran

no invocation recorded.

build_model Not yet run
unverified (harvested, no recorded run)
neuroexplicit-saar/discover-then-name/clip/model.py
pointer only (licence: MIT); the stored copy get_code serves, from Trustworthy-ML-Lab/Label-free-CBM, is pointer only (licence: NONE) · get_code("3662e54c46137680")
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 Trustworthy-ML-Lab/Label-free-CBM, and GitHub detected no licence in that repository when it was checked. 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. No invocation recorded.

capture_exception Not yet run
unverified (harvested, no recorded run)
ndif-team/nnsight/src/nnsight/intervention/errors.py
code served (permissive licence) · get_code("6db205fad012bb49")
How it ran

no invocation recorded.

download_cached_file Not yet run
unverified (harvested, no recorded run)
salesforce/LAVIS/lavis/common/dist_utils.py
code served (permissive licence) · get_code("643539116e049080")
How it ran

no invocation recorded.

get_sae_ckpt Not yet run
unverified (harvested, no recorded run)
neuroexplicit-saar/discover-then-name/dncbm/utils.py
code served (permissive licence) · get_code("6d0212913db960d6")
How it ran

no invocation recorded.

load Not yet run
unverified (harvested, no recorded run)
neuroexplicit-saar/discover-then-name/clip/clip.py
pointer only (licence: MIT); the stored copy get_code serves, from liuting20/MaPPER, is pointer only (licence: NONE) · get_code("b91b981015bbf498")
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 liuting20/MaPPER, and GitHub detected no licence in that repository when it was checked. 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. No invocation recorded.

ndif_status Not yet run
unverified (harvested, no recorded run)
ndif-team/nnsight/src/nnsight/ndif.py
code served (permissive licence) · get_code("6a750256744289a9")
How it ran

no invocation recorded.

plot_circuit_posaligned Not yet run
unverified (harvested, no recorded run)
saprmarks/feature-circuits/circuit_plotting.py
code served (permissive licence) · get_code("a7b85fe417248ff9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 32 samples lifted from this paper's linked repositories, 32 carry a function identity and 0 do not. Of the 32 distinct functions with an identity, 20 are also present in other papers whose code we hold (20 with at least one paper dated earlier, 5 the same month, 12 later) and 12 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
get_pairs 258 other papers
211 dated earlier, 1 the same month, 34 later, 11 same year, order not determinable, 1 undated · 4 only as an assembly brick
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1803.01128 (2018-03)
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
1809.00125 (2018-09)
Simple Fusion: Return of the Language Model
and 255 more not named here
whitespace_clean 231 other papers
189 dated earlier, 2 the same month, 29 later, 10 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 228 more not named here
basic_clean 218 other papers
189 dated earlier, 2 the same month, 16 later, 10 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 215 more not named here
build_model 119 other papers
102 dated earlier, 13 later, 2 same year, order not determinable, 2 undated
1809.11096 (2018-09)
Large Scale GAN Training for High Fidelity Natural Image Synthesis
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2104.14294 (2021-04)
Emerging Properties in Self-Supervised Vision Transformers
and 116 more not named here
all_gather_with_grad 91 other papers
80 dated earlier, 1 the same month, 9 later, 1 same year, order not determinable · 2 only as an assembly brick
2206.02967 (2022-06)
Masked Unsupervised Self-training for Label-free Image Classification
2210.08773 (2022-10)
Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Training
2302.06605 (2023-02)
UniAdapter: Unified Parameter-Efficient Transfer Learning for Cross-modal Modeling
and 88 more not named here
tile 84 other papers
75 dated earlier, 1 the same month, 7 later, 1 same year, order not determinable
2206.07699 (2022-06)
Write and Paint: Generative Vision-Language Models are Unified Modal Learners
2210.07795 (2022-10)
EfficientVLM: Fast and Accurate Vision-Language Models via Knowledge Distillation and Modal-adaptive Pruning
2210.08773 (2022-10)
Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Training
and 81 more not named here
interpolate_pos_embed 52 other papers
47 dated earlier, 4 later, 1 same year, order not determinable
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
2111.09452 (2021-11)
Open Vocabulary Object Detection with Pseudo Bounding-Box Labels
2205.11169 (2022-05)
PEVL: Position-enhanced Pre-training and Prompt Tuning for Vision-language Models
and 49 more not named here
node_to_dict 39 other papers
35 dated earlier, 4 later
2305.04160 (2023-05)
X-LLM: Bootstrapping Advanced Large Language Models by Treating Multi-Modalities as Foreign Languages
2305.14167 (2023-05)
DetGPT: Detect What You Need via Reasoning
2305.16103 (2023-05)
ChatBridge: Bridging Modalities with Large Language Model as a Language Catalyst
and 36 more not named here
download_cached_file 37 other papers
34 dated earlier, 3 later
2305.04160 (2023-05)
X-LLM: Bootstrapping Advanced Large Language Models by Treating Multi-Modalities as Foreign Languages
2305.14167 (2023-05)
DetGPT: Detect What You Need via Reasoning
2305.16103 (2023-05)
ChatBridge: Bridging Modalities with Large Language Model as a Language Catalyst
and 34 more not named here
main_process 35 other papers
32 dated earlier, 3 later
2305.04160 (2023-05)
X-LLM: Bootstrapping Advanced Large Language Models by Treating Multi-Modalities as Foreign Languages
2305.14167 (2023-05)
DetGPT: Detect What You Need via Reasoning
2305.16103 (2023-05)
ChatBridge: Bridging Modalities with Large Language Model as a Language Catalyst
and 32 more not named here
getAttMap 28 other papers
26 dated earlier, 2 later
2305.04160 (2023-05)
X-LLM: Bootstrapping Advanced Large Language Models by Treating Multi-Modalities as Foreign Languages
2305.07558 (2023-05)
Measuring Progress in Fine-grained Vision-and-Language Understanding
2305.16103 (2023-05)
ChatBridge: Bridging Modalities with Large Language Model as a Language Catalyst
and 25 more not named here
load 23 other papers
21 dated earlier, 1 later, 1 undated
2208.05318 (2022-08)
Generative Action Description Prompts for Skeleton-based Action Recognition
2210.01115 (2022-10)
LASP: Text-to-Text Optimization for Language-Aware Soft Prompting of Vision &amp; Language Models
2212.04501 (2022-12)
Learning Video Representations from Large Language Models
and 20 more not named here
apply 1 other paper
1 dated earlier
2407.14561 (2024-07)
NNsight and NDIF: Democratizing Access to Open-Weight Foundation Model Internals
capture_exception 1 other paper
1 dated earlier
2407.14561 (2024-07)
NNsight and NDIF: Democratizing Access to Open-Weight Foundation Model Internals
concat 1 other paper
1 dated earlier
2407.14561 (2024-07)
NNsight and NDIF: Democratizing Access to Open-Weight Foundation Model Internals
from_import_path 1 other paper
1 dated earlier
2407.14561 (2024-07)
NNsight and NDIF: Democratizing Access to Open-Weight Foundation Model Internals
is_model_running 1 other paper
1 dated earlier
2407.14561 (2024-07)
NNsight and NDIF: Democratizing Access to Open-Weight Foundation Model Internals
ndif_status 1 other paper
1 dated earlier
2407.14561 (2024-07)
NNsight and NDIF: Democratizing Access to Open-Weight Foundation Model Internals
status 1 other paper
1 dated earlier
2407.14561 (2024-07)
NNsight and NDIF: Democratizing Access to Open-Weight Foundation Model Internals
to_import_path 1 other paper
1 dated earlier
2407.14561 (2024-07)
NNsight and NDIF: Democratizing Access to Open-Weight Foundation Model Internals

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

The remarkable generalization performance of contrastive vision-language models like CLIP is often attributed to the diversity of their training distributions. However, key questions remain unanswered: Can CLIP generalize to an entirely unseen domain when trained on a diverse mixture of domains (domain generalization)? Can it generalize to unseen classes within partially seen domains (compositional generalization)? What factors affect such generalization? To answer these questions, we trained CLIP models on systematically constructed training distributions with controlled domain diversity and object class exposure. Our experiments show that domain diversity is essential for both domain and compositional generalization, yet compositional generalization can be surprisingly weaker than domain generalization when the training distribution contains a suboptimal subset of the test domain. Through data-centric and mechanistic analyses, we find that successful generalization requires the learning of sufficiently shared representations in intermediate layers and circuits.

For agents

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

get_harvested_code_for_paper("2502.09507")
get_code_for_paper("2502.09507")
have("2502.09507")

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

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

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

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

Connect an agent — have() is free.