Transforming Weather Data from Pixel to Latent Space

Sijie Zhao, Feng Liu, Xueliang Zhang, Hao Chen, Tao Han, Junchao Gong, Ran Tao, Pengfeng Xiao, Xinyu Gu, Lei Bai

International Conference on Machine Learning 2026 · Oral

Overview

Modern data-driven weather forecasting models have achieved remarkable success, yet they remain bottlenecked by the sheer scale of the data they consume. Training models directly on high-resolution grid data—such as the widely used ERA5 dataset—requires massive computational and storage overhead, often scaling into hundreds of terabytes or petabytes. Furthermore, standard pixel-level training objectives tend to favor mean-seeking behaviors, which systematically wash out sharp gradients, fine-scale structures, and critical extreme weather events. In this talk presented at ICML, Sijie Zhao and colleagues introduce a paradigm shift: moving the heavy lifting of weather modeling out of pixel space and into a compact, unified latent space.

Watch on SlidesLive

Visual summary for Transforming Weather Data from Pixel to Latent Space by Sijie Zhao, Feng Liu, Xueliang Zhang, Hao Chen, Tao Han, Junchao Gong, Ran Tao, Pengfeng Xiao, Xinyu Gu, Lei Bai
Visual summary for Transforming Weather Data from Pixel to Latent Space by Sijie Zhao, Feng Liu, Xueliang Zhang, Hao Chen, Tao Han, Junchao Gong, Ran Tao, Pengfeng Xiao, Xinyu Gu, Lei Bai

Key moments

  1. 0:00 Introduction and pixel space bottlenecks
  2. 2:00 Three bottlenecks of pixel space weather modeling
  3. 4:00 Weather Latent Autoencoder architecture overview
  4. 6:00 PVUM and latent space framework design
  5. 8:00 Compression results and forecasting evaluation
  6. 10:00 Conclusion and beginning of Q and A
  7. 12:00 Audience question on codebook usage

Transforming Weather Data from Pixel to Latent Space

Speakers: Sijie Zhao; Feng Liu; Xueliang Zhang; Hao Chen; Tao Han; Junchao Gong; Ran Tao; Pengfeng Xiao; Xinyu Gu; Lei Bai

Conference: ICML

YouTube: https://slideslive.com/39083715

Overview

Modern data-driven weather forecasting models have achieved remarkable success, yet they remain bottlenecked by the sheer scale of the data they consume. Training models directly on high-resolution grid data—such as the widely used ERA5 dataset—requires massive computational and storage overhead, often scaling into hundreds of terabytes or petabytes. Furthermore, standard pixel-level training objectives tend to favor mean-seeking behaviors, which systematically wash out sharp gradients, fine-scale structures, and critical extreme weather events. In this talk presented at ICML, Sijie Zhao and colleagues introduce a paradigm shift: moving the heavy lifting of weather modeling out of pixel space and into a compact, unified latent space.

The core innovation centers on the Weather Latent Autoencoder (WLA), a specialized neural architecture that acts as a weather tokenizer. By compressing redundant multi-variable, multi-level atmospheric fields into low-dimensional latent tokens, the framework drastically slashes data storage and computational costs. Crucially, this approach decouples uncertain spatial reconstruction from downstream dynamical forecasting. Downstream models operate entirely within the latent space, predicting future states efficiently while preserving sharp physical extremes, before a lightweight decoder maps the results back to pixel space for evaluation and visualization.

This work addresses long-standing challenges in meteorological machine learning, offering a blueprint for scalable, unified weather modeling. By transforming the massive ERA5 archive into the highly compressed ERA5-Latent dataset, the authors demonstrate that training efficiency can be radically improved without sacrificing forecasting fidelity. The implications extend across infrastructure design, dataset distribution, and the architectural development of next-generation numerical weather prediction systems.

Background

▶ Watch: Introduction and pixel space bottlenecks (0:00)

Numerical weather prediction has historically relied on physical fluid dynamics solved on high-resolution spatial grids. In recent years, data-driven deep learning models—such as Pangu-Weather, GraphCast, and FourCastNet—have emerged as powerful alternatives or supplements to traditional numerical solvers. These models ingest upper-air variables (such as geopotential height, temperature, and wind components at various pressure levels) alongside surface variables, processing them directly on structured grids.

However, this pixel-space paradigm exposes three critical bottlenecks. First, weather forecasting is fundamentally uncertain; a single atmospheric state can evolve into multiple plausible futures, particularly regarding small-scale structures and localized extremes. When neural networks are trained via mean squared error or similar pixel-level losses, they naturally predict the conditional mean. This regression-to-the-mean phenomenon produces over-smoothed outputs that fail to capture sharp meteorological gradients and extreme weather anomalies.

Second, the resource intensity of pixel-space modeling is prohibitive. A typical global reanalysis dataset like ERA5 spans decades at high temporal and spatial resolutions, requiring hundreds of terabytes or petabytes of storage. Loading, shuffling, and processing these massive volumes during training and validation creates severe I/O bottlenecks and escalates cloud or on-premise infrastructure costs.

Third, pixel-space models suffer from fragmentation. Different meteorological tasks require different subsets of variables and pressure levels—collectively known as a Pressure Variable Subset (PVS). Traditional architectures are rigidly hard-coded to a single fixed PVS. Changing the input variables or adding pressure levels usually demands retraining a model from scratch, severely limiting adaptability across diverse forecasting workflows.

Key Findings

▶ Watch: Weather Latent Autoencoder architecture overview (4:00)

The research introduces several major contributions designed to resolve the limitations of pixel-space weather modeling, headlined by the introduction of WLA and the ERA5-Latent dataset.

  • Massive Data Compression: WLA compresses the full ERA5 reanalysis dataset from 24,434 terabytes down to just 0.43 terabytes, achieving an extraordinary compression ratio of 5,663x while retaining critical meteorological structures.
  • Decoupled Extreme Preservation: By shifting forecasting tasks to the latent space, downstream models avoid pixel-level regression smoothing. Evaluations using the SEDI (Symmetric Extremes Dependency Index) demonstrate that latent-space models achieve superior extreme event detection across high quantile thresholds compared to their pixel-space counterparts.
  • Unified Pressure Variable Handling: Through a metadata-conditioned hypernetwork module, a single WLA model successfully maps diverse and shifting pressure variable subsets into a unified latent representation, eliminating the need for task-specific model architectures.
  • Competitive Forecasting Skill: Despite operating on compressed representations, latent-space forecasting models remain competitive with full-resolution pixel models on standard 7-day root mean squared error (RMSE) benchmarks.

Technical Deep Dive

▶ Watch: PVUM and latent space framework design (6:00)

The architecture of the Weather Latent Autoencoder (WLA) is engineered to ingest heterogeneous meteorological inputs and map them into a structured, compressed latent space. WLA comprises three primary components: the Pressure Variable Unified Module (PVUM), the Wayformer encoder-decoder backbone, and the Binary Quantization Module (BQM).

The primary challenge in unifying weather data is that input channels—representing variables like specific humidity, temperature, or zonal wind across varying vertical pressure levels—vary across tasks. PVUM solves this via a metadata-conditioned hypernetwork. First, metadata describing the specific variables and pressure levels are embedded into tokens. Transformer blocks then model the relational dynamics between these metadata tokens. Finally, a hypernetwork dynamically generates the weights and biases for an adaptive mapping network, projecting disparate PVS inputs into a unified feature space that respects the continuous physical relationships of the atmosphere.

Once unified, the features are processed by Wayformer, the core encoder-decoder backbone. The encoder compresses the high-dimensional spatial-temporal fields into a compact low-dimensional latent representation, stripping away pixel-space redundancy while retaining essential global patterns and regional weather structures.

To maximize storage and transmission efficiency, BQM converts the continuous latent features into discrete binary tokens. Ablation studies discussed by the authors indicate that discrete latent representations perform comparably to continuous ones at lower compression rates but yield superior efficiency and stability at high compression scales. Codebook sizing experiments revealed that expanding the codebook beyond optimal thresholds yields only marginal gains in reconstruction fidelity while severely degrading compression ratios.

During the model workflow, training and validation occur entirely within this latent space. Downstream task models—such as the Window-ViT-Latent forecasting network—predict future latent tokens directly. Pixel-space reconstruction via the decoder and PVUM is invoked strictly when necessary, such as during metric calculation or final visualization.

Experimental Setup & Results

▶ Watch: Conclusion and beginning of Q and A (10:00)

The empirical evaluation validates WLA across reconstruction fidelity, data compression efficiency, and downstream forecasting performance.

  • Datasets: The primary evaluation utilizes the global ERA5 reanalysis dataset, encompassing upper-air variables, surface variables, and precipitation fields across multiple vertical levels and temporal steps. This data is transformed via WLA into the newly minted ERA5-Latent benchmark dataset.
  • Baselines: Latent-space downstream models (e.g., Window-ViT-Latent) are benchmarked directly against their uncompressed pixel-space equivalents (Window-ViT) and leading operational forecasting baselines.
  • Metrics: Reconstruction quality is assessed via absolute error maps and structural preservation metrics. Downstream forecasting skill is measured using 7-day RMSE for overall accuracy and SEDI for extreme weather event detection.

Quantitative results confirm that WLA achieves a strong trade-off between compression and reconstruction across surface, upper-air, and precipitation channels. In downstream forecasting tasks, Window-ViT-Latent matches the 7-day RMSE of pixel-space models while outperforming them on high-quantile SEDI metrics. This proves that latent space modeling successfully overcomes the over-smoothing trap inherent to pixel-level loss functions, maintaining sharp gradients and localized extremes without sacrificing global trajectory skill.

Practical Implications

▶ Watch: Audience question on codebook usage (12:00)

For infrastructure teams and machine learning engineers deploying large-scale weather and climate models, this work offers profound practical advantages. Storing and streaming petabyte-scale datasets like ERA5 creates severe cloud storage bills and GPU starvation due to I/O bottlenecks. By shrinking the storage footprint to 0.43 terabytes, the ERA5-Latent dataset democratizes access, allowing researchers and smaller engineering teams to train and validate state-of-the-art forecasting models on modest hardware configurations.

For model builders, the decoupling of spatial autoencoding from temporal dynamics provides modularity. Improvements to the latent tokenizer (WLA) can immediately benefit all downstream forecasting models without requiring a complete redesign of the rollout architecture. Furthermore, the ability to handle arbitrary pressure variable subsets through metadata conditioning eliminates the operational friction of maintaining dozens of task-specific model variants.

However, practitioners must navigate certain tradeoffs. While latent space models preserve extreme events more effectively, minor information loss is inevitable during aggressive autoencoder compression. Deployers must tune codebook sizes and latent dimensions carefully to balance reconstruction fidelity against compression gains. Future extensions of this work aim to scale WLA to higher-resolution operational datasets, such as the High-Resolution Operational Forecast (HRES) and kilometer-scale regional ensembles.

Key Takeaways

  • Tokenizing the Atmosphere: WLA transforms redundant multi-variable, multi-level weather data into compact, unified latent representations, effectively acting as a domain-specific tokenizer.
  • Radical Compression: The ERA5-Latent dataset compresses 24,434 terabytes of raw ERA5 data down to 0.43 terabytes—a 5,663x reduction—drastically lowering storage and I/O costs.
  • Beating Over-Smoothing: Operating in latent space decouples the forecasting task from pixel-level reconstruction loss, preserving sharp gradients, local extremes, and small-scale weather structures (validated via SEDI metrics).
  • Unified Variable Handling: A metadata-conditioned hypernetwork (PVUM) allows a single model to ingest diverse and shifting pressure variable subsets seamlessly.
  • Maintained Forecasting Skill: Downstream latent models (e.g., Window-ViT-Latent) match traditional pixel-space models on standard 7-day RMSE benchmarks while improving extreme event capture.

About the Speaker(s)

  • Sijie Zhao: Presented work on transforming weather data from pixel to latent space, focusing on weather forecasting models and ERA5 data processing.

Co-authors: Feng Liu, Xueliang Zhang, Hao Chen, Tao Han, Junchao Gong, Ran Tao, Pengfeng Xiao, Xinyu Gu, Lei Bai.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026