Candidate Set Re-ranking for Composed Image Retrieval with Dual Multi-modal Encoder

Zheyuan Liu, Weixuan Sun, Damien Teney, Stephen Gould
5/25/2023
cs.CVcs.IRcs.LG

Official code: Cuberick-Orion/Candidate-Reranking-CIR (20 stars, MIT, last commit 2024-02-07).

Abstract

Composed image retrieval aims to find an image that best matches a given multi-modal user query consisting of a reference image and text pair. Existing methods commonly pre-compute image embeddings over the entire corpus and compare these to a reference image embedding modified by the query text at test time. Such a pipeline is very efficient at test time since fast vector distances can be used to evaluate candidates, but modifying the reference image embedding guided only by a short textual description can be difficult, especially independent of potential candidates. An alternative approach is to allow interactions between the query and every possible candidate, i.e., reference-text-candidate triplets, and pick the best from the entire set. Though this approach is more discriminative, for large-scale datasets the computational cost is prohibitive since pre-computation of candidate embeddings is no longer possible. We propose to combine the merits of both schemes using a two-stage model. Our first stage adopts the conventional vector distancing metric and performs a fast pruning among candidates. Meanwhile, our second stage employs a dual-encoder architecture, which effectively attends to the input triplet of reference-text-candidate and re-ranks the candidates. Both stages utilize a vision-and-language pre-trained network, which has proven beneficial for various downstream tasks. Our method consistently outperforms state-of-the-art approaches on standard benchmarks for the task. Our implementation is available at https://github.com/Cuberick-Orion/Candidate-Reranking-CIR.

View on arXivView PDF

Code Implementations(1)

MIT

The official implementation for Candidate Set Re-ranking for Composed Image Retrieval (TMLR) 01/2024

201Python, Jupyter NotebookNov 23, 20232 years agoMIT

Cite this paper

@article{liu2023candidate,
  title  = {Candidate Set Re-ranking for Composed Image Retrieval with Dual Multi-modal Encoder},
  author = {Zheyuan Liu and Weixuan Sun and Damien Teney and Stephen Gould},
  year   = {2023},
  eprint = {2305.16304},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.16304v3}
}

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/2305.16304.svg)](https://codeofpaper.com/paper/2305.16304)

Discussion