Galerkin v. least-squares Petrov--Galerkin projection in nonlinear model reduction
Kevin Carlberg, Matthew Barone, Harbir Antil
Introduction
While modeling and simulation of parameterized systems has become an essential tool in many industries, the computational cost of executing high-fidelity simulations is infeasibly high for many time-critical applications. For example, real-time scenarios (e.g., model predictive control) require simulations to execute in seconds or minutes, while many-query scenarios (e.g., statistical inversion) can require thousands of simulations corresponding to different parameter instances of the system.
Reduced-order models (ROMs) have been developed to mitigate this computational bottleneck. First, they execute an offline stage during which computationally expensive training tasks (e.g., evaluating the high-fidelity model at several points in the parameter space) compute a representative low-dimensional ‘trial’ basis for the system state. Then, during the inexpensive online stage, these methods quickly compute approximate solutions for arbitrary points in the parameter space via projection: they compute solutions in the span of the trial basis while enforcing the high-fidelity-model residual to be orthogonal to a low-dimensional ‘test’ basis. They also introduce other approximations in the presence of general nonlinearities or non-affine parameter dependence. See Ref. and references within for a survey of current methods.
To address these shortcomings, alternative projection techniques have been developed, particularly in fluid dynamics. These include stabilizing inner products ; introducing dissipation via closure models or numerical dissipation ; performing nonlinear Galerkin projection based on approximate inertial manifolds ; including a pressure-term representation ; modifying the POD basis by including many modes (such that dissipative modes are captured), changing the norm , enabling adaptivity , or including basis functions that resolve a range of scales or respect the attractor’s power balance ; and performing Petrov–Galerkin projection .
In spite of its promise, theoretical analysis has been limited to developing consistency conditions for snapshot collection and discrete-time error bounds for simple time integrators . In particular, major outstanding questions include: (1) What are time-continuous and time-discrete representations of the Galerkin and LSPG ROMs for broad classes of time integrators? (2) Are there conditions under which the two techniques are equivalent? (3) What discrete-time error bounds are available for the two techniques for broad classes time integrators? Related to the third issue is how parameters (e.g., time step or basis dimension) for the LSPG ROM should be chosen to optimize performance. This work aims to fill this gap by performing a number of detailed theoretical and computational studies that compare Galerkin and LSPG ROMs for the two most important classes of time integrators: linear multistep methods and Runge–Kutta schemes. We summarize the most important theoretical results (which map to the three questions above) as follows:
Galerkin projection and time discretization are commutative (Theorem 3.4).
LSPG ROMs can be derived for Runge–Kutta schemes (Section 4.1).
The LSPG ROM has a time-continuous (i.e., ODE) representation under certain conditions (Section 4.2, Figure 1). This ODE depends on the time step .
Galerkin and LSPG ROMs are equivalent for explicit time integrators (Corollaries 5.1 and 5.2).
Galerkin and LSPG ROMs are equivalent in the limit of for implicit time integrators (Theorem 5.3).
Galerkin ROMs are discrete optimal for symmetric-positive-definite residual Jacobians (Theorems 5.4–5.6).
We provide local and global a posteriori and a priori error bounds for both Galerkin and LSPG ROMs for linear multistep schemes (Section 6.1).
For backward differentiation formulas, we show that the LSPG ROM can yield a lower local a posteriori error bound than the Galerkin ROM (Corollary 6.4) because it solves a time-global optimization problem (over a time window) rather than a time-local optimization problem (Remark 6.9).
For the backward Euler time integrator, we show that an intermediate time step should yield the lowest error bound (Corollary 6.17 and Remark 6.18).
For the backward Euler time integrator, we show that a larger basis size leads to a smaller optimal time step for the LSPG ROM (Corollary 6.17).
We provide global a posteriori and a priori error bounds for both Galerkin and LSPG ROMs for Runge–Kutta schemes (Section 6.3).
Figure 1 summarizes time-continuous and time-discrete representations of the two techniques.
In addition to the above theoretical results, we present numerical results for a large-scale compressible fluid-dynamics problem with turbulence modeling characterized by over one million degrees of freedom. These results illustrate the practical significance of the above theoretical results. Critically, we show that employing an intermediate time step for the LSPG ROM can decrease both the error and the simulation time by an order of magnitude, which is a highly non-intuitive result that is of immense practical significance.
The remainder of the paper is organized as follows. Section 2 formulates the full-order model, including its representation at the time-continuous and time-discrete levels. Section 3 presents the Galerkin ROM at the continuous and discrete levels, and Section 4 does so for the LSPG ROM. In particular, we provide conditions under which the LSPG ROM has a time-continuous representation. Section 5 provides conditions under which the Galerkin and LSPG ROMs are equivalent; in particular, equivalence holds for explicit integrators (Section 5.1), in the limit of the time step going to zero for implicit integrators (Section 5.2), and for symmetric-positive-definite residual Jacobians (Section 5.3). Section 6 provides error analysis for Galerkin and LSPG ROMs for linear multistep schemes (Section 6.1), Runge–Kutta schemes (Section 6.3), and a detailed analysis in the case of backward Euler (Section 6.2). Section 7 provides detailed numerical examples that illustrate the practical importance of the analysis. Finally, Section 8 provides conclusions.
Full-order model
We begin by formulating both the time-continuous (ODE) and time-discrete (OE) representations of the full-order model (FOM).
In this work, we consider the full-order model (FOM) to be an initial value problem characterized by a system of nonlinear ODEs
2 Discrete representation
A time-discretization method is required to solve Eq. (2.1) numerically. We now characterize the full-order-model OE, which is the time-discrete representation of the model, for two classes of time integrators: linear multistep schemes and Runge–Kutta schemes.
A linear -step method applied to numerically solve Eq. (2.1) can be expressed as
Then, the state can be updated explicitly as
Hence, the unknown is equal to the state. These methods are implicit if .
2.2 Runge–Kutta schemes
For an -stage Runge–Kutta scheme, the OE is characterized by the following system of algebraic equations to be solved at each time step:
Here, the Runge–Kutta residual is defined as
Galerkin ROM
This section provides the time-continuous and time-discrete representations of the Galerkin ROM, as well as key results related to optimality and commutativity of projection and time discretization.
In order to obtain computational efficiency, it is necessary to reduce the computational complexity of repeatedly computing matrix–vector products of the form . This can be done using a variety of methods, e.g., collocation , gappy POD , the discrete empirical interpolation method (DEIM) , reduced-order quadrature , finite-element subassembly methods , or reduced-basis-sparsification techniques . However, in this work we limit ourselves to comparatively analyzing different projection techniques. For this reason, we do not perform additional analysis for such complexity-reduction mechanisms; this is the subject of follow-on work.
We now restate the well-known result that Galerkin projection leads to a notion of minimum-residual optimality at the continuous level. This is reflected in the top-right box of Figure 1, where the bolded outline indicates minimum-residual optimality.
where . We now assess whether Eq. (3.4) holds, i.e., whether as defined by Eq. (3.2) is the minimizer of .
The function can be expressed as . Due to the strict convexity of the function , the global minimizer is equal to the stationary point of , i.e., satisfies
where orthogonality of has been used. Comparing Eqs. (3.6) and (3.2) shows , which is the desired result.
Thus, Galerkin ROMs exhibit desirable properties (i.e., minimum-residual optimality) at the time-continuous level. We now derive a time-discrete representation for the Galerkin ROM, noting that these properties are lost at the time-discrete level.
2 Discrete representation
As before, a time-discretization method is needed to numerically solve Eq. (3.2). We now characterize the OE for the Galerkin ROM.
A linear -step method applied to numerically solve Eq. (3.2) can be expressed as
Here, the OE is characterized by the following system of algebraic equations to be solved at each time step:
Here, the discrete residual corresponds to
and the generalized state is explicitly updated as
2.2 Runge–Kutta schemes
Applying an -stage Runge–Kutta method to solve Eq. (3.2) leads to an OE characterized by the following system of algebraic equations to be solved at each time step:
Here, discrete the residual is defined as
and the generalized state is computed explicitly as
Note that the Galerkin-ROM solution satisfying Eqs. (3.7) or (3.9) does not in general associate with the solution to an optimization problem; therefore, the optimality property the method exhibits at the continuous level has been lost at the discrete level. We now show that Galerkin projection and time discretization are commutative; this implies that Galerkin ROMs can be analyzed, implemented, and interpreted equivalently at both the time-discrete and time-continuous levels. This corresponds to the rightmost part of Figure 1.
Performing a Galerkin projection on the governing ODE and subsequently applying time discretization yields the same model as first applying time discretization on the governing ODE and subsequently performing Galerkin projection.
Least-squares Petrov–Galerkin ROM
We note that other residual-minimizing approaches have been developed in the case of linear and nonlinear steady-state problems, and space–time solutions . In addition, a recently developed approach has suggested minimization of the residual arising at each time instance for hyperbolic problems.
We begin by developing the time-discrete representation for the LSPG ROM for both linear multistep schemes and Runge–Kutta schemes. The latter is a novel contribution, as previous work has derived discrete-optimal LSPG ROMs only for linear multistep schemes . Optimality of this approach corresponds to the bolded bottom-left box of Figure 1.
Note that necessary conditions for the solution to Eq. (4.2) corresponds to stationary of the objective function in Eq. (4.2), i.e., the solution satisfies
1.2 Runge–Kutta schemes
where denotes entry of the argument. This again leads to a least-squares Petrov–Galerkin interpretation for the discrete-optimal ROM.
We can then formulate the following sequence of optimization problems to compute discrete minimum-residual approximations:
Here, the associated Petrov–Galerkin projection is
Note that in the explicit case, the LSPG ROM generally requires solving a system of nonlinear equations at each Runge–Kutta stage. Because , the system of equations is linear if are constant matrices, and only an explicit solution update is required if and .
We now see the critical tradeoff between the Galerkin and LSPG ROMs: Galerkin ROMs exhibit continuous (minimum-residual) optimality, while LSPG ROMs exhibit discrete optimality. Without further analysis, it is unclear which of these attributes is preferable. Numerical experiments (Section 7) and supporting error analysis (Section 6) will highlight the benefits of discrete optimality over continuous optimality in practice.
2 Continuous representation
Because the LSPG ROM introduces approximations at the discrete level, it is unclear whether it can be interpreted at the continuous level. In fact, it has not previously been shown that a continuous representation of the LSPG ROM even exists. We now show that an ODE representation of the LSPG ROM does indeed exist for both linear multistep schemes and Runge–Kutta schemes under certain conditions; however, the ODE depends on the time step used to define the LSPG ROM. This associates with the top-left section of the relationship diagram in Figure 1.
The LSPG ROM for linear multistep integrators is equivalent to applying a Petrov–Galerkin projection to the ODE with test basis (in matrix form)
and subsequently applying time integration with a linear multistep scheme with time step if is a constant matrix and (at least) one of the following conditions holds:
, (e.g., a single-step method),
the velocity is linear in the state, or
Case 1 Applying a linear multistep time integrator with the stated assumption of , to numerically solve Eq. (4.16) results in the following discrete equations to be solved at each time instance:
Pre-multiplying by yields discrete equations with residual
Comparing Eqs. (4.18) and (2.4) reveals and so the solution satisfies
Under the stated assumptions, we have and so the LSPG test basis defined in Eq. (4.4) is equal to the test basis in Eq. (4.14) evaluated at time instance , i.e., . Therefore, the solution to the LSPG OE (4.3) satisfies
This shows that , i.e., the solutions to the LSPG OE and the OE obtained after applying Petrov–Galerkin projection with test basis defined by Eq. (4.14) to the full-order model ODE and subsequently applying time integration are equivalent under the stated assumptions, which is the desired result. Case 2 In this case, the test basis is independent of the state, i.e.,
Applying a linear multistep time integrator to solve Eq. (4.16) and subsequently pre-multiplying by the constant matrix yields the following discrete equations arising at each time step
Comparing Eqs. (4.23) and (2.4) reveals and so the solution satisfies
Under these assumptions, we have and so the LSPG test basis defined in Eq. (4.4) is equal to the test basis in Eq. (4.21) at time instance , i.e., . Therefore, the LSPG OE (4.3) can be expressed as
This shows that , i.e., the solutions to the LSPG OE and the OE obtained after applying Petrov–Galerkin projection with test basis defined by Eq. (4.14) to the full-order model ODE and subsequently applying time integration are equivalent under the stated assumptions. Case 3 The assumption results in a constant test basis
Applying a linear multistep time integrator to solve Eq. (4.16) and subsequently pre-multiplying by the constant matrix yields
which is to be solved at each time step with a residual defined as
As in Case 2, this leads to . Because , we also again have . This leads to the desired result, as the OEs for the LSPG ROM and the ROM obtained after applying Petrov–Galerkin projection with test basis to the full-order model ODE and subsequently applying time integration both satisfy under the stated assumptions.
We now provide conditions under which the LSPG ROM for Runge–Kutta schemes can be expressed as an ODE.
The LSPG ROM for Runge–Kutta integrators is equivalent to applying a Petrov–Galerkin projection to the ODE with test basis (in matrix form)
and subsequently applying time integration if , are constant matrices and the integrator is a singly diagonally implicit Runge–Kutta (SDIRK) scheme, i.e., , and , .Note that summation on repeated indicies is not implied.
Applying an SDIRK time integrator to numerically solve Eq. (4.30) results in the following sequence of discrete equations to be solved at each time step:
Pre-multiplying by yields the following discrete equations
such that the solutions satisfy
Now, under the stated assumptions, we have
such that the LSPG test basis defined in Eq. (4.13) is related to the test basis in Eq. (4.29) as follows:
Therefore, the solutions to the LSPG OE (4.12) satisfy
We now show that the LSPG ROM has a time-continuous representation for all explicit and single-state Runge–Kutta schemes, which include the widely used forward Euler, backward Euler, and implicit midpoint schemes.
The LSPG ROM for Runge–Kutta integrators is equivalent to applying a Petrov–Galerkin projection to the ODE with test basis (in matrix form)
and subsequently applying time integration if , are constant matrices and an explicit Runge–Kutta scheme is employed.
Explicit Runge–Kutta schemes are characterized by , and so they satisfy the conditions Theorem 4.3 with .
The LSPG ROM for Runge–Kutta integrators is equivalent to applying a Petrov–Galerkin projection to the ODE with test basis (in matrix form)
and subsequently applying time integration if , are constant matrices and a single-stage Runge–Kutta scheme is employed.
Single-stage Runge–Kutta schemes are characterized by and so they satisfy the conditions of Theorem 4.3 with .
Equivalence conditions
This section performs theoretical analysis that highlights cases in which Galerkin and LSPG ROMs are equivalent, in which case the Galerkin ROM exhibits both continuous and discrete optimality. This suggests that time discretization and minimum-residual projection are commutative in these scenarios. Section 5.1 shows that equivalence holds for explicit time integrators, Section 5.2 demonstrates equivalence in the limit of , and Section 5.3 shows equivalence in the case of symmetric-positive-definite residual Jacobians.
Galerkin projection is equivalent to LSPG projection with for explicit linear multistep schemes.
In the case of explicit linear multistep schemes, and so Galerkin projection corresponds to Case 3 of Theorem 4.2 with , as in this case.
Galerkin projection is equivalent to LSPG projection with for explicit Runge–Kutta schemes.
In the case of explicit Runge–Kutta schemes, and so Galerkin projection corresponds to Theorem 4.3 with and , as in this case.
2 Equivalence in the limit of Δt→0→Δ𝑡0\Delta t\rightarrow 0
Linear multistep schemes. Consider solving the LSPG OE (4.3) with . Then, the test basis defined in Eq. (4.4) is simply
From Eq. (2.4), we can write the residual Jacobian as
and so in the limit of , the LSPG ROM solution satisfies
Now, from Eq. (2.6) the Jacobian can be expressed as
and so in the limit of , the LSPG ROM solution satisfies
Because the Galerkin ROM solution also satisfies Eq. (5.2) (see Eq. (3.13) of Theorem 3.4), the two techniques are equivalent in this limit, which is the desired result.
3 Equivalence for symmetric-positive-definite residual Jacobians
In the case of linear multistep schemes, Galerkin projection is equivalent to LSPG projection with , where is the Cholesky factor Its derivative can be computed by solving the Lyapunov equation . of the residual-Jacobian inverse
if is symmetric positive definite and if
Under the stated assumptions, the LSPG test basis defined in Eq. (4.4) is equal to the trial basis, i.e., . By invoking Eq. (3.12), we can see that the OEs for the the LSPG ROM (4.3) and Galerkin ROM (3.7) both satisfy , which is the desired result.
In the case of diagonally implicit Runge–Kutta schemes, Galerkin projection is equivalent to LSPG projection with , where is the Cholesky factor of the residual-Jacobian inverse
if is symmetric positive definite and if
In the case of Runge–Kutta schemes, Galerkin projection exhibits discrete optimality if is symmetric positive definite and if
First, note that solution to the Galerkin OE (3.13) equivalently satisfies
under the assumed conditions. This objective function can be written equivalently as
where . Comparing Eqs. (5.11) and (4.6) reveals that the Galerkin ROM satisfies a slightly more general notion of discrete optimality than the LSPG schemes considered in this work.
This analysis demonstrates that Galerkin projection exhibits discrete optimality when the residual Jacobian is symmetric positive definite. This is aligned with recent work that has shown Galerkin projection to be effective for Lagrangian dynamical systems —which are characterized by symmetric-positive-definite residual Jacobians—due to the fact that Galerkin projection preserves properties such as symplectic time evolution and energy conservation. For these reasons, using Galerkin projection is sensible for problems exhibiting these characteristics.
Error analysis
Ultimately, we are interested in assessing the state-space error between the (computed) time-discrete ROM solution and the (unknown) time-continuous FOM solution. This error comprises two contributions: the state-space error between (1) the time-continuous FOM and time-discrete FOM solutions (i.e., time-discretization error), and (2) the time-discrete ROM and time-discrete FOM solutions. This section focuses on the latter and performs time-discrete state-space error analyses for Galerkin and LSPG ROMs applied to different time integrators.
Section 6.1 derives error bounds for the Galerkin and LSPG ROMs for linear multistep schemes. Here, Theorem 6.5 provides a posteriori bounds that depend on the ROM solution, while Theorem 6.11 reports a priori bounds. Section 6.2 provides a posteriori error bounds for the backward Euler scheme, as well as additional analyses that highlight the important role of the time step in the LSPG ROM, which is discussed in Remark 6.18. Section 6.3 derives ROM error bounds for Runge–Kutta schemes. Here, Theorem 6.19 provides a posteriori bounds, Corollary 6.20 specializes these results to explicit Runge–Kutta and DIRK schemes, and Theorem 6.21 and Corollary 6.23 report a priori bounds for Runge–Kutta schemes.
and . We also define the FOM residuals at time instance associated with the trajectories associated with the FOM, Galerkin ROM, and LSPG ROM OEs as
We define the Galerkin and LSPG operators as
respectively, and Galerkin and LSPG state-space errors at time instance as
We proceed by deriving a posteriori error bounds for the Galerkin and LSPG ROMs for linear multistep schemes. We assume Lipschitz continuity of in the first argument:
It is sufficient to show bound (6.26), as the arguments for (6.25) are similar. Let be fixed but arbitrary, then subtracting Eq. (6.3) from Eq. (6.1) yields
where . Adding and subtracting and applying the triangle inequality leads to
Invoking , and using , we deduce
Next, we will estimate . Using the definition of , from (6.4) we derive
We now establish a result that aids interpretability, as it provides a connection between the terms in the a posteriori error bounds and the optimality properties of LSPG and Galerkin ROMs. First, we note that
due to the optimality property associated with orthogonal projection; this term appears in local a posteriori error bound (6.8).
If , (e.g., backward differentiation formulas), then
If additionally the LSPG ROM employs , then
Under the stated conditions, and the optimality result Eq. (6.18) holds, yielding the desired result.
Corollary 6.3 shows that discrete-residual minimization (i.e., LSPG projection) rather than continuous-residual minimization (i.e., Galerkin projection) can produce a smaller value of a term that appears in the a posteriori error bounds; for example, this term appears on the right-hand side of Eqs. (6.8)–(6.9). This can be interpreted as arising from the fact that discrete-residual minimization computes the LSPG ROM solution that minimizes the entire normed quantity, while continuous-residual minimization performs orthogonal projection of the velocity given the Galerkin ROM solution.
Under the assumptions of Corollary 6.3 and Theorem 6.1, the local a posteriori error bound for the LSPG ROM (6.9) is smaller than that for the Galerkin ROM (6.8).
respectively. Under the conditions of Corollary 6.3, inequality (6.22) holds and the right-hand side of (6.24) will be smaller than the right-hand side of (6.23).
This is an interesting result, as it provides conditions under which the LSPG ROM produces a smaller local a posteriori error bound than the Galerkin ROM. It also provides some theoretical justification for the numerical experiments in Section 7, which use the three-point backward-differentiation formula, wherein the LSPG uniformly outperforms the Galerkin ROM. We now extend to results of Theorem 6.1 to obtain global a posteriori error bounds.
Under the assumptions of Theorem 6.1, we have
We now derive a simplified variant of these bounds.
Under the assumptions of Theorem 6.1, if additionally with . Then,
We proceed by proving bound (6.28); the proof for bound (6.27) is similar. First, we define
as well as a ‘path’ from time instance backward to the initial time by defining with
with and . Then, from local a posteriori error bound (6.9), we have
the relation , and the following result (with and ): if , then if and only if .
We note that due to the optimality property associated with orthogonal projection, we can write bound (6.27) equivalently as
We now prove conditions under which the a posteriori error bound is independent of the time step and total number of time instances ; the bound is fixed for a given time .
Under the assumptions of Theorem 6.6, if additionally (e.g., backward Euler, where and ) then the global a posteriori error bounds (6.27)–(6.28) are independent of the time step and simplify to
The result can be derived by substituting into inequalities (6.27) and (6.28).
We now prove conditions under which a posteriori error bounds (6.27)–(6.28) can be written in ‘residual form’, i.e., in terms of the discrete residual arising at each time step. This will enable the respective optimality properties of the Galerkin and LSPG ROMs to be compared in Remark 6.9.
If additionally , then
Comparing inequalities (6.41) and (6.46) highlights the differences in how optimality affects the Galerkin and LSPG ROM error bounds. Writing these expressions more compactly under the conditions of Corollary 6.8 yields
1.2 A priori error bounds
We now derive a priori error bounds by slightly modifying the steps in the above proofs. The most significant difference in the subsequent results is that the oblique projection associated with the LSPG ROM no longer associates with residual minimization, as the argument of the operators corresponds to the full-order-model solution.
Under the assumptions of Corollary 6.10, we have
The result can be derived by following the same steps as Theorem 6.5 based on the local bounds in Corollary 6.10.
The result can be derived by following the same steps as Theorem 6.6 based on the local bounds in Corollary 6.10.
We now demonstrate conditions under which the a priori error bound is independent of the time step .
Under the assumptions of Corollary 6.12, if additionally (e.g., backward Euler) for the Galerkin ROM, and (e.g., backward Euler) for the LSPG ROM, then the a priori error bounds (6.53)–(6.54) are independent of the time step and simplify to
As in Corollary 6.7, the result can be shown by substitution of the appropriate assumptions (i.e., for the Galerkin ROM, for the LSPG ROM) into inequalities (6.53) and (6.54).
Because the argument of in the a priori error bounds corresponds to the full-order-model solution, it is not possible to relate such quantities to ROM residuals as was done in the case of a posteriori error bounds in Lemma 6.2. As such, it is not possible to associate the oblique projection of the LSPG ROM with minimizing any component of the a priori error bounds, as was shown for a posteriori error bounds in Corollary 6.3. However, it is possible to associate Galerkin projection with minimizing terms in the a priori error bounds, i.e., the following optimality result holds under the conditions of Corollary 6.12:
This is analogous to inequality (6.47) for a posteriori error bounds, where
2 Backward Euler
We first note that the backward Euler scheme satisfies , in Corollary 6.4. Thus, that result provides conditions under which the LSPG ROM has a lower local a posteriori error bound than the Galerkin ROM. Next, we specialize the global a posteriori error bounds in Theorem 6.5 to the case of the backward Euler scheme.
Under the assumptions of Theorem 6.1, for the backward Euler scheme we obtain
where . Note that the time-step condition corresponds to in this case.
Because it is a single-step method, the linear multistep coefficients do not vary between time instances; as a result, the constants appearing in Theorem 6.5 are also time-step independent and are , , , , and . Substituting these values into error bound (6.26) and noting that
which simplifies to bound (6.59). Derivation of bound (6.58) is identical and is thus omitted.
We now specialize the results of the time-step-independent global a priori error bounds in Corollary 6.13 to the backward Euler scheme.
Under the assumptions of Corollary 6.13—which can be satisfied by backward Euler as for this scheme—we obtain the following for the backward Euler scheme:
We now derive a result that highlights the (surprising) role the time step plays in the LSPG error bound. As will be shown in the numerical experiments in Section 7, this theoretical results can have an important effect on the performance of the LSPG ROM in practice.
If solves an auxiliary problem that computes the full-space solution increment centered on the LSPG ROM trajectory
Here, denotes the difference in solution increments at time instance , where and . We denote the relative solution increment at time instance by .
Eq. (6.59) in conjunction with (6.17) (with and the appropriate form of the discrete residual for backward Euler) implies
Lipschitz continuity of leads to the bound (6.64). To obtain Eq. (6.65), we multiply and divide by for each term in the summation and use .
Corollary 6.17 is useful in that it expresses the LSPG ROM error in terms of the (time-local) single-step errors incurred by projection along the LSPG ROM trajectory. In addition, this result highlights the critical role of the time step in the performance of the LSPG ROM; the following remark provides this discussion.
The time step in the error bound (6.65) for the LSPG ROM solution plays an important role. In particular, decreasing the time step produces both beneficial effects (bound decrease) and deleterious effects (bound increase), which we denote by ‘+’ and ‘-’, respectively as follows:
The time-discretization error decreases (this does not appear in the time-discrete error analysis above).
The number of overall time instances increases, so there are more terms in the summation.
The terms and decrease.
The term may increase or decrease, depending on the spectral content of the basis .
We now discuss this final ambiguous effect. The term can be interpreted as the relative error in solution increment over . Clearly, the ability of the LSPG ROM to make small depends on the spectral content of the basis : if the basis only captures modes that evolve over long time scales, then will be large (i.e., close to one), as the basis does not contain the ‘fast evolving’ solution components that change over a single time step. This suggests that the time step should be ‘matched’ to the spectral content of the reduced basis . In Section 7.5 of the experiments, we explore this issue numerically, and demonstrate that the error bound is minimized for an intermediate value of the time step .
We note that the above arguments do not hold for the Galerkin ROM, which is simply an ODE that does not depend on the time step. Instead, decreasing the time step should increase accuracy, as it has the effect of reducing the time-discretization error.
3 Runge–Kutta schemes
We rewrite Eqs. (2.5), (3.9), and (4.7) as
and set .
We first derive a posteriori error bounds.
If holds and is such that
for every , if then ,
Galerkin ROM. First we will show bound (6.70). Subtracting Eq. (6.68) from Eq. (6.67) and applying the triangle inequality yields
where . Adding and subtracting \bm{{f}}^{n}_{i}\Big{(}\bm{{x}}_{0}+\bm{{\Phi}}{{\hat{\bm{{x}}}}_{G}}^{n-1}+\Delta t\sum_{j=1}^{s}a_{ij}\bm{{\Phi}}\hat{}\bm{{w}}_{G,j}^{n}\Big{)} and invoking assumption , we deduce
Selecting small enough such that and hold yields
where denotes entry of the argument. From explicit state updates (2.7) and (3.11), we obtain
Finally, an induction argument produces the desired result (6.70).
LSPG ROM. We now prove bound (6.71). Subtracting (6.69) from (6.67) and applying the triangle inequality yields
Again selecting small enough such that and hold yields
The explicit state updates from (2.7) and (3.11) and the bound (6.73) yield
An induction argument yields the bound (6.71).
Under the assumptions of Theorem 6.19 for explicit RK and DIRK schemes, we have
For explicit and diagonally implicit Runge–Kutta schemes (4.12), we have when . The proof is then an immediate consequence of (6.71).
Note that the LSPG error bound (6.74) resembles the Galerkin error bound (6.70) much more closely than the previous LSPG bound (6.71), as explicit Runge–Kutta and DIRK schemes remove the coupling of the test basis across stages.
3.2 A priori error bounds
We now state the a priori versions of the Galerkin Runge–Kutta schemes (6.70) and the LSPG Runge–Kutta schemes (6.71).
If holds and is such that
where we have used the convention that the empty product is equal to one.
Similarly to Corollary 6.16, we now derive a time-step-independent variant of the error bound (6.75). A similar result can be shown for the LSPG bound (6.76); however, we omit this result for simplicity and instead will provide (more readily interpretable) a priori LSPG ROM error bounds for explicit Runge–Kutta and DIRK schemes in Corollary 6.24.
Under the assumptions of Theorem 6.21, assume additionally with and . Then,
As in Corollary 6.16, by using an upper bound for the right hand side in (6.75) we obtain
We now derive a bound for the term as
We can now compute an upper bound on the constant in inequality (6.78) as
Then, setting we obtain
As in Theorem 6.1, we have used the relation , and the result (with x=1+\kappa\Delta t\Big{(}b^{\star}s^{3/2}-a^{\star}\Big{)} and ) that states if , then if and only if . Finally, substituting in (6.82) in (6.3.2) and combining the resulting expression with (6.78) yields the desired result.
As with linear multistep schemes, the rightmost term in the Galerkin a priori bound will always be smaller than that for the LSPG bound, as the former associates with an orthogonal projection error of a fixed vector. In addition, the LSPG bound depends on the LSPG ROM solution; while this dependence could be removed, the bound in its current form facilitates comparison with the Galerkin bound. We again notice the complex structure of the estimator in (6.76) compared to (6.75). To better understand the behavior the LSPG estimator in (6.76) we consider two subcases: explicit Runge–Kutta and DIRK schemes.
Under the assumptions of Theorem 6.21 for explicit RK and DIRK schemes, we have
For explicit and diagonally implicit Runge–Kutta schemes (4.12), we have when . The proof is then an immediate consequence of (6.76).
Owing to the fact that the explicit Runge–Kutta and DIRK schemes removes the coupling of the basis, we again notice that the LSPG error bound (6.83) resembles the Galerkin ROM error bound (6.75).
The proof follows closely that of Corollary 6.22. We begin by deriving an upper bound for the right hand side in (6.75) as
Finally, we compute an upper bound on the constant in inequality (6.85) as
As this result is identical to upper bound (6.80) in the proof of Corollary 6.22 with replacing , we obtain the desired result by applying the remaining steps as Corollary 6.22.
Numerical experiments
This section compares the performance of Galerkin and LSPG ROMs on a computational-fluid-dynamics (CFD) application using a basis constructed by proper orthogonal decomposition. These experiments highlight the importance of the previous analyses, in particular the limiting equivalence of Galerkin and LSPG ROMs (Theorem 5.3), superior accuracy of the LSPG ROM compared with the Galerkin ROM (Corollary 6.4), and performance improvement of the LSPG ROM when an intermediate time step is selected (Corollary 6.17 and Remark 6.18).
Note that these experiments could be carried out on any dynamical system yielding a system of nonlinear ODEs (2.1); we have selected compressible turbulent fluid dynamics due to both its wide interest and challenging nature: limited progress has been made to date on developing robust, accurate ROMs for such problems. The numerical experiments highlight this fact, as standard Galerkin ROMs generate unstable responses in all cases.
The Galerkin and LSPG ROMs are implemented in AERO-F , a massively parallel compressible-flow solver. AERO-F solves the steady or unsteady compressible Navier–Stokes equations with various closure models available for turbulent flow, and employs a second-order node-centered finite-volume scheme. For model-reduction algorithms, all linear least-squares problems and singular value decompositions are computed in parallel using the ScaLAPACK library .
The full-order model corresponds to an unsteady Navier–Stokes simulation of a two-dimensional open cavity with a length-to-depth ratio of 4.5 using AERO-F’s DES turbulence model (based on the Spalart–Allmaras one-equation model ) and a wall-function boundary condition applied on solid surface boundaries. The fluid domain is discretized by a mesh with 192,816 nodes and 573,840 tetrahedra (Figure 2). The two-dimensional geometry is discretized in three dimensions by considering a slab of thin, but finite thickness, in the -direction; the resulting grid is one element wide and is created by extruding a distance that is 1% of the cavity length. The viscosity is assumed to be constant, and the Reynolds number based on cavity length is , while the free-stream Mach number is 0.6. Due to the turbulence model and three-dimensional domain, the number of conservation equations per node is , and therefore the dimension of the CFD model is . Roe’s scheme is employed to discretize the convective fluxes, and a linear variation of the solution is assumed within each control volume, which leads to a second-order space-accurate scheme on general unstructured, multi-dimensional meshes; however, we employ an extended stencil that gives fifth-order formal order of accuracy (with uniform mesh spacing) on inviscid, one-dimensional problems. The viscous flux is discretized using a centered Galerkin scheme.
Flow simulations are performed within a time interval with time units. We employ the second-order accurate implicit three-point backward differentiation formula, which is a linear multistep scheme characterized by , , , , , , for time integration; future work will perform numerical experiments with Runge–Kutta schemes. The OE (2.3) arising at each time step is solved by a Newton–Krylov method, where GMRES is employed as the iterative linear solver with a restrictive additive Schwarz preconditioner (with no fill in) and the previous 50 Krylov vectors are employed for orthogonalization. Convergence is declared when the residual norm is reduced to a factor of of its starting value. All flow computations are performed in a non-dimensional setting.
The initial condition is provided by first computing a steady-state solution, and using that solution as an initial guess for an unsteady ‘transient’ simulation (which captures the initial transient before the flow reaches a quasi-periodic state) of 7.5 time units. The state at the end of the unsteady transient simulation is then used as the initial condition for the subsequent simulations. The steady-state calculation is characterized by the same parameters as above, except that it employs local time stepping with a maximum CFL number of 100, it uses the first-order implicit backward Euler time integration scheme, it assumes a linear variation of the solution within each control volume, it employs a Spalart–Allmaras turbulence model, and it employs only one Newton iteration per (pseudo) time step.
All computations are performed in double-precision arithmetic on a parallel Linux clusterThe cluster contains 8-core compute nodes that each contain a 2.93 GHz dual socket/quad core Nehalem X5570 processor with 12 GB of memory. The interconnect is a 3D torus InfiniBand. using 48 cores across 6 nodes.
2 Time-step verification
Because this paper considers the time step to be an important parameter in model reduction, we first perform a time-step verification study to ensure we employ an appropriate ‘nominal’ time step. Figure 3 reports these results using a time-step refinement factor of two. A time step of time units yields observed convergence rates in both the instantaneous drag force on the lower wall and instantaneous pressure at that are close to the asymptotic rate of convergence (2.0) of three-point BDF2 scheme. Further, this value also leads to sub-2% errors in both quantities, which we deem to be sufficient for this set of experiments.
Figure 4 shows several instantaneous snapshots of the vorticity field and corresponding pressure field generated by the high-fidelity CFD model. The flow within the cavity is quasi-periodic; during one cycle, vorticity is shed from the leading edge of the cavity, convects downstream, and impinges on the aft edge of the cavity. Upon impingement, an acoustic disturbance is generated which propagates upstream and scatters on the leading edge of the cavity, generating a new vortical disturbance to initiate the next oscillation cycle. The pressure fields in the bottom row of Figure 4 reveal regions of low pressure (blue contours) associated with vortices, as well as acoustic disturbances both within the cavity and radiating outside the cavity. This complex flow is governed by the interactions of several nonlinear processes, including roll-up of the shear layer vortices, impingement of the vortices on the aft wall resulting in sound generation, propagation of nonlinear acoustic waves, and interaction of these waves with the shear layer vorticity.
3 Reduced-order models
To construct both the Galerkin and LSPG ROMs, we employ the proper orthogonal decomposition (POD) technique; we employ a constant weighting matrix for the LSPG ROM. To construct the POD basis, we set , where is computed via Algorithm 1 of the appendix with snapshots consisting of the initial-condition-centered full-order model states , where denotes the FOM response computed for a time step of . Three values of the energy criterion are used during the experiments: (), (), and (). Figure 5 shows a selection of the energy component of the computed POD modes. Note that as the mode number increases, the modes capture finer spatial-scale behavior, which we expect to be associated with finer time-scale behavior; this will be verified in Section 7.5.1.
We first repeat the time-step verification study, but we do so for the reduced-order models (again using the BDF2 scheme) in the time interval , as all Galerkin ROMs remain stable in this time interval. Figure 6 reports these results. First, we note that the Galerkin ROM converges an approximated rate of 2.0, which is what we expect given that the Galerkin ROM simply associates with a time-step-independent ODE (3.2). However, the LSPG ROM does not exhibit this behavior; in fact the error convergence is not even monotonic. This is likely due to the fact that the method does not associate with a time-step-independent ODE.
We next perform simulations for both reduced-order models for all tested basis dimensions and time steps; Figure 7 reports the time-dependent responses. When a response stops before the end of the time interval, this indicates that a negative pressure was encountered, which causes AERO-F to exit the simulation. We interpret this phenomenon as a non-physical instability.
First, note that the Galerkin ROMs become unstable (i.e., generate a negative pressure) for all time steps and all basis dimensions. This is consistent with previously reported results that indicate Galerkin projection almost always leads to inaccurate responses for compressible fluid-dynamics problems. In contrast, the LSPG ROM results in many stable, accurate responses for all basis dimensions. Further, LSPG responses exhibit a clear dependence on the time step . Subsequent sections provide a deeper analysis of this dependence.
4 Limiting case: comparison
We next compare the responses of the Galerkin and LSPG ROMs for small time windows (when the Galerkin responses remain stable) and small time steps. Figure 8 reports —which is the difference between the pressure responses generated by the LSPG ROM with different time steps and the Galerkin ROM with a fixed time step (the smallest tested time step)—for a time window . These responses support an important conclusion (see Theorem 5.3): the Galerkin and LSPG ROMs are equal in the limit of for , which is what we employ for the LSPG ROM (note that for this time integrator).Note that in the case, it is not clear if the difference is converging to zero. This is likely due to the fact that the time steps are not sufficiently small to detect convergence to zero in this case. In fact, as the basis dimension increases, the basis captures finer temporal behavior (as will be shown in Figure 10) and so the time scale of the ROM response will be smaller; in turn, smaller time steps will be required to detect convergent behavior. This has significant consequences for the LSPG ROM, as decreasing the time step leads to the same unstable response as Galerkin; larger time steps are needed to ensure the LSPG ROM is stable for the entire time interval.
Figure 9 reports and —which are the differences between the two ROM-generated pressure responses and the full-order model pressure response for —as a function of the time step for all three basis dimensions and three time intervals. These results highlight a critical observation: the LSPG ROM is more accurate for an intermediate time step. This not only supports the result of Corollary 6.17, but provides an interesting insight: taking a larger time step not only leads to better speedups (i.e., the end of the time interval is reached in fewer time steps), but it also decreases the error, sometimes significantly. This is further explored in the next section.
5 Time-step selection
Recall from Corollary 6.17 and Remark 6.18 that decreasing the time step has a non-obvious effect on the error bound for the LSPG ROM. We now assess these effects for the current problem.
In our interpretation of the error bound (6.65) for the LSPG ROM applied to the backward Euler scheme, we noted that the time step should be ‘matched’ to the spectral content of the trial basis . This is of practical importance, as selecting an appropriate time step for the ROM should take into account the relevant temporal dynamics associated with the basis. For example, a time step may be too small if the basis has filtered out modes with a time scale matching that of the time step. If we assume that the basis is computed via POD, then we would expect the vectors to be naturally ordered such that lower mode numbers are associated with lower temporal frequencies. Then, including additional modes has the effect of encoding information at higher frequencies. It follows that the time step should be decreased as additional modes are retained in construction of the ROM.
Thus, at least for the present application problem, we expect the optimal time step for the LSPG ROM to decrease as modes are added to the POD basis (this will be verified by Figure 12). Note that systematic calibration could be performed to attempt to automate selection of the ROM time step as a function of basis dimension. While this would be of clear practical interest, we do not pursue it here, as optimal-timestep computation would be complicated in practice by nonlinear interactions arising from the dynamical system, as well as effects from the spatial-discretization error and POD truncation error.
5.2 Error bound behavior
Having verified that higher POD mode numbers correspond to smaller wavelengths, we now numerically assess quantities related to the error bound (6.65). First, Figure 11(a) reports the dependence of the maximum relative projection error on the time step and the basis dimension, where
Note that is closely related to from error bound (6.65), as they are equal if and the LSPG ROM computes such that is minimized.
These results confirm that adding basis vectors—which we know has the effect of encoding higher frequency content—significantly reduces the projection error for small time steps , but has less of an effect on larger time steps, as retaining the first POD vectors already enables dynamics at that scale to be captured.
Next, Figure 11(b) plots the error bound (6.65) for a value of and with . This highlights an important result: selecting an intermediate time step leads to the lowest error bound, regardless of the basis dimension. Even though this result corresponds to the backward Euler integrator, we expect a similar trend to hold for the present experiment, which uses the BDF2 scheme. The next section assesses the performance of the LSPG ROM, including its dependence on the time step.
6 LSPG ROM performance
We now compare the accuracy and walltime performance of the LSPG ROM as the dimension of the basis, time step, and time interval change. The most salient result from Figure 12 is that choosing an intermediate time step leads to both better accuracy and faster simulation times. This shows that our theoretical analysis of the error bound performed in Section 7.5.2 leads to an actual observed performance improvement. For example, consider the case over the time interval . In this case, a time step of leads to a relative error of and a simulation time of hours; increasing this value to reduces the relative error to and the simulation time to hours, which constitutes roughly an order of magnitude improvement in both quantities. Again, this supports the theoretical results of Corollary 6.17 and highlights the critical importance of the time step for LSPG reduced-order models.
In addition, Figure 12 shows that as the basis dimension increases, the optimal time step decreases; this was anticipated from the spectral analysis performed in Section 7.5.1. In addition, adding POD basis vectors does not improve accuracy for large time steps. We interpret this effect as follows: for larger time steps, the first few POD modes accurately capture ‘coarse’ phenomena on the scale of the time step. Therefore, accuracy improvement is not achieved by adding modes that encode dynamics that evolve on a time scale finer than the time step itself.
Further, Figure 12(g) highlights that as the basis dimension increases, the error generally decreases, which is an artifact of the monotonic decrease in the FOM OE residual achieved by the LSPG ROM (Remark 4.1). Finally, the figure shows that as the time interval grows, the optimal time step generally increases.
7 GNAT: ROM with complexity reduction
In this section, we perform a similar study, but equip the LSPG ROM with complexity reduction in order to achieve computational savings. In particular, we employ the GNAT method , which solves Eq. (4.1) with , where is a basis for the residual and consisting of selected rows of the identity matrix.
The problem is identical to that described in Section 7.1 except that we take time units and employ a second-order space-accurate dissipation scheme wherein a linear variation of the solution is assumed within each control volume.This is done to ensure the sample mesh requires two layers of neighboring nodes for each sample node. For this simulation, the full-order model consumes 5.0 hours on 48 cores across six compute nodes.
The GNAT implementation in AERO-F is characterized by the sample-mesh concept . Figure 13 depicts the sample mesh for this problem, which was constructed using working columns [21, Algorithm 3], and includes two layers of nodes around the sample nodes (to enable the residual to be computed at the sample nodes). It is characterized by 7,974 total nodes (4.1% of the original mesh) and 17,070 total volumes (3.0% of the original mesh). Due to the small footprint of the sample mesh, the GNAT simulations are run using only 2 cores on a single compute node.
Figure 14 reports the results obtained with the GNAT ROM using different time steps. Critically, note that the GNAT ROM also exhibits a ‘dip’ in the optimal time step, with a time step of yielding the lowest error. In fact, increasing the time step from to decreases the error from 3.32% to 2.25% and also significantly increases the computational savings relative to the full-order model (as measured in core–hours) from 14.9 to 55.7. This highlights that the analysis is also relevant to ROMs equipped with complexity reduction.
8 Summary of experimental results
We now briefly summarize the main experimental results:
Galerkin ROMs are unstable for long time intervals (Figure 7).
LSPG ROMs are only unstable for small time steps (Figure 7).
Galerkin and LSPG ROMs are equivalent as (Figure 8).
LSPG ROMs are more accurate than Galerkin ROMs over small time windows where Galerkin is stable (Figure 9).
LSPG ROMs are most accurate for an intermediate time step (Figure 9).
Adding POD modes has the effect of including higher-frequency response components (Figure 10).
The theoretical error bound for the LSPG ROM exhibits the same time step ‘dip’ as the experimentally observed error (Figure 11).
The optimal time step for the LSPG ROM decreases as modes are added to the POD basis (Figure 12).
Adding modes to the POD basis has little effect on LSPG ROM accuracy for large time steps (Figure 12).
The optimal time step for the LSPG ROM tends to increase as the time interval increases (Figure 12(g)).
The GNAT ROM, which is discrete optimal and is equipped with complexity reduction, also produces minimal error for an intermediate time step (Figure 14).
Conclusions
This work has performed a comparative theoretical and experimental analysis of Galerkin and LSPG reduced-order models for linear multistep schemes and Runge–Kutta schemes. We have demonstrated a number of new findings that have important practical implications, including conditions under which the LSPG ROM has a time-continuous representation, conditions under which the two techniques are equivalent, and time-discrete error bounds for the two approaches.
Perhaps most surprisingly, we demonstrated that decreasing the time step does not necessarily decrease the error for the LSPG ROM. This phenomenon arose in both the theoretical analysis and in numerical experiments. In particular, our results suggest that the time step should be ‘matched’ to the spectral content of the reduced basis. In the experiments, we showed that increasing the time step to an intermediate value decreased both the error and the simulation time by an order of magnitude in certain cases. Alternatively, decreasing the time step cause the LSPG ROM to become unstable for longer time intervals. This highlights the critical importance of time-step selection for LSPG ROMs.
Acknowledgments
We thank Prof. Stephen Pope for insightful conversations related to comparing Galerkin and least-squares Petrov–Galerkin reduced-order models; these conversations inspired this work. We also thank the anonymous reviewers for their extremely helpful and insightful comments and suggestions. We also thank Prof. Charbel Farhat for permitting us the use of AERO-F, as well as Julien Cortial, Charbel Bou-Mosleh, and David Amsallem for their previous contributions in implementing nonlinear reduced-order models in AERO-F. K. Carlberg acknowleges an appointment to the Sandia National Laboratories Truman Fellowship in National Security Science and Engineering. The Truman Fellowship is sponsored by Sandia National Laboratories. Sandia National Laboratories is a multi-program laboratory managed and operated by Sandia Corporation, a wholly owned subsidiary of Lockheed Martin Corporation, for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-AC04-94AL85000. H. Antil acknowledges the support by the NSF-DMS-1521590. The content of this publication does not necessarily reflect the position or policy of any of these institutions, and no official endorsement should be inferred.
Appendix
Algorithm 1 reports the algorithm for computing a POD basis using normalized snapshots.