TVTSv2: Learning Out-of-the-box Spatiotemporal Visual Representations at Scale

Ziyun Zeng, Yixiao Ge, Zhan Tong, Xihui Liu, Shu-Tao Xia, Ying Shan · DOI

TL;DR

This paper introduces TVTSv2, a new approach for training video foundation models that excel at "out-of-the-box" usage without task-specific fine-tuning. By partially freezing the text encoder during pre-training, TVTSv2 avoids performance degradation and achieves state-of-the-art results on various video benchmarks, surpassing existing methods.

What Problem Does This Paper Address?

The ultimate goal for foundation models is to be "task-agnostic," meaning they can be used directly for new tasks without extensive fine-tuning. While this has been largely achieved in natural language processing and image recognition, it remains a significant challenge for video models. Video data is inherently more complex due to spatiotemporal uncertainties. Existing methods often leverage pre-trained image models and add temporal modules, but these models, while performing well after fine-tuning, show degraded performance in zero-shot or linear probing scenarios. This paper investigates why this degradation occurs and proposes a solution to create truly general-purpose video representations.

Methods

The core innovation of TVTSv2 lies in its "degradation-free pre-training strategy." The authors observed that fine-tuning the text encoder end-to-end with video data (specifically, Automatic Speech Recognition - ASR transcripts) can cause it to overfit to the style of the transcripts, losing its original generalization ability. This distorted text supervision then negatively impacts the video representation learning. To combat this, TVTSv2 proposes:

  • Partially Frozen Text Encoder: Instead of fine-tuning the entire text encoder, only its deeper layers are made trainable, while the shallow layers are frozen. This allows the model to retain the general language understanding from its initial pre-training (e.g., from CLIP) while still learning task-specific semantics from the ASR transcripts.
  • Masking Strategy for Scalability: To enable training of large models (up to one billion parameters), the paper adopts a masking technique similar to VideoMAE. This involves randomly masking out a significant portion of video patches (e.g., 50-70%) to reduce computational overhead, allowing for more efficient training.
  • Transcript Sorting (TS) and Video-Text Contrastive (VTC) Objectives: The training utilizes a combination of these objectives. Transcript sorting helps learn spatiotemporal interactions by predicting the correct order of shuffled transcript segments. VTC is used for semantic alignment between video and text.

Datasets

The models are pre-trained on two large-scale datasets:

  • YT-Temporal: Contains 6 million YouTube videos with ASR transcripts and timestamps.
  • WebVid-2.5M: Contains 2.5 million alt-text-video pairs. For this dataset, only the VTC objective is used as timestamps are unavailable.

Evaluation is performed on standard video benchmarks for:

  • Text-to-Video Retrieval: MSR-VTT, DiDeMo, LSMDC.
  • Action Recognition: HMDB-51, UCF-101, Kinetics-400, SSV2-MC.

Key Insights and Ideas

  • The Text Encoder is the Bottleneck: The paper's key insight is that the degradation in "out-of-the-box" video representation performance is primarily caused by the text encoder losing its generalization ability due to end-to-end fine-tuning on noisy ASR transcripts.
  • Partial Freezing is Crucial: Simply freezing the text encoder entirely or fine-tuning it completely leads to suboptimal results. A partial freezing strategy, where shallow layers are frozen and deep layers are tuned, is essential for retaining generalization while learning new semantics.
  • Scalability Through Masking: The paper demonstrates that masking techniques, inspired by image pre-training, are effective for scaling up video foundation models to billion-parameter sizes without prohibitive computational costs.
  • ASR Transcripts are Valuable (with caveats): While ASR transcripts can be noisy, they provide rich temporal information. The proposed method effectively leverages them by mitigating the negative effects of their noise and style through the partially frozen text encoder.

Key Results

TVTSv2 achieves state-of-the-art results on multiple video benchmarks in zero-shot and linear probing settings:

  • Text-to-Video Retrieval: Achieves absolute gains of 1.4%, 6.9%, and 1.8% in R@1 on MSR-VTT, DiDeMo, and LSMDC, respectively, surpassing previous SOTAs.
  • Action Recognition: Shows significant improvements with 8.9%, 9.1%, 11.6%, and 12.9% absolute gains on HMDB-51, UCF-101, Kinetics-400, and SSV2-MC, respectively.
  • Scalability: Successfully trained models with up to one billion parameters using 80 V100 GPUs in one week, demonstrating efficient scaling.
  • Competitive Performance: Outperforms or is competitive with models trained on more data or using multiple modalities (e.g., ImageBind, InternVideo).

Limitations and Future Work

  • Emergent Abilities: While performance on public benchmarks is improved, the paper notes that emergent abilities (capabilities not explicitly trained for) are not yet present.
  • Model Scale: The largest model studied (1 billion parameters) is still significantly smaller than state-of-the-art image models (e.g., ViT-22B). Future work could explore even larger models.
  • Broader Impact: The authors acknowledge the significant carbon footprint of training large models and the potential for misuse of powerful video representations (e.g., unauthorized biometric recognition).
  • Future Directions: The paper suggests exploring further scaling and investigating emergent abilities. The effectiveness of the "resorting to video for text sorting" approach (Mours++) also hints at future research avenues.

Summary updated

BibTeX
@misc{zeng2023tvtsv,
  author = {Ziyun Zeng and Yixiao Ge and Zhan Tong and Xihui Liu and Shu-Tao Xia and Ying Shan},
  title = {{TVTSv2: Learning Out-of-the-box Spatiotemporal Visual Representations at Scale}},
  year = {2023},
  eprint = {2305.14173},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.14173},
}
Figure