VAE-Var: Variational-Autoencoder-Enhanced Variational Assimilation

Yi Xiao, Qilong Jia, Wei Xue, Lei BaiarXiv 2024

Abstract

Data assimilation refers to a set of algorithms designed to compute the optimal estimate of a system's state by refining the prior prediction (known as background states) using observed data. Variational assimilation methods rely on the maximum likelihood approach to formulate a variational cost, with the optimal state estimate derived by minimizing this cost. Although traditional variational methods have achieved great success and have been widely used in many numerical weather prediction centers, they generally assume Gaussian errors in the background states, which limits the accuracy of these algorithms due to the inherent inaccuracies of this assumption. In this paper, we introduce VAE-Var, a novel variational algorithm that leverages a variational autoencoder (VAE) to model a non-Gaussian estimate of the background error distribution. We theoretically derive the variational cost under the VAE estimation and present the general formulation of VAE-Var; we implement VAE-Var on low-dimensional chaotic systems and demonstrate through experimental results that VAE-Var consistently outperforms traditional variational assimilation methods in terms of accuracy across various observational settings.

Introduction

In fields such as numerical weather prediction, Data Assimilation (DA) is critical for blending a model’s prior prediction (the "background state") with fresh sensor data ("observations") to determine the most likely state of a system. For decades, Variational Assimilation (3DVar and 4DVar) has been the industry standard. However, these methods typically rely on the assumption that background state errors follow a Gaussian distribution.

In reality, physical systems are highly non-linear and chaotic. Propagating a non-linear model forward in time causes even simple initial Gaussian errors to evolve into complex, multi-modal, non-Gaussian distributions. Forcing these complex errors into Gaussian mathematical frameworks limits the accuracy of resulting forecasts. VAE-Var addresses this by using Variational Autoencoders to learn and model these non-Gaussian error distributions.

Methodology: The VAE-Var Framework

The VAE-Var approach replaces the fixed Gaussian covariance matrix with a generative model. The process involves two main stages:

  1. Learning the Error Distribution: A VAE is trained on historical error samples, often generated using the National Meteorological Center (NMC) method. The VAE learns a mapping from a simple, standard normal latent space to the complex, non-Gaussian physical error space.
  2. Deriving the New Cost Function: A key theoretical contribution of this work is the derivation of a new variational cost function. When assimilating in the VAE's latent space, a "scaling determinant" term—specifically, the log-determinant of the decoder's Jacobian—must be included. This term accounts for the non-linear stretching or compression of space by the decoder.
Conceptual comparison between linear latent space (3DVar) and VAE latent space (VAE-Var), highlighting the non-Gaussian background and the scaling determinant term.

The final optimization uses the L-BFGS algorithm to minimize this cost function, identifying the optimal "analysis state" that balances the VAE-learned prior with the new observations.

Experimental Setup

The performance of VAE-Var was evaluated using classic chaotic systems:

  • Lorenz 63: A 3-variable system capturing atmospheric convection.
  • Lorenz 96: A 20-variable system simulating atmospheric variables along a latitude circle.
  • Observation Operators: The model was tested against both linear and non-linear observation operators (e.g., absolute value or saturated functions) to evaluate robustness against realistic sensor behaviors.

Results and Discussion

Experimental results demonstrate that VAE-Var consistently outperforms traditional 3DVar and 4DVar methods.

Performance Gains

In 4DVar settings, VAE-Var showed RMSE improvements ranging from 7% to 40%. The method proved particularly robust when observation noise was high, as its superior "mental model" of realistic error shapes allowed it to better distinguish signal from noise.

Performance comparison of VAE-Var against traditional methods across different observation scenarios and noise levels.

The Necessity of the Scaling Determinant

Ablation studies (shown in Figure 2) highlight that the scaling determinant term is essential. Methods that naively substitute the VAE without this term or ignore the Jacobian regularization often fail to outperform traditional 3DVar. The theoretical inclusion of the determinant is what makes non-linear latent assimilation sound.

Handling Ambiguity and Non-linearity

VAE-Var showed substantial improvements when using "saturated" observation operators, which mimic sensors that lose sensitivity at high values. However, challenges remain in scenarios with extreme data sparsity (e.g., observing only one variable in Lorenz 63), where non-Gaussian distributions can split into ambiguous regions.

Conclusion and Future Work

While VAE-Var offers significant accuracy improvements, scaling to high-dimensional systems remains a challenge. Calculating the Jacobian determinant for millions of variables is currently computationally expensive. Future research will focus on approximating these determinants and exploring more efficient neural architectures to enable the application of VAE-Var to global planetary models.

Summary updated

BibTeX
@misc{xiao2024vae,
  author = {Yi Xiao and Qilong Jia and Wei Xue and Lei Bai},
  title = {{VAE-Var: Variational-Autoencoder-Enhanced Variational Assimilation}},
  year = {2024},
  eprint = {2405.13711},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.13711},
}
Figure