SwinLSTM: Improving Spatiotemporal Prediction Accuracy using Swin Transformer and LSTM

Song Tang, Chuang Li, Pufen Zhang, R. Tang
2/14/2026

No official code found. Best implementation: SongTang-x/SwinLSTM (178 stars, MIT, last commit 2024-07-30).

Abstract

Integrating CNNs and RNNs to capture spatiotemporal dependencies is a prevalent strategy for spatiotemporal prediction tasks. However, the property of CNNs to learn local spatial information decreases their efficiency in capturing spatiotemporal dependencies, thereby limiting their prediction accuracy. In this paper, we propose a new recurrent cell, SwinLSTM, which integrates Swin Transformer blocks and the simplified LSTM, an extension that replaces the convolutional structure in ConvLSTM with the self-attention mechanism. Furthermore, we construct a network with SwinLSTM cell as the core for spatiotemporal prediction. Without using unique tricks, SwinLSTM outperforms state-of-the-art methods on Moving MNIST, Human3.6m, TaxiBJ, and KTH datasets. In particular, it exhibits a significant improvement in prediction accuracy compared to ConvLSTM. Our competitive experimental results demonstrate that learning global spatial dependencies is more advantageous for models to capture spatiotemporal dependencies. We hope that SwinLSTM can serve as a solid baseline to promote the advancement of spatiotemporal prediction accuracy. The codes are publicly available at https://github.com/SongTang-x/SwinLSTM.

View on arXivView PDF

Code Implementations(1)

SongTang-x/SwinLSTMCommunity100%
MIT
17817PythonAug 9, 20232 years agoMIT

Similar Papers

Cite this paper

@article{tang2026swinlstm,
  title  = {SwinLSTM: Improving Spatiotemporal Prediction Accuracy using Swin Transformer and LSTM},
  author = {Song Tang and Chuang Li and Pufen Zhang and R. Tang},
  year   = {2026},
  eprint = {2308.09891},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2308.09891},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.09891.svg)](https://codeofpaper.com/paper/2308.09891)

Discussion