Command Palette
Search for a command to run...
Interpretable Prototype-Conditioned Adaptation for Weather Forecasting
Interpretable Prototype-Conditioned Adaptation for Weather Forecasting
Zhixuan Li Hao Jiang Chen Hui Kai Geng Weisi Lin
Abstract
Data-driven weather forecasting requires distinguishing local states and their temporal evolution. However, learned patterns remain implicit in neural forecasters, making their influence difficult to interpret. Failing to distinguish local evolution can lead to similar forecasts for locations that develop differently, increasing prediction error. This motivates explicit references for distinguishing and interpreting local patterns. Prototypes provide explicit pattern references, but sampleor task-level conditioning leaves open how to adapt to distinct locations and variable groups. To deal with this problem, we design ProtoCast, which uses group-specific prototype banks to adapt local features while accounting for cross-variable dependencies. Specifically, (1) we combine each group’s historical features and temporal change with forecast context from crossvariable attention for evolution-aware prototype matching. (2) Sparse mixtures of prototype-specific low-rank operators tailor corrections to each group and location. A gated attention block then exchanges the corrected features across groups before prediction. Each group’s correction decomposes into explicit prototype contributions before this fusion. (3) We jointly train the forecasting network and operators from scratch and refit each group’s proto types before every training epoch. Slot tracking preserves prototype-operator associations, making each prototype’s contribution to local corrections more interpretable. Experiments on GlobalForecast and TyphoonTracking show improved forecasting accuracy, while prototype deletion links local feature contributions to changes in prediction error. This work advances the development of more accurate and interpretable data-driven weather forecasting models.
One-sentence Summary
Researchers from Nanyang Technological University and Nanjing University of Information Science and Technology propose ProtoCast, a weather forecasting model that uses group-specific prototype banks, evolution-aware matching, sparse mixtures of prototype-specific low-rank operators, and gated cross-group attention to produce interpretable local corrections; trained end-to-end with per-epoch prototype refitting and slot tracking, it improves forecasting accuracy on GlobalForecast and TyphoonTracking while prototype deletion links local feature contributions to changes in prediction error.
Key Contributions
- ProtoCast is a forecasting architecture in which each variable group maintains its own prototype bank and local features are corrected through evolution-aware prototype matching that combines historical features, temporal changes, and cross-variable forecast context.
- Sparse mixtures of prototype-specific low-rank operators with gated cross-group attention produce corrections that decompose into explicit prototype contributions; slot tracking during epoch-wise prototype refitting preserves prototype-operator associations.
- Experiments on GlobalForecast and TyphoonTracking show ProtoCast ranks first on 13 of 16 metrics for GlobalForecast and all 16 metrics for TyphoonTracking, while prototype deletion and ablations link local prototype contributions to changes in forecast error.
Introduction
Data-driven weather forecasting must capture both spatial structure and local temporal evolution, since different locations and meteorological variables can follow distinct trajectories even under similar current states. Representative Transformer forecasters learn spatiotemporal patterns implicitly, making it difficult to trace which patterns drive a prediction and potentially producing similar forecasts for differently evolving weather. Prior prototype-based methods often use references at the sample or task level, leaving position-specific and variable-specific adaptation unresolved. The authors introduce ProtoCast, which maintains separate prototype banks for meteorological variable groups and uses evolution-aware matching to apply sparse, low-rank residual corrections with cross-variable interactions, making local forecast updates more adaptive and interpretable.
Method
The authors propose ProtoCast, a framework that combines shared spatiotemporal modeling with group-specific prototype corrections for weather forecasting. Given historical weather fields X∈RTin×C×H×W, the model predicts future observations Y=fθ,ϕ(X)∈RTout×C×H×W. The input is split into G variable groups, each processed through independent encoders to extract patch features.
Refer to the framework diagram
As shown in the figure, the architecture processes these group-specific features through shared temporal encoding, a learned forecast projection, and shared spatial blocks. The temporal encoding maps flattened patches to a D-dimensional space, incorporating temporal and spatial positional encodings:
U(g)=T(Eg(Patch(X(g)))+Pt+Ps) V(g)=S1:L−1(Πt(U(g)))where U(g) represents the temporally encoded historical patch features and V(g) contains the forecast patch features. A first cross-variable attention block Vpre then exchanges information across variable groups at each patch and forecast lead to provide matching context.
To account for distinct local trajectories, the authors introduce an evolution-aware prototype matching module. For each patch, a descriptor is constructed by combining the mean historical feature, its temporal endpoint change, and the cross-variable forecast context. These descriptors are standardized, projected via principal component analysis, and normalized to form queries. The model computes cosine-based similarity scores against a group-specific prototype bank and applies entmax to generate sparse, patch-specific prototype weights αn(g) that are shared across all forecast leads.
These sparse weights drive a prototype-conditioned low-rank correction branch. Each prototype key indexes a learned up-projection matrix, while the group shares a down-projection, layer normalization, and lead embeddings. The shared down-projection is applied to the normalized forecast features, combined with lead embeddings, and passed through a SiLU activation to yield low-rank features. The prototype weights then mix the up-projections to form a patch-specific operator, which maps the low-rank features to a residual update. This residual is added to the original forecast features to produce corrected representations.
Following the group-specific corrections, a second gated cross-variable fusion block Vpost integrates the updated features to capture dependencies among the corrected variables. The fused features pass through a final shared spatial block and group-specific decoders. The decoders predict the changes from the last observed input fields, which are then added back to reconstruct the final forecast.
During training, the forecasting network, cross-variable interactions, and correction operators are optimized jointly using normalized-space MSE. Because the learned feature representations evolve during training, the authors employ a tracked prototype refitting process. Before each epoch, the prototype banks are refitted using fixed training samples without gradients. The refitting process initializes each prototype center from the queries assigned to its slot in the previous epoch, preserving the association between the prototype keys and their corresponding correction operators as the PCA coordinates update. At inference, the prototype banks remain fixed.
Experiment
The experiments evaluate ProtoCast on global WeatherBench and regional ERA5 forecasting benchmarks across multiple meteorological variables with 1 to 12 hour lead predictions, using standard error metrics and retrained baselines. ProtoCast achieves the best overall ranking on global metrics and the best results on all regional metrics, with consistent gains in error maps and typhoon track forecasting. Ablations confirm the contributions of prototype correction, cross-variable attention, and gated fusion, while prototype contribution analysis shows that removing influential prototype corrections degrades accuracy, supporting the interpretability of the approach.
ProtoCast leads global multivariate forecasting on GlobalForecast, ranking first on most metrics across temperature, humidity, wind, and cloud cover. It shows the largest relative gains for temperature while also improving humidity, wind, and cloud cover metrics compared with strong baselines. Qualitative full-field comparisons align with the quantitative results, with ProtoCast achieving the lowest mean absolute error for all four variables. ProtoCast has the highest first-place count and ranks first on 13 of 16 global metrics. It reduces T2M errors substantially compared with Met2Net, with MSE and MAE falling by about 18% and 17%. It improves R and UV10 MSE over PredFormer and achieves the lowest TCC MAE while ranking second on TCC MSE, RMSE, and R2. In full-field qualitative comparisons, ProtoCast records the lowest MAE for UV10, T2M, TCC, and R.
Core ablations on TyphoonTracking show that the full ProtoCast configuration performs best on mean sea-level pressure, zonal wind, and meridional wind, while a fixed-gate variant performs best on 2-meter temperature. Removing pre-attention degrades pressure and temperature most, and removing prototype correction or post-fusion generally increases error. The full model achieves the lowest MSE for mean sea-level pressure, zonal wind, and meridional wind, while the fixed-gate variant achieves the lowest 2-meter temperature error. Removing pre-attention leads to the largest pressure and temperature errors among the ablations, and removing prototype correction or post-fusion generally worsens performance.
ProtoCast ranks first on all reported regional forecasting metrics for MSL, U10, V10, and T2M on TyphoonTracking. Its improvements are largest for T2M relative to TAU, while MSL and wind errors also decline relative to Met2Net. None of the listed baseline models records a first-place metric count. ProtoCast achieves the best score on every reported MSL, U10, V10, and T2M metric. T2M shows the largest relative gain, with MSE reduced by roughly 26 percent and MAE by roughly 20 percent compared with TAU. MSL, U10, and V10 errors also improve relative to Met2Net, with MSL MSE reduced by roughly 15 percent. All listed baseline methods have a first-place metric count of zero.
ProtoCast is evaluated on global multivariate forecasting and regional typhoon tracking. On GlobalForecast it leads most metrics across temperature, humidity, wind, and cloud cover, with the largest relative gains for temperature. Ablations on TyphoonTracking confirm that the full configuration, especially pre-attention, prototype correction, and post-fusion, is important for pressure and wind accuracy, while regional results show ProtoCast ranks first on all mean sea-level pressure, zonal wind, meridional wind, and temperature metrics, with temperature improving most.