PINN-Cast: Exploring the Role of Continuous-Depth NODE in Transformers and Physics Informed Loss as Soft Physical Constraints in Short-term Weather Forecasting

arXiv cs.LG / 5/1/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper introduces PINN-Cast, a continuous-depth transformer encoder for short-term weather forecasting that replaces discrete residual updates with Neural ODE (continuous-time) dynamics solved via adaptive numerical integration.
  • It adds a two-branch attention mechanism, combining patch-wise self-attention with an auxiliary derivative-operator branch to inject additional change-sensitive signals into the attention logits.
  • The approach uses a physics-informed training objective that treats physical consistency as a soft constraint, aiming to make the transformer’s forecasts more physically grounded.
  • Experiments compare PINN-Cast against both a discrete transformer baseline and an existing continuous-time Neural ODE forecasting variant, finding that the physics-informed component improves short-term forecasting performance.

Abstract

Operational weather prediction has long relied on physics-based numerical weather prediction (NWP), whose accuracy comes at the cost of substantial compute and complex simulation workflows. Recent transformer-based forecasters offer efficient data-driven alternatives, however transformers are physics-agnostic models. Additionally, standard transformer encoders evolve representations through discrete layer updates that may be less suited to modeling smooth latent dynamics. In this work, we propose a continuous-depth transformer encoder for weather forecasting that integrates Neural Ordinary Differential Equation (Neural ODE) dynamics within each encoder block. Specifically, we replace discrete residual updates with ODE-based updates solved using adaptive numerical integration. We also introduce a two-branch attention module that combines conventional patch-wise self-attention with an auxiliary branch that applies a derivative operator to attention logits, providing an additional change-sensitive interaction signal. To further align forecasts with governing principles, we propose a customized physics-informed training objective that enforces physical consistency as a soft constraint. We evaluate the proposed method against a standard discrete transformer baseline and an existing continuous-time Neural ODE forecasting variant, demonstrating the importance of PINN-Cast in short term weather forecasting.

PINN-Cast: Exploring the Role of Continuous-Depth NODE in Transformers and Physics Informed Loss as Soft Physical Constraints in Short-term Weather Forecasting | AI Navigate