Manuscript Offprint

arXiv:2611.01614

Sonny-ENS: demystifying machine-learning ensemble weather forecasting

Minjong Cheon

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Every weather forecast is uncertain, and decisions from flood warnings to energy trading depend on how well that uncertainty is quantified. Machine-learning (ML) ensembles now quantify it better than the best physics-based ensemble, yet two things about them remain opaque: whether their skill requires hundreds to thousands of accelerator-days of training, and how a network with a simple source of randomness produces a spread that follows the flow. Here we introduce Sonny-ENS, an ensemble of three 68.9-million-parameter networks with Monte Carlo dropout, trained on the continuous ranked probability score (CRPS) in 2.7 A40 GPU-days. On 2022, it has a lower CRPS than the European Centre for Medium-Range Weather Forecasts ensemble (ENS) on 96% of 570 targets and an 8.3% lower mean CRPS at lead times of 1–10 days. It outperforms the operational GenCast on 69% of the targets, and a 51-member, 15-day forecast takes 69 s on one GPU. Ablations identify the ingredients of this skill, and a Kolmogorov–Arnold sparse autoencoder shows that dropout injects uncertainty mainly in the tropics, whereas the spread grows where the atmosphere is baroclinically unstable (spatial correlation 0.91 with the Eady growth rate). Skillful probabilistic weather forecasts are therefore within reach of a single GPU server.

Small errors in a weather forecast do not grow everywhere alike: they amplify fastest where the atmosphere is baroclinically unstable, along the mid-latitude storm tracks¹⁻³. Forecast uncertainty therefore depends on the flow and has to be predicted together with the weather itself⁴,⁵. Operational centers do so with ensembles designed around this physics. The ENS of the European Centre for Medium-Range Weather Forecasts (ECMWF) integrates 50 perturbed copies of its physics-based model, with initial perturbations from singular vectors, which target the fastest-growing errors, and from ensemble data assimilation, and with stochastic perturbations of the physical tendencies⁶⁻⁸; other centers use related methods⁹. These ensembles are among the largest computations in operational meteorology¹⁰.

ML models trained on reanalysis now produce deterministic medium-range forecasts that are more accurate than the best physics-based deterministic system¹¹⁻¹⁵. Trained to minimize squared error, these models blur their forecasts as lead time grows and do not describe the range of possible outcomes¹⁶. A second generation of ML models produces ensembles. GenCast, a conditional diffusion model, outperformed ENS on 97.2% of 1,320 targets¹⁶. NeuralGCM couples a differentiable dynamical core with learned physics¹⁷; FGN, AIFS-CRPS and FuXi-ENS train directly on proper scoring rules or variational objectives¹⁸⁻²⁰; ArchesWeatherGen corrects a deterministic forecast with a generative model²¹; and huge ensembles of spherical Fourier neural operators sample thousands of members²².

These gains have been obtained with large computational budgets. As reported, GenCast was trained for 160 TPUv5-days, FGN for 490 TPU-days, AIFS-CRPS for 896 H100-days and NeuralGCM ENS for 1,280 TPUv5e-days²³ (Extended Data Table 3). Recent models lowered the cost: ArchesWeatherGen trains in 45 V100-days and U-Cast, an ensemble of four 895-million-parameter U-Nets at 1.5°, in 11.8 H200-days²¹,²³. Training cost decides who can develop, retrain and adapt an ensemble system, how quickly design choices can be tested, and how many members can be afforded when the system runs.

Machine learning offers inexpensive ways to turn a single network into a sampler. Monte Carlo (MC) dropout keeps dropout active at inference and draws a new network for every sample 24^{24}, and deep ensembles combine independently trained networks 25^{25}; early neural-network weather ensembles built this way were under-dispersive 23,26,27^{23,26,27}. U-Cast combined both with training on a proper scoring rule 28^{28}, the CRPS, and with four 895-million-parameter U-Nets matched the skill of GenCast at 1.5∘231.5^{\circ}23. Whether these mechanisms still work when each network is more than ten times smaller and trained on a few GPUs of the previous generation has not been established, and it is not known how a network whose only source of randomness is dropout produces a spread that depends on the flow.

Here we present Sonny-ENS and use it to answer both questions. Sonny-ENS extends the deterministic model Sonny 15^{15} with MC dropout, CRPS training and a deep ensemble of three rollout-trained models; with 68.9 million parameters per network and 2.7 A40-days of training, it outperforms ENS on 96% of the 2022 WeatherBench 2 (WB2) 29^{29} scorecard. We compare it with every ensemble in WB2 on two test years and examine forecasts of a record heatwave and a typhoon. Ablations then show which ingredients carry the skill, and a Kolmogorov–Arnold sparse autoencoder (KAN-SAE) 30−32^{30-32} shows where the ensemble spread is created and where it grows.

Sonny-ENS

Sonny-ENS maps the global atmospheric state at time tt on a 1.5∘1.5^{\circ} latitude-longitude grid (121×240121 \times 240 points) to the state at t+12t + 12h and produces 15-day forecasts by feeding its output back as input (Fig. 1a). The state has 82 variables: six upper-air variables on 13 pressure levels and four surface variables. Sea-surface temperature (SST), two static fields and top-of-atmosphere insolation enter as forcings. The network has three parts. Two convolutional stems on the full-resolution grid encode the dynamical variables (geopotential, winds, vertical velocity, mean sea-level pressure and 10-m winds) and the thermodynamical variables (temperature, humidity and 2-m temperature, together with the forcings), with padding that follows the sphere across the dateline and the poles, into tokens on a 3∘3^{\circ} grid (61×12061 \times 120). A first stack of six transformer blocks processes the dynamical tokens alone. A second stack of six wider blocks processes them jointly with the thermodynamical tokens, using global attention with two-dimensional rotary position embedding33^{33} and lead-time conditioning34^{34}. A convolutional decoder returns the 12-h tendency on the 1.5∘1.5^{\circ} grid. This two-step design, in which the dynamics is resolved before thermodynamics is added, follows Sonny15^{15}.

Sonny-ENS is stochastic because dropout stays active during forecasts 24^{24}, as in U-Cast 23^{23}: each member draws new dropout masks inside every transformer block at every 12-h step, so one trained network samples a distribution of trajectories. Training has three stages (Fig. 1a, bottom; Methods). The network is first trained deterministically on 1979–2018 with a per-variable root-mean-square error (RMSE) loss 35^{35}. It is then trained for five epochs with the fair CRPS 28,36^{28,36} computed over two dropout members, which turns the dropout into a model of forecast uncertainty. Finally, three copies are fine-tuned with the CRPS on autoregressive rollouts of 24–72h, with different random seeds and learning rates. The ensemble pools the three models 25^{25} with 17 dropout members each, giving 51 members, about the size of ENS. Training takes 65 A40 GPU-hours (2.7 A40-days) in total, and a 51-member, 15-day forecast takes about 69 s on one A40, or 23 s with the three models on three GPUs (Extended Data Table 3). Fig. 1b places Sonny-ENS among published ML ensembles by training cost and skill, and Fig. 1c shows that skill increases with model size and with each training stage.

We evaluate Sonny-ENS with the WB2 protocol 29^{29}: forecasts and the ERA5 reanalysis 37^{37} as truth on the 1.5∘1.5^{\circ} grid, initial times at 00 and 12 UTC and lead times from 12h to 15 days. Sonny-ENS starts from ERA5. All design decisions were made on 2019, which was withheld from training. In 2022 (700 initial times) we compare with the operational systems in WB2: ENS, the operational GenCast and FGN, all initialized from operational analyses. In 2020 (732 initial times) we compare with GenCast initialized from ERA5, NeuralGCM ENS and ArchesWeatherGen. Unless stated otherwise, the headline score is the CRPS skill, 100(1−CRPS/CRPSref)100(1 - \text{CRPS}/\text{CRPS}_{\text{ref}}), averaged over seven variables (Z500, T850, Q700, U850, T2m, U10 and MSLP) and over lead times of 1–10 days every 12h (133 targets)³⁵. Our metric code agrees with the official WB2 code to a relative difference below 10⁻⁸ (Supplementary Table 1).

References (42)