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

视频语言任务的学习轨迹-词对齐

Learning Trajectory-Word Alignments for Video-Language Tasks

Southeast University(东南大学);Alibaba Group(阿里巴巴集团);Nanyang Technological University(南洋理工大学)

Xu Yang, Zhangzikang Li, Haiyang Xu, Hanwang Zhang, Qinghao Ye, Chenliang Li, Ming Yan, Yu Zhang, Fei Huang, Songfang Huang

摘要:

在视频中,对象通常表现为轨迹,即,它跨越几个空间但时间更长的斑块,包含丰富的时空背景。然而,现代视频语言BERT(VDL-BERT)忽略了这一轨迹特征,它们通常遵循图像语言BERT(IL-BERT)部署块到词(P2 W)的注意力,可能过度利用琐碎的空间上下文而忽略重要的时间上下文。为了修正这一点,我们提出了一种新的TW-BERT学习轨迹词对齐通过一个新设计的词汇到词(T2 W)的注意力来解决视频语言任务。此外,先前的VDL-BERT通常将几个帧均匀地采样到模型中,而不同的轨迹具有不同的粒度,即,一些轨迹跨越较长的帧,而一些跨越较短的帧,并且使用几个帧将丢失某些有用的时间上下文。然而,简单地采样更多帧也会使预训练不可行,因为训练负担大大增加。为了缓解这个问题,在微调阶段,我们插入一个新的分层帧编码器(HFS)模块到视频编码器。HFS根据文本上下文逐步选择合适的帧,以供以后的跨模态编码器学习更好的词汇对齐。通过提出的T2 W注意力和HFS,我们的TW-BERT在文本到视频检索任务上实现了SOTA性能,并且在视频问答任务上的性能与一些在更多数据上训练的VDL-BERT相当。该守则将载于补充材料。

英文摘要:

In a video, an object usually appears as the trajectory, i.e., it spans over a few spatial but longer temporal patches, that contains abundant spatiotemporal contexts. However, modern Video-Language BERTs (VDL-BERTs) neglect this trajectory characteristic that they usually follow image-language BERTs (IL-BERTs) to deploy the patch-to-word (P2W) attention that may over-exploit trivial spatial contexts and neglect significant temporal contexts. To amend this, we propose a novel TW-BERT to learn Trajectory-Word alignment by a newly designed trajectory-to-word (T2W) attention for solving video-language tasks. Moreover, previous VDL-BERTs usually uniformly sample a few frames into the model while different trajectories have diverse graininess, i.e., some trajectories span longer frames and some span shorter, and using a few frames will lose certain useful temporal contexts. However, simply sampling more frames will also make pre-training infeasible due to the largely increased training burdens. To alleviate the problem, during the fine-tuning stage, we insert a novel Hierarchical Frame-Selector (HFS) module into the video encoder. HFS gradually selects the suitable frames conditioned on the text context for the later cross-modal encoder to learn better trajectory-word alignments. By the proposed T2W attention and HFS, our TW-BERT achieves SOTA performances on text-to-video retrieval tasks, and comparable performances on video question-answering tasks with some VDL-BERTs trained on much more data. The code will be available in the supplementary material.

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

↑