Reinforcement-Aligned Probabilistic Weather Forecasting with Discrete Tokens
Organizations: University of Science and Technology of China · Nanyang Technological University · Tsinghua University · Carnegie Mellon University ·
Abstract
Global medium-range weather forecasting must not only generate ensembles efficiently to characterize uncertainty in future states, but also serve downstream applications such as extreme-event warnings and cross-sphere coupled simulations. We introduce WeatherCraft, a framework that unifies probabilistic generation and reinforcement learning alignment through discrete weather tokens, bringing the GPT-style pretraining--post-training paradigm to global medium-range weather forecasting. A multiscale tokenizer represents atmospheric states as a coarse-to-fine token hierarchy, while a Transformer models causal dependencies across time and scale and predicts tokens within each scale in parallel. Direct sampling generates diverse ensembles, and exact token log-probabilities enable Group Relative Policy Optimization (GRPO) to maximize downstream task rewards without differentiating through evaluators or coupled models. On the ERA5 benchmark, WeatherCraft's eight-member ensemble mean reduces day-15 normalized RMSE by 17.6% relative to the strongest evaluated deterministic baseline and, with KV caching, achieves an approximately inference speedup over GenCast. Direct fair-CRPS adaptation improves ensemble probabilistic skill, while reward-based post-training improves forecasts of persistent land temperature extremes and coupled ocean heat extremes. This work establishes discrete autoregressive modeling as a general foundation for scalable, task-alignable Earth system foundation models.
Figures & tables
| Method | 1-Day | 3-Day | 5-Day | 10-Day | 15-Day | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| nRMSE | ACC | nRMSE | ACC | nRMSE | ACC | nRMSE | ACC | nRMSE | ACC | |
| General Spatiotemporal Prediction Models | ||||||||||
| ConvLSTM [ 43 ] | 0.3410 | 0.8302 | 0.7440 | 0.3598 | 0.9497 | 0.1066 | 1.4206 | -0.0205 | 1.5766 | -0.0290 |
| SimVP [ 16 ] | 0.3032 | 0.8231 | 0.4521 | 0.6529 | 0.5877 | 0.4541 | 0.7518 | 0.1566 | 0.8169 | 0.0666 |
| Data-Driven Weather Forecasting Models | ||||||||||
| SFNO [ 6 ] | 0.2751 | 0.8895 | 0.4508 | 0.6762 | 0.5587 | 0.4829 | 0.6829 | 0.1872 | 0.7245 | 0.0940 |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning | Shape or interpretation |
|---|---|---|
| Observed, forecast, and reconstructed weather states | ||
| Weather predictive distribution and token dynamics policy | Field space; token space | |
| Encoder, decoder, and discrete tokenizer | Weather–latent–token mappings | |
| Continuous, accumulated, and complete daily latents | ||
| Scale- token map and its coarser prefix | indices | |
| Token grids, ordered from coarse to fine |
| Setting | Tokenizer | Dynamics |
|---|---|---|
| Optimizer | AdamW | AdamW |
| Epochs | 50 | 50 |
| Global batch size | 32 | 64 |
| Peak learning rate | ||
| Minimum learning rate | ||
| Warmup updates | 200 | 500 |
| Groups | Epochs | Tokens/day | Validation | Test | Q700 | V850 |
|---|---|---|---|---|---|---|
| 2 | 30 | 18,900 | 0.0935 | 0.0926 | 0.1406 | 0.1288 |
| 4 | 30 | 37,800 | 0.0698 | 0.0693 | 0.0997 | 0.1015 |
| 8 | 30 | 75,600 | 0.0667 | 0.0662 | 0.0956 | 0.0941 |
| 4 (ours) | 50 | 37,800 | 0.0669 | 0.0664 | 0.0957 | 0.0972 |
| Model | 1-Day | 3-Day | 5-Day | 10-Day | 15-Day |
|---|---|---|---|---|---|
| Ensemble-mean nRMSE | |||||
| Base | 0.1453 | 0.2586 | 0.3721 | 0.5474 | 0.5967 |
| + -day CRPS | 0.1449 | 0.2553 | 0.3654 | 0.5413 | 0.5930 |
| + -day CRPS | 0.1446 | 0.2530 | 0.3618 | 0.5385 | 0.5906 |
| Fair-CRPS | |||||
| Base | 0.0602 | 0.1065 | 0.1526 | 0.2252 | 0.2476 |
| Setting | Value |
|---|---|
| Optimization | |
| Optimizer | AdamW |
| Learning rate | |
| Weight decay | 0 |
| AdamW | |
| Gradient norm limit | 1.0 |
| Ocean SST events | CSI | RMSE | |||
|---|---|---|---|---|---|
| Method | q90 | q95 | days | SST ( ∘ C) | Weather |
| Base | 0.5561 | 0.4730 | 0.6448 | 0.3849 | 0.5029 |
| Vanilla GRPO | 0.5576 | 0.4749 | 0.6461 | 0.3848 | 0.5054 |
| Tree GRPO | 0.5598 | 0.4776 | 0.6472 | 0.3864 | 0.5088 |
| Land temperature events | CSI | RMSE | |||
| Method | Mean | Warm | Cold | T2M (K) | Weather |
| Model | T2M | Z500 | T850 | U850 | V850 | Q700 |
|---|---|---|---|---|---|---|
| 5-day forecasts | ||||||
| ConvLSTM | 5.076 | 1091.5 | 4.361 | 7.328 | 7.696 | 1.805 |
| SimVP | 5.022 | 716.2 | 3.591 | 5.270 | 4.915 | 1.536 |
| SFNO | 2.697 | 692.5 | 3.107 | 5.084 | 4.782 | 1.434 |
| Pangu | 2.959 | 735.9 | 3.274 | 5.332 | 4.990 | 1.476 |
| OneForecast | 1.997 | 407.5 | 2.073 | 3.653 | 3.468 | 1.136 |
| Model | T2M | Z500 | T850 | U850 | V850 | Q700 |
|---|---|---|---|---|---|---|
| 5-day forecasts | ||||||
| ConvLSTM | 0.072 | 0.042 | 0.100 | 0.106 | 0.027 | 0.146 |
| SimVP | 0.264 | 0.600 | 0.401 | 0.471 | 0.424 | 0.318 |
| SFNO | 0.390 | 0.578 | 0.475 | 0.419 | 0.385 | 0.324 |
| Pangu | 0.346 | 0.558 | 0.480 | 0.419 | 0.368 | 0.404 |
| OneForecast | 0.703 | 0.865 | 0.792 | 0.745 | 0.725 | 0.670 |
| Model | T2M (K) | U10 (m s -1 ) | V10 (m s -1 ) | MSLP (hPa) | ||||
|---|---|---|---|---|---|---|---|---|
| Clean | Missing | Clean | Missing | Clean | Missing | Clean | Missing | |
| RMSE (physical units) | ||||||||
| SFNO | 3.2121 | 3.3698 | 3.6901 | 3.7314 | 3.6859 | 3.7354 | 7.2609 | 7.3686 |
| Pangu | 3.6005 | 3.6736 | 4.1101 | 4.2667 | 3.7873 | 3.9457 | 8.0505 | 9.0589 |
| FuXi | 2.9004 | 3.0934 | 3.7008 | 3.7075 | 3.7422 | 3.7603 | 7.0089 | 7.1207 |
| FengWu | 3.0326 | 3.1706 | 3.6908 | 3.7406 | 3.6740 | 3.7100 | 6.9119 | 7.2230 |
| Input / reconstruction | T2M (K) | U10 (m s -1 ) | V10 (m s -1 ) | MSLP (hPa) |
|---|---|---|---|---|
| Climatology input | 2.489 | 3.469 | 3.512 | 6.818 |
| Clean reconstruction | 0.933 | 0.389 | 0.346 | 0.433 |
| Missing-input reconstruction | 1.379 | 1.154 | 1.225 | 1.593 |
| Tokenizer | 1-Day | 3-Day | 5-Day | 10-Day | 15-Day | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| nRMSE | fCRPS | nRMSE | fCRPS | nRMSE | fCRPS | nRMSE | fCRPS | nRMSE | fCRPS | |
| Residual FSQ | 0.1453 | 0.0602 | 0.2586 | 0.1065 | 0.3721 | 0.1526 | 0.5474 | 0.2252 | 0.5967 | 0.2476 |
| Grouped VQ | 0.1498 | 0.0615 | 0.2662 | 0.1086 | 0.3791 | 0.1543 | 0.5492 | 0.2252 | 0.5967 | 0.2471 |
| Tokenizer | Test nRMSE |
|---|---|
| Residual FSQ | 0.0664 |
| Grouped VQ | 0.0661 |
| Independent FSQ | 0.0828 |
| Model | 3-Day | 5-Day | ||
|---|---|---|---|---|
| nRMSE | fCRPS | nRMSE | fCRPS | |
| Base (parallel) | 0.2616 | 0.1074 | 0.3707 | 0.1519 |
| Spatial-block AR | 0.2641 | 0.1085 | 0.3791 | 0.1556 |
Weather Forecasting
Weather forecasting predicts future atmospheric conditions, from local storms to global patterns, using physical models, observations, and machine learning.
See all 193 papers