Composed Image Retrieval using Contrastive Learning and Task-oriented CLIP-based Features

Alberto Baldrati, Marco Bertini, Tiberio Uricchio, Alberto del Bimbo
8/22/2023
cs.CV

Official code: ABaldrati/CLIP4Cir (194 stars, MIT, PyTorch, last commit 2023-09-05). 2 more implementations below.

Abstract

Given a query composed of a reference image and a relative caption, the Composed Image Retrieval goal is to retrieve images visually similar to the reference one that integrates the modifications expressed by the caption. Given that recent research has demonstrated the efficacy of large-scale vision and language pre-trained (VLP) models in various tasks, we rely on features from the OpenAI CLIP model to tackle the considered task. We initially perform a task-oriented fine-tuning of both CLIP encoders using the element-wise sum of visual and textual features. Then, in the second stage, we train a Combiner network that learns to combine the image-text features integrating the bimodal information and providing combined features used to perform the retrieval. We use contrastive learning in both stages of training. Starting from the bare CLIP features as a baseline, experimental results show that the task-oriented fine-tuning and the carefully crafted Combiner network are highly effective and outperform more complex state-of-the-art approaches on FashionIQ and CIRR, two popular and challenging datasets for composed image retrieval. Code and pre-trained models are available at https://github.com/ABaldrati/CLIP4Cir

View on arXivView PDF

Code Implementations(3)

ABaldrati/CLIP4CirOfficial100%
PyTorchMIT

[ACM TOMM 2023] - Composed Image Retrieval using Contrastive Learning and Task-oriented CLIP-based Features

19416PythonSep 15, 20223 years agoMIT
cirrclipclip4cirdeep-learningfashioniq+3 more
QingLiii/CLIP4CirCommunity68%
MIT

[ACM TOMM 2023] - Composed Image Retrieval using Contrastive Learning and Task-oriented CLIP-based Features

00PythonMar 10, 20251 years agoMIT

Paper Replication for "Composed Image Retrieval using Contrastive Learning and Task-oriented CLIP-based Features"

00Python, Jupyter NotebookDec 13, 20241 years ago

Similar Papers

Cite this paper

@article{baldrati2023composed,
  title  = {Composed Image Retrieval using Contrastive Learning and Task-oriented CLIP-based Features},
  author = {Alberto Baldrati and Marco Bertini and Tiberio Uricchio and Alberto del Bimbo},
  year   = {2023},
  eprint = {2308.11485},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.11485v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.11485.svg)](https://codeofpaper.com/paper/2308.11485)

Discussion