Candidate Set Re-ranking for Composed Image Retrieval with Dual Multi-modal Encoder
Zheyuan Liu, Weixuan Sun, Damien Teney, Stephen Gould
TL;DR
This paper tackles composed image retrieval (CIR), where the goal is to retrieve an image $I_C$ that best matches a query $q= I_R, t $ consisting of a reference image and modification text. It proposes a two-stage pipeline: a fast candidate filtering stage using a BLIP-based multi-modal encoder to produce a query-aware embedding $z_t$ and cosine-similarity against precomputed candidate embeddings, followed by a more expressive re-ranking stage that jointly reasons over the query and a small set of top-$K$ candidates via a dual-encoder architecture with cross-attention and a merging mechanism. The re-ranking model is trained separately with contrastive losses on triplets $ I_R, t, I_C $ and batch negatives, enabling rich query–candidate interactions while keeping inference tractable. Across Fashion-IQ and CIRR, the approach yields state-of-the-art results, with the re-ranking stage providing substantial gains over single-stage methods and other BLIP-based baselines. The work demonstrates the practicality of a two-stage CIR framework and contributes architectural insights for cross-modal triplet reasoning, supported by open-source code for reproducibility and further research.
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.
