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

冻结的CLIP模型是高效的视频学习器

Frozen CLIP Models are Efficient Video Learners

The Chinese University of Hong Kong(香港中文大学);Shanghai AI Laboratory(上海人工智能实验室);Rutgers University(罗格斯大学);Hasso Plattner Institute(哈索·普拉特纳研究所);SenseTime Research(商汤科技研究院);Centre for Perceptual and Interactive Intelligence Limited(感知与交互智能中心有限公司)

Ziyi Lin, Shijie Geng, Renrui Zhang, Peng Gao, Gerard de Melo, Xiaogang Wang, Jifeng Dai, Yu Qiao, Hongsheng Li

摘要:

视频识别一直由端到端学习范式主导-首先使用预训练图像模型的权重初始化视频识别模型,然后对视频进行端到端训练。这使得视频网络能够从预训练的图像模型中受益。然而,这需要大量的计算和内存资源来对视频进行微调,并且直接使用预训练的图像特征而不对图像主干进行微调的替代方案会导致低于标准的结果。幸运的是,对比视觉语言预训练(CLIP)的最新进展为视觉识别任务铺平了道路。在大型开放词汇图像-文本对数据上进行预训练,这些模型可以学习具有丰富语义的强大视觉表示。在本文中,我们提出了有效的视频学习(EVL)-一个有效的框架,用于直接训练具有冻结CLIP特征的高质量视频识别模型。具体来说,我们采用了一个轻量级的Transformer解码器和学习查询令牌动态收集帧级的空间功能的CLIP图像编码器。此外,我们在每个解码器层中采用局部时间模块,以从相邻帧及其注意力图中发现时间线索。我们表明,尽管是有效的训练与冻结的骨干,我们的模型学习高质量的视频表示在各种视频识别数据集。代码可在https://github.com/OpenGVLab/efficient-video-recognition上获得。

英文摘要:

Video recognition has been dominated by the end-to-end learning paradigm -- first initializing a video recognition model with weights of a pretrained image model and then conducting end-to-end training on videos. This enables the video network to benefit from the pretrained image model. However, this requires substantial computation and memory resources for finetuning on videos and the alternative of directly using pretrained image features without finetuning the image backbone leads to subpar results. Fortunately, recent advances in Contrastive Vision-Language Pre-training (CLIP) pave the way for a new route for visual recognition tasks. Pretrained on large open-vocabulary image-text pair data, these models learn powerful visual representations with rich semantics. In this paper, we present Efficient Video Learning (EVL) -- an efficient framework for directly training high-quality video recognition models with frozen CLIP features. Specifically, we employ a lightweight Transformer decoder and learn a query token to dynamically collect frame-level spatial features from the CLIP image encoder. Furthermore, we adopt a local temporal module in each decoder layer to discover temporal clues from adjacent frames and their attention maps. We show that despite being efficient to train with a frozen backbone, our models learn high quality video representations on a variety of video recognition datasets. Code is available at https://github.com/OpenGVLab/efficient-video-recognition.

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

↑