Scaling transformer neural networks for skillful and reliable medium-range weather forecasting

Tung Nguyen, Rohan Shah, Hritik Bansal, Troy Arcomano, Romit Maulik, Veerabhadra Kotamarthi, Ian Foster, Sandeep Madireddy, Aditya Grover

TL;DR

Stormer is a simple, standard Vision Transformer (ViT) adapted for medium-range weather forecasting that achieves state-of-the-art accuracy while using orders-of-magnitude less compute and data than existing AI weather models. By introducing a randomized dynamics forecasting objective, a single Stormer model can generate and average multiple forecast paths at inference time, significantly outperforming heavyweights like GraphCast and Pangu-Weather beyond a 7-day horizon.

What Problem Does This Paper Address?

Data-driven weather forecasting models have recently revolutionized meteorology, matching or surpassing traditional numerical weather prediction (NWP) systems in both speed and accuracy. However, these dominant AI models rely on highly customized, complex architectures—such as 3D Earth-specific transformers or multi-mesh graph neural networks—trained on massive compute budgets.

Because these models often lack thorough ablation studies, it has been difficult to isolate which architectural components actually drive their success. The authors of this paper tackle this gap by asking a fundamental question: Can a simple, standard transformer backbone achieve state-of-the-art weather forecasting performance if paired with the right training recipe?

Methods

The authors introduce Stormer, an architecture that keeps the standard ViT backbone largely intact but introduces three critical domain-specific components:

  1. Weather-Specific Embedding: Instead of flattening all atmospheric variables together into a single patch, Stormer tokenizes each variable independently (variable tokenization) and then aggregates them using a single-layer cross-attention mechanism (variable aggregation). This allows the model to capture non-linear interactions between different physical variables while keeping sequence lengths computationally manageable.
  2. Randomized Dynamics Forecasting: Rather than training the model to predict weather at a single fixed interval (e.g., always 6 hours ahead), Stormer is trained to predict the change in weather ($\Delta_{\delta t} = X_{\delta t} - X_0$) over a randomized interval $\delta t \in \{6, 12, 24\}$ hours.
  3. Pressure-Weighted Loss: A physics-informed loss function that weights variables based on their atmospheric pressure level, prioritizing near-surface variables (like 2-meter temperature) that have the highest societal impact.

At inference time, the randomized forecasting objective allows a single deterministic model to act like an ensemble system. For a target lead time, users can combine different step-size paths (e.g., a 3-day forecast can be rolled out as twelve 6-hour steps, six 12-hour steps, or three 24-hour steps) and average the results to smooth out chaotic errors.

Different approaches to weather forecasting compared to Stormer's randomized iterative forecasting.

To prevent error accumulation over long rollout horizons, the authors also utilize a three-phase multi-step finetuning schedule ($K=1, 4, \text{ and } 8$ rollout steps).

Datasets

Stormer is trained and evaluated on WeatherBench 2 (WB2), a standard benchmark for data-driven weather models built on the curated ERA5 reanalysis dataset.

Crucially, Stormer is trained on a significantly downsampled version of this data: $1.40625^\circ$ spatial resolution (128×256 grid) with 13 pressure levels at 6-hour intervals. This represents roughly 190× less data than Pangu-Weather's hourly $0.25^\circ$ dataset and 90× less data than GraphCast's 37-pressure-level dataset. The data split uses 1979–2018 for training, 2019 for validation, and 2020 for testing.

Key Insights and Ideas

  • Simplicity Wins: Highly customized spatial architectures (like 3D spherical meshes) are not strictly necessary. A standard ViT backbone can match or exceed them when given proper weather-specific embeddings and training objectives.
  • The Power of Implicit Ensembling: Training on randomized time intervals acts as a powerful data augmentation technique. At test time, averaging the diverse forecast paths acts as a Monte Carlo integration approach, effectively managing the atmosphere's chaotic sensitivity to initial conditions.
  • Dynamics vs. Absolute States: Forecasting the change in weather ($\Delta X$) is significantly easier for the network to learn than predicting the absolute future state ($X_t$), as it allows the model to focus on learning the most significant underlying physical signals.

Key Results

  • Long-Range Superiority: For short-range forecasts (1–5 days), Stormer is competitive with Pangu-Weather and slightly behind GraphCast. However, from day 6 onwards, Stormer excels, consistently outperforming both models by a large margin. At day 14, Stormer improves upon GraphCast by 10% to 20% across all 9 key atmospheric variables.
  • Massive Compute Savings: Stormer was trained in under 24 hours on 128 A100 GPUs. In comparison, Pangu-Weather took 60 days on 192 V100 GPUs, and GraphCast required 28 days on 32 TPUv4 devices.
  • Favorable Scaling: Stormer exhibits classic power-law scaling properties. Performance consistently improves as model capacity increases (from Stormer-S to Stormer-L) and as patch sizes decrease (which increases token count).
Global forecast results showing Stormer outperforming baselines at longer lead times.

Limitations and Future Work

  • Short-term Lag: Stormer slightly lags behind GraphCast on short-range forecasts (1–5 days), which the authors attribute to the significantly lower-resolution data ($1.4^\circ$ vs $0.25^\circ$) used for training.
  • Underdispersive Ensembles: While averaging multiple interval paths improves deterministic accuracy, these forecasts are underdispersive and cannot yet be used directly for reliable probabilistic uncertainty estimation without adding artificial initial condition noise.
  • Future Directions: Promising next steps include evaluating Stormer on full $0.25^\circ$ high-resolution data, exploring variable- and lead-time-dependent noise scheduling for true probabilistic forecasting, and scaling up to even larger foundation model sizes.

Summary updated

Abstract

Weather forecasting is a fundamental problem for anticipating and mitigating the impacts of climate change. Recently, data-driven approaches for weather forecasting based on deep learning have shown great promise, achieving accuracies that are competitive with operational systems. However, those methods often employ complex, customized architectures without sufficient ablation analysis, making it difficult to understand what truly contributes to their success. Here we introduce Stormer, a simple transformer model that achieves state-of-the-art performance on weather forecasting with minimal changes to the standard transformer backbone. We identify the key components of Stormer through careful empirical analyses, including weather-specific embedding, randomized dynamics forecast, and pressure-weighted loss. At the core of Stormer is a randomized forecasting objective that trains the model to forecast the weather dynamics over varying time intervals. During inference, this allows us to produce multiple forecasts for a target lead time and combine them to obtain better forecast accuracy. On WeatherBench 2, Stormer performs competitively at short to medium-range forecasts and outperforms current methods beyond 7 days, while requiring orders-of-magnitude less training data and compute. Additionally, we demonstrate Stormer's favorable scaling properties, showing consistent improvements in forecast accuracy with increases in model size and training tokens. Code and checkpoints are available at https://github.com/tung-nd/stormer.
BibTeX
@inproceedings{nguyen2024scaling,
  author = {Tung Nguyen and Rohan Shah and Hritik Bansal and Troy Arcomano and Romit Maulik and Veerabhadra Kotamarthi and Ian Foster and Sandeep Madireddy and Aditya Grover},
  title = {{Scaling transformer neural networks for skillful and reliable medium-range weather forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=SGrzCNkRI9},
}
Figure