Skip to main content
QUICK REVIEW

[论文解读] SViTT: Temporal Learning of Sparse Video-Text Transformers

Yi Li, Kyle Min|arXiv (Cornell University)|Apr 18, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用 3
一句话总结

SViTT 提出了一种稀疏视频-文本变换器,通过在自注意力机制中应用边和节点稀疏性,增强了视频-语言模型中的时序推理能力,实现了计算成本显著降低的多帧高效建模。通过基于课程的稀疏性训练聚焦于有信息量的时空区域,该方法在视频检索和问答基准测试中优于密集变换器基线模型,尤其在长视频片段上表现更优。

ABSTRACT

Do video-text transformers learn to model temporal relationships across frames? Despite their immense capacity and the abundance of multimodal training data, recent work has revealed the strong tendency of video-text models towards frame-based spatial representations, while temporal reasoning remains largely unsolved. In this work, we identify several key challenges in temporal learning of video-text transformers: the spatiotemporal trade-off from limited network size; the curse of dimensionality for multi-frame modeling; and the diminishing returns of semantic information by extending clip length. Guided by these findings, we propose SViTT, a sparse video-text architecture that performs multi-frame reasoning with significantly lower cost than naive transformers with dense attention. Analogous to graph-based networks, SViTT employs two forms of sparsity: edge sparsity that limits the query-key communications between tokens in self-attention, and node sparsity that discards uninformative visual tokens. Trained with a curriculum which increases model sparsity with the clip length, SViTT outperforms dense transformer baselines on multiple video-text retrieval and question answering benchmarks, with a fraction of computational cost. Project page: http://svcl.ucsd.edu/projects/svitt.

研究动机与目标

  • 为解决视频-文本变换器中时序建模效率低下的问题,这些模型通常更倾向于静态帧级表征而非动态时序推理。
  • 通过在有限大小的视频变换器中实现对相关时空区域的自适应资源分配,克服空间与时序建模之间的权衡。
  • 通过在注意力机制和视觉标记选择中引入稀疏性,降低长视频建模的计算成本,避免密集变换器的二次方复杂度。
  • 通过采用逐步增加视频长度和模型稀疏性的课程学习策略,提升长视频片段上的泛化能力和可扩展性。
  • 证明稀疏建模在时序动态关键的任务中可超越密集注意力,特别是在视频-文本任务中。

提出的方法

  • SViTT 将视觉标记视为图节点,自注意力模式视为边,应用两种稀疏形式:边稀疏性限制自注意力中的查询-键交互,节点稀疏性则剪枝无信息量的视觉标记。
  • 边稀疏性通过稀疏块注意力实现,限制每个查询的注意力连接数量,同时保持全局推理能力。
  • 节点稀疏性通过可学习的选择机制实现视觉标记剪枝,聚焦于前景物体和动态区域。
  • 通过文本引导的跨模态注意力模块增强视觉标记选择,实现文本查询与相关视觉内容的对齐。
  • 采用课程学习策略——时序稀疏性扩展,在训练阶段逐步增加视频长度和模型稀疏性。
  • 混合稀疏策略结合边和节点稀疏性,实现高效推理,并在长时长视频上提升性能。
Figure 1 : We propose SViTT , a sparse video-text transformer for efficient modeling of temporal relationships across video frames. Top : Semantic information for video-text reasoning is highly localized in the spatiotemporal volume, making dense modeling inefficient and prone to contextual noises.
Figure 1 : We propose SViTT , a sparse video-text transformer for efficient modeling of temporal relationships across video frames. Top : Semantic information for video-text reasoning is highly localized in the spatiotemporal volume, making dense modeling inefficient and prone to contextual noises.

实验结果

研究问题

  • RQ1在减少计算成本的同时,视频-文本变换器中的稀疏注意力机制能否有效建模长距离时序依赖?
  • RQ2剪枝无信息量的视觉标记是否能提升模型在视频-文本任务中的效率和性能?
  • RQ3随着视频长度增加的基于课程的稀疏性训练如何影响模型的泛化能力和优化稳定性?
  • RQ4在视频检索和问答任务中,稀疏建模在多大程度上优于密集变换器,特别是在长视频上?
  • RQ5能否利用跨模态注意力引导视觉标记选择,以增强稀疏性的有效性?

主要发现

  • SViTT 采用混合稀疏性在 MSR-VTT 和 DiDeMo 上分别实现了 17.7% 和 35.7% 的零样本文本到视频检索准确率,优于 DiDeMo 基线模型(该数据集包含更长、以活动为中心的视频)。
  • 在微调后的文本到视频检索任务中,SViTT 在 Charades 和 SSv2 上相比密集模型提升了约 3%,表明其在以动作为中心的数据集上具备更强的时序推理能力。
  • 在视频问答任务中,SViTT 在 AGQA 上达到 52.7% 的准确率,较密集基线提升 2.3%,凸显其在时序复杂问题上的优势。
  • 在 ActivityNet-QA 上,SViTT 相较于密集变换器提升了 0.9% 的准确率,证实其在长视频片段中具备增强的时序建模能力。
  • 在推理阶段可激进地应用节点和边稀疏性(最高达 80% 剪枝),性能下降不明显;基于交叉注意力的标记选择在无需微调的情况下将检索性能提升 1%。
  • SViTT 在长视频片段上可有效扩展,而密集变换器在长视频上常面临优化困难;SViTT 在显著降低计算成本的同时保持或提升性能。
Figure 2 : Model Architecture. SViTT improves modeling efficiency of conventional video-text transformers through two key components: node sparsity and edge sparsity. Edge sparsification ${\mathcal{A}}_{\mathcal{E}}$ computes sparse self-attention of input visual sequence ${\mathbf{z}}$ , where each
Figure 2 : Model Architecture. SViTT improves modeling efficiency of conventional video-text transformers through two key components: node sparsity and edge sparsity. Edge sparsification ${\mathcal{A}}_{\mathcal{E}}$ computes sparse self-attention of input visual sequence ${\mathbf{z}}$ , where each

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。