Skip to main content
QUICK REVIEW

[Paper Review] SViTT: Temporal Learning of Sparse Video-Text Transformers

Yi Li, Kyle Min|arXiv (Cornell University)|Apr 18, 2023
Multimodal Machine Learning ApplicationsComputer Science3 citations
TL;DR

SViTT proposes a sparse video-text transformer that enhances temporal reasoning in video-language models by applying edge and node sparsity in self-attention mechanisms, enabling efficient multi-frame modeling with significantly reduced computational cost. It outperforms dense transformer baselines on video retrieval and question-answering benchmarks, especially on longer clips, by focusing computation on informative spatiotemporal regions through curriculum-based sparsity training.

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.

Motivation & Objective

  • To address the challenge of inefficient temporal modeling in video-text transformers, which often favor static frame-level representations over dynamic temporal reasoning.
  • To overcome the trade-off between spatial and temporal modeling in limited-size video transformers by enabling adaptive resource allocation to relevant spatiotemporal regions.
  • To reduce computational cost in long-video modeling by introducing sparsity in attention mechanisms and visual token selection, avoiding the quadratic complexity of dense transformers.
  • To improve generalization and scalability on long clips by training with a curriculum that increases clip length and model sparsity in tandem.
  • To demonstrate that sparse modeling can outperform dense attention in video-text tasks, particularly when temporal dynamics are critical.

Proposed method

  • SViTT treats visual tokens as graph nodes and self-attention patterns as edges, applying two forms of sparsity: edge sparsity limits query-key interactions in self-attention, and node sparsity prunes uninformative visual tokens.
  • Edge sparsity is implemented via sparse block attention, which restricts the number of attention connections per query while preserving global reasoning capability.
  • Node sparsity is achieved through visual token pruning using a learnable selection mechanism, focusing on foreground objects and dynamic regions.
  • A text-guided cross-modal attention module enhances visual token selection by aligning textual queries with relevant visual content.
  • The model is trained with a curriculum learning strategy—temporal sparse expansion—where clip length and model sparsity are increased incrementally across training stages.
  • The hybrid sparsity strategy combines both edge and node sparsity, enabling efficient inference and improved performance on long-duration videos.
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.

Experimental results

Research questions

  • RQ1Can sparse attention mechanisms in video-text transformers effectively model long-range temporal dependencies while reducing computational cost?
  • RQ2Does pruning uninformative visual tokens improve model efficiency and performance on video-text tasks?
  • RQ3How does curriculum-based sparsity training with increasing clip length affect model generalization and optimization stability?
  • RQ4To what extent does sparse modeling outperform dense transformers in video retrieval and question answering, especially on longer videos?
  • RQ5Can cross-modal attention be leveraged to guide visual token selection and enhance sparsity effectiveness?

Key findings

  • SViTT with hybrid sparsity achieves 17.7% and 35.7% zero-shot text-to-video retrieval accuracy on MSR-VTT and DiDeMo, respectively, outperforming dense baselines on DiDeMo, which contains longer, activity-centric videos.
  • On fine-tuned text-to-video retrieval, SViTT improves by ~3% over dense models on Charades and SSv2, demonstrating stronger temporal reasoning on action-centric datasets.
  • In video question answering, SViTT achieves 52.7% accuracy on AGQA, a 2.3% improvement over the dense baseline, highlighting its advantage on temporally complex questions.
  • On ActivityNet-QA, SViTT achieves a 0.9% accuracy gain over the dense transformer, confirming enhanced temporal modeling in long clips.
  • Node and edge sparsity can be aggressively applied at inference—up to 80% pruning—without significant performance drop, and cross-attention-based token selection improves retrieval by 1% without retraining.
  • SViTT scales effectively to longer clips, where dense transformers suffer from optimization difficulties, maintaining or improving performance with significantly lower computational cost.
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

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.