DGL: Dynamic Global-Local Prompt Tuning for Text-Video Retrieval

Xiangpeng Yang, Linchao Zhu, Xiaohan Wang, Yi Yang
1/19/2024
cs.CV

Official code: knightyxp/DGL (49 stars, last commit 2024-10-14).

Abstract

Text-video retrieval is a critical multi-modal task to find the most relevant video for a text query. Although pretrained models like CLIP have demonstrated impressive potential in this area, the rising cost of fully finetuning these models due to increasing model size continues to pose a problem. To address this challenge, prompt tuning has emerged as an alternative. However, existing works still face two problems when adapting pretrained image-text models to downstream video-text tasks: (1) The visual encoder could only encode frame-level features and failed to extract global-level general video information. (2) Equipping the visual and text encoder with separated prompts failed to mitigate the visual-text modality gap. To this end, we propose DGL, a cross-modal Dynamic prompt tuning method with Global-Local video attention. In contrast to previous prompt tuning methods, we employ the shared latent space to generate local-level text and frame prompts that encourage inter-modal interaction. Furthermore, we propose modeling video in a global-local attention mechanism to capture global video information from the perspective of prompt tuning. Extensive experiments reveal that when only 0.67% parameters are tuned, our cross-modal prompt tuning strategy DGL outperforms or is comparable to fully finetuning methods on MSR-VTT, VATEX, LSMDC, and ActivityNet datasets. Code will be available at https://github.com/knightyxp/DGL

View on arXivView PDF

Code Implementations(1)

knightyxp/DGLOfficial100%

[AAAI 2024] DGL: Dynamic Global-Local Prompt Tuning for Text-Video Retrieval.

491Shell, PythonFeb 14, 20242 years agoNOASSERTION
cross-modal-learningcross-modal-retrievalparameter-efficient-tuningprompt-tuningvideo-language-understanding+1 more

Similar Papers

Cite this paper

@article{yang2024dgl,
  title  = {DGL: Dynamic Global-Local Prompt Tuning for Text-Video Retrieval},
  author = {Xiangpeng Yang and Linchao Zhu and Xiaohan Wang and Yi Yang},
  year   = {2024},
  eprint = {2401.10588},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.10588v1}
}

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

Discussion