CaFA: Global Weather Forecasting with Factorized Attention on Sphere
Zijie Li, Anthony Zhou, Saurabh Patil, Amir Barati Farimani
TL;DR
CaFA tackles the computational bottleneck of global Transformer-based weather forecasting by introducing factorized axial attention on the sphere, preserving spherical geometry while reducing cost. The method decomposes the multi-dimensional attention kernel into axis-specific operators and augments it with distance-encoded attention and spherical harmonic positional encoding. It uses an Encoder-Processor-Decoder architecture with height compression/recovery and patch-based spatial downsampling to operate on a latent grid, achieving competitive deterministic forecasts at $1.5^ ext{°}$ resolution for lead times of $0$–$7$ days with roughly $2\times 10^8$ parameters. Results show CaFA outperforms IFS HRES on several variables within $5$ days and offers favorable accuracy-efficiency trade-offs versus leading MLWP models, while highlighting avenues for higher-resolution scaling and probabilistic forecasting.
Abstract
Accurate weather forecasting is crucial in various sectors, impacting decision-making processes and societal events. Data-driven approaches based on machine learning models have recently emerged as a promising alternative to numerical weather prediction models given their potential to capture physics of different scales from historical data and the significantly lower computational cost during the prediction stage. Renowned for its state-of-the-art performance across diverse domains, the Transformer model has also gained popularity in machine learning weather prediction. Yet applying Transformer architectures to weather forecasting, particularly on a global scale is computationally challenging due to the quadratic complexity of attention and the quadratic increase in spatial points as resolution increases. In this work, we propose a factorized-attention-based model tailored for spherical geometries to mitigate this issue. More specifically, it utilizes multi-dimensional factorized kernels that convolve over different axes where the computational complexity of the kernel is only quadratic to the axial resolution instead of overall resolution. The deterministic forecasting accuracy of the proposed model on $1.5^\circ$ and 0-7 days' lead time is on par with state-of-the-art purely data-driven machine learning weather prediction models. We also showcase the proposed model holds great potential to push forward the Pareto front of accuracy-efficiency for Transformer weather models, where it can achieve better accuracy with less computational cost compared to Transformer based models with standard attention.
