arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.09107cs.CVcs.AIcs.CLcs.MM
收藏

一段视频是否等价于 $n\ imes n$ 张图像?一种基于 Transformer 的高效视频问答方法

Is a Video worth $n\times n$ Images? A Highly Efficient Approach to Transformer-based Video Question Answering

Dublin City University(都柏林城市大学);Nantong University(南通大学);Trinity College Dublin(都柏林圣三一学院)

Chenyang Lyu, Tianbo Ji, Yvette Graham, Jennifer Foster

AI总结:

提出将视频帧拼接为 $n\ imes n$ 矩阵并转为单张图像的高效 VideoQA 方法,将图像编码器使用次数从 $n^{2}$ 降至 1,在 MSRVTT 和 TrafficQA 上实现近 $4\ imes$ 加速且仅用 30% 内存,性能达最优。

摘要:

传统的基于 Transformer 的视频问答方法通常通过一个或多个图像编码器独立编码视频帧,随后进行帧与问题之间的交互。然而,这种模式会导致显著的内存消耗,并不可避免地减慢训练和推理速度。在本研究中,我们提出了一种基于现有视觉语言预训练模型的高效 VideoQA 方法,将视频帧拼接为 $n\ imes n$ 矩阵,再将其转换为单张图像。借此,我们将图像编码器的使用次数从 $n^{2}$ 减少至 1,同时保持原始视频的时序结构。在 MSRVTT 和 TrafficQA 上的实验结果表明,我们提出的方法实现了当前最优性能,速度提升近 $4\ imes$,且内存占用仅为 30%。我们证明,将该方法集成到 VideoQA 系统中,可在大幅加速训练和推理的同时,取得相当甚至更优的性能。我们相信该方法能够通过降低计算需求,促进预算和资源受限者的 VideoQA 相关研究。我们的代码将公开供研究使用。

英文摘要:

Conventional Transformer-based Video Question Answering (VideoQA) approaches generally encode frames independently through one or more image encoders followed by interaction between frames and question. However, such schema would incur significant memory use and inevitably slow down the training and inference speed. In this work, we present a highly efficient approach for VideoQA based on existing vision-language pre-trained models where we concatenate video frames to a $n\times n$ matrix and then convert it to one image. By doing so, we reduce the use of the image encoder from $n^{2}$ to $1$ while maintaining the temporal structure of the original video. Experimental results on MSRVTT and TrafficQA show that our proposed approach achieves state-of-the-art performance with nearly $4\times$ faster speed and only 30% memory use. We show that by integrating our approach into VideoQA systems we can achieve comparable, even superior, performance with a significant speed up for training and inference. We believe the proposed approach can facilitate VideoQA-related research by reducing the computational requirements for those who have limited access to budgets and resources. Our code will be made publicly available for research use.

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

↑