SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.09291 · ICLR · 2024

Vision-by-Language for Training-Free Compositional Image Retrieval

Karsten Roth, Zeynep Akata, Massimiliano Mancini, Shyamgopal Karthik

arXiv · PDF · Open in the Atlas

Code that ran

4 of 8 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; 3 failures of our instrument; 4 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/2310.09291.json · badge: /api/ran/2310.09291.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
explainableml/vision_by_language canonical (classifier label)
classifier basis: census
4 ran · 4 no recorded run
FunctionStatusWhere it lives
collate_fn Ran
ran, honoured the contract we drafted
explainableml/vision_by_language/src/data_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from Chen-Junyang-cn/PLI, is pointer only (licence: NONE) · get_code("b6c1f837e6faaeba")
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 Chen-Junyang-cn/PLI, 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.

expand2square Ran
ran; our contract draft was wrong, not the code
explainableml/vision_by_language/src/datasets.py
code served (permissive licence) · get_code("e75146036d2d1504")
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 Image. 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 PIL.Image
import numpy as np

torch_manual_seed = 0

# Create a simple PIL Image for testing
# Make a small non-square image (width=100, height=60)
img_array = np.random.randint(0, 256, (60, 100, 3), dtype=np.uint8)
pil_img = PIL.Image.fromarray(img_array, mode='RGB')

# Define arguments
ARGS = {
    'pil_img': pil_img,
    'background_color': (0, 0, 0)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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_recall Ran
ran; our contract draft was wrong, not the code
explainableml/vision_by_language/src/utils.py
code served (permissive licence) · get_code("55917bc288f17d17")
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 float, ndim 0, dtype family float, shape () 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

torch.manual_seed(0)

# Case 1: 1D targets (B,) - targets is expanded to (B, k)
# indices shape: (B, k) where B=2, k=3
# targets shape: (B,) where B=2
indices_1d = torch.tensor([[0, 1, 2], [3, 4, 5]], dtype=torch.long)
targets_1d = torch.tensor([1, 4], dtype=torch.long)

ARGS = {
    "indices": indices_1d,
    "targets": targets_1d,
}
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 float, ndim 0, dtype family float, shape () — shape () 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
targetpad_transform Ran
ran; our contract draft was wrong, not the code
explainableml/vision_by_language/src/data_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from miccunifi/searle, is pointer only (licence: NOASSERTION) · get_code("9476d6cebb3ecfb9")
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 miccunifi/searle, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

circo Not yet run
unverified (harvested, no recorded run)
explainableml/vision_by_language/src/compute_results.py
code served (permissive licence) · get_code("afe61f6410fb50d2")
How it ran

no invocation recorded.

cirr Not yet run
unverified (harvested, no recorded run)
explainableml/vision_by_language/src/compute_results.py
code served (permissive licence) · get_code("0cc283db93cbae1d")
How it ran

no invocation recorded.

fiq Not yet run
unverified (harvested, no recorded run)
explainableml/vision_by_language/src/compute_results.py
code served (permissive licence) · get_code("5ee1f8a4e8bf641d")
How it ran

no invocation recorded.

openai_completion Not yet run
unverified (harvested, no recorded run)
explainableml/vision_by_language/src/openai_api.py
code served (permissive licence) · get_code("f6c8fb5e60546cec")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 2 later) and 6 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
collate_fn 15 other papers
3 dated earlier, 1 the same month, 11 later
2003.04618 (2020-03)
Convolutional Occupancy Networks
2209.09552 (2022-09)
Cross-modal Learning for Image-Guided Point Cloud Shape Completion
2301.13823 (2023-01)
Grounding Language Models to Images for Multimodal Inputs and Outputs
and 12 more not named here
targetpad_transform 3 other papers
3 later
2312.01998 (2023-12)
Language-only Efficient Training of Zero-shot Composed Image Retrieval
2405.02951 (2024-05)
iSEARLE: Improving Textual Inversion for Zero-Shot Composed Image Retrieval
Byun_An_Efficient_Post-hoc_Framework_for_Reducing_Task_Discrepancy_of_Text_ICCV_2025_paper (2025 (year only))
An Efficient Post-hoc Framework for Reducing Task Discrepancy of Text Encoders for Composed Image Retrieval

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

Given an image and a target modification (e.g an image of the Eiffel tower and the text "without people and at night-time"), Compositional Image Retrieval (CIR) aims to retrieve the relevant target image in a database. While supervised approaches rely on annotating triplets that is costly (i.e. query image, textual modification, and target image), recent research sidesteps this need by using large-scale vision-language models (VLMs), performing Zero-Shot CIR (ZS-CIR). However, state-of-the-art approaches in ZS-CIR still require training task-specific, customized models over large amounts of image-text pairs. In this work, we propose to tackle CIR in a training-free manner via our Compositional Image Retrieval through Vision-by-Language (CIReVL), a simple, yet human-understandable and scalable pipeline that effectively recombines large-scale VLMs with large language models (LLMs). By captioning the reference image using a pre-trained generative VLM and asking a LLM to recompose the caption based on the textual target modification for subsequent retrieval via e.g. CLIP, we achieve modular language reasoning. In four ZS-CIR benchmarks, we find competitive, in-part state-of-the-art performance -improving over supervised methods. Moreover, the modularity of CIReVL offers simple scalability without re-training, allowing us to both investigate scaling laws and bottlenecks for ZS-CIR while easily scaling up to in parts more than double of previously reported results. Finally, we show that CIReVL makes CIR human-understandable by composing image and text in a modular fashion in the language domain, thereby making it intervenable, allowing to post-hoc re-align failure cases. Code available at github.com/ExplainableML/Vision by Language. Compositional Image Retrieval (CIR) necessitates a nuanced coupling between the image content and the semantics of the textual query to retrieve a new image that accurately embodies the relevant image elements and the modifications described in the textual query. To achieve this, previous works require curated triplets (query image, modifying text, target image) to train a specific CIR system. However, annotating such triplets is both difficult and labor-intensive. To tackle this problem, recent research proposed Zero-Shot CIR (ZS-CIR) (Saito et al., 2023;Baldrati et al., 2023). Based on largescale pre-trained vision-language models (VLMs) (e.g. CLIP (Radford et al., 2021)), these methods use image-caption pairs to train textual inversions (Gal et al., 2023;Cohen et al., 2022) mapping images to text tokens. A static template merges tokens and textual modifications to obtain target captions, performing CIR without explicit supervision. Thus, even when leveraging large-scale VLMs, ZS-CIR methods still train additional mapping networks on large image-caption datasets. In this work, we propose to achieve training-free ZS-CIR by leveraging ubiquitously available, offthe-shelf models already trained with large-scale training data. Our Compositional Image Retrieval through Vision-by-Language (CIReVL) follows the vision-by-language paradigm (

For agents

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

get_harvested_code_for_paper("2310.09291")
get_code_for_paper("2310.09291")
have("2310.09291")

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

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

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

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

Connect an agent — have() is free.