LoRA-EnVar: Parameter-Efficient Hybrid Ensemble Variational Assimilation for Weather Forecasting

Yi Xiao, Hang Fan, Kun Chen, Ye Cao, Ben Fei, Wei Xue, Lei BaiNeurIPS 2025

Accurate weather forecasting relies heavily on Data Assimilation (DA)—the intricate process of blending past forecasts with real-time observations to create an optimal starting point for the next prediction. A critical component of DA is estimating the background error (forecast uncertainty) to determine how much the system should trust its own prediction versus new sensor data.

The Challenge of Modeling Weather Uncertainty

Standard operational DA systems typically assume these errors follow a simple Gaussian distribution and rely on rigid, hand-crafted covariance structures. However, atmospheric dynamics are highly complex and non-Gaussian. While recent AI methods use deep generative models to capture these complex errors, they are usually static. They learn a long-term "climate" baseline but fail to adapt to real-time, transient weather patterns like sudden cyclones.

Theoretically, one could retrain the AI model frequently to capture real-time weather. However, full fine-tuning is computationally massive and often causes the model to overfit to current conditions, forgetting the long-term climate baseline—a phenomenon known as catastrophic forgetting.

Methodology: LoRA-EnVar

To address these limitations, researchers have introduced LoRA-EnVar, a hybrid deep learning framework that combines a static, long-term climate model with lightweight, real-time updates.

Architecture of LoRA-EnVar

The approach is divided into two main phases:

  1. Offline Pretraining: The system first trains a Variational Autoencoder (VAE) based on a Swin Transformer V2 architecture using decades of historical data. This acts as the "climatological" baseline, capturing stable, large-scale weather uncertainty.
  2. Online Adaptation with LoRA: To capture real-time, "flow-dependent" weather dynamics, Low-Rank Adaptation (LoRA) modules are inserted into the VAE's decoder. LoRA freezes the main network and only trains tiny, inserted matrices. Every 6 hours, the system generates an ensemble of short-term forecasts to assess current weather behavior, using the errors from this ensemble to fine-tune only the LoRA modules.

Finally, the adapted VAE is used in a variational cost function to calculate the optimal analysis state for the next forecast.

Experimental Setup

The framework was trained offline using ERA5 reanalysis data (1979–2015) to generate historical forecast error samples. Experiments were conducted using FengWu, a state-of-the-art machine-learning-based global weather forecasting model. The system was evaluated on both synthetic observations sampled from ERA5 and real-world NOAA GDAS (Global Data Assimilation System) prepbufr datasets, which contain measurements from weather stations, ships, and satellites.

Key Results: Efficiency and Superior Accuracy

LoRA-EnVar demonstrates that parameter-efficient fine-tuning is highly effective for physical, dynamical systems. It allows the model to adapt to transient, localized weather features without losing its foundational physics knowledge.

Global Error Differences
  • Massive Efficiency: LoRA-EnVar reduced the number of trainable parameters by >99.96% (from ~431 million to just ~165,000 using a LoRA rank of 2) compared to full model fine-tuning.
  • Superior Accuracy: In 30-day cyclic assimilation tests, LoRA-EnVar consistently achieved lower Root Mean Square Error (RMSE) and bias than traditional baselines (like 3DVar and Hybrid 3DEnVar) and the static VAE model.
  • Long-Term Stability: Unlike full fine-tuning—which degraded over time due to bias accumulation and catastrophic forgetting—LoRA-EnVar remained stable and accurate across the entire month-long simulation.
  • Real-World Robustness: The model maintained its performance edge even when tested on noisy, sparse, real-world GDAS observations, proving its viability for operational meteorology.

Limitations and Future Directions

While LoRA-EnVar represents the first framework to successfully combine static climate priors with real-time ensemble features inside a non-Gaussian generative model, it has limitations. The hyperparameters for fine-tuning (such as learning rates and LoRA rank) were chosen heuristically rather than through rigorous theoretical derivation. Additionally, because it relies on variational assimilation, the system currently produces a "point estimate" rather than a full probability distribution. Future work will focus on studying the theoretical properties of the adaptation dynamics and extending the framework into fully probabilistic assimilation frameworks to better propagate uncertainty over time.

Summary updated

BibTeX
@inproceedings{xiao2025lora,
  author = {Yi Xiao and Hang Fan and Kun Chen and Ye Cao and Ben Fei and Wei Xue and LEI BAI},
  title = {{LoRA-EnVar: Parameter-Efficient Hybrid Ensemble Variational Assimilation for Weather Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=zhMl4Smau7},
}
Figure