Learning Transferable Spatiotemporal Representations from Natural Script Knowledge

Ziyun Zeng, Yuying Ge, Xihui Liu, Bin Chen, Ping Luo, Shu-Tao Xia, Yixiao Ge

Abstract

This paper introduces Turning to Video for Transcript Sorting (TVTS), a novel pretext task for learning spatiotemporal representations from uncurated video data. By leveraging Automatic Speech Recognition (ASR) transcripts as "natural scripts," the model learns to reorder shuffled speech snippets by observing video content. This approach achieves significant gains in representation quality, notably a +13.6% improvement in linear probe accuracy on Something-Something V2 compared to previous state-of-the-art methods like VideoMAE. The resulting representations demonstrate strong performance across action recognition and zero-shot retrieval tasks.

Introduction

While image-based AI has seen a "CLIP moment"—learning powerful representations from massive amounts of internet text—video AI has lagged behind. Current video models typically fall into two traps: visual-only learning (e.g., VideoMAE), which lacks high-level semantic understanding, and reliance on curated, hand-labeled datasets like Kinetics-400, which often leads to spatial shortcuts rather than true temporal reasoning.

The challenge lies in providing semantic supervision at scale without the prohibitive cost of human-authored captions. TVTS addresses this by utilizing the "natural scripts" already embedded in videos: ASR transcripts. These transcripts provide a narrative flow that serves as a strong temporal anchor for the model.

Figure 1: Motivation for TVTS and comparison of linear probe accuracy across multiple datasets.

Methods

The authors introduce the TVTS (Turning to Video for Transcript Sorting) framework. Instead of expensive human descriptions, the model uses raw ASR transcripts sampled from the YT-Temporal dataset, which contains 6 million uncurated YouTube videos.

The TVTS Pipeline

  1. Sample and Shuffle: A video clip and its corresponding ASR sentences are sampled. The sentences are then randomly shuffled.
  2. Masked Video Encoding: A Vision Transformer (ViT) processes the video with a 75% patch masking strategy to reduce redundancy and focus on salient features.
  3. Joint Attention: The shuffled text embeddings and video representations are fed into a joint transformer. The model performs a $K$-way classification for each transcript to predict its original chronological position.
  4. Dual Objectives: The model is trained using a Sorting Loss ($L_{sort}$) to enforce temporal understanding and a Global Contrastive Loss ($L_{base}$) to align video and text features in a shared embedding space.
Figure 2: The TVTS architecture, illustrating the flow from frame sampling to order prediction using joint attention between video and shuffled ASR transcripts.

Key Insights and Results

Speech as a Temporal Teacher

Unlike previous methods that attempted to sort shuffled video frames (e.g., MERLOT), TVTS sorts transcripts. Sorting frames often allows models to "cheat" using low-level visual cues like lighting changes. Sorting transcripts forces the model to bridge the semantic gap between high-level language and visual actions, leading to superior temporal reasoning.

Performance Breakthroughs

  • Linear Probing: TVTS produces representations that are exceptionally effective "out-of-the-box." On the Something-Something V2 (SSV2) dataset, it achieved 31.5% accuracy via linear probing, outperforming VideoMAE by +13.6%.
  • Zero-Shot Retrieval: In video-to-video retrieval tasks, TVTS outperformed existing methods like Frozen and MCQ across R@1, R@5, and R@10 metrics.
  • Fine-tuning: When fully fine-tuned, the model reached state-of-the-art levels on curated benchmarks like UCF-101 (95.1%) and HMDB-51 (70.5%).

Conclusion

TVTS demonstrates that uncurated ASR transcripts can provide high-quality semantic supervision for video representation learning. By framing video understanding as a transcript sorting task, the model develops a robust grasp of temporal dynamics. While the method is sensitive to ASR quality and may struggle with sub-second actions not reflected in speech, it represents a significant step toward scalable, semantically-aware video AI. Future work may incorporate additional modalities like ambient sound or OCR to further enrich these representations.

Summary updated

BibTeX
@inproceedings{zeng2022learning,
  author = {Ziyun Zeng and Yuying Ge and Xihui Liu and Bin Chen and Ping Luo and Shu-Tao Xia and Yixiao Ge},
  title = {{Learning Transferable Spatiotemporal Representations from Natural Script Knowledge}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure