Techniqueadvanced
Control variable transform
Writes the increment as x - x^b = U v with B = U U^T, so the background term of the variational cost becomes v^T v / 2, which removes B^-1 and preconditions the minimization.
A control variable transform is a change of variables in a variational analysis. The analysis increment is written as , where is a factor of the background error covariance, , and the minimization runs over the new variable . The background term of the cost then becomes . This has two effects. The method never needs , and in practice not even , only products with and . And the Hessian of the cost becomes the identity plus a term of rank at most , the number of observations, so its eigenvalues are at least 1 and conjugate gradients converge in far fewer steps. Every operational 3D-Var and 4D-Var system works in such variables, and is where the model of is coded.
In plain words
The background errors at nearby points and in related quantities move together, so the numbers that describe the state are strongly linked. A minimizer that works with these linked numbers makes slow progress, because a step in one number is undone by the links to the others. The transform replaces them by new numbers that are independent and all of the same size. Each new number stands for one independent pattern of error. In these numbers the background term is a plain sum of squares, the minimizer converges quickly, and at the end the transform turns the result back into a correction of the state.
When it applies
- The analysis minimizes a cost with a background term weighted by , as in 3D-Var, 4D-Var and incremental 4D-Var.
- is too large to form or to invert, but it can be written as a product of operators that are cheap to apply, together with their transposes.
- The minimizer is iterative, such as conjugate gradients, so its speed depends on the condition number of the Hessian.
- may be square or rectangular, and it does not have to be invertible: may even be singular, as an ensemble covariance is.
The template
For a linear (or linearized) observation operator and the innovation , the cost in the control variable is
Its minimizer solves a linear system with the Hessian :
CVT-ANALYSIS(x^b, U, H, R, y^o)- 1
d <- y^o - H(x^b) - 2
b <- U^T H^T R^-1 d - 3
solve (I + U^T H^T R^-1 H U) v = b by conjugate gradients, with products only - 4
return x^a <- x^b + U v
The holes are the factor and its transpose (lines L2 to L4) and the observation operator with its adjoint. In an operational system is a product of simple steps, applied from right to left (Bannister 2008, Part II; Derber and Bouttier 1999): a horizontal transform, often spectral, in which the horizontal correlations are diagonal; a vertical transform onto the modes of a vertical covariance; a scaling by the standard deviations; and a balance operator that builds the full wind and mass increments from uncorrelated variables, such as a balanced part of the stream function and the unbalanced residuals.
Why the analysis is unchanged (a theorem). For any with , put . The minimizer of is , by the push-through identity. So
which is the analysis of optimal interpolation and of 3D-Var in the original variables. If is square and invertible, the two costs are equal point by point, , since .
Why it preconditions (a theorem). is positive semidefinite with rank at most , and its nonzero eigenvalues are those of . So the eigenvalues of are 1, at least times, and . Hence:
- the condition number of is , whatever the condition number of ;
- has at most distinct eigenvalues, so conjugate gradients reach the exact minimizer in at most steps in exact arithmetic.
In the original variables the Hessian is , and its condition number grows with that of , which is large for long correlation lengths.
Worked example. Take , with eigenvalues 1.9 and 0.1, one observation of the first value with , and .
- In the original variables the Hessian is , with eigenvalues 1 and .
- The Cholesky factor is , so and the Hessian in is , with the condition number .
- The minimizer is , and . This is , as the theorem says.
Measurement. On a line of points take with , observe every fifth point with (), and stop conjugate gradients at a relative residual of .
| (grid steps) | cond | cond, original | CG steps, original | cond, in | CG steps, in |
|---|---|---|---|---|---|
| 5 | 98.6 | 24.4 | 39 | 9.5 | 14 |
| 10 | 374.7 | 38.7 | 52 | 16.3 | 15 |
With every tenth point observed (, ) the condition number falls from 92.1 to 9.2, and the steps fall from 76 to 10, within the bound . Both forms gave the same analysis to the tolerance of the solver. The matrices were dense, and the eigenvalues were computed by the Jacobi method.
Classic examples
- 3D-Var. The first operational 3D-Var minimized over spectral coefficients in which the horizontal covariance is diagonal (Parrish and Derber 1992).
- Incremental 4D-Var and 4D-Var. The inner loop minimizes over , and the tangent linear and adjoint models are applied to and to of the adjoint result.
- Multivariate balance. The balance operator in lets an observation of the wind correct the pressure and the opposite, without any explicit cross covariance (Derber and Bouttier 1999).
- Hybrid ensemble-variational methods and 4D-EnVar. is extended with the ensemble perturbations, and the control vector gets one set of weights per member. Here is rectangular and the ensemble part of is singular, which the transform handles without change.
Variations
- Symmetric square root. is one choice, the Cholesky factor is another. Any with gives the same analysis, and the choice is made for cost of application, not for accuracy.
- Rectangular factors. may be with (several sources of covariance, as in hybrid methods) or (a reduced rank ). The increments then lie in the range of .
- Preconditioning with . A related method keeps the state variables and uses itself as the preconditioner of conjugate gradients. It needs products with but not a factor of it.
- Second level preconditioning. If the observations are dense and accurate, is large and the transformed problem is still badly conditioned. Eigenvectors of the Hessian from an earlier minimization, computed by the Lanczos algorithm, are then used as a further preconditioner.
Pitfalls
- not the exact transpose of . The gradient uses , so an error in it gives a wrong but plausible gradient. Check it with the dot product test , as for an adjoint model.
- Outer loops. With a nonlinear , each outer loop linearizes about a new guess, but the background term must stay relative to . Keep as the total increment from , and do not restart it from zero in each outer loop.
- Balance relations where they do not hold. Geostrophic balance, the usual link between wind and mass, is weak near the equator, so a balance operator built on it must be relaxed there (a rule of thumb).
- Expecting the transform to fix a bad . The transform makes the minimization faster and does not change the analysis. If the model of is wrong, the analysis is wrong in the same way.
Exercises
- Prove the push-through identity by multiplying both sides by on the left and by on the right.
- For one observation, show that the Hessian in has the eigenvalue once and the eigenvalue 1 for all other directions, and that conjugate gradients stop after 2 steps at most.
- In the worked example, take instead of the Cholesky factor, and check that gives the same increment .
References
- R. N. Bannister, A review of forecast error covariance statistics in atmospheric variational data assimilation. II, Modelling the forecast error covariance statistics, Quarterly Journal of the Royal Meteorological Society 134(637) (2008) 1971-1996, the control variable transform and its balance, vertical and horizontal parts
- D. F. Parrish and J. C. Derber, The National Meteorological Center's spectral statistical-interpolation analysis system, Monthly Weather Review 120(8) (1992) 1747-1763, the analysis variables and the background error covariance in spectral space
- J. Derber and F. Bouttier, A reformulation of the background error covariance in the ECMWF global data assimilation system, Tellus A 51(2) (1999) 195-221, the change of variables through balance operators in the ECMWF system
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W3 standard |
|
Tag APMFJW Edit this page History Report an error Markdown