<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Ensemble Riemannian data assimilation: towards large-scale dynamical systems</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>01/01/2022</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10384610</idno>
					<idno type="doi">10.5194/npg-29-77-2022</idno>
					<title level='j'>Nonlinear Processes in Geophysics</title>
<idno>1607-7946</idno>
<biblScope unit="volume">29</biblScope>
<biblScope unit="issue">1</biblScope>					

					<author>Sagar K. Tamang</author><author>Ardeshir Ebtehaj</author><author>Peter Jan van Leeuwen</author><author>Gilad Lerman</author><author>Efi Foufoula-Georgiou</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Abstract. This paper presents the results of the ensemble Riemannian data assimilation for relatively high-dimensional nonlinear dynamical systems, focusing on the chaotic Lorenz-96 model and a two-layer quasi-geostrophic (QG) model of atmospheric circulation. The analysis state in this approach is inferred from a joint distribution that optimally couples the background probability distribution and the likelihood function, enabling formal treatment of systematic biases without any Gaussian assumptions. Despite the risk of the curse of dimensionality in the computation of the coupling distribution, comparisons with the classic implementation of the particle filter and the stochastic ensemble Kalman filter demonstrate that, with the same ensemble size, the presented methodology could improve the predictability of dynamical systems. In particular, under systematic errors, the root mean squared error of the analysis state can be reduced by 20% (30%) in the Lorenz-96 (QG) model.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>The science of data assimilation (DA) aims to optimally estimate the probability distribution of a state variable of interest in an Earth system model (ESM) given the information content of observations and previous time forecasts to improve their predictive abilities <ref type="bibr">(Kalnay, 2003;</ref><ref type="bibr">Carrassi et al., 2018)</ref>. Current DA methodologies, either variational <ref type="bibr">(Lorenc, 1986;</ref><ref type="bibr">Zupanski, 1993;</ref><ref type="bibr">Courtier et al., 1994;</ref><ref type="bibr">Rabier et al., 2000;</ref><ref type="bibr">Poterjoy and Zhang, 2014)</ref> or filtering <ref type="bibr">(Kalman, 1960;</ref><ref type="bibr">Bishop et al., 2001;</ref><ref type="bibr">Anderson, 2001;</ref><ref type="bibr">Tippett et al., 2003;</ref><ref type="bibr">Janji&#263; et al., 2011;</ref><ref type="bibr">Carrassi and Vannitsem, 2011;</ref><ref type="bibr">Anderson and Lei, 2013;</ref><ref type="bibr">Lei et al., 2018)</ref>, largely rely on penalization of second-order statistics of errors over the Euclidean space without explicitly accounting for systematic model biases. For example, in the three-dimensional variational (3D-Var) DA <ref type="bibr">(Lorenc, 1986;</ref><ref type="bibr">Courtier et al., 1998;</ref><ref type="bibr">Lorenc et al., 2000;</ref><ref type="bibr">Li et al., 2013)</ref>, a least-squares cost function comprising weighted Euclidean distances of the state from the previous model forecasts (background state) and the observations is formulated. Solution of this cost function leads to an analysis state which is a weighted average of the forecasts and observations across multiple dimensions of the problem with the weights dictated by prescribed background and observation error covariance matrices. The variants of the Kalman filtering DA methods <ref type="bibr">(Evensen, 1994;</ref><ref type="bibr">Reichle et al., 2002;</ref><ref type="bibr">Evensen, 2003;</ref><ref type="bibr">Nerger et al., 2012b;</ref><ref type="bibr">Houtekamer and Zhang, 2016</ref>) also follow the same principle, but in these methods, the background covariance contains information from past observations and model evolution.</p><p>Apart from the Euclidean distance, other measures and distance metrics, including the quadratic mutual information <ref type="bibr">(Kapur, 1994)</ref>, <ref type="bibr">Kullback-Leibler (KL)</ref> divergence <ref type="bibr">(Kullback and Leibler, 1951)</ref>, Hellinger distance <ref type="bibr">(Hellinger, 1909)</ref>, and Wasserstein distance <ref type="bibr">(Villani, 2003)</ref> have also been utilized in DA frameworks. Among others, <ref type="bibr">Tagade and Ravela (2014)</ref> introduced a nonlinear filter, where the analysis is obtained</p><p>Published by Copernicus Publications on behalf of the European Geosciences Union &amp; the American Geophysical Union.</p><p>through maximization of the quadratic mutual information. <ref type="bibr">Maclean et al. (2017)</ref> utilized the Hellinger distance to measure the difference between the predicted and observed spatial patterns in oceanic flows. <ref type="bibr">Chianese et al. (2018)</ref> introduced a variational DA method in which minimization of the KL divergence led to an approximation of the bias terms and model parameters. Similarly, <ref type="bibr">Li et al. (2019)</ref> employed the KL divergence in an optimization framework to incorporate inequality constraints into the ensemble Kalman filter (EnKF, <ref type="bibr">Evensen, 1994)</ref>. Recently, Pulido and van Leeuwen (2019) developed a mapping particle filter in which particles are pushed towards the posterior density by minimizing the KL divergence between the posterior and a series of intermediate probability densities.</p><p>In filtering class of DA methodologies, coupling techniques have been proposed as an alternative to the classic Bayesian inference <ref type="bibr">(El Moselhy and Marzouk, 2012;</ref><ref type="bibr">Spantini et al., 2019)</ref>. El <ref type="bibr">Moselhy and Marzouk (2012)</ref> presented a new approach to find an optimal transport map that pushes forward the background to the posterior distribution. The approach was extended for generalization of the EnKF by deriving nonlinear coupling between the forecast and posterior distributions <ref type="bibr">(Spantini et al., 2019)</ref>. In recent years, the Wasserstein or Earth mover's distance, originating from the theory of optimal mass transport (OMT, <ref type="bibr">Monge, 1781;</ref><ref type="bibr">Kantorovich, 1942;</ref><ref type="bibr">Villani, 2003;</ref><ref type="bibr">Kolouri et al., 2017;</ref><ref type="bibr">Chen et al., 2017;</ref><ref type="bibr">Y. Chen et al., 2018;</ref><ref type="bibr">B. Chen et al., 2019)</ref>, has also been gaining attention in the DA community. <ref type="bibr">Reich (2013)</ref> introduced a new resampling approach in particle filters, using the OMT, to maximize the correlation between the prior and posterior ensemble members. <ref type="bibr">Ning et al. (2014)</ref> further utilized the Wasserstein distance to treat position errors arising from uncertain model parameters. Following on this work, <ref type="bibr">Feyeux et al. (2018)</ref> proposed to replace the weighted Euclidean distance with the Wasserstein distance in variational DA frameworks to treat position error. <ref type="bibr">Tamang et al. (2020)</ref> proposed to use the Wasserstein distance to regularize a variational DA framework for treating systematic errors arising from the model forecast in chaotic systems.</p><p>However, DA frameworks utilizing the Wasserstein distance are computationally expensive as they require a joint distribution to be obtained that couples two marginal distributions. Finding this joint distribution often relies on interiorpoint optimization methods <ref type="bibr">(Altman and Gondzio, 1999</ref>) or Orlin's algorithm <ref type="bibr">(Orlin, 1993)</ref> that have super-cubic run time -making the Wasserstein DA computationally challenging even for relatively low-dimensional problems. More recently, to reduce the computational cost, <ref type="bibr">Tamang et al. (2021)</ref> used entropic regularization of the OMT formulation <ref type="bibr">(Cuturi, 2013)</ref> through a new framework, called ensemble Riemannian data assimilation (EnRDA), to cope with systematic errors and tested it on a three-dimensional Lorenz-63 model <ref type="bibr">(Lorenz, 1963)</ref>.</p><p>Unlike Euclidean DA with a known connection with the family of Gaussian distributions through Bayes' theorem, the EnRDA does not rely on any parametric assumptions about the input probability distributions. Therefore, it does not guarantee an analysis state with a minimum mean squared error. However, it enables us to optimally (i) interpolate between the forecast distribution and the normalized likelihood function without any parametric assumptions about their shapes and (ii) formally penalize systematic translations between them arising due to potential geophysical biases.</p><p>However, the computational complexity of finding an optimal joint coupling between two m-dimensional probability distributions supported on d points in each dimension using the entropic regularization is O(d 2m ). This might impose a significant limitation on the direct use of EnRDA for highdimensional geophysical problems, where the problem dimension easily exceeds millions. As will be discussed later, the joint distribution in EnRDA is sampled at N 2 support points, with N number of ensembles, reducing the computational complexity to O(N 2 ) at the expense of losing accuracy in optimal estimation of the joint distribution. Therefore, beyond implementation in a low-dimensional dynamical system, such as the three-dimensional Lorenz-63, the key questions that we aim to answer are as follows. Does the effectiveness of the EnRDA implementation still remain valid in high-dimensional DA problems where the ensemble size is smaller than the problem dimension? How does EnRDA perform, under systematic errors, in comparison to classic ensemble DA techniques with a comparable ensemble size? To answer the above questions, we implement EnRDA in the relatively high-dimensional chaotic Lorenz-96 system <ref type="bibr">(Lorenz, 1995)</ref> and a two-layer quasi-geostrophic (QG) model of atmospheric circulation <ref type="bibr">(Pedlosky, 1987)</ref>. The results demonstrate that EnRDA can potentially enhance predictability of high-dimensional dynamical systems, when the state variables are not necessarily Gaussian and are corrupted with systematic errors. Nevertheless, extensive future research is necessary to test the applicability of the EnRDA for largescale Earth system models in which the problem dimension is significantly larger than the examined dynamical systems.</p><p>The outline of the paper is as follows. Section 2 provides a brief background on optimal mass transport and Wasserstein distance. A brief review of the EnRDA methodology is presented in Sect. 3. Section 4 presents different test cases of implementation on the Lorenz-96 and QG models and documents the performance of the presented approach in comparison with the classic implementation of the standard particle filter with resampling and the stochastic ensemble Kalman filter (SEnKF). A summary and concluding remarks are presented in Sect. 5. The details of the entropic regularization for the EnRDA and covariance inflation and localization procedures for the SEnKF are provided in Appendix A.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Background on OMT and the Wasserstein barycenter</head><p>We provide a brief background on the theory of optimal mass transport (OMT) and Wasserstein barycenters. The OMT theory, first put forward by <ref type="bibr">Monge (1781)</ref>, aims to find the minimum cost of transporting distributed masses of materials from known source points to target points. The theory was later expanded as a new tool to compare probability distributions <ref type="bibr">(Brenier, 1987;</ref><ref type="bibr">Villani, 2003)</ref> and since then has found its applications in the field of data assimilation <ref type="bibr">(Ning et al., 2014;</ref><ref type="bibr">Feyeux et al., 2018;</ref><ref type="bibr">Li et al., 2018;</ref><ref type="bibr">Tamang et al., 2020)</ref>, subsurface geophysical inverse problems (J. <ref type="bibr">Chen et al., 2018;</ref><ref type="bibr">Yang et al., 2018;</ref><ref type="bibr">Yang and Engquist, 2018;</ref><ref type="bibr">Yong et al., 2019)</ref> and comparisons of climate model simulations <ref type="bibr">(Vissio et al., 2020)</ref>.</p><p>Let us consider a discrete source probability distribution p(x) = M i=1 p x i &#948; x i and a target distribution p(y) = N j =1 p y j &#948; y j with their respective probability masses {p x &#8712; R M + : i p x i = 1} and {p y &#8712; R N + : j p y j = 1} supported on mand n-element column vectors x i &#8712; R m and y j &#8712; R n , respectively. The notation p x &#8712; R M + represents probability masses p x containing non-negative real numbers supported on M points, whereas &#948; x is the Dirac function at x. In the Monge formulation, the goal is to seek an optimal surjective transportation map T a # p(x) = p(y) that "pushes forward" the source distribution p(x) towards the target distribution p(y), with a minimum transportation cost as follows:</p><p>where c(&#8226;, &#8226;) &#8712; R + represents the cost of transporting a unit mass from one support point in x to another one in y.</p><p>The problem formulation by Monge as expressed in Eq. (1), however, is non-convex, and the existence of an optimal transportation map is not guaranteed (Y. <ref type="bibr">Chen et al., 2019)</ref>, especially when the number of support points for the target distribution exceeds that of the source distribution (N &gt; M) <ref type="bibr">(Peyr&#233; and Cuturi, 2019)</ref>. This limitation was overcome by <ref type="bibr">Kantorovich (1942)</ref>, who introduced a probabilistic formulation of OMT -allowing splitting of probability mass from a single source point to multiple target points. The Kantorovich formalism recasts the OMT problem in a linear programming framework that finds an optimal joint distribution or coupling U a &#8712; R M&#215;N + that couples the marginal source and target distributions with the following optimality criterion:</p><p>where tr(&#8226;) is the trace of a matrix, (&#8226;) T is the transposition operator and 1 M represents an M-element column vector of ones. In the above formulation, the known</p><p>2 denotes the so-called transportation cost matrix which is defined based on the 2 norm</p><p>&#8226; 2 or the Euclidean distance between the support points of the source and target distributions. Here, the (i, j )th element u a ij of optimal joint distribution U a represents the respective amount of mass transported from support point x i to y j . Then, the 2-Wasserstein distance or metric between the marginal probability distributions is defined as the square root of the optimal transportation cost d W (p x , p y ) = tr(C T U a ) 1 2 <ref type="bibr">(Dobrushin, 1970;</ref><ref type="bibr">Villani, 2008)</ref>. It should be noted that due to the linear equality and non-negativity constraints in Eq. ( <ref type="formula">2</ref>), the family of joint distributions that satisfy these constraints forms a bounded convex polytope <ref type="bibr">(Cuturi and Peyr&#233;, 2018)</ref> and, consequently, the optimal joint distribution U a is located on one of the extreme points of such a polytope <ref type="bibr">(Peyr&#233; and Cuturi, 2019)</ref>.</p><p>Recall that, over the Euclidean space, the barycenter of a group of points is equivalent to their (weighted) mean value. The Wasserstein metric offers a Riemannian generalization of this problem and allows us to define the barycenter of a family of probability distributions <ref type="bibr">(Rabin et al., 2011;</ref><ref type="bibr">Bigot and Klein, 2018;</ref><ref type="bibr">Srivastava et al., 2018)</ref>. In particular, for a group of K probability mass functions p 1 , . . ., p K , a Wasserstein barycenter p &#951; is defined as their Fr&#233;chet mean <ref type="bibr">(Fr&#233;chet, 1948)</ref> as follows <ref type="bibr">(Agueh and Carlier, 2011)</ref>:</p><p>where (&#951; 1 , . . ., &#951; K ) T &#8712; R K + : k &#951; k = 1 represent the weights associated with the respective distributions. In special cases where the group of K distributions is Gaussian {N (&#181; 1 , 1 ), . . ., N (&#181; K , K )} with mean &#181; 1 , . . ., &#181; K and positive definite covariance 1 , . . ., K , the Wasserstein barycenter is also a Gaussian density N (&#181; &#951; , &#951; ) with &#181; &#951; = k &#951; k &#181; k and &#951; is the unique positive definite root of the matrix equation <ref type="bibr">(Agueh and Carlier, 2011)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">EnRDA</head><p>In this section, to be self content, we provide a brief summary of the EnRDA methodology, while more details can be found in <ref type="bibr">Tamang et al. (2021)</ref>. Let us assume that the evolution of the ith ensemble member x i &#8712; R m of ESM simulations can be presented as the following stochastic dynamical system:</p><p>where M : R m &#8594; R m is the deterministic nonlinear model operator, evolving the model state in time with a stochastic error term &#969; t i &#8712; R m . This dynamical system is observed at time t through an observation equation</p><p>where H : R m &#8594; R n maps the state to the observation space and &#965; t &#8712; R n represents an additive observation error. Note that the error terms are not necessarily drawn from Gaussian distributions but need to have finite second-order moments.</p><p>Hereafter, we drop the time superscript for brevity and represent the model (or background) probability distribution as p(x) = M i=1 p x i &#948; x i with its probability mass vector {p x &#8712; R M + : i p x i = 1}. Furthermore, the normalized likelihood function is represented as p(y|x) centered at the given observation y with its probability mass vector { p y|x &#8712; R N + : j p y|x j = 1}. The probability distribution of the analysis state, p(x a ), is then defined as the Wasserstein barycenter between forecast distribution and the normalized likelihood function:</p><p>where &#951; &#8712; [0, 1] is a displacement parameter that controls the relative weight of the background and observation. The displacement parameter &#951; is a hyperparameter that captures the relative weights of the histogram of the background state and likelihood function in characterization of the analysis state distribution as a Wasserstein barycenter. The optimal value of &#951; needs to be determined offline using reference data through cross-validation studies. It is important to note that the above formalism requires all dimensions to be observable, and thus those dimensions with no observations cannot be updated, which is a limitation of the current formalism compared to the Euclidean DA. This limitation is further discussed later on in Sect. 5. To solve the above DA problem, we need to characterize the background distribution and the normalized likelihood function. Similar to the approach used in the particle filter <ref type="bibr">(Gordon et al., 1993;</ref><ref type="bibr">van Leeuwen, 2010)</ref>, we suggest approximating them through ensemble realizations. To construct the histogram of the normalized likelihood function, we can draw N samples at each assimilation cycle by perturbing the available observation y with the observation error N (0, R).</p><p>To obtain the Wasserstein barycenter p(x a ) in Eq. ( <ref type="formula">5</ref>), we use the McCann formalism <ref type="bibr">(McCann, 1997;</ref><ref type="bibr">Peyr&#233; and Cuturi, 2019)</ref>:</p><p>where z ij = &#951; x i + (1 -&#951;) y j represent the support points of the analysis distribution and u a ij are the elements of the joint distribution</p><p>It is important to note that the analysis state histogram, at each assimilation cycle, is supported on at most M + N -1 points, which is the maximum number of non-zero entries in the optimal joint coupling <ref type="bibr">(Peyr&#233; and Cuturi, 2019)</ref>. To keep the number of ensemble members constant throughout, M ensemble members are resampled from p(x a ) using the multinomial resampling scheme <ref type="bibr">(Li et al., 2015)</ref>.</p><p>Computation of the joint distribution in Eq. ( <ref type="formula">2</ref>) is computationally expensive as explained previously and can be prohibitive for high-dimensional geophysical problems. As suggested by <ref type="bibr">Cuturi (2013)</ref>, to reduce the computational cost, we regularize the cost function in the optimal transportation plan formulation of EnRDA by a Gibbs-Boltzmann entropy function:</p><p>where &#947; &#8712; R + is a regularization parameter. The entropic regularization transforms the original OMT formulation to a strictly convex problem, which can then be efficiently solved using Sinkhorn's algorithm <ref type="bibr">(Sinkhorn, 1967)</ref>. The details of Sinkhorn's algorithm for solving regularized optimal transportation problems are presented in Appendix A1. The regularization parameter &#947; balances the solution between the optimal joint distribution and the one that maximizes the relative entropy. It is evident from Eq. ( <ref type="formula">7</ref>) that at the limit &#947; &#8594; 0, the solution of Eq. ( <ref type="formula">7</ref>) converges to the analysis joint distribution with a minimum morphing cost. However, as the value of &#947; increases, the convexity of the problem also increases, enabling the deployment of more efficient optimization algorithms than classic solvers of linear programming problems <ref type="bibr">(Dantzig et al., 1955;</ref><ref type="bibr">Orlin, 1993)</ref>. At the same time, the number of non-zero entries of the joint coupling increases from M + N -1 to MN points as &#947; &#8594; &#8734;, which results in a maximum entropy solution that converges to U a &#8594; p x p T y|x . For a more comprehensive explanation of EnRDA, one can refer to <ref type="bibr">Tamang et al. (2021)</ref>. It should be noted that En-RDA formulation allows the number of ensemble members to be different from the number of perturbed observations, i.e., M = N. The values of M and N need to be chosen to adjust the trade-off between accuracy and computational cost.</p><p>As an example, we examine here the solution of Eq. ( <ref type="formula">5</ref>) between a banana-shaped distribution denoted by</p><p>) and a bivariate Gaussian distribution as a function of the displacement parameter &#951; &#8712; [0, 1] -resembling the background distribution p(x) and the normalized likelihood function p(y|x), respectively, with regularization parameter &#947; = 1000. As seen from Fig. <ref type="figure">1</ref>, for lower values of &#951;, the analysis state distribution is closer to the observation, and its shape resembles the Gaussian distribution. However, as the value of &#951; increases, the analysis state distribution moves closer to the background distribution and starts morphing into a banana-shaped distribution. Therefore, the analysis state distribution is defined as the one that is sufficiently close to the background distribution and the normalized likelihood function not only based on their shape, but also their central location -depending on the displacement parameter. Thus, unlike the Euclidean barycenter, this approach does not guarantee that the mean or mode of the analysis state probability distribution is a minimum mean-squared error estimate of the initial condition.</p><p>It is important to note that in the original OMT formulation, the number of support points required for the optimal joint coupling U scales with the problem dimension (d m ), making it potentially restrictive for the high-dimensional problems, where d represents the number of support points in each dimension and m is the number of dimensions. The presented EnRDA setting bypasses this problem by sampling the joint distribution using only N ensemble members. However, such approximation might lead to errors in optimal estimation of the joint coupling that are translated into the analysis state. In the next section, we present results from systems of well-known dynamics to investigate whether En-RDA can lead to a proper approximation of the analysis state under systematic errors in relatively high-dimensional nonlinear problems when compared to classic ensemble DA approaches with comparable ensemble size.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Numerical experiments and results</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Lorenz-96</head><p>The Lorenz model <ref type="bibr">(Lorenz-96, Lorenz, 1995)</ref>, which is widely adopted as a test bed for numerous DA experiments <ref type="bibr">(Trevisan and Palatella, 2011;</ref><ref type="bibr">Tang et al., 2014;</ref><ref type="bibr">Shen and Tang, 2015;</ref><ref type="bibr">Lguensat et al., 2017;</ref><ref type="bibr">Tian et al., 2018)</ref>, offers a simplified representation of the extra-tropical dynamics in the Earth's atmosphere. The model coordinates x = (x 1 , . . ., x K ) T &#8712; R K at K dimensions represent the state of an arbitrary atmospheric quantity measured along the Earth's latitudes at K equally spaced longitudinal slices. The model is designed to mimic the continuous-time variation in atmospheric quantities due to interactions between three major components, namely, advection, internal dissipation, and external forcing. The model dynamics is represented as follows:</p><p>where F &#8712; R + is a constant external forcing independent of the model state. The Lorenz-96 model has cyclic boundaries with x -1 = x K-1 , x 0 = x K , and x K+1 = x 1 . It is known that for small values of F &lt; 8/9, the system approaches a steadystate condition with each coordinate value converging to the external forcing x k &#8594; F , &#8704;k, whereas for F &gt; 8/9, chaos develops <ref type="bibr">(Lorenz and Emanuel, 1998)</ref>. For a standard model setup with F = 8, the system is known to exhibit highly chaotic behavior with the largest Lyapunov exponent of 1.67 <ref type="bibr">(Brajard et al., 2020)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Experimental setup, results, and discussion</head><p>We focus on the 40-dimensional Lorenz-96 system (i.e., K = 40) and compare EnRDA results with the classic implementation of the PF <ref type="bibr">(Gordon et al., 1993;</ref><ref type="bibr">Van Leeuwen, 2009;</ref><ref type="bibr">van Leeuwen, 2010;</ref><ref type="bibr">Poterjoy and Anderson, 2016)</ref> and the SEnKF <ref type="bibr">(Evensen, 1994;</ref><ref type="bibr">Houtekamer and Mitchell, 1998;</ref><ref type="bibr">Burgers et al., 1998;</ref><ref type="bibr">Janji&#263; et al., 2011;</ref><ref type="bibr">Anderson, 2016;</ref><ref type="bibr">Van Leeuwen, 2020)</ref>. Similarly to the experimental setting suggested in <ref type="bibr">Lorenz and Emanuel (1998)</ref> and <ref type="bibr">Nerger et al. (2012a)</ref>, we initialize the model by choosing x 20 = 8.008 and x k = 8 for all other model coordinates. In order to avoid any initial transient effect, the model in Eq. ( <ref type="formula">8</ref>) is integrated for 1000 time steps using the fourth-order Runge-Kutta approximation <ref type="bibr">(Runge, 1895;</ref><ref type="bibr">Kutta, 1901)</ref> with a non-dimensional time step of t = 0.01, and the endpoint of the run is utilized as the initial condition for DA experimentation. Similar to the suggested experimental setting in van Leeuwen (2010), we obtain the ground truth by integrating Eq. ( <ref type="formula">8</ref>) with a time step of t over a time period of T = 0-20 in the absence of any model error. The observations are assumed to be available at each assimilation time interval of 10 t and deviated from the ground truth by a Gaussian error &#965; t &#8764; N (0, &#963; 2 obs &#961; ), with &#963; 2 obs = 1 and the correlation matrix &#961; &#8712; R 40&#215;40 + with 1 on the diagonals, 0.5 on the first sub-and super-diagonals, and 0 everywhere else. The observation time step of 10 t is equivalent to 12 h in global ESMs <ref type="bibr">(Lorenz, 1995)</ref>.</p><p>To characterize the distribution of the background state for each DA methodology, 50 (5000) ensemble members (particles) for the SEnKF and EnRDA (PF) are generated using model errors &#969; t &#8764; N (0, &#963; 2 t I 40 ) with &#963; 2 t = 0.25 for t &gt; 0 and &#963; 2 0 = 4, where throughout I m represents an m &#215; m identity matrix. To alleviate the known degeneracy problem in the PF, a higher number of particles was used. Furthermore, to introduce additional systematic background error, we utilize an erroneous external forcing of F m = 6 instead of the "true" forcing value F = 8. To have a robust inference, the average values of the error metrics are reported for 50 experiments using different random realizations. As will be elaborated later on, we set the EnRDA displacement parameter &#951; = 0.44, determined through a cross-validation study based on a minimum mean-squared error criterion. This tuning is similar to tuning inflation and localization parameters in a typical EnKF or tuning length scales in 3D-or 4D-Var. Note that we already introduced some systematic error because the truth has zero model error, while the prior does have model errors. In a fully unbiased setup the truth and the prior are drawn from the same distribution.</p><p>The results of EnRDA are shown in Fig. <ref type="figure">2</ref>. In Fig. <ref type="figure">2a</ref>, the temporal evolution of the ground truth and EnRDA analysis state is shown over all dimensions of Lorenz-96, while a As previously noted, the displacement parameter &#951; plays an important role in EnRDA as it controls the shape and position of the analysis state distribution relative to the background distribution and the normalized likelihood function. Currently, there exists no known closed-form solution for optimal approximation of this parameter. Therefore, in this paper, we focus on determining its optimal value through heuristic cross-validation by an offline bias-variance tradeoff analysis. Specifically, we quantify the RMSE of the En-RDA analysis state for different values of &#951; for 50 independent simulations.</p><p>The bias and RMSE, together with their respective 5th-95th percentile bounds, as functions of the displacement parameter &#951; are shown in Fig. <ref type="figure">4a</ref>. As explained earlier, when &#951; increases, the analysis distribution moves towards the background distribution. Since the background state is systemat-ically biased due to the erroneous external forcing, the analysis bias increases monotonically with &#951;, while the RMSE shows a minimum point. Therefore, there exists a form of bias-variance trade-off in the analysis error which leads to an approximation of an optimal value of &#951; based on a minimum RMSE criterion. It is important to note that the background uncertainty and thus the optimal value of &#951; vary in response to the ensemble size as shown in Fig. <ref type="figure">4b</ref>. The reason is that a larger number of ensemble members reduces the uncertainty in the characterization of the background, but the bias is not affected. To compensate, a larger optimal value for &#951; is needed. This optimal value approaches an asymptotic value as the ensemble sample size increases and will achieve the highest value at the limit M &#8594; &#8734;, when the sample moments converge to the biased forecast moments.</p><p>One may argue that such a tuning favors EnRDA since it explicitly accounts for the effects of bias, either in background or observations, while there is no bias-correction mechanism in the implementation of the SEnKF and the PF. To make a fairer comparison, we investigate an alternative approach to approximate the displacement parameter solely based on the known error covariance matrices at each assimilation cycle. Recall that in classic DA, the analysis state is essentially the Euclidean barycenter, where the relative weights of the background state and observations are optimally characterized based on the error covariances under zero bias assumptions. However, over the Wasserstein space, the displacement parameter determines the weight between the entire distribution of the background and the normalized likelihood function. Theoretically, knowing the Wasserstein distances from ground truth to both likelihood function and forecast probability distribution enables us to obtain an optimal value for &#951;. Even though such distances are not known in reality, the total Wasserstein distance between the normalized likelihood function and the forecast distribution is known at  each assimilation cycle. Therefore, an estimate of the distance between the ground truth and the normalized likelihood function or the forecast distribution leads to an approximation of &#951;.</p><p>It is known that the square of the Wasserstein distance between two equal-mean Gaussian distributions N (&#181;, 1 ) and <ref type="bibr">Chen et al., 2019)</ref>. Therefore, under the assumption that only the background state is biased, the square of the Wasserstein distance between the true state x tr , as a Dirac delta function, and the normalized likelihood function reduces to tr(R). At the same time, the square of the Wasserstein distance between the normalized likelihood function and forecast distribution is tr(C T U a ). Therefore, we can approximate the interpolation parameter as &#951; a = tr(R) tr(C T U a ) + tr(R)</p><p>-1 without any explicit a priori knowledge of bias.</p><p>Comparisons of the RMSE values for the studied DA methodologies as a function of ensemble size are shown in Fig. <ref type="figure">5</ref>. For EnRDA, the displacement parameter is obtained from the bias-aware cross-validation (&#951; = 0.44, EnRDA-I) and from the known error covariances as explained above (EnRDA-II). The SEnKF and EnRDA result in smaller error metrics with a much smaller ensemble size than the PF. As seen, EnRDA can perform well even for smaller ensemble sizes as low as 20. Its results quickly stabilize with more than 40 ensemble members and exhibit a marginal improvement over the SEnKF (12 %-24 %) in the presence of bias. The RMSE of the SEnKF also stabilizes quickly but remains above the standard deviation of the observation error, indicating that in the presence of bias, the lowest possible variance, known as the Cramer-Rao lower bound <ref type="bibr">(Cram&#233;r, 1999;</ref><ref type="bibr">Rao et al., 1973)</ref>, cannot be met.</p><p>It is also important to note that the higher RMSE of the PF compared to the SEnKF and EnRDA is due to the problem of filter degeneracy, which is further exacerbated by the presence of systematic errors in model forecasts <ref type="bibr">(Poterjoy and Anderson, 2016)</ref>. To alleviate this problem, one may investigate the use of methodologies suggested in recent years, including the auxiliary particle filter where the weights of the particles at each assimilation cycle are defined based on the likelihood function from the next cycle using a pre-model run <ref type="bibr">(Pitt and Shephard, 1999)</ref>, the backtracking particle filter in which the analysis state is backtracked to identify the time step when the filter became degenerate <ref type="bibr">(Spiller et al., 2008)</ref> as well as sampling from a transition density to pull back particles towards observations <ref type="bibr">(van Leeuwen, 2010)</ref>.</p><p>To further test the efficiency of EnRDA, another configuration of the Lorenz-96 is implemented using a Laplacedistributed observation error at each assimilation interval of 10 t with variance &#963; 2 obs = 2 <ref type="bibr">(Lei and Bickel, 2011;</ref><ref type="bibr">Spantini et al., 2019)</ref>. Similar to the setting of earlier implementations  using Gaussian observation error, 50 (5000) ensemble members (particles) for the SEnKF and EnRDA (PF) are generated. On average, the EnRDA reduces the RMSE by 26 % (47 %) compared to the SEnKF (PF) using 50 random realizations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Quasi-geostrophic model</head><p>The multilayered QG <ref type="bibr">(Pedlosky, 1987)</ref> model is known as one of the simplest circulation models capable of providing a reasonable representation of the mesoscale variability in geophysical flows. In its simplified form, the QG model describes the conservation of potential vorticity {&#950; k } K k=1 in K vertically mixed vertical layers:</p><p>where u k = -&#8706; k &#8706;&#966; and v k = &#8706; k &#8706;&#955; represent the zonal and meridional components of the velocity field, obtained from the geostrophic approximation, { k } K k=1 is the streamfunction in K layers, and &#955; and &#966; are the zonal and meridional coordinates, respectively.</p><p>For a two-layer QG model (K = 2), the potential vorticity at any time step is the sum of the relative vorticity, the planetary vorticity and the stretching term, given by</p><p>where</p><p>is the Coriolis parameter linearly varying with the meridional coordinate &#966; (&#946;-plane approximation), f 0 is the Coriolis parameter at mid-basin where &#966; = &#966; 0 , g = g(&#961; 2 -&#961; 1 ) &#961; 2 is the reduced value of the gravitational acceleration g, and &#961; k and h k are the density and thickness of the kth layer, respectively. The QG model has been the subject of numerous experiments to test the performance of DA techniques <ref type="bibr">(Evensen, 1994;</ref><ref type="bibr">Evensen and Van Leeuwen, 1996;</ref><ref type="bibr">Fisher and G&#252;rol, 2017;</ref><ref type="bibr">Penny et al., 2019;</ref><ref type="bibr">Cotter et al., 2020)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Experimental setup, results and discussion</head><p>Due to the high dimensionality of the QG model and the well-known problem of filter degeneracy in the PF, we chose to omit its application to the QG model. Similarly to the study conducted in <ref type="bibr">Evensen (1992</ref><ref type="bibr">Evensen ( , 1994))</ref>, the streamfunction is chosen as the state variable for the DA experiments. The streamfunction field, at each vertical layer, is discretized over a uniform grid of dimension m &#955; &#215; m &#966; with a spacing of &#955; = &#966; = 100 km, where m &#955; = 65 and m &#966; = 33. The model domain is assumed to have periodic boundaries along the zonal direction and free-slip conditions, that is, v k = 0, &#8704;k holds on the northern and southern boundaries. The standard model parameter values of f 0 = 7.28 &#215; 10 -5 s -1 , &#946; = 2 &#215; 10 -11 m -1 s -1 , and g = 9.81 m s -2 are used. The total depth of the atmospheric column is set to 10 km with depths and densities of the top and bottom layers as h 1 = h 2 = 5 km and &#961; 1 = 1 and &#961; 2 = 1.05 kg m -3 , respectively. We first initialize the streamfunction in the two layers as a function of the zonal and meridional coordinates by setting</p><p>From the initial value of the streamfunction field in each layer, potential vorticity is obtained using a nine-point second-order finite difference scheme to compute the Laplacian in Eq. ( <ref type="formula">10</ref>). The model in Eq. ( <ref type="formula">9</ref>) is then integrated with a time step of t = 0.5 h using the fourth-order Runge-Kutta approximation to advect and obtain potential vorticity at internal grid points for the next time step. The streamfunction at the next time step is then calculated from this potential vorticity by solving the set of Helmholtz equations (Eq. 10). To avoid any form of initial transient behavior and to create vortex structures in the streamfunction, the QG model is integrated first for 720 time steps, and then the endpoint of the run is used as the initial condition for subsequent DA experimentation.</p><p>The ground truth of the streamfunction is obtained by integrating the QG model with a time step of t over a time period of T = 0-15 d in the absence of any model error. Observations are assumed to be available at an assimilation time interval of 24 t or 12 h. To construct observations, representative, random and systematic errors are applied to the ground truth. The representative error is applied by lowering the resolution of the ground truth through box averaging over a window of size n &#955; &#215; n &#966; , where n &#955; = 5 and n &#966; = 3. Then a heteroscedastic Gaussian observation noise with bias 0.6&#215;10 6 m 2 s -1 and a standard deviation of 10 % of the mean magnitude of the ground truth is applied.</p><p>To characterize the distribution of the background state, 50 ensemble members for both SEnKF and EnRDA are generated using model errors &#969; t &#8764; N (0, &#945;&#963; 2 t I m &#955; &#215;m &#966; ) for each layer with &#963; 2 0 = 10 8 m 4 s -2 and &#963; 2 t = 5 &#215; 10 6 m 4 s -2 for t &gt; 0, where the factor &#945; &#8712; [0, 1] grows linearly from 0 at the northern and southern boundaries to 1 at mid-basin. To introduce systematic errors in the forecast, we utilize a multiplicative error of 0.015 % in the QG model by multiplying the potential vorticity obtained from Eq. ( <ref type="formula">10</ref>) at every t by a factor of 1.00015. At each assimilation cycle, N = 500 samples of the observations are obtained by perturbing the observations with the heteroscedastic Gaussian observation noise with standard deviation 10 % of the mean magnitude of the ground truth.</p><p>In the SEnKF, to alleviate the well-known problem of undersampling <ref type="bibr">(Anderson, 2012)</ref> and improve its performance, we utilize covariance inflation <ref type="bibr">(Anderson and Anderson, 1999)</ref> and localization <ref type="bibr">(Houtekamer and Mitchell, 2001;</ref><ref type="bibr">Hamill, 2001)</ref> as discussed in Appendix A2. For EnRDA, similar to the Lorenz-96 setup (Sect. 4.1), the displacement parameter is set to &#951; = 0.4 through a cross-validation study based on a minimum RMSE criterion as shown in Table <ref type="table">1</ref>. To increase the robustness of the inference about the results, the quality metrics are averaged using 10 simulations with different random realizations.</p><p>The true state, background state, and observations of the bottom layer streamfunction at the first assimilation cycle T = 12 h are shown in Fig. <ref type="figure">6</ref>. It can be seen that both the background state and the observations show possible systematic biases as the position and the values of their global extrema are significantly different from the ground truth.</p><p>The results of the DA experiments using the SEnKF and EnRDA at the first assimilation cycle for the bottom layer are also shown in Fig. <ref type="figure">7</ref>. It can be seen that, in the SEnKF, the streamfunction values are slightly overestimated, signaling the persistence of bias in the analysis state (Fig. <ref type="figure">7a</ref>). This is further evident as the analysis error field is coherent and structured (Fig. <ref type="figure">7b</ref>). On the other hand, it appears that EnRDA (Fig. <ref type="figure">7d</ref>) results in a more incoherent error field with a reduced bias (Fig. <ref type="figure">7e</ref>). The RMSE for the EnRDA (0.28 &#215; 10 6 m 2 s -1 ) is lower than the one by the SEnKF (0.46 &#215; 10 6 m 2 s -1 ). However, the difference between the two methods shrinks over T = 0-15 d, and the mean analysis RMSE over both layers by the EnRDA (SEnKF) reaches 0.21 &#215; 10 6 (0.25 &#215; 10 6 ) m 2 s -1 . Furthermore, in the SEnKF, due to the presence of systematic error, the zonal mean of the absolute error is consistently higher than that of the EnRDA (see Fig. <ref type="figure">7c</ref> and<ref type="figure">f</ref>). To test the effects of non-Gaussian errors on the performance of EnRDA, analogous to the experiments conducted for Lorenz-96, we examined a Laplace noise with the same variance used for the Gaussian errors. The results show that EnRDA performance does not change appreciably and that the improvement remains on the same order of magnitude as reported for the Gaussian observation errors.  We further examined the performance of the EnRDA and the SEnKF on the QG model with a &#177;50 % change in the assimilation interval of 12 h as shown in Fig. <ref type="figure">8</ref>. To make the comparison fair between different assimilation intervals which have a different number of assimilation cycles and to eliminate the impact of transient behavior, we only report the statistics for the last 15 assimilation steps. With the increase in assimilation interval, the systematic error grows in the forecast largely due to the multiplicative error being added to the forecast at every time step. Therefore, as is expected, with the increase in assimilation interval, the RMSE grows monotonically and the performance of the DA methodologies degrades. However, the EnRDA demonstrates consistent improvement over a bias-blind implementation of the SEnKF (20 %-33 %) across the range of assimilation intervals. On average, using a cluster with 24 cores and a clock rate of 2.5 GHz, it took around 3.5 h to complete one independent simulation on the QG model for EnRDA compared to 2.5 h for EnKF, each with 50 ensemble members.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Summary and concluding remarks</head><p>In this study, we demonstrated that data assimilation (DA) over the Wasserstein space through the EnRDA <ref type="bibr">(Tamang et al., 2021)</ref> can be properly scaled and result in improved predictability of non-Gaussian geophysical dynamics at relatively high dimensions, under systematic errors. In particular, we applied the EnRDA to the 40-dimensional chaotic Lorenz-96 system and a two-layer quasi-geostrophic representation of atmospheric circulation and compared its results with the stochastic ensemble Kalman filter and the particle filter with comparable ensemble size. Under the made  <ref type="bibr">(Reichle et al., 2004)</ref>, are required to fully characterize the pros and cons of DA over the Wasserstein space.</p><p>One of the major weaknesses of the presented methodology in its current form is that all dimensions of the problem are assumed to be observable. This is an important issue when it comes to the assimilation of sparse data. Future research is needed to address partial observability in DA over the Wasserstein space. A possible direction is through multimarginal optimal mass transport <ref type="bibr">(Pass, 2015)</ref>, which could enable us to couple different dimensions of the problem and propagate the information content of sparse observations to unobserved dimensions. Moreover, currently, the displace-ment parameter is constant across multiple dimensions of the problem. Future research is needed to understand how the displacement parameter can be estimated differently depending on the error structure across different dimensions of the state space. Another option is to perform the EnRDA only in that part of the state space that is directly observed and use the ensemble covariance to update the unobserved part of state space, similar to a SEnKF. We anticipate that expanding the application of the presented methodology for assimilating satellite data into land-atmosphere models could be another promising future direction of research given the fact that these models are often markedly biased <ref type="bibr">(Dee and Da Silva, 1998;</ref><ref type="bibr">Chepurin et al., 2005;</ref><ref type="bibr">De Lannoy et al., 2007;</ref><ref type="bibr">Lin et al., 2017)</ref>.</p><p>It should be noted that the experimental settings presented here only deal with the univariate state variable. The use of a scalar regularization parameter in the EnRDA penalizes the transportation cost matrix elements uniformly even when the physical variables of interest are different by orders of magnitude. A possible future solution to this problem can be obtained by rather utilizing Mahalanobis or a weighted Euclidean distance <ref type="bibr">(Olver et al., 2006)</ref> in lieu of the Euclidean distance to obtain a modified ground transportation cost matrix.</p><p>Although EnRDA demonstrated a reasonable performance on the presented dynamical systems without significant computational burden, the computational complexity might be a limiting factor for its large-scale implementation. In Earth system models, where the dimension easily exceeds hundred of millions, dimensionality reduction might be necessary. One might hypothesize that the optimal transportation plan remains unaltered for the change in the basis. Thus, future research can be devoted to examining the optimal transportation plan for the principal components <ref type="bibr">(Olver et al., 2006)</ref> of the geophysical state variables of interest to significantly lower its computational cost.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Appendix A A1 Sinkhorn's algorithm for optimal mass transport</head><p>To solve the regularized optimal mass transport problem in Eq. ( <ref type="formula">7</ref>), we utilize Sinkhorn's algorithm <ref type="bibr">(Sinkhorn, 1967)</ref>.</p><p>To that end, first, the Lagrangian form of Eq. ( <ref type="formula">7</ref> By setting the derivatives of the Lagrangian with respect to the Lagrange multipliers to zero, we recover the two conditions, which we can write as p x = diag(s)Vdiag(t)1 N and p y|x = diag(t)V T diag(s)1 M , leading to s = p x (V t) and t = p y|x (V T s) , (A3)</p><p>where the notation x y represents a Hadamard elementwise division of equal-length vectors. The form presented in Eq. ( <ref type="formula">A3</ref>) is known as the matrix scaling problem <ref type="bibr">(Borobia and Cant&#243;, 1998)</ref> and can be efficiently solved iteratively:</p><p>and t (i) = p y|x V T s (i) , (A4)</p><p>where i is the iteration count and the algorithm is initialized with a positive vector t (0) = 1 N . In our implementation, we set the iteration termination criterion as s (i) -s (i-1) 2 s (i-1) 2 &#8804; 10 -4 or i &gt; 300. After the convergence of the solution for s and t, the optimal joint distribution can be obtained as U a = diag(s)Vdiag(t).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A2 Covariance inflation and localization in the ensemble Kalman filter</head><p>The ensemble size in the SEnKF, if much smaller than the state dimension, such as in the presented case of the quasigeostrophic model, leads to underestimation of the forecast error covariance matrix and subsequently filter divergence problems. To alleviate this problem, a covariance inflation procedure can be implemented by multiplying the forecast error covariance matrix by an inflation factor &#964; &gt; 1 (Anderson and <ref type="bibr">Anderson, 1999)</ref> where its optimal value depends on the ensemble size <ref type="bibr">(Hamill et al., 2001)</ref> and other characteristics of the problem at hand. The covariance localization procedure in the SEnKF further attempts to improve its performance by ignoring the spurious long-range dependence in the ensemble background covariance by applying a prespecified cutoff threshold to the correlation structure of the field. An SEnKF equipped with a tuned localization procedure can be efficiently used in highdimensional atmospheric and ocean models even with fewer than 100 ensemble members <ref type="bibr">(Anderson, 2012)</ref>. The covariance localization in an SEnKF is accomplished by modifying the Kalman gain matrix K &#8712; R m&#215;m through implementation of a Hadamard element-wise product of the forecast error covariance matrix B &#8712; R m&#215;m with a distance-based correlation matrix &#961; &#8712; R m&#215;m :</p><p>where X Y represent the Hadamard element-wise product between equal size matrices X and Y.</p><p>Following the work of <ref type="bibr">Gaspari and Cohn (1999)</ref>, we utilized the fifth-order piece-wise rational function that depends on a single length scale parameter d and a Euclidean distance matrix L &#8712; R m&#215;m : l ij = x i -x j 2 for obtaining the (i, j )th element of the localizing correlation matrix &#961;: where r = l ij d , and d is the length scale. In our implementation of the SEnKF in the QG model, the inflation factor and length scale were chosen between &#964; = 1.01-1.08 and d = 400-1800 (km), respectively, depending on the experimental setup through trial and error analysis to minimize the root mean squared error.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>https://doi.org/10.5194/npg-29-77-2022Nonlin. Processes Geophys., 29, 77-92, 2022</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_1"><p>Nonlin. Processes Geophys., 29, 77-92, 2022 https://doi.org/10.5194/npg-29-77-2022</p></note>
		</body>
		</text>
</TEI>
