arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.18577cs.CVcs.AI

用于高效掩码视频建模的运动引导 Token 压缩

Motion Guided Token Compression for Efficient Masked Video Modeling

ByteDance(字节跳动)

Yukun Feng, Yangming Shi, Fengze Liu, Tan Yan

AI总结:

针对高 FPS 视频 Transformer 的冗余与计算瓶颈,提出 MGTC,依据连续帧间运动差异掩码低变化 token,在保持或提升识别精度的同时大幅降低计算成本。

摘要:

Transformer 的最新发展在增强视频理解方面取得了显著进展。然而,注意力机制相关的 O($N^2$) 计算复杂度在处理视频的高维度时带来了巨大的计算障碍。当试图提高每秒帧数(FPS)以增强运动捕捉能力时,这一挑战变得尤为突出。这种追求可能会引入冗余,并加剧现有的计算限制。本文首先展示了通过提高 FPS 所获得的性能提升。此外,我们提出了一种新方法——运动引导 Token 压缩(Motion Guided Token Compression,MGTC),使 Transformer 模型能够使用数量更少但更具代表性的 token 集合来进行全面的视频表示。因此,该方法显著降低了计算负担,并且能够无缝适应提高后的 FPS。具体而言,我们从视频压缩算法中获得启发,沿时间维度仔细检查连续视频帧中 patch 之间的方差。随后,差异低于预定阈值的 token 将被掩码。值得注意的是,该掩码策略在有效解决视频冗余问题的同时保留了关键信息。我们在被广泛研究的视频识别数据集 Kinetics-400、UCF101 和 HMDB51 上进行的实验表明,提高 FPS 可使 top-1 准确率分别显著提升超过 1.6、1.6 和 4.0。通过以 25% 的掩码率实施 MGTC,我们在 Kinetics-400 上进一步将准确率提高 0.1,同时将计算成本降低超过 31%。即使在固定计算预算内,与较低 FPS 设置相比,更高 FPS 与 MGTC 相结合仍能保持性能增益。

英文摘要:

Recent developments in Transformers have achieved notable strides in enhancing video comprehension. Nonetheless, the O($N^2$) computation complexity associated with attention mechanisms presents substantial computational hurdles when dealing with the high dimensionality of videos. This challenge becomes particularly pronounced when striving to increase the frames per second (FPS) to enhance the motion capturing capabilities. Such a pursuit is likely to introduce redundancy and exacerbate the existing computational limitations. In this paper, we initiate by showcasing the enhanced performance achieved through an escalation in the FPS rate. Additionally, we present a novel approach, Motion Guided Token Compression (MGTC), to empower Transformer models to utilize a smaller yet more representative set of tokens for comprehensive video representation. Consequently, this yields substantial reductions in computational burden and remains seamlessly adaptable to increased FPS rates. Specifically, we draw inspiration from video compression algorithms and scrutinize the variance between patches in consecutive video frames across the temporal dimension. The tokens exhibiting a disparity below a predetermined threshold are then masked. Notably, this masking strategy effectively addresses video redundancy while conserving essential information. Our experiments, conducted on widely examined video recognition datasets, Kinetics-400, UCF101 and HMDB51, demonstrate that elevating the FPS rate results in a significant top-1 accuracy score improvement of over 1.6, 1.6 and 4.0. By implementing MGTC with the masking ratio of 25\%, we further augment accuracy by 0.1 and simultaneously reduce computational costs by over 31\% on Kinetics-400. Even within a fixed computational budget, higher FPS rates paired with MGTC sustain performance gains when compared to lower FPS settings.

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

↑