SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.19475 · 2025

Prisma: An Open Source Toolkit for Mechanistic Interpretability in Vision and Video

arXiv · PDF · Open in the Atlas

Code that ran

13 of 16 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 11 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2504.19475.json · badge: /api/ran/2504.19475.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
prisma-multimodal/vit-prisma canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
soniajoseph/vit-prisma community (classifier label)
classifier basis not recorded on the link
11 ran · 3 no recorded run
FunctionStatusWhere it lives
check_model_name Ran
ran; our contract draft was wrong, not the code
prisma-multimodal/vit-prisma/src/vit_prisma/models/model_loader.py
code served (permissive licence) · get_code("a1fc8248bd1ad1ba")
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 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 logging

# Test with a model name that exists in MODELS_MISSING_CONFIG
ARGS = {
    "model_name": "open-clip:laion/CLIP-ViT-B-32-xlm-roberta-base-laion5B-s13B-b90k",
    "allow_failing": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_train_info Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/model_eval/evaluate_clip_benchmark.py
code served (permissive licence) · get_code("44243798f6173648")
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
from typing import Any, Dict, Optional

torch.manual_seed(0)

# Minimal arguments for create_train_info
ARGS = {
    "model_name": "vit-prisma-base",
    "checkpoint_path": None,
    "model_kwargs": None
}
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
draw_circle Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/induction.py
code served (permissive licence) · get_code("d41780f7d4f76a23")
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 (32, 32) 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 image (32x32 as per default im_size)
image = torch.zeros(32, 32)

# Define arguments for draw_circle
ARGS = {
    "image": image,
    "center_row": 16,
    "center_col": 16,
    "radius": 2,
    "im_size": 32
}
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 (32, 32) — shape (32, 32) 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
draw_circle_with_points Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/circle.py
code served (permissive licence) · get_code("cd3823f34b47e5a7")
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 3, dtype family float, shape (3, 224, 224) 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
import math

torch.manual_seed(0)

# Create metadata dictionary with required keys
metadata = {
    'image_size': 32,
    'center': (16, 16),
    'radius': 10,
    'multiplier': 1,
    'angle_range': np.array([0, 45, 90, 135, 180, 225, 270, 315])
}

# Define arguments for the function
ARGS = {
    'angle1': 45,
    'angle2': 90,
    'metadata': metadata,
    'model_type': 'pretrained_transformer'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — 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 (3, 224, 224) — shape (3, 224, 224) 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
draw_line Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/induction.py
code served (permissive licence) · get_code("92ed88c91dec647a")
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 (32, 32) 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 image tensor (32x32 as per default im_size)
image = torch.zeros(32, 32)

# Define arguments for draw_line function
ARGS = {
    'image': image,
    'center_row': 16,
    'center_col': 16,
    'line_length': 4,
    'im_size': 32
}
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 (32, 32) — shape (32, 32) 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
draw_x Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/induction.py
code served (permissive licence) · get_code("187a24f916bfbe42")
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 (32, 32) 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 modifies a 2D image array/tensor by drawing an X pattern
# It uses indexing with integer positions, so we need a 2D array
# The function expects:
# - image: a 2D array that supports indexing and assignment
# - center_row, center_col: integers for center position
# - x_length: integer for the length of the X
# - im_size: integer for image size (used as default, not directly in function body)

# Create a 2D numpy array (image) with im_size dimensions
im_size = 32
image = np.zeros((im_size, im_size), dtype=np.float32)

# Set center position safely within bounds
center_row = im_size // 2
center_col = im_size // 2

# Set x_length
x_length = 5

ARGS = {
    "image": image,
    "center_row": center_row,
    "center_col": center_col,
    "x_length": x_length,
    "im_size": im_size
}
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 (32, 32) — shape (32, 32) 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
extract_and_parse_text_labels Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/imagenet_dataset.py
code served (permissive licence) · get_code("ee86a4895f763cc5")
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 numpy as np

# Analyze the function: extract_and_parse_text_labels
# - Takes imagenet_index parameter
# - Iterates over imagenet_index.values()
# - Checks if value is a list with len > 1
# - Accesses value[1] and calls .replace('_', ' ').split() on it
# - Capitalizes each word and joins them
# - Returns list of parsed strings

# imagenet_index should be a dict where:
# - values are lists with at least 2 elements
# - the second element (index 1) is a string containing underscores or spaces

imagenet_index = {
    'n00000001': ['synset1', 'dog_breed_small', 'description1'],
    'n00000002': ['synset2', 'cat_type_large', 'description2'],
    'n00000003': ['synset3', 'single'],  # This should be skipped (len == 1)
    'n00000004': ['synset4', 'bird_species_exotic', 'description4'],
}

ARGS = {
    'imagenet_index': imagenet_index
}
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 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
get_activation_fn Ran
ran; our contract draft was wrong, not the code
prisma-multimodal/vit-prisma/src/vit_prisma/sae/sae.py
code served (permissive licence) · get_code("bd6e1088e609f3eb")
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 TopK. 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
from torch import nn
import logging

torch.manual_seed(0)

# Test case 1: 'relu' activation
ARGS_1 = {
    'activation_fn': 'relu',
}

# Test case 2: 'tanh-relu' activation
ARGS_2 = {
    'activation_fn': 'tanh-relu',
}

# Test case 3: 'topk' activation with k parameter
ARGS_3 = {
    'activation_fn': 'topk',
    'k': 2,
    'postact_fn': nn.ReLU(),
}

# Test case 4: 'topk' activation with custom postact_fn
ARGS_4 = {
    'activation_fn': 'topk',
    'k': 3,
    'postact_fn': nn.Tanh(),
}

# Use the most comprehensive test case as the main ARGS
ARGS = ARGS_3
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 TopK — a TopK output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TopK 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_cc_dataloaders Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/conceptual_captions.py
code served (permissive licence) · get_code("0d68e4cb26762d11")
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
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms
from PIL import Image
import pandas as pd
from pathlib import Path
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory structure for the mock dataset
temp_dir = tempfile.mkdtemp()
root_dir = temp_dir

# Create Train and Validation subdirectories
train_dir = Path(root_dir) / 'Train'
val_dir = Path(root_dir) / 'Validation'
train_dir.mkdir(exist_ok=True)
val_dir.mkdir(exist_ok=True)

# Create nested directories for image organization (first 3 chars of image_id)
for subdir in ['000', '001']:
    (train_dir / subdir).mkdir(exist_ok=True)
    (val_dir / subdir).mkdir(exist_ok=True)

# Create mock images
def create_mock_image(path):
    img = Image.new('RGB', (224, 224), color='red')
    img.save(path)

# Create training images and labels
train_labels = []
for i in range(2):
    img_id = f'{i:09d}'
    subdir = img_id[:3]
    img_path = train_dir / subdir / f'{img_id}-0.jpg'
    create_mock_image(img_path)
    train_labels.append({'image_id': img_id, 'caption': f'A training image {i}'})

train_df = pd.DataFrame(train_labels)
train_labels_path = Path(root_dir) / 'Image_Labels_Subset_Train_GCC-Labels-training.tsv'
train_df.to_csv(train_labels_path, sep='\t', index=False, header=False)

# Create validation images and labels
val_labels = []
for i in range(2):
    img_id = f'{100 + i:09d}'
    subdir = img_id[:3]
    img_path = val_dir / subdir / f'{img_id}-0.jpg'
    create_mock_image(img_path)
    val_labels.append({'image_id': img_id, 'caption': f'A validation image {i}'})

val_df = pd.DataFrame(val_labels)
val_labels_path = Path(root_dir) / 'Image_Labels_Subset_Val_GCC-Labels-validation.tsv'
val_df.to_csv(val_labels_path, sep='\t', index=False, header=False)

ARGS = {
    'root_dir': root_dir,
    'batch_size': 2,
    'num_workers': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, pandas, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_imagenet_index_to_name Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/imagenet_dataset.py
code served (permissive licence) · get_code("b62018180f976b10")
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 os
import json
import tempfile

# Create a temporary directory with a mock imagenet_index.json file
temp_dir = tempfile.mkdtemp()
imagenet_json_path = os.path.join(temp_dir, 'imagenet_index.json')

# Create a small mock imagenet index file
mock_index = {
    "0": ["n01440764", "tench"],
    "1": ["n01443537", "goldfish"],
    "2": ["n01484850", "great_white_shark"]
}

with open(imagenet_json_path, 'w') as f:
    json.dump(mock_index, f)

# Define ARGS with both test cases: with and without imagenet_path
# We'll use the path version since it's more concrete
ARGS = {
    'imagenet_path': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
vit_prisma — 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_imagenet_transforms_clip Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/imagenet_dataset.py
code served (permissive licence) · get_code("d1b187c5b98793b5")
How it ran

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

import torch
from torchvision import transforms
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a minimal mock processor that has the required attributes
class MockImageProcessor:
    def __init__(self):
        self.image_mean = [0.485, 0.456, 0.406]
        self.image_std = [0.229, 0.224, 0.225]

class MockDinoProcessor:
    def __init__(self):
        self.image_mean = [0.5, 0.5, 0.5]
        self.image_std = [0.5, 0.5, 0.5]

class MockCLIPProcessor:
    def __init__(self):
        self.image_processor = MockImageProcessor()

# Mock the from_pretrained methods
def mock_vit_processor_from_pretrained(model_name):
    return MockDinoProcessor()

def mock_clip_processor_from_pretrained(model_name):
    return MockCLIPProcessor()

# Patch transformers module before importing
import sys
from unittest.mock import MagicMock

mock_transformers = MagicMock()
mock_transformers.ViTImageProcessor.from_pretrained = mock_vit_processor_from_pretrained
mock_transformers.CLIPProcessor.from_pretrained = mock_clip_processor_from_pretrained
sys.modules['transformers'] = mock_transformers

ARGS = {
    "model_name": "openai/clip-vit-base-patch32",
    "size": 224
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
plot_four_objects Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/polygenic_induction.py
code served (permissive licence) · get_code("6237c44a5a1559b3")
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 (64, 64) 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

def draw_circle(image, x, y, im_size=64):
    """Stand-in drawing function that modifies image in place"""
    y_int, x_int = int(y), int(x)
    if 0 <= y_int < im_size and 0 <= x_int < im_size:
        image[y_int, x_int] = 1.0

def draw_square(image, x, y, im_size=64):
    """Stand-in drawing function that modifies image in place"""
    y_int, x_int = int(y), int(x)
    if 0 <= y_int < im_size and 0 <= x_int < im_size:
        image[y_int, x_int] = 0.5

def draw_triangle(image, x, y, im_size=64):
    """Stand-in drawing function that modifies image in place"""
    y_int, x_int = int(y), int(x)
    if 0 <= y_int < im_size and 0 <= x_int < im_size:
        image[y_int, x_int] = 0.8

def draw_line(image, x, y, im_size=64):
    """Stand-in drawing function that modifies image in place"""
    y_int, x_int = int(y), int(x)
    if 0 <= y_int < im_size and 0 <= x_int < im_size:
        image[y_int, x_int] = 0.3

ARGS = {
    "A": draw_circle,
    "B": draw_square,
    "C": draw_triangle,
    "D": draw_line,
    "Ax": 10,
    "Ay": 15,
    "Bx": 25,
    "By": 30,
    "Cx": 40,
    "Cy": 45,
    "Dx": 55,
    "Dy": 50,
    "vertical": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (64, 64) — shape (64, 64) 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
train_test_dataset Ran
ran on a synthesized input
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/dsprites.py
code served (permissive licence) · get_code("627da91f7fee55bf")
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 torch.utils.data import Dataset, Subset
from sklearn.model_selection import train_test_split

torch.manual_seed(0)

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 __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        return self.data[idx], self.labels[idx]

dataset = SimpleDataset(size=10)

ARGS = {
    'dataset': dataset,
    'test_split': 0.25
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
accuracy Not yet run
unverified (harvested, no recorded run)
soniajoseph/vit-prisma/src/vit_prisma/model_eval/evaluate_imagenet.py
code served (permissive licence) · get_code("6ab336cad19fdbae")
How it ran

no invocation recorded.

get_train_test_data Not yet run
unverified (harvested, no recorded run)
soniajoseph/vit-prisma/src/vit_prisma/dataloaders/circle.py
code served (permissive licence) · get_code("0f946c7b88043fde")
How it ran

no invocation recorded.

run Not yet run
unverified (harvested, no recorded run)
soniajoseph/vit-prisma/src/vit_prisma/model_eval/evaluate_imagenet.py
code served (permissive licence) · get_code("f265fd87ea3c65a9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 15 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
accuracy 22 other papers
17 dated earlier, 5 later
2207.05333 (2022-07)
IDEA: Increasing Text Diversity via Online Multi-Label Recognition for Vision-Language Pre-training
2208.05592 (2022-08)
Patching open-vocabulary models by interpolating weights
2211.12914 (2022-11)
Open-vocabulary Attribute Detection
and 19 more not named here

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

Robust tooling and publicly available pre-trained models have helped drive recent advances in mechanistic interpretability for language models. However, similar progress in vision mechanistic interpretability has been hindered by the lack of accessible frameworks and pre-trained weights. We present Prisma (Access the codebase here: https://github.com/Prisma-Multimodal/ViT-Prisma), an open-source framework designed to accelerate vision mechanistic interpretability research, providing a unified toolkit for accessing 75+ vision and video transformers; support for sparse autoencoder (SAE), transcoder, and crosscoder training; a suite of 80+ pre-trained SAE weights; activation caching, circuit analysis tools, and visualization tools; and educational resources. Our analysis reveals surprising findings, including that effective vision SAEs can exhibit substantially lower sparsity patterns than language SAEs, and that in some instances, SAE reconstructions can decrease model loss. Prisma enables new research directions for understanding vision model internals while lowering barriers to entry in this emerging field.

For agents

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

get_harvested_code_for_paper("2504.19475")
get_code_for_paper("2504.19475")
have("2504.19475")

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

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

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

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

Connect an agent — have() is free.