TL;DR
Existing physics-informed Neural ODEs for weather forecasting suffer from severe numerical errors when computing atmospheric velocity from coarsely discretized time data ($\Delta u / \Delta t$). WeatherODE solves this by using wave-equation theory to infer initial velocities from denser spatial gradients instead, coupling this with a time-dependent 3D source model and a stable "sandwich" architecture (CNN–ViT–CNN). This approach cuts RMSE by over 40% globally and 31.8% regionally compared to previous physics-informed neural ODE baselines.
What Problem Does This Paper Address?
Deep learning models for weather forecasting (such as pure Transformers or Graph Neural Networks) typically predict across fixed time steps and often ignore underlying atmospheric fluid dynamics. Recent physics-driven Neural ODE frameworks (e.g., ClimODE) attempt to enforce physical laws via the advection continuity equation:
$$\frac{\partial u}{\partial t} + \mathbf{v} \cdot \nabla u + u \nabla \cdot \mathbf{v} = s$$
However, these models face fundamental stumbling blocks:
- Severe Temporal Discretization Errors: Accurately solving the ODE requires the initial velocity field $\mathbf{v}(t_0)$. Previous methods approximate time derivatives using discrete differences ($\Delta u / \Delta t$) across coarse intervals (e.g., 1-hour steps from ERA5). Because temporal steps are coarse, these finite differences introduce significant numerical error and instability.
- Ignoring Time-Dependent Sources: External source terms $s$ (e.g., solar radiation and localized energy gains) evolve over time, but prior Neural ODE formulations either neglect their temporal evolution or fold them directly into the ODE solver, accumulating error.
- Training Instability in Coupled Networks: Coupling the velocity solver, advection dynamics, and source estimators requires balancing fast-converging local models with slower-converging global models to avoid numerical explosions (NaNs).
Methods
WeatherODE introduces a one-stage, physics-driven Neural ODE structured as a CNN–ViT–CNN sandwich:
-
Wave Equation-Informed Initial Velocity (Top Layer - 2D CNN): Under assumptions of incompressibility and linearization, the first time derivative relates directly to spatial derivatives via the wave equation: $$\frac{\partial u}{\partial t} = \int c^2 \left( \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} \right) dt$$ Because spatial resolution is nearly $100\times$ denser than hourly temporal resolution on typical grids, WeatherODE inputs spatial gradients $\nabla u(t_0)$ and states $u(t_0)$ into a fast-converging ResNet-2D to estimate $\mathbf{v}(t_0)$, entirely eliminating the noisy $\Delta u / \Delta t$ approximation.
-
Advection Neural ODE (Middle Layer - ViT): Given $\mathbf{v}(t_n)$ and $u(t_n)$, the advection equation computes $\dot{u}(t_n)$, while a Vision Transformer (ViT) augmented with a stabilizing linear term models velocity changes $\dot{\mathbf{v}}(t_n)$. The slower convergence rate and global receptive field of ViT prevent it from overfitting early on to noisy initial velocity estimates.
-
Time-Dependent Source Network (Bottom Layer - 3D CNN): Instead of integrating the source term directly inside the ODE loop, WeatherODE runs a separate 3D ResNet over the predicted trajectory $\{u(t_n)\}_{n=1}^N$ to capture spatiotemporal energy sources $\{s(t_n)\}_{n=1}^N$, avoiding error accumulation inside the numerical solver.
-
Multi-Task Continuous Supervision: The model is supervised across all intermediate time points up to lead time $N$ using latitude-weighted RMSE, allowing a single 24-hour trained model to infer predictions at arbitrary intervals without autoregressive rollout degradation.
Datasets
- ERA5 (via WeatherBench): 5.625° spatial resolution ($32 \times 64$ grid) with 1-hour temporal resolution.
- Inputs: 48 variables (6 atmospheric variables across 7 pressure levels, 3 surface variables, and 3 static fields).
- Target evaluation variables: $z500$, $t850$, $t2m$, $u10$, and $v10$.
- Train/Val/Test split: 1979–2015 for training, 2016 for validation, and 2017–2018 for testing.
- Regional Slices: Extracted bounding boxes from ERA5 for North America ($8 \times 14$ grid), South America ($14 \times 10$ grid), and Australia ($10 \times 14$ grid).
Key Insights and Ideas
- Spatial derivatives beat coarse time derivatives: Even though time evolution is continuous, hourly snapshots produce jagged discrete gradients. Spatial data is dense enough that estimating initial conditions through spatial laplacians/gradients yields vastly smoother, more physically coherent velocities.
- Architectural convergence pacing matters: If the advection network learns faster than the initial velocity network, it quickly locks onto inaccurate physical dynamics and diverges (producing NaNs). Placing a slower-converging Vision Transformer in the center sandwiched between fast-converging CNNs naturally stabilizes training.
- Decoupling sources from the ODE solver: Predicting source corrections post-ODE via 3D convolutions captures temporal solar cycles far better than embedding an instantaneous source within each ODE solver step.
Key Results
- Global Forecasting: WeatherODE achieves over a 40% lower RMSE compared to ClimODE across various lead times (6h, 12h, 18h, 24h), outperforming ClimaX by ~10% (despite ClimaX being pretrained on CMIP6) and performing competitively with ECMWF's operational Integrated Forecasting System (IFS).
- Example (24-hour lead time on $z500$): WeatherODE achieves 114.5 RMSE vs. ClimODE's 193.4 and ClimaX's 96.2.
- Example (24-hour lead time on $t2m$): WeatherODE achieves 0.98 K RMSE vs. ClimODE's 1.40 K and ClimaX's 1.10 K.
- Regional Forecasting: On North America, South America, and Australia subsets, WeatherODE reduces RMSE by 59.7% over ClimaX and 31.8% over ClimODE.
- Single Model Flexibility: A single 24-hour trained model (
WeatherODE*) achieved virtually identical accuracy when evaluated at intermediate 6h, 12h, and 18h checkpoints without needing retrained dedicated models or step-by-step rollout drift.
Limitations and Future Work
- Physical Assumptions: The wave equation formulation assumes incompressibility and linearized perturbations around a mean atmospheric state. While valid for large-scale synoptic systems, these assumptions may break down for violent, small-scale localized events (e.g., severe convective storms).
- Low Spatial Resolution: Experiments were conducted on coarse $5.625^\circ$ resolution (~600 km). Scaling and validating the CNN-ViT-CNN ODE system on high-resolution products (such as $0.25^\circ$ ERA5) remains an open challenge.
- Solver Complexity: While simpler than full numerical solvers like NeuralGCM, integrating multi-step Neural ODEs remains computationally heavier during backward passes compared to standard single-pass feedforward vision backbones.
Summary updated