Weather-JEPA
Learning the atmosphere before predicting it
Weather-JEPA is an open research program investigating whether reconstruction-free joint-embedding predictive learning can produce atmospheric representations that transfer across tasks, remain stable through time, characterize uncertainty, and preserve hazardous-weather structure under accessible compute constraints.
The long-term purpose is to contribute knowledge that may improve the anticipation and characterization of dangerous weather and ultimately support systems that protect human life.
Research-only notice: Weather-JEPA is not an operational forecast or warning system. Its outputs must not be used for emergency, aviation, marine, navigation, evacuation, or other life-safety decisions.
View the repository · Read the North-Star Plan · Documentation decision
The central question
Modern machine-learning weather systems can produce skillful forecasts. Weather-JEPA asks a narrower question:
Under matched architecture, data, parameters, and compute, does predicting latent atmospheric representations produce more transferable and dynamically useful knowledge than predicting raw future fields or reconstructing masked values?
The project compares three objectives:
| Approach | What the model predicts |
|---|---|
| Supervised forecasting | Future physical weather fields |
| Masked autoencoding | Missing physical values |
| Weather-JEPA | Hidden or future target embeddings |
This comparison is designed to isolate the learning objective. The project will not change the architecture, data, optimizer, resolution, and evaluation simultaneously and then congratulate the objective for the combined result.
Why representation learning matters
A forecast model may be accurate on average while remaining fragile under missing inputs, weak on transfer tasks, unstable during long rollout, poorly calibrated, or insensitive to a small but dangerous event.
Weather-JEPA therefore treats forecast error as one part of evaluation rather than the entire definition of success.
A useful atmospheric representation should support:
- forecast prediction;
- atmospheric-regime classification;
- missing-variable recovery;
- anomaly detection;
- few-shot adaptation;
- robustness to corruption and gaps;
- hazard-event detection and characterization;
- calibrated alternative futures.
The project will also test the possibility that JEPA does not improve these capabilities. Negative results are part of the research record.
Scientific objectives
Representation quality
Determine whether JEPA representations improve frozen linear probes, shallow probes, few-shot learning, and transfer across seasons, regions, variables, or tasks.
Forecast skill
Measure field-level performance across variables, pressure levels, lead times, seasons, and regions.
Dynamical stability
Evaluate decoded and latent autoregression for error growth, variance behavior, spectral drift, front loss, unphysical extrema, and phase error.
Robustness
Stress the model with missing variables, masked areas, noisy inputs, temporal gaps, metadata errors, and distribution shift.
Hazard relevance
Evaluate selected events such as tropical cyclones, atmospheric rivers, blocking regimes, strong-wind systems, and extreme precipitation where labels and data support defensible analysis.
Compute efficiency
Report performance per parameter, training hour, peak memory, processed sample, and inference time.
Probabilistic utility
After deterministic stability is established, test whether the latent predictor can generate calibrated and spatially coherent alternative futures.
Mathematical model
The pressure-level atmosphere at time $t$ is represented as a tensor with dimensions for variables, vertical levels, latitude, and longitude:
\[\mathbf{X}_t \in \mathbb{R}^{C \times L \times H \times W}\]Surface and static fields are represented separately:
\[\mathbf{S}_t \in \mathbb{R}^{C_s \times H \times W}, \qquad \mathbf{B} \in \mathbb{R}^{C_b \times H \times W}\]A context window contains multiple recent atmospheric states. A trainable context encoder maps the visible history to latent tokens. An exponential-moving-average target encoder maps hidden or future atmospheric states to target tokens. A horizon-conditioned predictor estimates those target representations.
The core objective minimizes distance between predicted and target embeddings while stopping gradients through the target encoder:
\[\mathcal{L}_{\mathrm{JEPA}} = \operatorname{mean}_{k} \left\| \widehat{\mathbf{z}}_k - \operatorname{stop\_gradient} \left( \mathbf{z}^{\mathrm{target}}_k \right) \right\|_p\]Collapse is not assumed away. The project measures latent variance, covariance, effective rank, singular values, token similarity, and downstream probe performance. Variance or covariance regularizers may be introduced only when those diagnostics justify them.
Global losses and metrics use area-aware latitude weighting. Data normalization uses training-split statistics only.
Reference architecture
atmospheric state
|
v
validation + normalization + temporal windows
|
v
variable / level / static / calendar / horizon embeddings
|
v
spatial patch embedding
|
v
factorized vertical-variable mixer
|
v
multiscale context encoder --------------------------.
| |
v v
horizon-conditioned JEPA predictor EMA target encoder
| |
'--------------- latent loss -----------------'
|
+--> physical decoder
|
+--> transfer probes and hazard heads
The initial architecture uses:
- spatial patch embedding;
- factorized vertical and variable mixing;
- local or windowed attention at fine scales;
- hierarchical downsampling for synoptic and planetary context;
- a narrower horizon-conditioned predictor;
- a lightweight decoder for physical evaluation;
- task-specific probes rather than rebuilding the encoder for every task.
Model tiers progress from micro verification models to workstation-scale experiments. Larger is not a phase gate.
Data strategy
Primary sources
- ERA5 for long-duration global reanalysis;
- WeatherBench 2-compatible data and evaluation;
- later independent observations and event records where licensing, coverage, and alignment permit.
ERA5 is treated as a reanalysis produced by observations, physical modeling, and data assimilation—not as direct atmospheric truth.
Initial variables
Pressure-level variables:
- geopotential;
- temperature;
- zonal wind;
- meridional wind;
- specific humidity.
Reference pressure levels:
1000, 925, 850, 700, 500, 300, 250, 200, 100 hPa
Surface and near-surface candidates include mean sea-level pressure, 2 m temperature, 10 m winds, total-column water vapor, surface pressure, and carefully defined accumulated precipitation.
Scale progression
synthetic tensors
-> tiny geographic subset
-> regional coarse resolution
-> regional moderate resolution
-> global coarse resolution
-> higher resolution only after profiling
Provisional chronology
| Split | Years |
|---|---|
| Training | 1979–2017 |
| Validation | 2018–2019 |
| Test | 2020–2022 |
| Untouched challenge | 2023 onward, subject to data maturity |
There is no random frame-level split. Context windows cannot cross split boundaries. Complete event lifecycles remain within one split. Validation and test periods never determine normalization statistics.
Development roadmap
Foundation
- repository, environment, CI, testing, security, and documentation;
- research questions, hypotheses, metrics, claim rules, and stopping criteria;
- trustworthy data subset and data card.
Mathematical verification
- advection fields;
- rotating vortices;
- chaotic low-dimensional systems;
- coupled waves;
- explicit tests of masks, horizons, EMA updates, gradients, and collapse.
Baselines
- persistence;
- climatology;
- linear tendency;
- supervised neural forecast;
- masked autoencoder.
Weather-JEPA
- target geometry;
- EMA target encoder;
- latent predictor;
- collapse diagnostics;
- transfer probes;
- controlled comparison.
Dynamics and hazards
- decoded and latent rollout;
- robustness;
- retrospective hazard evaluation;
- independent observations where feasible.
Probability, scaling, and release
- calibrated probabilistic latent prediction;
- measured performance optimization;
- external reproduction;
- model and data cards;
- archived release and publication.
Read the full development gates
Evaluation
The project reports more than one convenient global average.
Forecast fields
- latitude-weighted RMSE;
- MAE;
- anomaly correlation;
- bias;
- variable, level, region, season, and lead-time breakdowns.
Structure and dynamics
- spectra and variance by scale;
- gradient and front sharpness;
- temporal tendencies;
- rollout drift;
- physical-range checks.
Representations
- frozen probes;
- few-shot transfer;
- robustness;
- anomaly retrieval;
- missing-variable recovery;
- latent rank and covariance.
Hazards
- event detection;
- track and intensity;
- thresholds and exceedance;
- timing and localization;
- event-specific false alarms and misses.
Probability
- CRPS;
- Brier score;
- reliability;
- rank histograms;
- spread-skill behavior;
- multivariate scores where justified.
Efficiency
- parameters;
- wall-clock time;
- memory;
- throughput;
- inference latency;
- performance per resource unit.
Research and engineering standards
Scientific integrity
- primary metrics registered before confirmatory runs;
- equivalent compute budgets;
- multiple seeds;
- no seed selection after results;
- final challenge set protected;
- failed runs retained;
- all primary outcomes reported;
- exploratory and confirmatory claims separated.
AI engineering
- model cards;
- intended and prohibited uses;
- robustness and shift testing;
- uncertainty documentation;
- responsible public claims;
- NIST AI RMF-inspired governance.
Data engineering
- immutable source layer;
- validated and curated derived layers;
- checksums and manifests;
- semantic dataset versions;
- machine-readable quality reports;
- data contracts;
- automatic leakage checks.
Software engineering
- configuration-driven runs;
- type-checked public APIs;
- unit, integration, regression, and scientific tests;
- CI documentation builds;
- dependency and secret scanning;
- protected releases;
- secure checkpoint loading;
- measured performance changes.
Current phase
Weather-JEPA is presently in the research-specification and repository-foundation phase.
Current governing artifacts:
- comprehensive literature review;
- North-Star Project Management Plan;
- repository README;
- GitHub Pages homepage and documentation structure.
The next executable gates are:
- initialize the repository;
- add license, security, contribution, citation, and changelog files;
- define the Python environment and package;
- configure formatting, linting, typing, tests, and CI;
- verify a PyTorch MPS smoke test;
- freeze the first research protocol;
- build a small, traceable ERA5 subset.
No model result will be presented before the data and software foundations can reproduce it.
Research Artifacts
Open science
Planned public artifacts include:
- source code;
- configurations;
- data acquisition and transformation scripts;
- data and model cards;
- experiment cards;
- training logs;
- evaluation tables;
- figures;
- selected checkpoints;
- negative results;
- architecture and research decisions;
- release notes;
- technical articles and educational visualizations.
Large third-party datasets will not be committed to Git. Their manifests, retrieval instructions, transformations, and licensing requirements will be documented.
Safety and limits
Weather-JEPA is intended for atmospheric machine-learning research and education.
It is not intended for:
- official warnings;
- emergency action;
- transportation or navigation decisions;
- autonomous evacuation;
- operational forecasting without independent validation and accountable institutional review.
The project may investigate methods that could eventually support safer forecasting. It will not claim to have protected lives merely because that is the mission.
Participate
Researchers, meteorologists, data engineers, software engineers, reviewers, and educators are welcome to contribute after the repository standards are published.
A contribution should identify:
- the problem it solves;
- the scientific or engineering requirement it changes;
- evidence and tests;
- data and compute implications;
- reproducibility impact;
- documentation updates;
- any change to public claims.
The project’s governing plan remains the final reference when a README summary and an implementation decision disagree.
License and citation
The code is intended for release under the Apache License 2.0. Data and third-party artifacts retain their original licenses.
A versioned CITATION.cff and archived DOI will accompany the first research release.
North star
Weather-JEPA will not be judged by the elegance of its latent projections, the size of its model, or the enthusiasm of its public posts.
It will be judged by whether it produces reproducible evidence about atmospheric representation learning, explains its failures honestly, and contributes knowledge that can be used responsibly in the long chain from weather observation to human protection.