Composed Video Retrieval via Enriched Context and Discriminative Embeddings
Omkar Thawakar, Muzammal Naseer, Rao Muhammad Anwer, Salman Khan, Michael Felsberg, Mubarak Shah, Fahad Shahbaz Khan
TL;DR
This work tackles composed video retrieval by incorporating query-specific context through detailed language descriptions and learning discriminative embeddings across vision, text, and vision-text modalities. The method uses three inputs—reference video, enriched description, and change text—processed by a shared multi-modal encoder with cross-attention, and trained with hard-negative contrastive losses across multiple target databases. The resulting joint embedding $ ilde f(q,d,t)$ is optimized via $v^* = \underset{v\in V}{\arg\max} \; \mathcal{L}( \tilde f(q,d,t), g(v))$ with $\tilde f(q,d,t) = f(q,t) + f(q,d) + f(e(d),t)$, achieving state-of-the-art performance on WebVid-CoVR and strong zero-shot results on CoIR benchmarks CIRR and FashionIQ. The approach also shows robust transfer learning and benefits from high-quality language descriptions generated by multimodal conversation models, with code and models available for reproducibility.
Abstract
Composed video retrieval (CoVR) is a challenging problem in computer vision which has recently highlighted the integration of modification text with visual queries for more sophisticated video search in large databases. Existing works predominantly rely on visual queries combined with modification text to distinguish relevant videos. However, such a strategy struggles to fully preserve the rich query-specific context in retrieved target videos and only represents the target video using visual embedding. We introduce a novel CoVR framework that leverages detailed language descriptions to explicitly encode query-specific contextual information and learns discriminative embeddings of vision only, text only and vision-text for better alignment to accurately retrieve matched target videos. Our proposed framework can be flexibly employed for both composed video (CoVR) and image (CoIR) retrieval tasks. Experiments on three datasets show that our approach obtains state-of-the-art performance for both CovR and zero-shot CoIR tasks, achieving gains as high as around 7% in terms of recall@K=1 score. Our code, models, detailed language descriptions for WebViD-CoVR dataset are available at \url{https://github.com/OmkarThawakar/composed-video-retrieval}
