Unsupervised Transfer Learning for Spatiotemporal Predictive Networks

Zhiyu Yao, Yunbo Wang, Mingsheng Long, Jianmin Wang

Introduction

Spatiotemporal predictive learning—predicting future frames in a sequence, such as video or radar maps—is a cornerstone of unsupervised learning. However, predictive models often struggle when the target domain has limited data or exhibits a "long-tail" distribution (e.g., trying to predict rain in an arid city using a model trained in the tropics).

While transfer learning is ubiquitous in supervised tasks (like using ImageNet-pretrained models for object detection), it remains underexplored for unsupervised spatiotemporal tasks. Standard finetuning often fails due to massive discrepancies between domains. Furthermore, researchers often have access to a "zoo" of pretrained models. The core challenge is figuring out how to combine their diverse understandings of motion and change without overwhelming the target model with irrelevant information.

To address this, researchers have developed a novel framework called Transferable Memory. This approach allows a video-prediction model to adaptively "borrow" knowledge from a zoo of pretrained models, significantly outperforming standard finetuning.

The Transferable Memory Framework

Overview of the Transferable Memory framework, showing how source models populate a memory bank to distill knowledge into the target model.

The authors propose a differentiable framework centered on a new recurrent building block: the Transferable Memory Unit (TMU). Instead of relying on a single teacher model, the framework leverages multiple pretrained source models to guide the target network.

Detailed architecture of the Transferable Memory Unit (TMU), highlighting the memory distiller and transfer gates.

Key components of the TMU include:

  • The Memory Bank: The model observes $M$ pretrained "teacher" RNNs, storing their temporal dynamics.
  • Memory Distiller Module: Using $1 \times 1$ convolutions and layer normalization, this module "translates" the memory states of the teacher models into a format the student model can process. It minimizes the Euclidean distance between the student’s internal representations and the teachers' distilled memories.
  • Transfer Gates: Not all knowledge is useful at every time step. The TMU uses a gating mechanism ($a^m_t$) to dynamically decide how much influence each source model should have on the final prediction. If a source model's understanding of motion matches the current target sequence, the gate opens wider.
  • Loss Function: The model is trained on a dual objective: a standard prediction loss (Mean Squared Error) to ensure accurate frame generation, and a distillation loss to guarantee it effectively learns from the teacher zoo.

Experimental Validation and Key Insights

The framework was rigorously evaluated across three distinct benchmarks:

  1. Flying Digits: Transferring knowledge from 1-digit and 2-digit Moving MNIST models to a more complex 3-digit target. The TMU approach outperformed standard finetuning by 17.5% in Mean Squared Error (MSE).
  2. Human Motion: Using simple action datasets (KTH and Weizmann) as source domains to improve predictions on the complex Human3.6M dataset. The TMU framework achieved the sharpest predictions and lowest MSE compared to training from scratch or simple finetuning across various backbones (ConvLSTM, MIM, SAVP).
  3. Precipitation Nowcasting: Using radar echo data from a rainy region (Guangzhou) to improve predictions for an arid region (Beijing), where training data for actual storm events is scarce. The model achieved a Critical Success Index (CSI) of 0.408, a significant jump from the 0.348 achieved by a model trained solely on local data.

Key Takeaways

  • Dynamics over Content: Surprisingly, "irrelevant" source data can be highly beneficial. For instance, a model trained on Moving MNIST digits actually improved a model predicting weather radar echoes. This suggests that the temporal laws of how shapes move and evolve are transferable, even if the visual content is entirely different.
  • The "Zoo" Advantage: Learning from multiple teachers is superior to learning from just one. Different models capture distinct perspectives of spatiotemporal dynamics. The TMU's ability to selectively filter information via transfer gates prevents the student from being misled by a single, potentially biased teacher.
  • Efficiency: Unlike transfer methods that require keeping all bulky teacher models active at test time, the TMU approach is lightweight, requiring significantly fewer parameters than competing architectures.

Limitations and Future Work

While highly effective, the framework has a few limitations:

  • Architectural Constraints: The current design is tailored for LSTM-based recurrent networks. Extending this to Transformer-based spatiotemporal models is a logical next step.
  • Tensor Matching: The method requires the dimensionality (channels, width, height) of the source and target states to match. This necessitates manual preprocessing (like sub-scaling) if source models were trained on different resolutions.
  • Source Selection: While the model handles less relevant sources well, it does not yet automatically "prune" a massive zoo containing hundreds of models. There is likely a practical limit to how many teachers a single student can effectively process.

Summary updated

BibTeX
@inproceedings{yao2020unsupervised,
  author = {Zhiyu Yao and Yunbo Wang and Mingsheng Long and Jianmin Wang},
  title = {{Unsupervised Transfer Learning for Spatiotemporal Predictive Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure