[Paper Review] DiffusionRet: Generative Text-Video Retrieval with Diffusion Model
DiffusionRet proposes a novel generative text-video retrieval framework that models the joint probability distribution $p(\text{candidates}, \text{query})$ using a diffusion model, enabling both high retrieval accuracy and strong generalization to out-of-domain data. By combining generation loss and contrastive learning, it achieves state-of-the-art performance across five benchmarks while demonstrating superior zero-shot transferability.
Existing text-video retrieval solutions are, in essence, discriminant models focused on maximizing the conditional likelihood, i.e., p(candidates|query). While straightforward, this de facto paradigm overlooks the underlying data distribution p(query), which makes it challenging to identify out-of-distribution data. To address this limitation, we creatively tackle this task from a generative viewpoint and model the correlation between the text and the video as their joint probability p(candidates,query). This is accomplished through a diffusion-based text-video retrieval framework (DiffusionRet), which models the retrieval task as a process of gradually generating joint distribution from noise. During training, DiffusionRet is optimized from both the generation and discrimination perspectives, with the generator being optimized by generation loss and the feature extractor trained with contrastive loss. In this way, DiffusionRet cleverly leverages the strengths of both generative and discriminative methods. Extensive experiments on five commonly used text-video retrieval benchmarks, including MSRVTT, LSMDC, MSVD, ActivityNet Captions, and DiDeMo, with superior performances, justify the efficacy of our method. More encouragingly, without any modification, DiffusionRet even performs well in out-domain retrieval settings. We believe this work brings fundamental insights into the related fields. Code is available at https://github.com/jpthu17/DiffusionRet.
Motivation & Objective
- To address the limitation of discriminative models in text-video retrieval, which fail to model the underlying data distribution $p(\text{query})$ and generalize poorly to out-of-distribution data.
- To explore a generative paradigm for text-video retrieval that captures the joint distribution $p(\text{candidates}, \text{query})$ to improve generalization and transferability.
- To leverage the coarse-to-fine, iterative refinement nature of diffusion models for progressive correlation learning between text and video.
- To develop a retrieval framework that maintains high performance in both in-domain and out-domain settings without architectural modifications.
- To demonstrate that generative modeling can outperform discriminative methods in both accuracy and generalization for cross-modal retrieval.
Proposed method
- The framework models text-video retrieval as a diffusion process that gradually generates the joint probability distribution $p(\text{candidates}, \text{query})$ from noise.
- It employs a diffusion model with a denoising U-Net architecture to iteratively refine the joint distribution representation.
- The generator is optimized using Kullback-Leibler divergence loss to improve generation quality.
- The feature extractor is jointly trained with contrastive loss (InfoNCE) to enhance discriminative representation learning.
- The method combines generative and discriminative objectives, balancing joint distribution modeling with feature alignment.
- The framework uses a vanilla transformer encoder for feature extraction, enhancing efficiency and scalability.
Experimental results
Research questions
- RQ1Can modeling the joint probability distribution $p(\text{candidates}, \text{query})$ instead of the conditional $p(\text{candidates}|\text{query})$ improve generalization in text-video retrieval?
- RQ2Does the coarse-to-fine, iterative refinement process of diffusion models enhance cross-modal correlation learning in retrieval tasks?
- RQ3Can a generative framework like DiffusionRet maintain strong performance on out-of-domain retrieval without fine-tuning or architectural changes?
- RQ4How does the combination of generative and discriminative training objectives affect retrieval performance and robustness?
- RQ5Is the diffusion-based approach more scalable and adaptable than autoregressive or GAN-based generative models for retrieval?
Key findings
- DiffusionRet achieves state-of-the-art performance on five standard benchmarks: MSRVTT, LSMDC, MSVD, ActivityNet Captions, and DiDeMo.
- In out-domain retrieval, DiffusionRet outperforms discriminative baselines like CLIP4Clip and EMCL-Net, demonstrating superior zero-shot generalization.
- The method maintains high performance across diverse datasets, indicating strong transferability and robustness to domain shift.
- Visualization shows that DiffusionRet preserves clear separation between positive and negative pairs in both in-domain and out-domain settings.
- The iterative diffusion process progressively refines the joint distribution, revealing semantic correlations between text and video in a coarse-to-fine manner.
- The framework is highly scalable, allowing performance improvement by increasing diffusion steps with minimal computational overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.