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

面向图像到视频迁移的Transformer动态压缩适配方法

Dynamic and Compressive Adaptation of Transformers From Images to Videos

State Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室);Platform and Content Group (PCG), Tencent(腾讯平台与内容事业群);Shanghai AI Lab(上海人工智能实验室)

Guozhen Zhang, Jingyu Liu, Shengming Cao, Xiaotong Zhao, Kevin Zhao, Kai Ma, Limin Wang

AI总结:

针对图像到视频适配中逐帧前向传播计算开销高的问题,提出基于动态帧间令牌插值的压缩适配方法InTI,可无缝集成现有方法,在多个数据集上实现精度不降的同时显著降低计算量。

摘要:

近期,基于图文匹配的预训练Vision Transformers(ViTs,视觉Transformer)取得显著成功,引发了学界对图像到视频适配方向的研究兴趣。但现有多数方法对每一帧都保留完整前向传播过程,处理整段视频时计算开销极高。本文提出InTI,这是一种采用动态帧间令牌插值的新型压缩式图像到视频适配方法。InTI旨在软保留含信息量的令牌,同时不破坏其连贯的时空结构。具体而言,相邻帧中相同位置的每对令牌会被线性聚合为一个新令牌,聚合权重由多尺度上下文感知网络生成。通过这种方式,相邻帧的信息可以逐点自适应压缩,从而每次都能将待处理帧数有效减少一半。重要的是,InTI可与现有适配方法无缝集成,无需额外复杂设计就能实现优异性能。在Kinetics-400数据集上,InTI的top-1准确率达到87.1%,与朴素适配方法相比,GFLOPs(十亿次浮点运算)显著降低37.5%。当与额外的时序模块结合时,InTI的top-1准确率可达87.6%,同时GFLOPs降低37%。类似结论已在其他常用数据集上得到验证。

英文摘要:

Recently, the remarkable success of pre-trained Vision Transformers (ViTs) from image-text matching has sparked an interest in image-to-video adaptation. However, most current approaches retain the full forward pass for each frame, leading to a high computation overhead for processing entire videos. In this paper, we present InTI, a novel approach for compressive image-to-video adaptation using dynamic Inter-frame Token Interpolation. InTI aims to softly preserve the informative tokens without disrupting their coherent spatiotemporal structure. Specifically, each token pair at identical positions within neighbor frames is linearly aggregated into a new token, where the aggregation weights are generated by a multi-scale context-aware network. In this way, the information of neighbor frames can be adaptively compressed in a point-by-point manner, thereby effectively reducing the number of processed frames by half each time. Importantly, InTI can be seamlessly integrated with existing adaptation methods, achieving strong performance without extra-complex design. On Kinetics-400, InTI reaches a top-1 accuracy of 87.1 with a remarkable 37.5% reduction in GFLOPs compared to naive adaptation. When combined with additional temporal modules, InTI achieves a top-1 accuracy of 87.6 with a 37% reduction in GFLOPs. Similar conclusions have been verified in other common datasets.

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

↑