arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.00823cs.CVcs.IR
收藏

CenterCLIP:用于高效文本-视频检索的令牌聚类

CenterCLIP: Token Clustering for Efficient Text-Video Retrieval

Zhejiang University(浙江大学);University of Technology Sydney(悉尼科技大学)

Shuai Zhao, Linchao Zhu, Xiaohan Wang, Yi Yang

摘要:

近年来,CLIP等大规模预训练方法在文本-视频检索等多模态研究中取得了很大进展。在CLIP中,Transformers对于建模复杂的多模态关系至关重要。然而,在CLIP的视觉Transformer中,由于视频中连续和相似帧的冗余性质,产生离散视觉令牌序列的基本视觉令牌化过程产生许多同质令牌。这大大增加了计算成本,并阻碍了视频检索模型在Web应用程序中的部署。为了减少冗余视频标记的数量,本文设计了一种多段标记聚类算法,以找到最具代表性的标记,丢弃不必要的标记。由于帧冗余主要发生在连续的帧中,我们将视频分成多个段,并进行段级聚类。来自每个片段的中心标记稍后被连接成新的序列,同时它们的原始时空关系被很好地保持。我们实例化两个聚类算法,有效地找到确定性的中心点和迭代分区组在高维空间。通过这种标记聚类和中心选择过程,我们成功地减少了计算成本,通过删除冗余的视觉标记。该方法进一步增强了视频和文本表示之间的段级语义对齐,强制执行段内帧的令牌的时空交互。我们的方法称为CenterCLIP,在典型的文本-视频基准测试中大大超过了现有的最先进的方法,同时将训练内存成本降低了35%,并在最佳情况下将推理速度加快了14%。代码可在\href{https://github.com/mzhaoshuai/CenterCLIP}{https://github.com/mzhaoshuai/CenterCLIP}上获得。

英文摘要:

Recently, large-scale pre-training methods like CLIP have made great progress in multi-modal research such as text-video retrieval. In CLIP, transformers are vital for modeling complex multi-modal relations. However, in the vision transformer of CLIP, the essential visual tokenization process, which produces discrete visual token sequences, generates many homogeneous tokens due to the redundancy nature of consecutive and similar frames in videos. This significantly increases computation costs and hinders the deployment of video retrieval models in web applications. In this paper, to reduce the number of redundant video tokens, we design a multi-segment token clustering algorithm to find the most representative tokens and drop the non-essential ones. As the frame redundancy occurs mostly in consecutive frames, we divide videos into multiple segments and conduct segment-level clustering. Center tokens from each segment are later concatenated into a new sequence, while their original spatial-temporal relations are well maintained. We instantiate two clustering algorithms to efficiently find deterministic medoids and iteratively partition groups in high dimensional space. Through this token clustering and center selection procedure, we successfully reduce computation costs by removing redundant visual tokens. This method further enhances segment-level semantic alignment between video and text representations, enforcing the spatio-temporal interactions of tokens from within-segment frames. Our method, coined as CenterCLIP, surpasses existing state-of-the-art by a large margin on typical text-video benchmarks, while reducing the training memory cost by 35\% and accelerating the inference speed by 14\% at the best case. The code is available at \href{https://github.com/mzhaoshuai/CenterCLIP}{https://github.com/mzhaoshuai/CenterCLIP}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑