Disentangling Spatial and Temporal Learning for Efficient Image-to-Video Transfer Learning

Zhiwu Qing, Shiwei Zhang, Ziyuan Huang, Yingya Zhang, Changxin Gao, Deli Zhao, Nong Sang

Abstract

Adapting large-scale image models like CLIP for video recognition is computationally expensive due to the need for temporal reasoning. We present DiST (Disentangled Spatial-Temporal learning), a dual-encoder framework that freezes the massive spatial backbone and trains a lightweight parallel temporal encoder. By disentangling spatial and temporal features and using a dedicated integration branch for communication, DiST achieves state-of-the-art performance on Kinetics-400 (89.7%) and Something-Something v2 (73.1%) while significantly reducing training memory and time.

Introduction

Large-scale vision-language models have revolutionized image understanding, but transferring this "spatial intelligence" to video remains a bottleneck. Video requires understanding motion, which static image models lack. Current adaptation methods either require memory-intensive back-propagation through the entire backbone (Adapters) or suffer from weak temporal modeling by relying too heavily on frozen spatial features (Parallel Decoders). DiST aims to find a "sweet spot" by treating spatial and temporal learning as distinct but interactive processes, achieving high efficiency without sacrificing accuracy.

Methodology

The DiST architecture consists of three main components designed to separate and then integrate spatial and temporal information:

  • Spatial Encoder: A heavy, frozen CLIP-pretrained Vision Transformer (ViT) that processes sparse frames to extract high-level semantic snapshots.
  • Temporal Encoder: A lightweight, learnable network using R(2+1)D blocks that processes dense frames to capture fine-grained motion.
  • Integration Branch: This component uses Interaction Blocks (I-Blocks) to facilitate two-way communication, transferring spatial semantics to guide the temporal encoder and fusing temporal clues back into a unified representation.
The DiST architecture features a frozen spatial encoder and a tunable temporal encoder linked by an integration branch.

Because the spatial encoder is frozen and requires no gradient updates, DiST avoids the massive back-propagation overhead typical of standard adapters, leading to significant training efficiency.

Experimental Results

DiST was evaluated across diverse benchmarks, including Kinetics-400 (K400), Something-Something v2 (SSV2), Epic-Kitchens-100, and zero-shot tasks on UCF101 and HMDB51.

DiST achieves superior accuracy on SSV2 and K400 benchmarks while maintaining lower training memory requirements compared to existing methods.

Key findings include:

  • Top-Tier Performance: Achieved 89.7% on K400 and 73.1% on SSV2 using a ViT-L backbone.
  • Efficiency Gains: DiST uses 32% less GPU memory than ST-Adapter and is approximately 27% faster in training step time than other parallel methods like EVL.
  • Zero-Shot Superiority: On the HMDB51 dataset, DiST outperformed the previous best (X-CLIP) by 10.8%, indicating that its disentangled features generalize better to unseen actions.
  • Motion Sensitivity: Analysis using CKA similarity confirms that DiST's temporal features are less correlated with spatial features than previous methods, proving it learns complementary motion information.

Conclusion

DiST demonstrates that disentangling spatial and temporal learning is a highly effective strategy for efficient video transfer learning. By separating these processes, the model can focus on motion patterns without being "distracted" by spatial semantics. While the dual-encoder structure introduces some inference overhead, its training efficiency and accuracy make it a compelling solution for scaling video recognition models. Future work will explore its application to even larger foundation models.

Summary updated

BibTeX
@inproceedings{qing2023disentangling,
  author = {Zhiwu Qing and Shiwei Zhang and Ziyuan Huang and Yingya Zhang and Changxin Gao and Deli Zhao and Nong Sang},
  title = {{Disentangling Spatial and Temporal Learning for Efficient Image-to-Video Transfer Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure