Papers › Sentence-level Prompts Benefit Composed Image Retrieval

Sentence-level Prompts Benefit Composed Image Retrieval

9 Oct 2023arXiv:2310.05473archive 2025-07-28

Yang Bai, Xinxing Xu, Yong liu, Salman Khan, Fahad Khan, WangMeng Zuo, Rick Siow Mong Goh, Chun-Mei Feng

Composed image retrieval (CIR) is the task of retrieving specific images by using a query that involves both a reference image and a relative caption. Most existing CIR models adopt the late-fusion strategy to combine visual and language features. Besides, several approaches have also been suggested to generate a pseudo-word token from the reference image, which is further integrated into the relative caption for CIR. However, these pseudo-word-based prompting methods have limitations when target image encompasses complex changes on reference image, e.g., object removal and attribute modification. In this work, we demonstrate that learning an appropriate sentence-level prompt for the relative caption (SPRC) is sufficient for achieving effective composed image retrieval. Instead of relying on pseudo-word-based prompts, we propose to leverage pretrained V-L models, e.g., BLIP-2, to generate sentence-level prompts. By concatenating the learned sentence-level prompt with the relative caption, one can readily use existing text-based image retrieval models to enhance CIR performance. Furthermore, we introduce both image-text contrastive loss and text prompt alignment loss to enforce the learning of suitable sentence-level prompts. Experiments show that our proposed method performs favorably against the state-of-the-art CIR methods on the Fashion-IQ and CIRR datasets. The source code and pretrained model are publicly available at https://github.com/chunmeifeng/SPRC

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.05473")

Code

Syntology Ran 7 of 8 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract; 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 8 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

chunmeifeng/sprc officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

8 samples harvested; 7 ran; 1 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
1ran · fixture could not drive it
4ran
1unverified

Licence: 8 of the 8 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from chunmeifeng/sprc. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

collate_fn chunmeifeng/sprc/src/data_utils.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · b6c1f837e6faaeba · report
getAttMap chunmeifeng/sprc/src/lavis/common/gradcam.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 7d214655954e2bc6 · report
main_process chunmeifeng/sprc/src/lavis/common/dist_utils.py official repository ran no licence file found · pointer only · 98589643273920ba · report
node_to_dict chunmeifeng/sprc/src/lavis/common/config.py official repository ran no licence file found · pointer only · 791c72070c0b1cfb · report
squarepad_transform chunmeifeng/sprc/src/data_utils.py official repository ran no licence file found · pointer only · a1580dd1883758f6 · report
str2bool chunmeifeng/sprc/src/cirr_test_submission.py official repository ran · violated contract no licence file found · pointer only · 7c508037b40522af · report
targetpad_transform chunmeifeng/sprc/src/data_utils.py official repository ran no licence file found · pointer only · 9e2b18431cf6776f · report
download_cached_file chunmeifeng/sprc/src/lavis/common/dist_utils.py official repository unverified no licence file found · pointer only · 643539116e049080 · report

Tasks

AttributeComposed Image Retrieval (CoIR)Image RetrievalRetrievalSentence

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Retrieval CIRR SPRC2 (Recall@5+Recall_subset@1)/2 82.66 #3 of 17 Archive leaderboard report
Image Retrieval CIRR SPRC2 Recall@10 90.39 #3 of 17 Archive leaderboard report
Image Retrieval CIRR SPRC (Recall@5+Recall_subset@1)/2 81.39 #4 of 17 Archive leaderboard report
Image Retrieval CIRR SPRC Recall@10 89.74 #4 of 17 Archive leaderboard report
Image Retrieval Fashion IQ SPRC (Recall@10+Recall@50)/2 64.85 #4 of 22 Archive leaderboard report
Image Retrieval Fashion IQ SPRC Recall@10 54.92 #4 of 22 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections