Physics-Aware Attention with Neural ODE for Spatiotemporal Video Prediction
DOI:
https://doi.org/10.21015/vtcs.v13i2.2301Abstract
Video prediction is a fundamental challenge in computer vision with applications in autonomous driving, robotics, and weather forecasting. Existing deep learning approaches primarily model pixel-level correlations without explicitly capturing physical interactions between objects. This limits their ability to generalize to novel motion patterns and long-term predictions. In this paper, we propose a novel Physics-Aware Attention mechanism that embeds Newton's law of gravitation directly into the attention scores of a Transformer-based architecture. Our model decomposes video frames into object-centric representations, computes pairwise physical forces between objects, and integrates these forces as a bias term in the attention computation. A Neural ODE module models continuous-time dynamics, enabling prediction at arbitrary temporal resolutions. We evaluate our method on the Moving MNIST dataset, where it achieves a Mean Squared Error (MSE) of 0.0336 on standard test data, outperforming state-of-the-art methods including ConvLSTM (103.3 MSE), PhyDNet (24.4 MSE), and PastNet (21.8 MSE)—a relative improvement of 547x over PLA-SM (18.4 MSE). The model also demonstrates reasonable generalization to unseen data with different digit shapes and motion trajectories (MSE 0.117). Our results indicate that incorporating explicit physical priors into attention mechanisms significantly improves spatiotemporal prediction accuracy, while highlighting the need for further work on generalization.
References
[1] S. Hochreiter and J. Schmidhuber, "Long short-term memory," Neural Computation, vol. 9, no. 8, pp. 1735–1780, 1997.
[2] S. Xingjian et al., "Convolutional LSTM network: A machine learning approach for precipitation nowcasting," in Advances in Neural Information Processing Systems (NeurIPS), 2015, pp. 802–810.
[3] A. Vaswani et al., "Attention is all you need," in Advances in Neural Information Processing Systems (NeurIPS), 2017, pp. 5998–6008.
[4] S. Yan et al., "Video Transformer," arXiv preprint arXiv:2104.10883, 2021.
[5] M. Raissi, P. Perdikaris, and G. E. Karniadakis, "Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations," Journal of Computational Physics, vol. 378, pp. 686–707, 2019.
[6] V. L. Guen and N. Thome, "Disentangling physical dynamics from unknown factors for unsupervised video prediction," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020, pp. 11474–11484.
[7] N. Kalchbrenner et al., "Video pixel networks," in International Conference on Machine Learning (ICML), 2017, pp. 1771–1779.
[8] W. Lotter, G. Kreiman, and D. Cox, "Deep predictive coding networks for video prediction and unsupervised learning," in International Conference on Learning Representations (ICLR), 2017.
[9] G. Bertasius, H. Wang, and L. Torresani, "Is space-time attention all you need for video understanding?" in International Conference on Machine Learning (ICML), 2021.
[10] Z. Liu et al., "Video Swin Transformer," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022.
[11] R. T. Q. Chen, Y. Rubanova, J. Bettencourt, and D. Duvenaud, "Neural ordinary differential equations," in Advances in Neural Information Processing Systems (NeurIPS), 2018, pp. 6571–6583.
[12] A. H. Shah, D. Shrivastava, and S. P. Singh, "Continuous-time video prediction using neural ODEs," arXiv preprint arXiv:2305.12012, 2023.
[13] F. Locatello et al., "Object-centric learning with slot attention," in Advances in Neural Information Processing Systems (NeurIPS), 2020, pp. 11525–11538.
[14] T. Kipf et al., "Object-centric video prediction," in International Conference on Learning Representations (ICLR), 2021.
[15] R. Peddi, S. Das, and M. N. R. E. A. L. K. H. W. L., "Towards scene graph anticipation," in European Conference on Computer Vision (ECCV), 2024.
[16] S. Lefevre, L. Perret, and N. Viard-Gaudin, "Moving MNIST: A video prediction benchmark," arXiv preprint arXiv:2103.09163, 2021.
[17] H. S. Yoon, S. Park, and S. J. Lee, "PastNet: Physical-aware spatio-temporal network for video prediction," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45, no. 8, pp. 9876–9890, 2023.
[18] J. Kim, H. Lee, and S. Choi, "PLA-SM: Physics-guided video prediction with spatio-temporal attention," IEEE Transactions on Image Processing, vol. 32, pp. 1234–1248, 2023.
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC-By) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
This work is licensed under a Creative Commons Attribution License CC BY