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

SwinBERT:用于视频描述的稀疏注意力的端到端Transformers

SwinBERT: End-to-End Transformers with Sparse Attention for Video Captioning

Microsoft(微软)

Kevin Lin, Linjie Li, Chung-Ching Lin, Faisal Ahmed, Zhe Gan, Zicheng Liu, Yumao Lu, Lijuan Wang

摘要:

视频描述的规范方法规定了从离线提取的密集视频特征中学习的字幕生成模型。这些特征提取器通常对以固定帧速率采样的视频帧进行操作,并且通常在图像/视频理解任务上进行训练,而不适应视频描述数据。在这项工作中,我们提出了SwinBERT,一个端到端的基于转换器的模型视频描述,它需要视频帧补丁直接作为输入,并输出一个自然语言的描述。我们的方法不是利用多个2D/3D特征提取器,而是采用视频Transformer来编码时空表示,该时空表示可以适应可变长度的视频输入,而无需针对不同的帧速率进行专门的设计。基于这个模型架构,我们表明,视频描述可以从更密集的采样视频帧中受益,而不是以前的成功与稀疏采样视频帧的视频和语言理解任务(例如,视频问答)。此外,为了避免连续视频帧中的固有冗余,我们提出了自适应学习稀疏注意力掩码并通过更好的长距离视频序列建模来优化它以提高特定任务的性能。通过对5个视频描述数据集的广泛实验,我们表明SwinBERT比以前的方法实现了全面的性能改进,通常是大幅度的。此外,学习的稀疏注意力掩码将限制推到了新的技术水平,并且可以在不同的视频长度之间和不同的数据集之间传输。代码可在https://github.com/microsoft/SwinBERT上获得

英文摘要:

The canonical approach to video captioning dictates a caption generation model to learn from offline-extracted dense video features. These feature extractors usually operate on video frames sampled at a fixed frame rate and are often trained on image/video understanding tasks, without adaption to video captioning data. In this work, we present SwinBERT, an end-to-end transformer-based model for video captioning, which takes video frame patches directly as inputs, and outputs a natural language description. Instead of leveraging multiple 2D/3D feature extractors, our method adopts a video transformer to encode spatial-temporal representations that can adapt to variable lengths of video input without dedicated design for different frame rates. Based on this model architecture, we show that video captioning can benefit significantly from more densely sampled video frames as opposed to previous successes with sparsely sampled video frames for video-and-language understanding tasks (e.g., video question answering). Moreover, to avoid the inherent redundancy in consecutive video frames, we propose adaptively learning a sparse attention mask and optimizing it for task-specific performance improvement through better long-range video sequence modeling. Through extensive experiments on 5 video captioning datasets, we show that SwinBERT achieves across-the-board performance improvements over previous methods, often by a large margin. The learned sparse attention masks in addition push the limit to new state of the arts, and can be transferred between different video lengths and between different datasets. Code is available at https://github.com/microsoft/SwinBERT

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

↑