Earthfarsser: Versatile Spatio-Temporal Dynamical Systems Modeling in One Model

Hao Wu, Yuxuan Liang, Wei Xiong, Zhengyang Zhou, Wei Huang, Shilong Wang, Kun Wang

Abstract

Predicting the evolution of complex spatio-temporal physical systems remains a significant challenge for deep learning models, which often struggle to balance global patterns with local fidelity. This paper introduces Earthfarseer, a versatile framework that integrates local convolutions with global Fourier-based architectures. By employing parallel processing of spatial and temporal features, Earthfarseer achieves state-of-the-art performance across eight diverse datasets, ranging from synthetic digits to real-world meteorological and traffic data. The model demonstrates superior local fidelity, faster convergence, and robust long-term prediction capabilities compared to existing specialized models.

Introduction

Predicting how physical systems evolve over space and time—from the swirling path of a hurricane to the shifting flow of city traffic—is one of the most complex challenges in deep learning. While many models excel at capturing broad, global patterns, they often stumble when it comes to preserving fine-grained local details or scaling to long-term predictions. Earthfarseer offers a scalable, efficient "one-stop shop" for modeling these diverse dynamical systems by cleverly combining local convolutions with global Fourier-based architectures.

Problem Statement

Modeling spatio-temporal (ST) physical processes usually involves a trade-off. Existing "off-the-shelf" models suffer from four primary drawbacks:

  1. Lack of local fidelity: Models often focus on global regularity but miss local anomalies (e.g., small eddies within a larger storm system).
  2. Poor long-term prediction: Intricate temporal correlations make long-term forecasting notoriously inaccurate.
  3. Low scalability: Many models are tailor-made for specific tasks, making them hard to adapt to new domains.
  4. Inefficiency: Cumbersome architectures lead to slow training and deployment.

Methodology

Earthfarseer is built on a parallel architecture designed to handle the inherent inconsistencies between global and local evolution through three primary components:

1. Spatial Block: FoTF (Fourier-based Transformer)

Instead of choosing between local and global views, Earthfarseer uses a parallel architecture. A Local CNN Branch uses small $3 \times 3$ kernels to capture fine-grained, high-frequency local features. Simultaneously, a Global Fourier-based Transformer (GF) uses the Fast Fourier Transform (FFT) to mix tokens in the frequency domain, achieving a global receptive field with low computational complexity.

2. Temporal Block: TeDev (Temporal Dynamic Evolution)

To handle the continuous nature of physical systems, TeDev uses a "stream morph" operator to treat discrete frames as a continuous flow. It employs multi-scale convolutions and Fourier transforms to capture dependencies across multiple time scales, avoiding the heavy overhead of traditional Neural ODE solvers.

3. Flexible Decoder

The decoder is decoupled into spatial and temporal stages, allowing the model to perform super-resolution and predict sequences of arbitrary lengths.

Figure 6: Detailed architecture of Earthfarseer, highlighting the FoTF spatial blocks, TeDev temporal blocks, and the flexible decoder stages.

Key Results and Insights

The authors evaluated Earthfarseer on eight datasets spanning synthetic (MovingMNIST), human social dynamics (TaxiBJ+, KTH), and natural physical systems (SEVIR, RainNet, PD, RD, and 2DSWE).

  • State-of-the-Art Performance: Earthfarseer outperformed all baselines, including SimVP, Earthformer, and FourcastNet, across all datasets.
  • Efficiency and Convergence: On the 2D Shallow Water Equations (2DSWE) dataset, Earthfarseer reached optimal performance nearly 75% faster than VideoODE. The use of Fourier transforms for spatial and temporal mixing provides a global context without the quadratic cost of standard Transformers.
  • Local Fidelity and Stability: Visualizations show that Earthfarseer captures small-scale flow details and sharp boundaries that other models blur. It also demonstrated exceptional stability in long-term fluid dynamics simulations (up to 50 steps ahead).
Figure 3: Comprehensive performance comparison showing MSE vs. block numbers, test loss convergence curves, and visual prediction results across multiple datasets.

Conclusion

Earthfarseer demonstrates that running CNNs and Transformers in parallel ensures local details are not "washed out" by global smoothing. Its simple size scaling and ability to treat data as a continuous stream make it a strong candidate for large-scale pre-training on diverse physical datasets, potentially leading to a foundation model for Earth sciences. While it does not yet explicitly enforce physical laws like mass conservation in its loss function, its versatility and efficiency mark a significant step forward in spatio-temporal modeling.

Summary updated

BibTeX
@inproceedings{wu2024earthfarsser,
  author = {Hao Wu and Yuxuan Liang and Wei Xiong and Zhengyang Zhou and Wei Huang and Shilong Wang and Kun Wang},
  title = {{Earthfarsser: Versatile Spatio-Temporal Dynamical Systems Modeling in One Model}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i14.29521},
}
Figure