MeTok Beats Larger Weather Models on Extreme Rain With 10x Fewer Parameters
A new transformer for precipitation forecasting groups image patches by rainfall history instead of spatial position, boosting extreme-rain IoU by 8.2%.
ProTakeaways
- MeTok reorders transformer patches by historical rainfall instead of spatial position for precipitation nowcasting (paper).
- Hyper-Aligned Grouping Transformer replaces self-attention with grouping attention plus a convolutional neighborhood FFN.
- Achieves 44.41 IoU on ERA5 with just 1.42M parameters, beating 10-48M baselines.
- Boosts extreme-precipitation IoU by 8.2%, with rainstorm class jumping from 14 to 22 IoU.
- Outperforms ECMWF IFS numerical model on 0 to 18 hour forecasts on WeatherBench 2.
- Learnable grouping variant underperformed the fixed historical-precipitation sort; regional skill varies by over 10%.
Transformer-based weather models have inherited a habit from computer vision that may not suit meteorology: they split the map into patches by position and let attention figure out the rest. A new paper argues this is the wrong prior for rainfall. Storms are not defined by where pixels sit on a grid, they emerge from interactions between humidity, temperature, and wind that can be similar in distant locations. The authors propose MeTok, a distribution-centric tokenizer that reorders patches by their historical precipitation pattern before feeding them into a transformer.
The result is a compact model that beats much larger baselines on short-range rain forecasting, especially for the rare, dangerous events that most models fumble. On ERA5, the framework improves the IoU metric by at least 8.2% in extreme precipitation prediction compared to other methods, while using roughly a tenth of the parameters of prior state-of-the-art systems.
Why position-first tokenizers fight the physics
In ViT-style pipelines, an image is chopped into fixed patches and each token carries a positional embedding. That works when nearby pixels share semantics, like edges of a cat. Weather does not behave that way. MeTok is a distribution-centric scheme that spatially sequences to group similar meteorological features, and this rearrangement enhances robustness across precipitation patterns, especially extreme ones.
There is also a long-tail problem. Rainless and light-rain pixels dominate the training data at roughly 80% and 18% respectively, while heavy rain and rainstorms together represent less than a tenth of a percent. A vanilla transformer overfits the head of that distribution and smears the rare tail. Grouping patches by rainfall history lets the tail cluster with itself, so the model can learn distinct representations for extreme conditions rather than drown them in averages.
How MeTok actually rearranges the map
The idea is mechanically simple. First, patchify the meteorological inputs as usual. Then, for each timestep, sort the patch embeddings in descending order according to the corresponding historical precipitation values. Split the sorted sequence into equal, non-overlapping groups. Aggregate each group into a single group embedding using a 1D convolution whose kernel size and stride equal the number of patches per group. Patches with similar rainfall history land together, regardless of where they sit geographically.

To operate on this reordered sequence, the authors introduce the Hyper-Aligned Grouping Transformer, or HyAGTransformer. It replaces standard self-attention with two custom components:
- Grouping Attention (GA): queries come from the patch embeddings, but keys and values come from the group embeddings. This lets each patch attend to aggregated features of patches sharing its precipitation regime, and drops complexity from O(n squared) to O(nm) where m is the number of groups.
- Neighborhood Feed-Forward Network (N-FFN): a 1D convolution inside the FFN mixes each token with its neighbors along the rearranged axis, recovering context that gets discretized away by hard grouping.
The full pipeline is an encoder-translator-decoder. The encoder models spatial structure with MeTok, the translator handles temporal evolution across the input window, and the decoder unshuffles patches back to their geographic positions before upsampling to produce the precipitation forecast. One nice touch: instead of a learned positional embedding, the model uses the solar elevation angle as a spatiotemporal signal, since it directly encodes latitude, longitude, and time, and correlates with the solar energy driving atmospheric motion.
Small model, big numbers
The headline benchmark is 6-hour precipitation nowcasting on a regional slice of ERA5, using 12 meteorological variables including humidity, temperature, and wind at three pressure levels. The model is compared against ConvLSTM, TrajGRU, PredRNN, SimVP, TAU, and others.
| Model | Params (M) | TS | IoU |
|---|---|---|---|
| ConvLSTM | 14.79 | 20.68 | 37.83 |
| PredRNN | 25.84 | 17.95 | 36.58 |
| SimVP | 14.08 | 20.52 | 39.84 |
| TAU | 10.05 | 20.58 | 39.76 |
| MeTok (Ours) | 1.42 | 23.33 | 44.41 |
The efficiency gap is striking. At 1.42M parameters, MeTok is roughly 7 to 30 times smaller than its competitors while pushing IoU up by more than four points. Broken down by intensity class, the gains concentrate exactly where they matter: heavy rain jumps from 21 to 25 IoU, and rainstorm from 14 to 22.
Beating the physics-based model, sometimes
On WeatherBench 2, the authors go head-to-head with ECMWF's operational IFS numerical model. For the 0 to 6 hour window, MeTok posts an RMSE of 0.84 against IFS HRES at 1.39 and IFS ENS mean at 1.29. That advantage narrows as the horizon extends, and by 30 to 36 hours the physics-based ensemble catches back up. The scaling table also shows a clean trend: adding training years and variables monotonically lowers RMSE, from 1.91 with 10 years of data down to 1.25 with 30 years and 79 variables.
Compared to GraphCast, which uses 36.7M parameters trained on 32 Cloud TPU v4 devices with 227 variables at 0.25 degree resolution over 39 years, MeTok reaches comparable performance with an 11.3M variant trained on 4 RTX 3090 GPUs. The paper argues, plausibly, that further scaling would close or reverse that gap.
Where it struggles
Two honest limitations stand out. First, an ablation attempting to make the grouping strategy learnable, with an adapter predicting the ordering, underperformed the hardcoded historical-precipitation sort. The authors acknowledge this and flag it as future work. Second, per-region evaluation shows uneven skill: the gap between the best and worst regions exceeds 10%, suggesting the model's implicit assumptions do not generalize equally across climates and terrain. Rainfall predictions also tend to be spatially dense, missing more discrete, isolated events.
What this changes
MeTok is not a foundation model or a compute-scaled behemoth. It is an inductive-bias fix. The lesson generalizes past weather: when your data has a strong non-spatial structure, letting the tokenizer respect that structure can outperform brute-force attention with fewer parameters. For anyone building spatiotemporal transformers on domains with long-tailed distributions, from traffic to seismology, sorting tokens by a physically meaningful covariate before attention is a cheap experiment with a clear upside.
Code and pretrained weights do not appear to be released in the current preprint. Reproducing the framework would require implementing the sort-group-attend pipeline described in the paper against the public ERA5 and WeatherBench data.