SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.05729 · 2024

Finding Visual Task Vectors

arXiv · PDF · Open in the Atlas

Code that ran

2 of 11 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 0 have no contract verdict; 2 failures of our instrument; 9 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/2404.05729.json · badge: /api/ran/2404.05729.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
alhojel/visual_task_vectors canonical (classifier label)
classifier basis: census
2 ran · 9 no recorded run
FunctionStatusWhere it lives
get_obj_from_str Ran
ran; our contract draft was wrong, not the code
alhojel/visual_task_vectors/vqgan.py
pointer only (licence: NONE) · get_code("221b2d116fdf1032")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, alhojel/visual_task_vectors 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_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
alhojel/visual_task_vectors/vqgan.py
pointer only (licence: NONE) · get_code("cb49209c125de1b4")
How it ran

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

calculate_metric Not yet run
unverified (harvested, no recorded run)
alhojel/visual_task_vectors/evaluate/evaluate_colorization.py
pointer only (licence: NONE) · get_code("764136a5eff74434")
How it ran

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

calculate_metric Not yet run
unverified (harvested, no recorded run)
alhojel/visual_task_vectors/evaluate/evaluate_reasoning.py
pointer only (licence: NONE) · get_code("69532fa60013e9f4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, alhojel/visual_task_vectors 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_demo_predictions Not yet run
unverified (harvested, no recorded run)
alhojel/visual_task_vectors/viz_utils.py
pointer only (licence: NONE) · get_code("c68f71948cfa9d7c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, alhojel/visual_task_vectors 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_demo_predictions_with_mask Not yet run
unverified (harvested, no recorded run)
alhojel/visual_task_vectors/viz_utils.py
pointer only (licence: NONE) · get_code("8c8d20b40760059c")
How it ran

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

instantiate_from_config Not yet run
unverified (harvested, no recorded run)
alhojel/visual_task_vectors/vqgan.py
pointer only (licence: NONE); the stored copy get_code serves, from ZhengyaoFang/RS-STE, is pointer only (licence: NONE) · get_code("f0ac78b4e05be194")
How it ran

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

iou Not yet run
unverified (harvested, no recorded run)
alhojel/visual_task_vectors/evaluate/collect_attention_heads.py
pointer only (licence: NONE) · get_code("f82a5154b6295773")
How it ran

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

is_square Not yet run
unverified (harvested, no recorded run)
alhojel/visual_task_vectors/evaluate/evaluate_reasoning.py
pointer only (licence: NONE) · get_code("ce2513917f2cc4b5")
How it ran

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

mse Not yet run
unverified (harvested, no recorded run)
alhojel/visual_task_vectors/evaluate/collect_attention_heads.py
pointer only (licence: NONE) · get_code("abe146eee6ac945e")
How it ran

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

reverse_trans Not yet run
unverified (harvested, no recorded run)
alhojel/visual_task_vectors/tta.py
pointer only (licence: NONE) · get_code("ebd3af8bde9488f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, alhojel/visual_task_vectors 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 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 2 the same month, 3 later) and 2 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_timestep_embedding 91 other papers
54 dated earlier, 2 the same month, 31 later, 4 same year, order not determinable · 7 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 88 more not named here
get_obj_from_str 54 other papers
27 dated earlier, 2 the same month, 24 later, 1 same year, order not determinable · 12 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2102.05379 (2021-02)
Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
2112.00384 (2021-12)
Exploration into Translation-Equivariant Image Quantization
and 51 more not named here
instantiate_from_config 13 other papers
6 dated earlier, 7 later · 1 only as an assembly brick
2112.00384 (2021-12)
Exploration into Translation-Equivariant Image Quantization
2301.13670 (2023-01)
What Makes Good Examples for Visual In-Context Learning?
2306.14795 (2023-06)
MotionGPT: Human Motion as a Foreign Language
and 10 more not named here
calculate_metric 2 other papers
2 dated earlier
2301.13670 (2023-01)
What Makes Good Examples for Visual In-Context Learning?
2311.03648 (2023-11)
Instruct Me More! Random Prompting for Visual In-Context Learning
calculate_metric 2 other papers
2 dated earlier
2301.13670 (2023-01)
What Makes Good Examples for Visual In-Context Learning?
2311.03648 (2023-11)
Instruct Me More! Random Prompting for Visual In-Context Learning
get_demo_predictions 2 other papers
2 dated earlier
2301.13670 (2023-01)
What Makes Good Examples for Visual In-Context Learning?
2311.03648 (2023-11)
Instruct Me More! Random Prompting for Visual In-Context Learning
get_demo_predictions_with_mask 2 other papers
2 dated earlier
2301.13670 (2023-01)
What Makes Good Examples for Visual In-Context Learning?
2311.03648 (2023-11)
Instruct Me More! Random Prompting for Visual In-Context Learning
is_square 2 other papers
2 dated earlier
2301.13670 (2023-01)
What Makes Good Examples for Visual In-Context Learning?
2311.03648 (2023-11)
Instruct Me More! Random Prompting for Visual In-Context Learning
reverse_trans 2 other papers
2 dated earlier
2301.13670 (2023-01)
What Makes Good Examples for Visual In-Context Learning?
2311.03648 (2023-11)
Instruct Me More! Random Prompting for Visual In-Context Learning

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

Visual Prompting is a technique for teaching models to perform a visual task via in-context examples, without any additional training. In this work, we analyze the activations of MAE-VQGAN, a recent Visual Prompting model, and find task vectors, activations that encode task-specific information. Equipped with this insight, we demonstrate that it is possible to identify the task vectors and use them to guide the network towards performing different tasks without providing any input-output examples. To find task vectors, we compute the average intermediate activations per task and use the REINFORCE algorithm to search for the subset of task vectors. The resulting task vectors guide the model towards performing a task better than the original model without the need for input-output examples.

For agents

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

get_harvested_code_for_paper("2404.05729")
get_code_for_paper("2404.05729")
have("2404.05729")

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

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

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

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

Connect an agent — have() is free.