SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.01583 · NeurIPS · 2024

Decomposing and Interpreting Image Representations via Text in ViTs Beyond CLIP

Soheil Feizi, Samyadeep Basu, Sriram Balasubramanian

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2406.01583.json · badge: /api/ran/2406.01583.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
SriramB-98/vit-decompose canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
sriramb-98/vit-decompose canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
FunctionStatusWhere it lives
collect_layer_components Ran
ran; our contract draft was wrong, not the code
SriramB-98/vit-decompose/helpers/model_utils.py
pointer only (licence: NONE) · get_code("ad1f8ca3394f8a3e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SriramB-98/vit-decompose 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_dict Ran
ran; our contract draft was wrong, not the code
SriramB-98/vit-decompose/helpers/decompose_utils.py
pointer only (licence: NONE) · get_code("af8eeaf806f4ef88")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SriramB-98/vit-decompose 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.

detach_input Ran
ran, honoured the contract we drafted
SriramB-98/vit-decompose/helpers/model_utils.py
pointer only (licence: NONE) · get_code("bb93aacaffbcc8d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SriramB-98/vit-decompose 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.

dict_to_tensor Ran
ran, honoured the contract we drafted
SriramB-98/vit-decompose/helpers/decompose_utils.py
pointer only (licence: NONE) · get_code("fac353c620fc2b66")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SriramB-98/vit-decompose 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.

extract_shape_metadata Ran
ran; our contract draft was wrong, not the code
SriramB-98/vit-decompose/helpers/linear_decompose.py
pointer only (licence: NONE) · get_code("1984b228b8b7a70e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SriramB-98/vit-decompose 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.

get_exec_order Ran
ran, honoured the contract we drafted
sriramb-98/vit-decompose/component_ablation.py
pointer only (licence: NONE) · get_code("dd461c55cc3b4e57")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sriramb-98/vit-decompose 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.

head_outputs Ran
ran; our contract draft was wrong, not the code
SriramB-98/vit-decompose/helpers/decompose_utils.py
pointer only (licence: NONE) · get_code("696c02b1ccc49929")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SriramB-98/vit-decompose 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.

list_to_tensor Ran
ran; our contract draft was wrong, not the code
SriramB-98/vit-decompose/helpers/model_utils.py
pointer only (licence: NONE) · get_code("daf19f974b1c8d50")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SriramB-98/vit-decompose 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.

prod Ran
ran, violated the contract we drafted
SriramB-98/vit-decompose/helpers/linear_decompose.py
pointer only (licence: NONE) · get_code("f008b9c99180b5f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SriramB-98/vit-decompose 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.

split Ran
ran; our contract draft was wrong, not the code
SriramB-98/vit-decompose/helpers/linear_decompose.py
pointer only (licence: NONE) · get_code("5f3750bcdd0d49e0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SriramB-98/vit-decompose 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.

checkpoint_filter_fn Not yet run
unverified (harvested, no recorded run)
SriramB-98/vit-decompose/timm/models/tiny_vit.py
pointer only (licence: NONE) · get_code("3f5d672bc6ebb458")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SriramB-98/vit-decompose 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.

get_imgs_across_heads Not yet run
unverified (harvested, no recorded run)
sriramb-98/vit-decompose/image_retrieval_from_image.py
pointer only (licence: NONE) · get_code("310ebed22b298ee3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sriramb-98/vit-decompose 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.

get_imgs_across_heads Not yet run
unverified (harvested, no recorded run)
sriramb-98/vit-decompose/image_retrieval_from_text.py
pointer only (licence: NONE) · get_code("6236e4d25c0310db")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sriramb-98/vit-decompose 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.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 12 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 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.

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-22.

Repositories linked to this paper

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

Abstract

Recent work has explored how individual components of the CLIP-ViT model contribute to the final representation by leveraging the shared image-text representation space of CLIP. These components, such as attention heads and MLPs, have been shown to capture distinct image features like shape, color or texture. However, understanding the role of these components in arbitrary vision transformers (ViTs) is challenging. To this end, we introduce a general framework which can identify the roles of various components in ViTs beyond CLIP. Specifically, we (a) automate the decomposition of the final representation into contributions from different model components, and (b) linearly map these contributions to CLIP space to interpret them via text. Additionally, we introduce a novel scoring function to rank components by their importance with respect to specific features. Applying our framework to various ViT variants (e.g. DeiT, DINO, DINOv2, Swin, MaxViT), we gain insights into the roles of different components concerning particular image features. These insights facilitate applications such as image retrieval using text descriptions or reference images, visualizing token importance heatmaps, and mitigating spurious correlations. We release our code to reproduce the experiments at https://github.com/SriramB-98/vit-decompose

For agents

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

get_harvested_code_for_paper("2406.01583")
get_code_for_paper("2406.01583")
have("2406.01583")

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

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

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

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

Connect an agent — have() is free.