Papers › Earthformer: Exploring Space-Time Transformers for Earth System Forecasting

Earthformer: Exploring Space-Time Transformers for Earth System Forecasting

12 Jul 2022arXiv:2207.05833archive 2025-07-28

Zhihan Gao, Xingjian Shi, Hao Wang, Yi Zhu, Yuyang Wang, Mu Li, Dit-yan Yeung

Conventionally, Earth system (e.g., weather and climate) forecasting relies on numerical simulation with complex physical models and are hence both expensive in computation and demanding on domain expertise. With the explosive growth of the spatiotemporal Earth observation data in the past decade, data-driven models that apply Deep Learning (DL) are demonstrating impressive potential for various Earth system forecasting tasks. The Transformer as an emerging DL architecture, despite its broad success in other domains, has limited adoption in this area. In this paper, we propose Earthformer, a space-time Transformer for Earth system forecasting. Earthformer is based on a generic, flexible and efficient space-time attention block, named Cuboid Attention. The idea is to decompose the data into cuboids and apply cuboid-level self-attention in parallel. These cuboids are further connected with a collection of global vectors. We conduct experiments on the MovingMNIST dataset and a newly proposed chaotic N-body MNIST dataset to verify the effectiveness of cuboid attention and figure out the best design of Earthformer. Experiments on two real-world benchmarks about precipitation nowcasting and El Nino/Southern Oscillation (ENSO) forecasting show Earthformer achieves state-of-the-art performance. Code is available: https://github.com/amazon-science/earth-forecasting-transformer .

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2207.05833")

Code

Syntology Ran 0 of 11 code samples harvested from 1 repository linked to this paper; 11 have no recorded run.

By repository: official repository: 11 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

amazon-science/earth-forecasting-transformer officialmentioned in paperpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 0 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from amazon-science/earth-forecasting-transformer. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_cuboid_self_attention_mask amazon-science/earth-forecasting-transformer/src/earthformer/cuboid_transformer/cuboid_transformer.py official repository unverified Apache-2.0 (permissive) · 767ad1f13b2a971b · report
compute_enso_score amazon-science/earth-forecasting-transformer/src/earthformer/metrics/enso.py official repository unverified Apache-2.0 (permissive) · fe7fc1f6b96b1356 · report
cuboid_reorder amazon-science/earth-forecasting-transformer/src/earthformer/cuboid_transformer/cuboid_transformer.py official repository unverified Apache-2.0 (permissive) · bff27f9560afbd89 · report
cuboid_reorder_reverse amazon-science/earth-forecasting-transformer/src/earthformer/cuboid_transformer/cuboid_transformer.py official repository unverified Apache-2.0 (permissive) · 84f8ab35b7d0471d · report
full_attention amazon-science/earth-forecasting-transformer/src/earthformer/cuboid_transformer/cuboid_transformer_patterns.py official repository unverified Apache-2.0 (permissive) · a3015a205293148b · report
get_activation amazon-science/earth-forecasting-transformer/src/earthformer/cuboid_transformer/utils.py official repository unverified Apache-2.0 (permissive) · 8c21cdd91cd386e3 · report
get_norm_layer amazon-science/earth-forecasting-transformer/src/earthformer/cuboid_transformer/utils.py official repository unverified Apache-2.0 (permissive) · 50a5a499347fcf81 · report
round_to amazon-science/earth-forecasting-transformer/src/earthformer/cuboid_transformer/utils.py official repository unverified Apache-2.0 (permissive) · 50449b18203e5788 · report
self_axial amazon-science/earth-forecasting-transformer/src/earthformer/cuboid_transformer/cuboid_transformer_patterns.py official repository unverified Apache-2.0 (permissive) · 6bc7869a75f3e2db · report
self_video_swin amazon-science/earth-forecasting-transformer/src/earthformer/cuboid_transformer/cuboid_transformer_patterns.py official repository unverified Apache-2.0 (permissive) · 22d035b51d33b141 · report
sst_to_nino amazon-science/earth-forecasting-transformer/src/earthformer/metrics/enso.py official repository unverified Apache-2.0 (permissive) · dae75891e6023d74 · report

Tasks

Earth ObservationEarth Surface ForecastingWeather Forecasting

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Earth Surface Forecasting EarthNet2021 IID Track Earthformer EarthNetScore 0.3425 #1 of 7 Archive leaderboard report
Earth Surface Forecasting EarthNet2021 OOD Track Earthformer EarthNetScore 0.3252 #1 of 7 Archive leaderboard report
Weather Forecasting SEVIR Earthformer MSE 3.6957 #2 of 8 Archive leaderboard report
Weather Forecasting SEVIR Earthformer mCSI 0.4419 #2 of 8 Archive leaderboard report
Weather Forecasting SEVIR ConvLSTM MSE 3.7532 #3 of 8 Archive leaderboard report
Weather Forecasting SEVIR ConvLSTM mCSI 0.4185 #3 of 8 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections