arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.01156cs.CV
收藏

TempMe:面向高效文本-视频检索的视频时序令牌合并

TempMe: Video Temporal Token Merging for Efficient Text-Video Retrieval

School of Software, Tsinghua University(清华大学软件学院);BNRist, Tsinghua University(清华大学BNRist);Hangzhou Zhuoxi Institute of Brain and Intelligence(杭州浙西脑智研究院);GRG Banking Equipment Co., Ltd.(广电运通金融电子股份有限公司);South China University of Technology(华南理工大学)

Leqi Shen, Tianxiang Hao, Tao He, Sicheng Zhao, Yifeng Zhang, Pengzhang Liu, Yongjun Bao, Guiguang Ding

AI总结:

本文提出 TempMe,一种参数与训练-推理双高效的文本-视频检索架构,通过渐进式多粒度时序令牌合并减少时空冗余,仅用 0.50M 可训练参数即显著降低计算量并提升检索性能。

摘要:

大多数文本-视频检索方法采用 CLIP 等文本-图像预训练模型作为骨干网络。这些方法通过图像编码器独立处理每个采样帧,导致计算开销高,限制了实际部署。针对这一问题,我们专注于高效文本-视频检索,解决两个关键挑战:1. 从可训练参数的角度看,当前的参数高效微调方法推理成本较高;2. 从模型复杂度的角度看,当前的令牌压缩方法主要针对图像设计,用于减少空间冗余,但忽视了视频连续帧中的时序冗余。为应对这些挑战,我们提出 Temporal Token Merging(TempMe),一种参数高效且训练-推理高效的文本-视频检索架构,可最小化可训练参数和模型复杂度。具体而言,我们引入了一个渐进式多粒度框架。通过逐步合并相邻片段,我们减少了时空冗余并增强了跨不同帧的时序建模,从而提高了效率和性能。大量实验验证了 TempMe 的优越性。与先前的参数高效文本-视频检索方法相比,TempMe 仅用 0.50M 可训练参数就取得了更优性能。它将输出令牌显著减少了 95%,GFLOPs 减少了 51%,同时实现了 1.8 倍加速和 4.4% 的 R-Sum 提升。在全量微调下,TempMe 实现了显著的 7.9% R-Sum 提升,训练速度加快 1.57 倍,GPU 内存占用为 75.2%。代码可在 https://github.com/LunarShen/TempMe 获取。

英文摘要:

Most text-video retrieval methods utilize the text-image pre-trained models like CLIP as a backbone. These methods process each sampled frame independently by the image encoder, resulting in high computational overhead and limiting practical deployment. Addressing this, we focus on efficient text-video retrieval by tackling two key challenges: 1. From the perspective of trainable parameters, current parameter-efficient fine-tuning methods incur high inference costs; 2. From the perspective of model complexity, current token compression methods are mainly designed for images to reduce spatial redundancy but overlook temporal redundancy in consecutive frames of a video. To tackle these challenges, we propose Temporal Token Merging (TempMe), a parameter-efficient and training-inference efficient text-video retrieval architecture that minimizes trainable parameters and model complexity. Specifically, we introduce a progressive multi-granularity framework. By gradually combining neighboring clips, we reduce spatio-temporal redundancy and enhance temporal modeling across different frames, leading to improved efficiency and performance. Extensive experiments validate the superiority of our TempMe. Compared to previous parameter-efficient text-video retrieval methods, TempMe achieves superior performance with just 0.50M trainable parameters. It significantly reduces output tokens by 95% and GFLOPs by 51%, while achieving a 1.8X speedup and a 4.4% R-Sum improvement. With full fine-tuning, TempMe achieves a significant 7.9% R-Sum improvement, trains 1.57X faster, and utilizes 75.2% GPU memory usage. The code is available at https://github.com/LunarShen/TempMe.

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

↑