SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.05561 · 2024

Objective drives the consistency of representational similarity across datasets

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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; 4 failures of our instrument; 2 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/2411.05561.json · badge: /api/ran/2411.05561.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
lciernik/similarity_consistency canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
check_paths Ran
ran; our contract draft was wrong, not the code
lciernik/similarity_consistency/sim_consistency/cluster_models.py
code served (permissive licence) · get_code("0bc64cda18d42ef8")
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 argparse
import os
import tempfile
import torch

# Create a temporary directory structure with the required files
temp_dir = tempfile.mkdtemp()
dataset_name = "test_dataset"
method_key = "test_method"
sim_mat_dir = os.path.join(temp_dir, dataset_name, method_key)
os.makedirs(sim_mat_dir, exist_ok=True)

# Create dummy similarity matrix file
sim_mat_path = os.path.join(sim_mat_dir, 'similarity_matrix.pt')
torch.save(torch.randn(2, 4), sim_mat_path)

# Create dummy model_ids file
model_ids_path = os.path.join(sim_mat_dir, 'model_ids.txt')
with open(model_ids_path, 'w') as f:
    f.write("model_1\nmodel_2\n")

# Create argparse.Namespace with required attributes
args = argparse.Namespace(
    sim_mat_root=temp_dir,
    dataset=dataset_name,
    method_key=method_key
)

ARGS = {
    "args": args
}
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
load_similarity_matrix Ran
ran, honoured the contract we drafted
lciernik/similarity_consistency/sim_consistency/cluster_models.py
code served (permissive licence) · get_code("76a740248191180d")
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 DataFrame. 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 tempfile
import torch
import pandas as pd

torch.manual_seed(0)

# Create temporary directory for test files
tmpdir = tempfile.mkdtemp()

# Create a small similarity matrix tensor (2x2 for simplicity)
sim_mat = torch.randn(2, 2)
sim_mat_path = os.path.join(tmpdir, "sim_matrix.pt")
torch.save(sim_mat, sim_mat_path)

# Create model_ids file
model_ids_path = os.path.join(tmpdir, "model_ids.txt")
with open(model_ids_path, 'w') as f:
    f.write("model_1\nmodel_2\n")

ARGS = {
    "sim_mat_path": sim_mat_path,
    "model_ids_path": model_ids_path,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
prepare_args Ran
ran; our contract draft was wrong, not the code
lciernik/similarity_consistency/sim_consistency/argparser.py
code served (permissive licence) · get_code("bf3f3101aee181de")
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 Namespace. 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 argparse
import torch

# Create a minimal argparse.Namespace object
args = argparse.Namespace()

# Create model_info tuple with all required elements
model_info = (
    "resnet50",                          # model (str)
    "torchvision",                       # model_source (str)
    {                                    # model_parameters (dict)
        "num_classes": 10,
        "pretrained": True,
        "depth": 50
    },
    "torchvision.models",                # module_name (str)
    "layer4",                            # feature_alignment (str)
    "model_weights_key"                  # model_key (str)
)

# Define ARGS dictionary mapping all parameters
ARGS = {
    "args": args,
    "model_info": model_info
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
prepare_combined_args Ran
ran; our contract draft was wrong, not the code
lciernik/similarity_consistency/sim_consistency/argparser.py
code served (permissive licence) · get_code("cf4aa653f8b09878")
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 Namespace. 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 argparse
from typing import Tuple, List

# Create a basic argparse.Namespace object
args = argparse.Namespace()

# Define model_comb as a list of tuples
# Each tuple contains: (model_name, model_source, model_parameters, module_name, feature_alignment, model_key)
model_comb = [
    ("resnet50", "torchvision", {"depth": 50, "pretrained": True}, "backbone", "linear_projection", "model_1"),
    ("vit_base", "huggingface", {"hidden_size": 768, "num_layers": 12}, "encoder", "attention_pooling", "model_2"),
    ("efficientnet_b0", "timm", {"width": 1.0, "depth": 1.0}, "feature_extractor", "adaptive_pooling", "model_3"),
]

ARGS = {
    "args": args,
    "model_comb": model_comb,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
process_similarity_matrix Ran
ran; our contract draft was wrong, not the code
lciernik/similarity_consistency/sim_consistency/cluster_models.py
code served (permissive licence) · get_code("5efe179eb12a6674")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a sample similarity matrix as a pandas DataFrame
# Using 4 different models for variety
model_names = ['model_a', 'model_b', 'model_c', 'model_d']

# Create a symmetric similarity matrix with 1s on diagonal
sim_matrix_values = np.array([
    [1.0, 0.8, 0.6, 0.4],
    [0.8, 1.0, 0.7, 0.5],
    [0.6, 0.7, 1.0, 0.9],
    [0.4, 0.5, 0.9, 1.0]
])

sim_mat = pd.DataFrame(sim_matrix_values, index=model_names, columns=model_names)

# Define allowed models (subset of available models)
allowed_models = ['model_a', 'model_c', 'model_d']

ARGS = {
    'sim_mat': sim_mat,
    'allowed_models': allowed_models
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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)
lciernik/similarity_consistency/sim_consistency/eval/metrics.py
code served (permissive licence) · get_code("67833bbbacc8895a")
How it ran

no invocation recorded.

compute_metrics Not yet run
unverified (harvested, no recorded run)
lciernik/similarity_consistency/sim_consistency/eval/metrics.py
code served (permissive licence) · get_code("6beb4e86a582c341")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

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

Abstract

The Platonic Representation Hypothesis claims that recent foundation models are converging to a shared representation space as a function of their downstream task performance, irrespective of the objectives and data modalities used to train these models (Huh et al., 2024). Representational similarity is generally measured for individual datasets and is not necessarily consistent across datasets. Thus, one may wonder whether this convergence of model representations is confounded by the datasets commonly used in machine learning. Here, we propose a systematic way to measure how representational similarity between models varies with the set of stimuli used to construct the representations. We find that the objective function is a crucial factor in determining the consistency of representational similarities across datasets. Specifically, self-supervised vision models learn representations whose relative pairwise similarities generalize better from one dataset to another compared to those of image classification or image-text models. Moreover, the correspondence between representational similarities and the models' task behavior is dataset-dependent, being most strongly pronounced for single-domain datasets. Our work provides a framework for analyzing similarities of model representations across datasets and linking those similarities to differences in task behavior.

For agents

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

get_harvested_code_for_paper("2411.05561")
get_code_for_paper("2411.05561")
have("2411.05561")

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

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

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

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

Connect an agent — have() is free.