TL;DR
Traditional Vision Transformers process weather data using rigid, position-based grids, which fails to capture fluid atmospheric dynamics. This paper introduces MeTok (Meteorological Tokenization), a distribution-centric tokenization scheme that groups weather features by their historical precipitation patterns rather than their physical location, leading to a massive 8.2% boost in extreme weather forecasting accuracy.
What Problem Does This Paper Address?
Precipitation nowcasting—predicting rainfall intensity a few hours in advance—is critical for disaster prevention, agriculture, and aviation. Recently, deep learning models, particularly Vision Transformers (ViTs), have emerged as powerful alternatives to traditional Numerical Weather Prediction (NWP) models.
However, standard ViTs inherit a major flaw from computer vision: position-centric tokenization. They chop meteorological maps into rigid grids of fixed spatial patches. While this makes sense for static images, it violates the laws of atmospheric physics. Weather phenomena are driven by complex, multi-scale thermodynamic interactions where geographical position is merely a boundary condition. Forcing a model to only look at neighboring spatial patches blends completely different weather patterns together. This is especially damaging for predicting extreme weather events, which are already buried in a highly imbalanced, long-tailed data distribution dominated by "rainless" days.
Methods
To bridge the gap between deep learning and meteorological physics, the authors propose an encoder-translator-decoder framework powered by two core innovations:
- Meteorological Tokenization (MeTok): Instead of grouping patches by spatial proximity, MeTok sorts and rearranges patch embeddings based on their historical precipitation distributions (e.g., sorting from highest to lowest rainfall intensity). This aligns similar weather patterns into non-overlapping clusters regardless of where they occur geographically.
- Hyper-Aligned Grouping Transformer (HyAGTransformer): Standard self-attention scales quadratically ($O(n^2)$), making it computationally heavy. The authors introduce two custom components to handle MeTok's rearranged sequences:
- Grouping Attention (GA): This mechanism computes attention between individual patch embeddings and aggregated group embeddings (derived via 1D convolutions over the sorted clusters). This drops computational complexity to $O(nm)$ (where $m < n$) and prevents rare, extreme weather features from being drowned out by dominant, rainless data.
- Neighborhood Feed-Forward Network (N-FFN): Because grouping discretizes the continuous feature space, N-FFN applies 1D convolutions to adjacent features in the sorted sequence to recover contextual details and smooth out cross-group misalignment.
Datasets
The authors evaluated their framework across three major meteorological datasets:
- ERA5: A regional subset (221×281 grid over East Asia) containing 12 hourly variables (temperature, humidity, and wind components across multiple atmospheric pressure levels).
- WeatherBench (WB): A global benchmark dataset with a 1.40625° horizontal resolution and 12 variables.
- WeatherBench 2 (WB2): A large-scale global dataset used to test model scalability, utilizing 79 variables spanning 30 years of historical data (1989–2019).
Key Insights and Ideas
- Physics over Geometry: Weather doesn't care about grid coordinates; similar dynamic-thermodynamic conditions can happen anywhere. Sorting by distribution creates a more physically meaningful feature space for neural networks.
- Taming the Long Tail: Extreme weather events are rare (the "tail" of the distribution). By grouping similar patterns together, MeTok isolates these rare features, preventing the abundant "rainless" data (the "head") from overwhelming the model during attention computation.
- Position is Secondary: Interestingly, the authors found that completely removing positional encodings did not drastically degrade performance. This reinforces the idea that spatial coordinates are secondary to the actual atmospheric state when it comes to nowcasting.
Key Results
- State-of-the-Art Accuracy: On the ERA5 dataset, the MeTok framework achieved a mean Intersection over Union (IoU) of 44.41%, comfortably outperforming competitive baselines like SimVP (39.84%) and TAU (39.76%).
- Extreme Weather Breakthrough: For heavy rainfall and rainstorms, MeTok improved the IoU metric by at least 8.2% compared to other deep learning methods on ERA5.
- Foundation Model Scaling: On WeatherBench 2, the model demonstrated classic scaling properties—its Root Mean Squared Error (RMSE) steadily improved as parameters increased (from 4.82M to 8.15M) and variables expanded (from 52 to 79). It also outperformed ECMWF's operational IFS model for short-term (0–18 hour) forecasts.
Limitations and Future Work
Despite its strong performance, the authors note two key limitations:
- Regional Imbalance: The model's performance varies significantly across different geographical regions (with accuracy differences exceeding 10%). This indicates that the model still struggles to adapt perfectly to diverse terrains and localized climate conditions.
- Heuristic Sorting: Currently, MeTok relies on a simple descending sort based on historical precipitation. The authors experimented with a "learnable" grouping strategy via an adapter, but it actually performed worse than the heuristic sort. Developing robust, fully learnable meteorological tokenizers remains an open challenge.
Summary updated