SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.07622 · 2023

Pretrain like Your Inference: Masked Tuning Improves Zero-Shot Composed Image Retrieval

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
Chen-Junyang-cn/PLI canonical 3 of 4
FunctionStatusWhere it lives
collate_fn Ran Chen-Junyang-cn/PLI/circo_test_submission.py
pointer only (licence: NONE) · get_code("b6c1f837e6faaeba")
get_recall Ran Chen-Junyang-cn/PLI/genecis_eval.py
pointer only (licence: NONE) · get_code("120655737600ab08")
load_model Ran Chen-Junyang-cn/PLI/genecis_eval.py
pointer only (licence: NONE) · get_code("6977e9b491f237fb")
validate Not yet run Chen-Junyang-cn/PLI/genecis_eval.py
pointer only (licence: NONE) · get_code("78085af70623ee31")

Repositories linked to this paper

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

Abstract

Zero-shot composed image retrieval (ZS-CIR), which takes a textual modification and a reference image as a query to retrieve a target image without triplet labeling, has gained more and more attention in data mining. Current ZS-CIR research mainly relies on the generalization ability of pre-trained vision-language models, e.g., CLIP. However, the pre-trained vision-language models and CIR tasks have substantial discrepancies, where the vision-language models focus on learning the similarities but CIR aims to learn the modifications of the image guided by text. In this paper, we introduce a novel unlabeled and pre-trained masked tuning approach, which reduces the gap between the pre-trained vision-language model and the downstream CIR task. First, to reduce the gap, we reformulate the contrastive learning of the vision-language model as the CIR task, where we randomly mask input image patches to generate $\langle$masked image, text, image$\rangle$ triplet from an image-text pair. Then, we propose a simple but novel pre-trained masked tuning method, which uses the text and the masked image to learn the modifications of the original image. With such a simple design, the proposed masked tuning can learn to better capture fine-grained text-guided modifications. Extensive experimental results demonstrate the significant superiority of our approach over the baseline models on four ZS-CIR datasets, including FashionIQ, CIRR, CIRCO, and GeneCIS. Our codes are available at https://github.com/Chen-Junyang-cn/PLI

For agents

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

get_harvested_code_for_paper("2311.07622")
get_code_for_paper("2311.07622")
have("2311.07622")

Connect an agent — have() is free.