the Creative Commons Attribution 4.0 License.
the Creative Commons Attribution 4.0 License.
Enhancing Data-Driven Weather Forecasting via Gated Relative Position Encoding and Spatial-Aware Feed-Forward Network
Abstract. Data-driven weather models have emerged to address the immense computational costs of traditional numerical weather prediction by generating highly accurate, global forecasts in seconds. While Transformer-based architectures have achieved higher accuracy than numerical weather predictions, their existing position encodings typically embed limited spatial and temporal context, failing to fully account for the time variability, directionality, and location-dependency inherent in atmospheric motions. To resolve this, we introduce a novel model, Neighborhood Attention Transformer for atmospheric prediction (AtmoNAT). We propose two unique architectural components: a Gated Relative Position Encoding (GRPE) and a Spatial-Aware Feed-Forward Network (SAFN). The GRPE maintains independent positional biases based on absolute coordinates to secure location-dependency with a negligible increase in model size, while effectively capturing the directionality and temporal variations of the atmosphere. Simultaneously, the SAFN incorporates parallel input and gating branches, alongside a global positional bias, to explicitly simulate non-local interactions between atmospheric variables and integrate terrain effects. Evaluated on the WeatherBench 2 data at a 1.5° spatial resolution, AtmoNAT’s deterministic forecasts demonstrate lower prediction errors on key variables up to a 72-hour lead time when compared to other coarse-resolution ensemble forecasts. Furthermore, AtmoNAT achieves state-of-the-art forecasting performance over global land areas, highlighting the profound potential of GRPE and SAFN in advancing next-generation weather forecasting.
- Preprint
(2382 KB) - Metadata XML
-
Supplement
(3082 KB) - BibTeX
- EndNote
Status: open (until 12 Jul 2026)
-
CEC1: 'Comment on egusphere-2026-1990 - No compliance with the policy of the journal', Juan Antonio Añel, 28 May 2026
reply
-
AC1: 'Reply on CEC1', Jerry Zhijian Yang, 04 Jun 2026
reply
Dear executive editor,
We update the zenodo repository (https://doi.org/10.5281/zenodo.20537815) to include the source code of AtmoNAT, a pretrained checkpoint, and a small test dataset (10 days) for quick evaluation. We provide URL link to ERA5 data (https://doi.org/10.24381/cds.bd0915c6) and provide data preprocessing scripts in the source code that regrid the raw ERA5 onto a 1.5° equiangular grid instead of a link hosted by a commercial cloud provider. Code and data availability now is:
Source code of AtmoNAT can be accessed at https://doi.org/10.5281/zenodo.20537815 (Huang and Wang, 2026). ERA5 data for training, validation, and testing AtmoNAT can be accessed at https://doi.org/10.24381/cds.bd0915c6. A 10-day test dataset for quick evaluation, a pretrained checkpoint, and data preprocessing scripts that regrid the raw ERA5 onto a 1.5° equiangular grid are also included in Huang and Wang (2026). If you have any questions, please feel free to ask.
Sincerely,
Prof. Jerry Zhijian Yang
Center for Applied Mathematics in Hubei
Wuhan UniversityCitation: https://doi.org/10.5194/egusphere-2026-1990-AC1 -
CEC2: 'Reply on AC1', Juan Antonio Añel, 05 Jun 2026
reply
Dear authors,
Thanks for addressing this issue so quickly. I have checked the repositories and we can consider now the current version of your manuscript in compliance with the code policy of the journal.
Juan A. Añel
Geosci. Model Dev. Executive Editor
Citation: https://doi.org/10.5194/egusphere-2026-1990-CEC2
-
CEC2: 'Reply on AC1', Juan Antonio Añel, 05 Jun 2026
reply
-
AC1: 'Reply on CEC1', Jerry Zhijian Yang, 04 Jun 2026
reply
Model code and software
Source code of AtmoNAT Xiaoyu Huang and Leyi Wang https://doi.org/10.5281/zenodo.19369025
Viewed
| HTML | XML | Total | Supplement | BibTeX | EndNote | |
|---|---|---|---|---|---|---|
| 262 | 126 | 14 | 402 | 35 | 18 | 21 |
- HTML: 262
- PDF: 126
- XML: 14
- Total: 402
- Supplement: 35
- BibTeX: 18
- EndNote: 21
Viewed (geographical distribution)
| Country | # | Views | % |
|---|
| Total: | 0 |
| HTML: | 0 |
| PDF: | 0 |
| XML: | 0 |
- 1
Dear authors,
Unfortunately, after checking your manuscript, it has come to our attention that it does not comply with our "Code and Data Policy".
https://www.geoscientific-model-development.net/policies/code_and_data_policy.html
In your manuscript, to access the ERA5 training data, you link a site that we can not accept, hosted by a commercial cloud provider. You must store the ERA5 data used for training in an acceptable repository according to the policy of the journal.
The GMD review and publication process depends on ensuring the provenance of replicability of the published papers for years after their publication. Please, therefore, publish your data in one of the appropriate repositories and reply to this comment with the relevant information (link and a permanent identifier for it (e.g. DOI)) as soon as possible. We cannot have manuscripts under discussion that do not comply with our policy.
Later, if the Topical Editor decides to continue with the review or publication process of your manuscript and you are requested to upload a new version of it, then The 'Code and Data Availability’ section of your manuscript must also be modified to cite the new repository locations, and corresponding references added to the bibliography.
I must note that if you do not fix this problem, we cannot continue with the peer-review process or accept your manuscript for publication in GMD.
Juan A. Añel
Geosci. Model Dev. Executive Editor