SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.16372 · 2026

SWORDBENCH: Evaluating Orthogonality of Steering Image Representations

Vladimir Zaigrajew, Hubert Baniecki, Przemyslaw Biecek, Dawid Pludowski

arXiv · PDF

Code that ran

14 of 21 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; 13 failures of our instrument; 7 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/2605.16372.json · badge: /api/ran/2605.16372.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
Weixin-Liang/MetaShift canonical (classifier label)
classifier basis: census
12 ran · 5 no recorded run
openai/CLIP canonical (classifier label)
classifier basis: census
2 ran · 2 no recorded run
FunctionStatusWhere it lives
Classifier Ran
ran; our contract draft was wrong, not the code
Weixin-Liang/MetaShift/experiments/distribution_shift/networks.py
code served (permissive licence) · get_code("ce7990d7ad5821ff")
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 Linear. 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 = {
    "in_features": 16,
    "out_features": 4,
    "is_nonlinear": 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 Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear 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
accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Weixin-Liang/MetaShift/experiments/distribution_shift/main_generalization.py
pointer only (licence: MIT); the stored copy get_code serves, from liyunqianggyn/equal-bits-bnn, is pointer only (licence: NONE) · get_code("a5e37b0cab1cbb28")
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 liyunqianggyn/equal-bits-bnn, 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.

build_subset_graph Ran
ran; our contract draft was wrong, not the code
Weixin-Liang/MetaShift/dataset/generate_full_MetaShift.py
code served (permissive licence) · get_code("3e901c4ed59c9f3a")
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 Graph. 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 pandas as pd
import networkx as nx

# Create small test data
subject_most_common_list = ['cat', 'dog', 'bird']

# Create node_name_to_img_id mapping - maps node names to sets of image IDs
node_name_to_img_id = {
    'cat': {1, 2, 3, 4, 5},
    'dog': {3, 4, 5, 6, 7},
    'bird': {5, 6, 7, 8, 9}
}

# Create trainsg_dupes as a set of image IDs to exclude
trainsg_dupes = {2, 8}

# Subject string for labeling
subject_str = 'animal'

ARGS = {
    'subject_most_common_list': subject_most_common_list,
    'node_name_to_img_id': node_name_to_img_id,
    'trainsg_dupes': trainsg_dupes,
    'subject_str': subject_str
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx, numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Graph — a Graph output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Graph 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
default_hparams Ran
ran; our contract draft was wrong, not the code
Weixin-Liang/MetaShift/experiments/distribution_shift/hparams_registry.py
code served (permissive licence) · get_code("e4b64902dbab5592")
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

torch.manual_seed(0)
np.random.seed(0)

# The function _hparams takes 3 parameters: algorithm, dataset, random_seed
# default_hparams takes 2 parameters: algorithm, dataset
# We need to construct valid arguments for default_hparams

ARGS = {
    'algorithm': 'DANN',
    'dataset': 'PACS'
}
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
get_all_nodes_in_dataset Ran
ran; our contract draft was wrong, not the code
Weixin-Liang/MetaShift/dataset/domain_generalization_cat_dog.py
code served (permissive licence) · get_code("b190c86e12304666")
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 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)

# Construct a dataset_scheme dictionary
# The function expects: dataset_scheme[subject_str][community_name][node_name]
# It iterates through all these nested levels and collects node names

dataset_scheme = {
    "subject_1": {
        "community_a": {
            "node_1": {},
            "node_2": {},
            "node_3": {}
        },
        "community_b": {
            "node_4": {},
            "node_5": {}
        }
    },
    "subject_2": {
        "community_x": {
            "node_6": {},
            "node_1": {}
        },
        "community_y": {
            "node_7": {}
        }
    }
}

ARGS = {
    "dataset_scheme": dataset_scheme
}
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 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_pairs Ran
ran; our contract draft was wrong, not the code
openai/CLIP/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
make_weights_for_balanced_classes Ran
ran, honoured the contract we drafted
Weixin-Liang/MetaShift/experiments/distribution_shift/misc.py
code served (permissive licence) · get_code("5f576ed342c48a0a")
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 1, dtype family float, shape (3,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from collections import Counter

torch.manual_seed(0)

# Create a minimal dataset-like object
# The function iterates over dataset with: for _, y in dataset
# So we need an iterable of (x, y) tuples where y can be converted to int

class MinimalDataset:
    def __init__(self):
        # Create a small dataset with 3 samples across 2 classes
        # Class 0: 2 samples, Class 1: 1 sample
        self.data = [
            (torch.randn(4), 0),
            (torch.randn(4), 0),
            (torch.randn(4), 1),
        ]
    
    def __iter__(self):
        return iter(self.data)
    
    def __len__(self):
        return len(self.data)

dataset = MinimalDataset()

ARGS = {
    "dataset": dataset
}
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 1, dtype family float, shape (3,) — shape (3,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
node_str_to_subject_tag Ran
ran; our contract draft was wrong, not the code
Weixin-Liang/MetaShift/experiments/distribution_shift/main_generalization.py
code served (permissive licence) · get_code("27de4aa52fde48b8")
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

def node_str_to_subject_tag(node_str):
    tag = node_str.split('(')[-1][:-1]
    subject_str = node_str.split('(')[0]
    return (subject_str, tag)

# The function takes a single parameter: node_str (a string)
# It splits on '(' and ')', extracting the tag and subject_str
# Valid input is a string with format: "subject_str(tag)"

ARGS = {
    "node_str": "Entity(person)"
}
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
parse_node_str Ran
ran; our contract draft was wrong, not the code
Weixin-Liang/MetaShift/dataset/generate_full_MetaShift.py
code served (permissive licence) · get_code("4bf7300ac8e005e7")
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

def parse_node_str(node_str):
    tag = node_str.split('(')[-1][:-1]
    subject_str = node_str.split('(')[0].strip()
    return (subject_str, tag)

ARGS = {
    'node_str': 'example_subject(example_tag)'
}
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
random_hparams Ran
ran; our contract draft was wrong, not the code
Weixin-Liang/MetaShift/experiments/distribution_shift/hparams_registry.py
code served (permissive licence) · get_code("b3a2e4269ad831cc")
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

torch.manual_seed(0)
np.random.seed(0)

ARGS = {
    "algorithm": "DANN",
    "dataset": "Debug28",
    "seed": 42
}
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
random_pairs_of_minibatches Ran
ran; our contract draft was wrong, not the code
Weixin-Liang/MetaShift/experiments/distribution_shift/algorithms.py
code served (permissive licence) · get_code("4fa2b54178fcc1df")
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. 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)

# Create small minibatches as list of (x, y) tuples
# Each minibatch is ((features_tensor, labels_tensor))
minibatch_1 = (torch.randn(2, 4), torch.randint(0, 2, (2,)))
minibatch_2 = (torch.randn(3, 4), torch.randint(0, 2, (3,)))
minibatch_3 = (torch.randn(2, 4), torch.randint(0, 2, (2,)))

minibatches = [minibatch_1, minibatch_2, minibatch_3]

ARGS = {
    "minibatches": minibatches
}
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 — a list 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
remove_batch_norm_from_resnet Ran
ran; our contract draft was wrong, not the code
Weixin-Liang/MetaShift/experiments/distribution_shift/networks.py
code served (permissive licence) · get_code("196cab71d7129d62")
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 MinimalResNet. 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 Identity(nn.Module):
    """An identity layer"""

    def __init__(self):
        super(Identity, self).__init__()

    def forward(self, x):
        return x

class BottleneckBlock(nn.Module):
    """Minimal bottleneck block for ResNet"""
    def __init__(self, in_channels, out_channels, downsample=False):
        super(BottleneckBlock, self).__init__()
        self.conv1 = nn.Conv2d(in_channels, out_channels, kernel_size=1)
        self.bn1 = nn.BatchNorm2d(out_channels)
        self.conv2 = nn.Conv2d(out_channels, out_channels, kernel_size=3, padding=1)
        self.bn2 = nn.BatchNorm2d(out_channels)
        self.conv3 = nn.Conv2d(out_channels, out_channels * 4, kernel_size=1)
        self.bn3 = nn.BatchNorm2d(out_channels * 4)
        
        if downsample:
            self.downsample = nn.Sequential(
                nn.Conv2d(in_channels, out_channels * 4, kernel_size=1),
                nn.BatchNorm2d(out_channels * 4)
            )
        else:
            self.downsample = None

class MinimalResNet(nn.Module):
    """Minimal ResNet-like model for testing"""
    def __init__(self):
        super(MinimalResNet, self).__init__()
        self.conv1 = nn.Conv2d(3, 64, kernel_size=7, padding=3)
        self.bn1 = nn.BatchNorm2d(64)
        
        self.layer1 = nn.Sequential(
            BottleneckBlock(64, 64, downsample=False)
        )
        self.layer2 = nn.Sequential(
            BottleneckBlock(256, 128, downsample=True)
        )
        self.layer3 = nn.Sequential(
            BottleneckBlock(512, 256, downsample=False)
        )
        self.layer4 = nn.Sequential(
            BottleneckBlock(1024, 512, downsample=False)
        )

model = MinimalResNet()

ARGS = {
    "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 MinimalResNet — a MinimalResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MinimalResNet 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
split_dataset Ran
ran; our contract draft was wrong, not the code
Weixin-Liang/MetaShift/experiments/distribution_shift/misc.py
code served (permissive licence) · get_code("18e820e42046bc45")
How it ran

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

import torch
import numpy as np
from torch.utils.data import Dataset

torch.manual_seed(0)
np.random.seed(0)

# Create a simple stand-in dataset
class SimpleDataset(Dataset):
    def __init__(self, size=10):
        self.size = size
        self.data = torch.randn(size, 4)
        self.labels = torch.randint(0, 2, (size,))
    
    def __getitem__(self, idx):
        return self.data[idx], self.labels[idx]
    
    def __len__(self):
        return self.size

# Instantiate the dataset
dataset = SimpleDataset(size=10)

ARGS = {
    "dataset": dataset,
    "n": 7,
    "seed": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
whitespace_clean Ran
ran; our contract draft was wrong, not the code
openai/CLIP/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.

Featurizer Not yet run
unverified (harvested, no recorded run)
Weixin-Liang/MetaShift/experiments/distribution_shift/networks.py
code served (permissive licence) · get_code("35b902a4c075efc3")
How it ran

no invocation recorded.

build_model Not yet run
unverified (harvested, no recorded run)
openai/CLIP/clip/model.py
code served (permissive licence) · get_code("39e6b23b55f376ea")
How it ran

no invocation recorded.

draw_subject_set_graph Not yet run
unverified (harvested, no recorded run)
Weixin-Liang/MetaShift/dataset/generate_full_MetaShift.py
code served (permissive licence) · get_code("ac8f33705a95e2de")
How it ran

no invocation recorded.

get_algorithm_class Not yet run
unverified (harvested, no recorded run)
Weixin-Liang/MetaShift/experiments/distribution_shift/algorithms.py
code served (permissive licence) · get_code("b0bc80b1655a6802")
How it ran

no invocation recorded.

load Not yet run
unverified (harvested, no recorded run)
openai/CLIP/clip/clip.py
code served (permissive licence) · get_code("021a688e5389b8b6")
How it ran

no invocation recorded.

print_row Not yet run
unverified (harvested, no recorded run)
Weixin-Liang/MetaShift/experiments/distribution_shift/misc.py
code served (permissive licence) · get_code("af3c9a80c8fd1f7a")
How it ran

no invocation recorded.

validate Not yet run
unverified (harvested, no recorded run)
Weixin-Liang/MetaShift/experiments/distribution_shift/main_generalization.py
code served (permissive licence) · get_code("b4966e51c262718f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 20 are also present in other papers whose code we hold (20 with at least one paper dated earlier, 3 the same month, 3 later) and 1 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
248 dated earlier, 3 the same month, 6 later, 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
223 dated earlier, 3 the same month, 4 later, 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
accuracy 116 other papers
111 dated earlier, 2 the same month, 3 later · 8 only as an assembly brick
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1610.05820 (2016-10)
Membership Inference Attacks Against Machine Learning Models
1905.03696 (2019-05)
HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precision
and 113 more not named here
build_model 53 other papers
53 dated earlier
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2210.01115 (2022-10)
LASP: Text-to-Text Optimization for Language-Aware Soft Prompting of Vision & Language Models
2211.09552 (2022-11)
UniFormerV2: Spatiotemporal Learning by Arming Image ViTs with Video UniFormer
and 50 more not named here
get_algorithm_class 39 other papers
39 dated earlier
1907.02893 (2019-07)
Invariant Risk Minimization
2007.01434 (2020-07)
In Search of Lost Domain Generalization
2007.02931 (2020-07)
Adaptive Risk Minimization: Learning to Adapt to Domain Shift
and 36 more not named here
Classifier 24 other papers
24 dated earlier · 4 only as an assembly brick
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
2205.09739 (2022-05)
Diverse Weight Averaging for Out-of-Distribution Generalization
and 21 more not named here
remove_batch_norm_from_resnet 23 other papers
23 dated earlier
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 20 more not named here
load 18 other papers
18 dated earlier
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2311.11261 (2023-11)
Adversarial Prompt Tuning for Vision-Language Models
2311.18231 (2023-11)
TCP:Textual-based Class-aware Prompt tuning for Visual-Language Model
and 15 more not named here
make_weights_for_balanced_classes 18 other papers
18 dated earlier
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 15 more not named here
print_row 11 other papers
11 dated earlier
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 8 more not named here
random_pairs_of_minibatches 7 other papers
7 dated earlier
2110.09410 (2021-10)
Exploiting Domain-Specific Features to Enhance Domain Generalization
2203.10789 (2022-03)
Domain Generalization by Mutual-Information Regularization with Pre-trained Models
2302.14685 (2023-02)
DART: Diversify-Aggregate-Repeat Training Improves Generalization of Neural Networks
and 4 more not named here
split_dataset 5 other papers
5 dated earlier
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
2207.10792 (2022-07)
Test-Time Adaptation via Self-Training with Nearest Neighbor Information
and 2 more not named here
Featurizer 1 other paper
1 dated earlier
2301.12067 (2023-01)
Learning Optimal Features via Partial Invariance
build_subset_graph 1 other paper
1 dated earlier
2202.06523 (2022-02)
MetaShift: A Dataset of Datasets for Evaluating Contextual Distribution Shifts and Training Conflicts
default_hparams 1 other paper
1 dated earlier
2401.06091 (2024-01)
A Closer Look at AUROC and AUPRC under Class Imbalance
draw_subject_set_graph 1 other paper
1 dated earlier
2202.06523 (2022-02)
MetaShift: A Dataset of Datasets for Evaluating Contextual Distribution Shifts and Training Conflicts
node_str_to_subject_tag 1 other paper
1 dated earlier
2202.06523 (2022-02)
MetaShift: A Dataset of Datasets for Evaluating Contextual Distribution Shifts and Training Conflicts
parse_node_str 1 other paper
1 dated earlier
2202.06523 (2022-02)
MetaShift: A Dataset of Datasets for Evaluating Contextual Distribution Shifts and Training Conflicts
random_hparams 1 other paper
1 dated earlier
2401.06091 (2024-01)
A Closer Look at AUROC and AUPRC under Class Imbalance
validate 1 other paper
1 dated earlier
2202.06523 (2022-02)
MetaShift: A Dataset of Datasets for Evaluating Contextual Distribution Shifts and Training Conflicts

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

Steering or intervening on model representations at inference time to correct predictions is essential for AI interpretability and safety, yet existing evaluation protocols are limited to ambiguous language modeling tasks. To address this gap, we introduce SWORDBENCH, a benchmark for steering image representations of vision models across multiple backbones and concept removal tasks. Beyond a unified benchmarking suite, we propose new evaluation notions that uncover the secondorder effects of orthogonalization among concept activation vectors for pragmatic steering. Specifically, cross-concept robustness measures the stability of concept detection performance across inputs orthogonalized against alternative concepts, and collateral damage quantifies whether steering inadvertently affects model performance on a downstream task for inputs lacking the bias. We find that although a linear support vector machine exhibits superior separability and orthogonality, it fails to achieve zero collateral damage, often trailing sparse autoencoders. In simpler regimes, both standard baselines and optimization-based methods fail to achieve perfect steering. The source code will be made available soon on GitHub.

For agents

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

get_harvested_code_for_paper("2605.16372")
get_code_for_paper("2605.16372")
have("2605.16372")

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

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

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

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

Connect an agent — have() is free.