Spatiotemporal Forecasting as Planning: A Model-Based Reinforcement Learning Approach with Generative World Models

Hao Wu, Yuan Gao, Xingjian Shi, Shuaipeng Li, Fan Xu, Fan Zhang, Zhihong Zhu, Weiyan Wang, Xiao Luo, Kun Wang, Xian Wu, Xiaomeng Huang · DOI

Abstract

Spatiotemporal forecasting in physical sciences often struggles with the disconnect between differentiable proxy losses (like MSE) and the non-differentiable metrics that define scientific utility, such as physical consistency and extreme event capture. This paper introduces Spatiotemporal Forecasting as Planning (SFP), a novel framework that reframes forecasting as a Model-Based Reinforcement Learning (MBRL) problem. By utilizing a generative world model to simulate future states and beam search to optimize for domain-specific rewards, SFP bridges this gap, significantly improving performance across diverse scientific benchmarks.

Introduction: The Fundamental Disconnect in Forecasting

Deep learning models have become indispensable for spatiotemporal forecasting in domains like meteorology and fluid dynamics. However, these models are typically trained to minimize pixel-wise errors such as Mean Squared Error (MSE). In scientific contexts, MSE is often a poor proxy for quality; researchers prioritize domain-specific metrics like the Critical Success Index (CSI) for extreme weather or Turbulent Kinetic Energy (TKE) for fluid flow.

Because these critical metrics are often non-differentiable, they cannot be directly optimized via standard backpropagation. This leads to forecasts that may have low average error but are physically inconsistent or "blurry," failing to capture the rare, high-impact events that matter most.

Comparison between conventional supervised forecasting and the proposed SFP framework.

The SFP Framework: Forecasting as Planning

To address this disconnect, SFP treats forecasting as a planning problem within an MBRL framework. The approach consists of two decoupled stages:

1. Learning the Generative World Model

The framework first trains a Conditional Vector-Quantized Variational Autoencoder (VQ-VAE) to serve as a Generative World Model. This model learns the probabilistic dynamics of the physical environment, enabling it to generate a distribution of high-fidelity future states based on a current state and a latent "action."

2. Policy Optimization via Planning and Self-Training

In the second stage, a base forecasting model (the Agent) is trained to output a latent action rather than a direct prediction. A Planner then uses Beam Search to explore potential trajectories within the frozen World Model's "imagination space."

Crucially, the non-differentiable domain metric is employed as a Reward Function to evaluate these imagined futures. The trajectory yielding the highest reward serves as a high-quality pseudo-label, which is then used to update the Agent’s policy through standard gradient descent. This process, termed "RL from Metric Feedback" (RLMF), allows the model to optimize for objectives that were previously unreachable.

Stage 2 of the SFP framework: Iterative policy optimization through planning in the world model's imagination space.

Experimental Evaluation

The authors evaluated SFP across several challenging benchmarks:

  • SEVIR: Real-world extreme weather radar and satellite data.
  • Marine Heatwave: Testing rare event capture in data-scarce scenarios.
  • PDEBench: Equation-driven systems including Navier-Stokes (NSE), Shallow Water (SWE), and Rayleigh-Bénard Convection (RBC).
  • Prometheus: High-fidelity CFD simulations for combustion.

Key Insights

  • Direct Metric Optimization: SFP demonstrates that complex, non-differentiable scientific metrics can be directly optimized by leveraging a world model as an exploration space.
  • Robustness to Data Scarcity: The performance gap between SFP and supervised baselines increases as training data decreases, suggesting that the "imagination" process acts as a powerful data multiplier.
  • Model Agnostic: SFP is a training paradigm that can be applied to various architectures. The authors showed consistent improvements across ten different backbones, including CNNs, Transformers, and Neural Operators.
  • Stability: Unlike other preference-based optimization methods like DPO, SFP’s decoupled architecture ensures stable convergence during training.

Results and Impact

SFP achieved significant breakthroughs in domain-specific performance:

  • Scientific Metrics: Improved CSI on SEVIR by an average of 29.7% and reduced TKE spectrum error on NSE by 57.3%.
  • General Accuracy: Standard MSE was also reduced by 33.6% to 56.2% across benchmarks.
  • Probabilistic Skill: SFP outperformed specialized generative models in Continuous Ranked Probability Score (CRPS), demonstrating superior probabilistic forecasting skill.

Limitations

The primary trade-off for SFP's accuracy is increased computational cost. Training requires an additional stage for the world model, and inference latency is significantly higher due to the Beam Search process (e.g., increasing from 210ms to 1650ms on SEVIR). While acceptable for many scientific applications, future work may focus on distilling these planned policies into faster, single-pass networks.

Summary updated

BibTeX
@misc{wu2025spatiotemporal,
  author = {Hao Wu and Yuan Gao and Xingjian Shi and Shuaipeng Li and Fan Xu and Fan Zhang and Zhihong Zhu and Weiyan Wang and Xiao Luo and Kun Wang and Xian Wu and Xiaomeng Huang},
  title = {{Spatiotemporal Forecasting as Planning: A Model-Based Reinforcement Learning Approach with Generative World Models}},
  year = {2025},
  eprint = {2510.04020},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.04020},
}
Figure