DiffusionRet: Generative Text-Video Retrieval with Diffusion Model

Peng Jin, Hao Li, Zesen Cheng, Kehan Li, Xiang Ji +3 more
2/14/2026

No official code found. Best implementation: jpthu17/DiffusionRet (141 stars, Apache-2.0, last commit 2024-04-09).

Abstract

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 (Diffusion-Ret), 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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ICCV 2023] DiffusionRet: Generative Text-Video Retrieval with Diffusion Model

1417PythonMar 16, 20232 years agoApache-2.0
cross-modal-retrievaldiffusion-modelsiccv2023video-retrieval

Similar Papers

Cite this paper

@article{jin2026diffusionret,
  title  = {DiffusionRet: Generative Text-Video Retrieval with Diffusion Model},
  author = {Peng Jin and Hao Li and Zesen Cheng and Kehan Li and Xiang Ji and Chang Liu and Li-ming Yuan and Jie Chen},
  year   = {2026},
  eprint = {2303.09867},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2303.09867},
  journal = {ICCV 2023 2023}
}

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

Discussion