Composed Video Retrieval via Enriched Context and Discriminative Embeddings

Omkar Thawakar, Muzammal Naseer, Rao Muhammad Anwer, Salman H. Khan, Michael Felsberg, Mubarak Shah, Fahad Shahbaz Khan

Introduction

Composed Video Retrieval (CoVR) is a challenging task where a user seeks to retrieve a target video based on a reference visual (image or video) and a specific modification text (e.g., "change the white tulip to yellow"). The primary hurdle in CoVR is the "semantic gap": models often over-index on the modification text, losing the rich contextual information present in the original visual query. For instance, a model might successfully find a yellow flower but fail to preserve the specific background of a red tulip field. This work addresses this gap by leveraging Large Language Models (LLMs) to enrich the query context and employing a discriminative embedding strategy to align multi-modal representations.

Methodology

The proposed framework moves beyond simple visual-text fusion by incorporating detailed language descriptions to anchor the retrieval process.

Context Enrichment

To capture the nuances of the reference video, the authors use a multi-modal conversational model (e.g., MiniGPT-4) to generate a detailed textual description of the query's middle frame. To mitigate potential errors, a "hallucination filter" is applied, discarding descriptions that exhibit low cosine similarity with the original video features.

Multi-modal Architecture and Discriminative Alignment

The system processes three distinct inputs: the reference video ($q$), the detailed description ($d$), and the modification text ($t$). Instead of a single monolithic fusion, the model employs a multi-modal encoder to produce three grounded embeddings: $f(q, t)$, $f(q, d)$, and $f(e(d), t)$.

The model aligns a joint query embedding against three distinct target databases (visual, multi-modal, and text) using a contrastive loss strategy.

These embeddings are aggregated into a joint representation and aligned against three separate target databases during training: a visual database, a multi-modal database, and a text-only database. This "triple-threat" alignment ensures the model learns a robust, discriminative embedding space capable of matching targets from multiple semantic perspectives.

Evaluation and Results

The model was evaluated on several benchmarks, including WebVid-CoVR, CIRR (for zero-shot image retrieval), and FashionIQ (for domain-specific transfer).

Quantitative Performance

The proposed method established new state-of-the-art (SOTA) benchmarks:

  • WebVid-CoVR: Achieved 60.12% Recall@1, a significant ~7% absolute improvement over the previous CoVR-BLIP baseline (53.13%).
  • CIRR (Zero-Shot): Reached 40.12% Recall@1, outperforming existing SOTA models by 1.6% without task-specific fine-tuning.
  • FashionIQ: Demonstrated consistent gains across categories like Dress and Shirt, with an average zero-shot improvement of 2.6%.

Qualitative Analysis

Qualitative results demonstrate the model's superior ability to maintain complex backgrounds and functional context while accurately executing the requested modifications.

Qualitative comparison showing how the proposed method preserves background context (e.g., the red flower field or the printing machine) compared to baselines that focus solely on the modification text.

Discussion and Limitations

A key insight of this research is that text serves as a powerful semantic bridge. Detailed descriptions provide functional context (e.g., identifying a "printing machine") that raw pixels might not convey clearly to a standard encoder. Furthermore, the model's strong zero-shot performance on image tasks suggests that the learned contextual representations are highly generalizable.

However, some limitations remain. The current reliance on the middle frame for description generation may not capture significant temporal changes in dynamic videos. Additionally, the framework's performance is tied to the quality of the underlying LLM, and the generation step introduces computational overhead that may impact real-time application. Future work will explore more sophisticated temporal modeling and more efficient contextual anchoring techniques.

Summary updated

BibTeX
@inproceedings{thawakar2024composed,
  author = {Omkar Thawakar and Muzammal Naseer and Rao Muhammad Anwer and Salman H. Khan and Michael Felsberg and Mubarak Shah and Fahad Shahbaz Khan},
  title = {{Composed Video Retrieval via Enriched Context and Discriminative Embeddings}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=belI4GHeIZ},
}
Figure