Skip to main content
QUICK REVIEW

[Paper Review] Video Prediction Transformers without Recurrence or Convolution

Yujin Tang, Qi Lü|arXiv (Cornell University)|Oct 7, 2024
Robotics and Automated SystemsEngineering8 citations
TL;DR

The paper introduces PredFormer, a pure transformer-based framework for spatiotemporal predictive learning that outperforms CNN-based methods with higher efficiency across Moving MNIST, TaxiBJ, and WeatherBench, including faster convergence.

ABSTRACT

Video prediction has witnessed the emergence of RNN-based models led by ConvLSTM, and CNN-based models led by SimVP. Following the significant success of ViT, recent works have integrated ViT into both RNN and CNN frameworks, achieving improved performance. While we appreciate these prior approaches, we raise a fundamental question: Is there a simpler yet more effective solution that can eliminate the high computational cost of RNNs while addressing the limited receptive fields and poor generalization of CNNs? How far can it go with a simple pure transformer model for video prediction? In this paper, we propose PredFormer, a framework entirely based on Gated Transformers. We provide a comprehensive analysis of 3D Attention in the context of video prediction. Extensive experiments demonstrate that PredFormer delivers state-of-the-art performance across four standard benchmarks. The significant improvements in both accuracy and efficiency highlight the potential of PredFormer as a strong baseline for real-world video prediction applications. The source code and trained models will be released at https://github.com/yyyujintang/PredFormer.

Motivation & Objective

  • Motivate a recurrent-free, purely transformer-based approach for spatiotemporal predictive learning.
  • Systematically analyze spatial-temporal transformer factorization and interleaved architectures.
  • Develop nine PredFormer variants and assess their performance across diverse datasets.
  • Demonstrate state-of-the-art accuracy and efficiency over CNN-based models on multiple benchmarks.

Proposed method

  • Adopt a pure transformer architecture with patch embeddings and a 2D spatiotemporal sinusoidal position encoding.
  • Introduce Gated Transformer Blocks (GTB) that combine MSA with SwiGLU-based FFN for effective spatiotemporal modeling.
  • Explore full-attention encoders, factorized encoders (spatial-first and temporal-first), and six interleaved architectures to form nine variants.
  • Provide multiple GTB-based PredFormer configurations with fixed depth, enabling fair parameter comparisons.
  • Evaluate using MSE/MAE/RMSE and SSIM for accuracy, and FPS/parameters/FLOPs for efficiency across datasets.

Experimental results

Research questions

  • RQ1Can a pure transformer architecture effectively learn spatiotemporal dependencies without recurrence or convolution?
  • RQ2How do spatial vs. temporal attention factorization and interleaving affect performance across different datasets?
  • RQ3What is the trade-off between accuracy and efficiency for various PredFormer configurations?
  • RQ4Do interleaved architectures offer robust gains over full-attention and factorized encoders in long-term and short-term prediction tasks?

Key findings

  • PredFormer variants achieve state-of-the-art performance on Moving MNIST, TaxiBJ, and WeatherBench compared to prior methods.
  • On Moving MNIST, PredFormer reduces MSE by 51.3% relative to SimVP when trained for 2000 epochs with patch size 4.
  • On TaxiBJ, PredFormer reduces MSE by 33.1% and increases FPS from 533 to 2364.
  • On WeatherBench, PredFormer reduces MSE by 11.1% and increases FPS from 196 to 404.
  • Interleaved variants consistently outperform full-attention and factorized encoders, with Triplet-TST and Quadruplet-TSST often yielding best results in different settings.
  • The Fac-T-S model offers strong performance with far fewer parameters (5.3M) and notable efficiency gains (FPS up to 404) while beating CNN-based baselines.

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.