WorksMathematics
Non-Intrusive Least-Squares Reduced Basis Methods: Black-Box Snapshots and Exact Residual Certificates
Abstract
For a parametrized linear first-order system, the least-squares functional at a conforming pair is the squared norm of the residual of the continuous problem, and it can be computed exactly. In this paper, we use this least-squares residual as the error certificate of reduced basis methods whose snapshots are computed by black-box solvers. The output of the solver is first made conforming by a reconstruction, and a flux is recovered by least-squares if the solver does not provide one. The online reduced problem minimizes the least-squares functional over the product of the space spanned by the snapshot fluxes and the space spanned by the snapshot potentials. It needs no inf–sup condition on the reduced spaces, and its certificate needs no stability constant. We discuss second-order elliptic equations, the Stokes equations, where only the velocity of a black-box solver is used, and linear transport equations with a moving inflow boundary. In the numerical experiments, the snapshots are computed by least-squares, conforming, nonconforming, stabilized, finite volume, and finite difference solvers. With adaptive meshes and the same tolerances, the greedy algorithm stops at the same or nearly the same reduced dimension for all solvers that accept a mesh.
Introduction
Reduced basis (RB) methods approximate the solutions of a parametrized partial differential equation for many parameter values in the span of a few precomputed solutions, called snapshots; see the review articles and books [3, 16, 19, 28, 29, 31, 32, 34] and the recent surveys [17, 18] on time-dependent and transport-dominated problems. An RB method has an offline stage, where the snapshots are computed, and an online stage, where a small problem on the span of the snapshots is solved for each new parameter. We call this small problem the online reduced problem. Its cost does not depend on the dimension of the high-fidelity discretization. An a posteriori error estimate certifies the RB approximation and drives the greedy selection of the snapshots. In its classical form, the estimate bounds the error with respect to a discrete truth solution by a dual norm of the residual divided by a lower bound of a coercivity or inf–sup constant [19, 34]. In this paper, the error estimate is the norm of the residual of the continuous first-order system, that is, the square root of a least-squares functional. It is computed exactly, without a truth discretization, and no stability constant is needed.
Two properties of the least-squares functional
Let be a compact parameter domain. For , we write the parametric problem as a first-order system . Here is a real Hilbert space of pairs of a flux and a potential on a domain , for example, with homogeneous essential boundary conditions; is a product of spaces; is linear, bounded, and injective; ; and is the exact solution. Nonhomogeneous essential boundary data are lifted (section 2), and
The online and the offline stages
pairs in , shifted by the lifting, are called conforming pairs. For , define
Since , we have
This identity gives the following two properties.
(P1) As a method. On any finite-dimensional subspace , the minimizer of exists, is unique, and is the orthogonal projection of onto with respect to the inner product . No inf–sup condition on is needed.
(P2) As a certificate. For every , is the norm of the residual of the continuous problem at , and by (2), it is the error of with respect to the exact solution in . The function does not need to be the least-squares solution or the solution of any discrete problem.
Both properties are classical for least-squares finite element methods [4, 6, 41]. Property (P2) is the basis of the non-intrusive least-squares functional error estimator. This estimator was proposed in [9] for conforming Galerkin solutions, where the flux is recovered by minimizing the functional with the Galerkin solution fixed, and was extended in [25] to general second-order elliptic and nonlinear problems; see [42] for weakly imposed boundary conditions.
The online and the offline stages
In our method, least-squares is used in the online stage, where both properties are needed. The online reduced problem minimizes the functional over the reduced space; by (P1), no inf–sup condition is needed, and by (P2), the square root of the minimum certifies the reduced solution. The snapshots can be computed by any solver whose output can be made conforming, since (P2) holds for every conforming pair. For a selected parameter , the offline computation of one snapshot is
Here is computed by the user’s solver, is a conforming reconstruction (the identity for a conforming solver), and minimizes the functional with fixed, unless the solver provides a conforming flux. We introduce four levels of non-intrusiveness; see Table 1. The user implements the least-squares forms and the flux recovery, and the black-box solver is called on a given mesh or, at non-intrusive level 3, on its own grid. The truth solver only determines the snapshots; the reduction and the certification are done by least-squares. In model order reduction, the term “non-intrusive” usually refers to a regression of the reduced coefficients on the parameter [21, 24, 30]. Here, only the snapshots are computed non-intrusively, and the online stage is a projection with an exact certificate.
Related work
In [37, 38, 39], Yano developed RB methods that certify the error with respect to the exact solution and adapt the truth discretization. For symmetric coercive equations, upper and lower bounds of the energy of the exact solution follow from the primal and the complementary variational principles [37]. The minimum-residual mixed RB method of [38] is a least-squares RB method: the snapshots and the reduced solution minimize the least-squares functional of the first-order system, the primal and flux reduced spaces are decoupled, and the snapshots
| non-intrusive level | truth solver | mesh | |
| 0 | least-squares | given | identity |
| 1 | conforming Galerkin | given | identity |
| 2 | DG, nonconforming, finite volume | given | needed |
| 3 | finite difference, legacy code | solver’s own | needed |
caption: Non-intrusive levels for a potential in (DG: discontinuous Galerkin). The online reduced problem and the certificate are the same for all four levels; only changes.
:::
are kept on the refined meshes. The square root of the functional bounds the dual norm of the residual of the continuous problem, and a lower bound of the inf–sup constant turns it into a bound of the error. Energy-norm and output error bounds with spatio-parameter adaptivity are derived in [39]. The primal–dual RB method [40] for convex minimization problems certifies the error by the primal–dual gap, which equals the combined energy error with constant one, and uses balanced adaptive greedy algorithms; the least-squares functional is discussed there as a special case in section 6.5. Chaudhry, Olson, and Sentz [10] developed the least-squares finite element RB method: the snapshots are least-squares finite element solutions, and the reduced solution minimizes the least-squares functional over their span. They derived a rigorous bound of the error with respect to the exact solution in the norm of . The bound uses a lower bound of the parameter-dependent coercivity constant of the least-squares bilinear form, computed by the successive constraint method, and the first-order formulation is important for it. In both [38] and [10], the snapshots are least-squares finite element solutions, and a bound of the error in a norm that does not depend on needs a lower bound of a stability constant. Saddle-point problems such as the Stokes equations are not considered there.
In section 3.3.2 of [31], the term “least-squares RB” means the least-squares Petrov–Galerkin projection of the truth problem. Here, “least-squares” refers to the least-squares functional of the first-order system of the partial differential equation. Ali, Steih, and Urban [1] compute the snapshots by adaptive wavelet methods and estimate the error of the RB approximation with respect to the exact solution. For the normal equations, they show by a best approximation property that the reduced residual at a selected parameter is not larger than the residual of its snapshot. In our setting, this is the second inequality of (12), where the residual is an residual and equals the least-squares error of the whole pair.
No inf–sup condition for the online reduced problem
For indefinite problems, the Galerkin method is stable only under an inf–sup condition. For second-order elliptic equations, a conforming finite element space satisfies it on sufficiently fine meshes, while a reduced space in general does not. The certification uses a lower bound of the inf–sup constant of the truth operator, which can be computed by the successive constraint method [22, 33]. For saddle-point problems, a Galerkin RB method needs Brezzi’s condition on the reduced spaces, which can be restored by supremizers [35]. For transport problems, the double greedy algorithm of [12] builds a stabilizing test space together with the trial space and controls the error. In our method, by (P1), the online reduced problem is stable on any reduced space, without any condition on the mesh size, and by (P2), its certificate needs no stability constant.
1.5. Contributions. Our method extends the least-squares RB methods of [38] and [10] and the primal–dual RB method of [40] as follows.
(i) By (P1), the online reduced problem is the least-squares projection onto the reduced space. Since the lower bound in (4) below holds on the whole space, the online reduced problem is stable on any reduced space and for every parameter, without any condition on the mesh size. This holds for indefinite second-order elliptic equations and for saddle-point problems such as the Stokes equations: no discrete or reduced inf–sup condition has to be verified, and no supremizers are needed.
(ii) By (P2), the square root of the least-squares functional is the norm of the residual of the continuous problem. As the primal–dual gap in [40], it is the certificate online and in the greedy algorithms, and no stability constant is needed. We do not convert it to a -independent norm. Such a conversion uses one number, the smallest singular value of , while uses the whole operator; the bound can overestimate the error by any factor up to , with the largest singular value, even if is computed exactly [40 Sect. 1.1]. For a quantity of interest, the error is a number, so there is no norm to choose, and no stability constant has to be computed for each ; see the companion paper [43].
(iii) Since (P2) holds for every conforming pair, the snapshots can be computed by any solver whose output can be made conforming by a reconstruction. The flux is recovered by least-squares, and the snapshot is certified by its residual. For the Stokes equations, only the velocity of the black box is used.
Section 2 presents the method in an abstract setting, and section 3 the greedy algorithms. Sections 4, 5, and 6 treat second-order elliptic equations, the Stokes equations, and linear transport, and section 7 reports the numerical experiments.
The least-squares reduced basis method.
Abstract setting
Let and be real Hilbert spaces, and let be a compact parameter domain. For each , let be a bounded linear operator and . We assume that has a unique solution . An essential boundary condition is either built into or imposed weakly as a boundary residual, measured in an norm that is a component of . Nonhomogeneous essential data built into are first lifted. The reduced set is then a lifting plus a subspace of , and the lifting at the parameter of a snapshot is subtracted from the snapshot. In all cases, the functional is , and (1.2) holds.
Assumption 2.1 (Uniform stability). There exist constants , independent of , such that
These constants are only used to compare the least-squares error with the norm of , for example, . The certificate does not use them.
####### The online reduced problem
For a finite-dimensional subspace , shifted by the lifting of the essential data, the online reduced problem gives the reduced solution and its certificate
Proposition 2.2 (Best approximation and exact certificate). Under Assumption 2.1, exists, is unique, and is the orthogonal projection of onto with respect to the inner product . We have
If , then for all .
Proof. By (2), the functional in (5) is , and is a norm on by (4). This gives the projection property and the first relation in (6). The second one follows from . The monotonicity holds because the same functional is minimized over a larger set.
Snapshots
Let be the product of a flux space and a potential space, and let and be finite element spaces on a mesh of our choice. Denote . For a selected parameter , the user’s solver returns an approximation of the potential, and a reconstruction maps it to . If the solver is conforming on , is the identity. The flux is recovered by
This is the flux block of the least-squares finite element method and is solved once for each snapshot. If the solver provides a conforming flux, this flux can be used instead.
Proposition 2.3 (Best recovery). Let be the minimizer in (7), and let . Then
Proof. The proof is the same as that of Proposition 2.2, with the affine set in place of .
Remark 2.4. For every ,
Hence the flux recovery cannot make up for an inaccurate reconstructed potential, and a poor solver or a poor reconstruction leads to a large snapshot certificate.
The snapshot is certified by
The certificate does not use any property of . The quality of and of the solver only affects the value of . The snapshots at different may come from different solvers and different meshes.
Reduced spaces and offline–online decomposition
For the selected parameters , let and define
The online reduced problem uses the product space , whose dimension is at most , instead of the span of the snapshot pairs. Thus the fluxes and the potentials have independent coefficients, as in the decoupled formulation of [38 Sect. 2.4]. For conditioning, the two families are orthonormalized separately by the Gram–Schmidt process with reorthogonalization, in fixed inner products of and . We denote the orthonormal bases by and and their union by . For and , we have
and is given by . If the forms and and the number are parameter-separable, then the parts of , , and that do not depend on are assembled offline, and the online cost does not depend on the dimension of the truth spaces. The computed certificate is exact if the integrals in (10) are computed exactly, which is the case in all our experiments. If approximate data are used, the certificate changes by at most .
Snapshots on different meshes
The offline matrices need integrals of products of snapshots computed on different meshes. We only consider the case of an adaptive greedy algorithm, where the snapshot meshes are nested, , and each mesh is a conforming refinement of the previous one. The finite element spaces of fixed degree used here (Lagrange, Raviart–Thomas, and discontinuous) are nested under refinement, so a snapshot on can be represented exactly on for . The entries between the new snapshot on and an old snapshot are therefore computed on . For coefficients that are piecewise constant on the initial mesh, these integrals are exact. Each new snapshot adds one row and one column for each block and each separable term.
Greedy algorithms with residual certificates
The certificate is the norm of the residual of the continuous problem. On a fixed truth space, it cannot be smaller than the least-squares residual in this space, so the classical greedy algorithm does not stop if the RB tolerance is below this residual. The algorithms in section 7 of [40] balance the truth and the RB tolerances to solve this problem. In this section, we present their non-intrusive versions. Let be a finite training set, let be the truth tolerance for the snapshot certificates and the RB tolerance for the reduced certificates, let be their ratio, and let be a maximal dimension.
Non-intrusive level 0: least-squares truth
Suppose that the truth solver is the least-squares method on a finite element space . Then the snapshot at is the projection , with the certificate . On any reduced space spanned by such snapshots satisfies . By Proposition 2.2, we obtain the two results on which the greedy algorithms of [40] are based: for all , and at the selected parameters, since ; see also Theorem 5.7 of [40]. In fact, is the orthogonal projection of onto with respect to the inner product in (P1), and , so
The second term is the error with respect to the truth solution, which is the quantity that standard RB error bounds certify for a fixed truth discretization. For frozen snapshots on nested meshes (see below), (3.1) holds with the space on the finest mesh. At non-intrusive levels 1–3, the snapshot is not a projection. The reconstructed pairs are in , so and (3.1) still hold, where is the least-squares solution in (it is not computed). The equality at the selected parameters becomes the inequality .
Fixed resolution
3.2. Fixed resolution. Algorithm 3.1 is Algorithm 1 of [40] with the snapshot certificate in place of the finite element error estimator. By (3.1), , where the right-hand side is the largest certificate of the least-squares solution on the mesh, and at a selected parameter. The RB tolerance follows the largest snapshot certificate .
Algorithm 3.1 (Fixed resolution, adaptive RB tolerance). Input: , a fixed mesh (or grid), , , , ; , .
Call the user’s solver at ; reconstruct, recover the flux, and compute .
Let and .
Update , , and the offline matrices.
Choose .
If and , set and go to 1; otherwise, stop.
Adaptive resolution with frozen snapshots
3.3. Adaptive resolution with frozen snapshots. Algorithm 3.2 is Algorithm 2 of [40] with frozen snapshots: as in [38 Sect. 4.2], the earlier snapshots are kept and represented on the refined mesh, not recomputed. It requires a solver that accepts a mesh; a solver on its own grid is used with Algorithm 3.1. Since the certificate is exact for every conforming pair, it remains exact when the snapshots come from different meshes. The reduced spaces are nested, so, as with the residual bound of [38 Sect. 2.4], the certificate is monotone in , and each frozen snapshot already meets the tolerance at its own parameter.
Algorithm 3.2 (Adaptive resolution, fixed tolerances, frozen snapshots). Input: , , , , , an initial mesh , ; .
Starting from , call the user’s solver at , reconstruct, and recover the flux. While , mark the elements by the local contributions of , refine, and repeat. The final mesh is .
Freeze on . The earlier snapshots are not recomputed.
Update , , and the offline matrices (section 2.5).
Choose .
If and , set and go to 1; otherwise, stop.
Step 1 assumes that tends to zero under this refinement; at non-intrusive level 1, this follows from the convergence result of [25].
Lemma 3.3 (Monotonicity and no re-selection). Suppose that the snapshots are frozen. Then and
Therefore, in Algorithm 3.1 and in Algorithm 3.2, and no parameter is selected twice.
Proof. Both inequalities hold because the same functional is minimized over a larger set (Proposition 2.2): and .
Remark 3.4. If the zero pair is admissible (homogeneous essential data or weakly imposed boundary data), then by (2). Hence the relative error is . The number is the last term in (10). It is available online at no extra cost, and it depends neither on nor on the mesh if the data terms are integrated exactly. Dividing (12) by , we obtain and . Thus Lemma 3.3 and Proposition 3.5 also hold for , and the algorithms can be run with in place of , with the snapshot test and relative tolerances. This is useful when varies by orders of magnitude over . For (25), for all .
Saturation, enriched training sets, and the safety check
In step 4, the certificate is evaluated on the whole training set. The saturation trick [20 Def. 3.3, Alg. 2] skips a parameter if its stored estimate, multiplied by a saturation constant, is smaller than the current maximum. For a general error estimator, this is an assumption, and the user chooses the saturation constant. The first inequality in (12) is the saturation property with constant one, as on a fixed mesh in [40 Sect. 7.2].
Proposition 3.5 (Saturation and removal). Suppose that the snapshots are frozen.
(a) If and , then . Hence, with saturation constant one, the maximum of over the training set is attained at a parameter whose certificate is evaluated, and the saturation trick selects the same parameter as the full search.
(b) In Algorithms 3.1 and 3.2 (with in the latter), if , then for all . Hence a parameter removed from the training set for this reason would never be selected.
Proof. We have by (12), and is nondecreasing in .
Remark 3.6. The adaptively enriched greedy algorithm of [20 Sect. 3.3, Alg. 3] selects parameters from a small random training set and replaces the parameters below the tolerance by new ones. By Proposition 3.5, it can be used with saturation constant one. Its final safety check uses new random parameters. For , if the set has probability at least , a reduced space passes this check with probability at most . By (2), this is the set of parameters at which the error with respect to the exact solution is larger than .
Second-order elliptic equations
The model problem
Let be a bounded Lipschitz polyhedral domain with and . For , consider
We assume that is symmetric and uniformly positive definite, that and , with bounds independent of , and that the bilinear form satisfies the inf-sup condition on with a constant independent of . With , the first-order system is
with the two boundary conditions, and the volume functional is
where and denote the norms of and . This is of § 2 with , , and . Let , where the subscripts denote zero normal trace on and zero trace on . Then Assumption 2.1 holds on in the norm , with constants depending on and the bounds of the coefficients [6, 41].
The right-hand side is a general element of , since every element of has this form with and . The vector part is included in the flux , which is an exact change of variables. Then , and (15) only contains norms; no discrete inner product as in [5] is used. This treatment of data is that of [41]; see also [36]. For the RB method, parameter-dependent data, for example line sources, enter the certificate, the flux recovery, and the affine decomposition in the same way as data.
Boundary conditions
Suppose that and are satisfied exactly by every reduced pair. This is the case for homogeneous data and for data that are discrete on the coarsest mesh and enter through a parameter-separable lifting as in [40]. Then is the space with homogeneous essential conditions after the lifting, and (1.2) holds with , where is the functional with zero data. If the reduced pairs satisfy discrete data and exactly, the certificate is exact with respect to the solution of the continuous problem with these data. Independently of any discretization, the distance between this solution and in the norm of is equivalent to , where is the dual of . This term depends on and on the boundary mesh but not on .
Snapshots and offline–online decomposition
Let be a continuous piecewise polynomial space of degree and the Raviart–Thomas space of index on . The reconstruction maps the output of the user’s solver to .
Non-intrusive level 1. For a conforming Galerkin solution in on , is the identity.
Non-intrusive level 2. For a discontinuous Galerkin or nonconforming solution on , averages the values at each Lagrange node over the elements sharing the node, which gives an element of [23]. If the coefficient jumps across interfaces, we use the modified Oswald interpolation of [8]: at a vertex on an interface, the values are averaged only over the elements of the subdomain with the largest coefficient. For a cell-centered finite volume solution, the nodal values can be taken as averages of the values of the adjacent cells.
Non-intrusive level 3. For a finite difference solution on a grid, uses the grid values as the nodal values of a continuous piecewise bilinear function on the cells of the grid, or of a continuous piecewise linear function on a triangulation of the grid.
Remark 4.1. Let be a discontinuous Galerkin or Crouzeix–Raviart approximation of with homogeneous Dirichlet data, let be its nodal average, and let be the broken norm with the jump term , where boundary edges are included. The jumps of are those of . By Proposition 2.3, the upper bound in (4), the averaging estimate of [23] (of [8] for the modified Oswald interpolation), and the Poincaré inequality, we have
where depends only on the shape regularity, the polynomial degree, and the Poincaré constant. By Remark 2.4, we also have . Hence a black box that is accurate in its own norm gives a snapshot with a small certificate. Certifying itself would require the jump term, which depends on the solver; the snapshot certificate does not.
Every snapshot must satisfy the discrete data assumed by the online lifting. The reconstruction sets the boundary nodal values of the potential; this replaces the boundary values of a black box that imposes the Dirichlet condition weakly. The flux recovery (7) is over the Raviart–Thomas functions satisfying the discrete Neumann data, and its normal equations are
for all such with zero Neumann data [9, 25]. If the solver accepts a mesh, the local contributions of at are used as refinement indicators. At non-intrusive level 1, the adaptive algorithm driven by these indicators converges [25].
The Stokes equations without reduced inf–sup conditions.
Stress–velocity formulation
Let be a bounded Lipschitz polyhedral domain, let be piecewise constant on a fixed partition of with , and consider
where and . For a discontinuous viscosity, the symmetric form gives the physical interface condition, the continuity of the traction, while the pseudostress does not [26 Rems. 1 and 3]. Therefore, we use the stress. Let and . Then and , and since , we have . Hence
with on , and . The condition becomes . Let , where is taken row-wise and no symmetry is imposed, and let . For , define
and let be the same functional with zero data. This is of section 2 with , , and . It is the functional in [26 (7.1)], which is defined there on the subspace . This subspace depends on , while ours does not. The map between the two subspaces changes neither nor , so the norm equivalence of [7, 26] also holds on . Thus Assumption 2.1 holds with and with constants depending on , , , and . The certificate does not use these constants.
The certificate, the divergence, the symmetry, and the pressure.
Proposition 5.1. Let be the solution of (18). For , let , , and . Then (a) ; (b) ; (c) .
Proof. (a) This is (1.2), since both residuals are affine and vanish at . (b) In the Frobenius inner product, a matrix is the orthogonal sum of its symmetric deviatoric part, , and , and the norm of the last part is . Let be the first residual in (5.3). Since and are symmetric, and . (c) We have and .
By (b), the divergence of the velocity and the skew-symmetric part of the stress are bounded by the certificate, for the black-box snapshots as well as for the reduced solution; neither is assumed to vanish. By (c) and the norm equivalence, the pressure error is also bounded by the certificate, with a constant depending on and .
Non-intrusive snapshots.
The black box returns a velocity ; a pressure, if computed, is not used. Let , where consists of continuous piecewise polynomials vanishing on . The reconstruction is the identity for Taylor–Hood or stabilized equal-order – velocities, and it drops the bubbles of a MINI velocity. For nonconforming or discontinuous Galerkin velocities, is the nodal average, where at a vertex on an interface of only the elements of the subdomain with the largest are used, as in § 4.3. For the staggered (MAC) finite difference scheme on a Cartesian grid, takes at each grid vertex the mean of the two neighboring face values of each velocity component (zero on ), and uses on the grid cut into triangles. Let be the row-wise Raviart–Thomas space of index for velocities of degree , for example, for Taylor–Hood. The stress is recovered by , that is, for all ,
The bilinear form on the left is positive definite on . Indeed, if it vanishes at , then and , so with , and since . Both sides of (20) vanish at , and the constant multiples of are in , so any solution of (5.4) on gives after a multiple of is subtracted to make the mean trace zero. The recovered pressure is , and the snapshot certificate is . The recovery uses only the velocity of the black box. Thus the black box need not be inf–sup stable, and its velocity need not be divergence free; its pressure space and its stabilization only affect the value of .
The online reduced problem.
Let and . The online reduced problem minimizes over ; for its minimizer , the reduced pressure is . The reduced problem needs no pressure space and no supremizers (§ 1.4.1), and Proposition 5.1 applies to the reduced solution. For piecewise constant on a fixed partition, the offline–online decomposition of § 2.2 can be used. The frozen snapshots and the greedy algorithms of § 3 are used without change.
Linear transport with a moving inflow boundary
The flux formulation
Let be a bounded Lipschitz polyhedral domain, let be a constant advection field, and let and . Consider
Let . We assume that (6.1), with the inflow condition written as on , has a unique solution in . Least-squares finite element methods for linear hyperbolic equations were studied in [13] without a flux variable; the -conforming flux was introduced in [14] for the Burgers equation and used for linear transport in [27]. With , problem (6.1) becomes
On , which does not depend on , define
and let be the functional (6.2) with and .
Proposition 6.1. Let . For every ,
and only if . Consequently, for every finite-dimensional subspace , the minimizer of over exists, is unique, and is the best approximation of in , and .
Proof. The three residuals in (6.2) are affine in and vanish at . If , then , so , , and on . By uniqueness, and . Hence is positive definite on , and the rest follows from the projection argument in the proof of Proposition 2.2.
Each of the three residuals of a reduced pair is bounded by . In particular, the balance law for the reduced flux is certified.
Remark 6.2. In the flux formulation with the inflow condition imposed strongly, the trial space depends on . The span of snapshots computed at parameters with different inflow boundaries is in general not contained in any of these spaces. For example, let and . The side is an inflow side for and an outflow side for , and in the latter case a snapshot has on this side. With (6.2), the trial space is fixed, and the inflow condition is part of the functional. For a polyhedral domain with sides , is the union of the sides with , and
where if and otherwise. This term is parameter-separable with the coefficients , , and multiplied by those of , so the decomposition of § 2.2 can be used.
Remark 6.3. The certificate is the error in , which is not equivalent to the norm of [27]. Lemma 3.3 and Proposition 3.5 only use the projection property of Proposition 6.1, so they also hold for transport.
Snapshots
The scalar variable is in , so is the identity for discontinuous Galerkin and finite volume schemes. For the upwind discontinuous Galerkin method of degree , the flux does not need a recovery problem. Let in the Raviart–Thomas space of index have the normal moments of the numerical flux on the interior faces, of on (a union of faces), and of on the other boundary faces, and let its interior moments be those of . Then , and the discontinuous Galerkin equations give
where and are the projections onto the piecewise polynomials of degree on and on the faces of , respectively. Reconstructions of this type are used in [2, 15]. The snapshot certificate is computed in one pass over the faces and the elements, and no linear system is solved. For piecewise constant and data of degree , only the term remains. For , the method is the cell-centered upwind finite volume scheme, and the face fluxes of are its numerical fluxes. The least-squares recovery in gives a certificate that is not larger, at the cost of a symmetric positive definite problem in , and it can also be used for black boxes without a numerical flux. At non-intrusive level 0, the truth solver is the least-squares method of [27].
Relation to the double greedy method
Problem {(xref)}(6.1) with is the transport example of [12]. There it is solved in a variant of the ultraweak formulation of [11], in which the dual norm of the residual equals the error, and the double greedy algorithm builds a reduced test space together with the trial space to control this error. The method of this section certifies the norm of the residual, that is, the error in (Remark 6.3), with a single greedy loop driven by .
Numerical experiments
Setting
The second-order test problem is the convection–diffusion problem of [36] with a two-parameter diffusion coefficient as in [40 Sect. 7] and a negative reaction coefficient:
where , for , for , and . Thus , and for all . The problem has no closed-form solution, but the certificate does not need one. Since the reaction coefficient is negative, the problem is not coercive for small , and the primal–dual method of [40] cannot be used. Problem (25) is uniquely solvable for all . Since depends continuously on and is compact, the inf–sup constant of is bounded below uniformly on . We use a training set of uniformly random points in , the first parameter , , and . In Algorithm 3.2, we use for (25) and for the Stokes problem, the initial mesh of squares with each square cut along a diagonal, Dörfler marking with based on the elementwise contributions of , and newest vertex bisection. The space is the continuous piecewise linear space, and is the lowest-order Raviart–Thomas space. The “test” maximum is taken over an independent set of uniformly random parameters, and the first ten of them are the test parameters used below. The black boxes are conforming Galerkin (non-intrusive level 1), Crouzeix–Raviart with the modified Oswald interpolation of [8] (non-intrusive level 2), and finite differences on a uniform grid (non-intrusive level 3). The Gram–Schmidt process of section 2.4 uses the inner products of and , row-wise for the Stokes problem, and of and for transport. The settings of the Stokes and the transport problems are given with their results.
In every run below, the maximum of over the training set is nonincreasing, and the saturation trick selects the same parameters as the full search. The inequality at the selected parameters and, in the adaptive runs, the split (11) at ten test parameters hold up to rounding errors, with a relative error of or less.
Second-order elliptic equations.
Non-intrusive level 0. The algorithm stops at with (Figure 1), and the maximum over the test set is the same to three digits. Five of the 28 selected parameters need mesh refinement. Most of the refinement occurs at , where on both halves (38 refinements, to 376,662 elements), and at (20 more refinements, to 415,072 elements). The final mesh has 444,171 elements. The run needs 105 truth solves, and the saturation trick evaluates 16% of the certificates of the full search. The mesh is refined along the interface and along the outflow boundaries and . When is small on the left half and large on the right half, the interface is part of the outflow boundary of the convection-dominated left half, and the solution has an exponential layer of width about on its left. At ten test parameters, we compute the least-squares solution on the final mesh to obtain the two parts of (11). The truth part is between and , and the reduced part is between and . Thus the two parts have comparable ranges. On the training set, the stopping test bounds their sum,
Figure 1. Algorithm 3.2 at non-intrusive level 0 for (25) with and . (a) The maxima of over and over the test set, the snapshot certificates on , , and . (b) of the final reduced model over and the selected parameters (numbered).
Non-intrusive levels 1–3. For conforming Galerkin snapshots, the snapshot certificate is at most 0.5% larger than that of the least-squares solution on the same mesh (Figure 2(b)). On a uniform mesh of 2,048 elements, where the layers are not resolved, this ratio is 1.56 at . By Proposition 2.3, the recovered flux is the best flux for the Galerkin potential, so the difference only comes from the potential (Remark 2.4). Non-intrusive level 1 stops at with , after 111 truth solves, on 457,760 elements. For Crouzeix–Raviart snapshots with the modified Oswald interpolation, the ratio is between 1.008 and 1.046, and the run stops at with 0.0261, after 115 truth solves, on 472,466 elements. The plain nodal average performs worse at and , where jumps by a factor of about . Its certificates are 12% and 16% larger than the least-squares ones, and needs 74 refinements instead of 24 with the modified Oswald interpolation. At a vertex on the interface, the plain average also uses values from the side of the small coefficient, and the flux term of (15) weights the resulting gradient error by on the side of the large coefficient. Mesh refinement compensates for this defect, and the final maxima of of the two reconstructions differ by 0.2%. A reduced model whose snapshots come from non-intrusive levels 0, 1, and 2 in turn also stops at , with , after 107 truth solves.
Figure 2. Algorithm 3.2 for (25) with and : non-intrusive level 0 (the run of Figure 1), non-intrusive level 1 (conforming Galerkin), and non-intrusive level 2 (Crouzeix–Raviart, reconstructed by the plain nodal average and by the modified Oswald interpolation). At non-intrusive levels 1 and 2, the flux is given by the recovery (7). (a) and . (b) Non-intrusive levels 1 and 2: the snapshot certificate divided by the certificate of the least-squares solution on the same mesh .
At non-intrusive level 3, the black box is a finite difference code on its own grid, and its mesh cannot be adapted. We therefore run Algorithm 3.1 on one uniform grid of 512 512 squares. The solver is the conservative five-point scheme with central differences for convection (cell Péclet number at most 0.29), and is the interpolation of the grid values on the grid cut into triangles. The algorithm starts with and raises the tolerance to times the largest snapshot certificate. With finite difference snapshots and with Galerkin snapshots on the same mesh, the two runs select the same ten parameters and stop at with . The worst-resolved parameter, with , determines the tolerance for all of .
The Stokes equations
We solve problem (17) on with and on the th of the four squares of side , where . Then ranges from 0.041 to 4.1, so we use the relative certificate of Remark 3.4. The relative certificate does not change when is multiplied by a constant, that is, along in , so has three effective dimensions. The other settings are those of section 7.1.
Non-intrusive levels 0–2. At non-intrusive level 0, the run stops at with (0.0178 on the test set), on 22,271 elements, after 49 truth solves (Figure 3). At non-intrusive levels 1 and 2, we use three black boxes and take only the velocity from each. At non-intrusive level 1, we use the MINI element and the equal-order – element. The latter is not inf–sup stable; it is used with the Brezzi–Pitkäranta stabilization, which perturbs the discrete divergence constraint. At non-intrusive level 2, we use the Crouzeix–Raviart velocity with a pressure and a penalty on the velocity jumps, which is needed for a discrete Korn inequality for , and is the modified Oswald interpolation. The three runs stop at , 21, and 21, with , 0.0198, and 0.0199, on final meshes of 22,388, 21,682, and 23,432 elements. The ratios of the snapshot certificate to the non-intrusive level 0 certificate on the same mesh have medians 1.004, 1.004, and 1.008 and maxima 1.057, 1.030, and 1.034, respectively (Figure 3(b)).
Figure 3. The Stokes problem of section 7.3: Algorithm 3.2 with the relative certificate, , and , with least-squares snapshots (non-intrusive level 0) and with the velocity of a black box and the recovery (20): MINI and the stabilized – element (non-intrusive level 1), and Crouzeix–Raviart with a jump penalty and the modified Oswald interpolation (non-intrusive level 2). The panels are as in Figure 2; in (a), the certificates are relative.
Non-intrusive level 3. Figure 4 compares MAC and MINI snapshots on one fixed grid. We use the MAC scheme in finite volume form, with the symmetric gradient, at the cell centers, and the mean of the neighboring cells at the vertices; is as in section 5. The relative snapshot certificates of the MAC run are between 0.0037 and 0.032. The largest one is at , where MINI on the same grid gives 0.0041.
Figure 4. The problem of Figure 3 on one fixed grid: Algorithm 3.1 with relative certificates, , and , with MAC (non-intrusive level 3) and MINI (non-intrusive level 1) snapshots. Shown are , the relative snapshot certificates , and of the MAC run.
This snapshot raises to 0.064, and the run stops at with . Up to , the maxima of of the MAC and MINI runs are nearly the same. With MINI snapshots, the relative snapshot certificates are between 0.0034 and 0.0056, and the run stops at with 0.0095. For both solvers, the tolerance is determined by the worst-resolved selected parameter.
Linear transport equations.
Non-intrusive level 0. We solve (21) on with , , and the data of [12]: , for and elsewhere, and for and elsewhere. The solution jumps across the characteristic through , which turns with . Since this line is parallel to , the normal component of is continuous across it, and . The side is an inflow side for , and the side is an inflow side for . Non-intrusive level 0 uses , which contains the non-intrusive level 2 pairs. The line consists of edges of the initial mesh of squares, and is a vertex of this mesh, so is integrated exactly on every mesh. Over the selected parameters, is between 0.79 and 1.06. We use , the first parameter , and training and test sets of and uniformly random points. The run stops at after 184 truth solves, on 88,616 elements, with on both the training and the test set (Figure 5). The first three parameters are and the training points closest to 0 and . The mesh is refined along the characteristics through at the selected parameters, which form a fan of 32 lines (Figure 6(a)).
Figure 5. Problem (21) with , , and the data of [12]: Algorithm 3.2 with the relative certificate, , and , with least-squares snapshots (non-intrusive level 0) and with upwind finite volume snapshots and the flux of section 6.2 (non-intrusive level 2). The panels are as in Figure 2; in (a), the certificates are relative.
Figure 6. The non-intrusive level 0 run of Figure 5. (a) The final mesh with 88,616 elements. (b) At ten test parameters on the final mesh: the relative certificate of the final model, the errors of and of the least-squares solution divided by , and the share of the inflow term in .
The errors with respect to the exact solution are not certified (Remark 6.3). The exact solution is evaluated along the characteristics, and the errors are computed by a composite rule with 16 subtriangles in each element and a 12-point rule on each. At ten test parameters, is between and . For , is between 0.033 and 0.090, and for the least-squares solution on the final mesh, is between 0.032 and 0.075 (Figure 6(b)). The share of the inflow term in is between 0.05 and 0.12 at the test parameters below and between and at those above , where the inflow side carries the datum . The error of is at most 1.41 times that of on the same mesh, so the gap between the error and the certificate is already present in the truth solution: the certificate is the error in , which is not equivalent to the norm (Remark 6.3). On uniform meshes of to squares, at and , decreases at the rates 0.92 and 0.73 in , and the relative error at the rates 0.36 and 0.30. For and , which is also an example of [12] and where only has a kink, the rates are 1.00 and 0.98 for and 0.99 and 0.89 for the error.
Non-intrusive level 2. We use the upwind finite volume scheme, that is, the case of § 6.2. Its numerical fluxes give the flux directly, without a linear solve. The run stops at , as at non-intrusive level 0, with (Figure 5). The two levels select the same parameters to within , except that steps 14 and 15 and steps 27 and 28 are interchanged. The finite volume snapshots are less accurate: their certificate is 1.41 to 1.92 times (median 1.53) the non-intrusive level 0 certificate on the same mesh. Hence the final mesh has 174,447 elements instead of 88,616, and the run needs 271 truth solves instead of 184. For and , with , both levels stop at , the median of the ratio is 1.67, and the final meshes have 63,354 and 157,679 elements.
Concluding remarks
For a first-order system least-squares formulation, the square root of the functional at any conforming pair is the norm of the residual of the continuous problem at the pair. This separates the computation of the snapshots from the reduction and the certification. The truth solver only affects the accuracy of the snapshots, which their certificates measure; the online reduced problem, the certificate, and the greedy algorithms are the same for all solvers. The online reduced problem needs no inf–sup condition on the reduced spaces, and its error certificate needs no stability constant. In the experiments with adaptive meshes, the reduced dimension hardly depends on the solver, while a less accurate solver needs finer truth meshes.
References
- [1]M. Ali, K. Steih, and K. Urban. Reduced basis methods with adaptive snapshot computations. Adv. Comput. Math., 43:257–294, 2017.DOI
- [2]R. Becker, D. Capatina, and R. Luce. Reconstruction-based a posteriori error estimators for the transport equation. In Numerical Mathematics and Advanced Applications 2011, pages 13–21. Springer, Berlin, 2013.DOI
- [3]P. Benner, A. Cohen, M. Ohlberger, and K. Willcox, editors. Model Reduction and Approximation: Theory and Algorithms. SIAM, Philadelphia, 2017.
- [4]P. B. Bochev and M. D. Gunzburger. Least-Squares Finite Element Methods. Springer, New York, 2009.
- [5]J. H. Bramble, R. D. Lazarov, and J. E. Pasciak. A least-squares approach based on a discrete minus one inner product for first order systems. Math. Comp., 66(219):935–955, 1997.
- [6]Z. Cai, R. D. Lazarov, T. A. Manteuffel, and S. F. McCormick. First-order system least squares for second-order partial differential equations: Part I. SIAM J. Numer. Anal., 31:1785–1799, 1994.DOI
- [7]Z. Cai, B. Lee, and P. Wang. Least-squares methods for incompressible Newtonian fluid flow: linear stationary problems. SIAM J. Numer. Anal., 42(2):843–859, 2004.DOI
- [8]Z. Cai, X. Ye, and S. Zhang. Discontinuous Galerkin finite element methods for interface problems: a priori and a posteriori error estimations. SIAM J. Numer. Anal., 49(5):1761–1787, 2011.DOI
- [9]Z. Cai and S. Zhang. Flux recovery and a posteriori error estimators: conforming elements for scalar elliptic equations. SIAM J. Numer. Anal., 48:578–602, 2010.DOI
- [10]J. H. Chaudhry, L. N. Olson, and P. Sentz. A least-squares finite element reduced basis method. SIAM J. Sci. Comput., 43(2):A1081–A1107, 2021.arxiv.org/abs/2003.04555
- [11]W. Dahmen, C. Huang, C. Schwab, and G. Welper. Adaptive Petrov–Galerkin methods for first order transport equations. SIAM J. Numer. Anal., 50:2420–2445, 2012.
- [12]W. Dahmen, C. Plesken, and G. Welper. Double greedy algorithms: reduced basis methods for transport dominated problems. ESAIM Math. Model. Numer. Anal., 48(3):623–633, 2014.
- [13]H. De Sterck, T. A. Manteuffel, S. F. McCormick, and L. Olson. Least-squares finite element methods and algebraic multigrid solvers for linear hyperbolic PDEs. SIAM J. Sci. Comput., 26(1):31–54, 2004.DOI
- [14]H. De Sterck, T. A. Manteuffel, S. F. McCormick, and L. Olson. Numerical conservation properties of H(div)-conforming least-squares finite element methods for the Burgers equation. SIAM J. Sci. Comput., 26(5):1573–1597, 2005.DOI
- [15]A. Ern, A. F. Stephansen, and M. Vohralík. Guaranteed and robust discontinuous Galerkin a posteriori error estimates for convection–diffusion–reaction problems. J. Comput. Appl. Math., 234(1):114–130, 2010.DOI
- [16]B. Haasdonk. Reduced basis methods for parametrized PDEs—a tutorial introduction for stationary and instationary problems. In P. Benner, A. Cohen, M. Ohlberger, and K. Willcox, editors, Model Reduction and Approximation: Theory and Algorithms, pages 65–136. SIAM, Philadelphia, 2017.
- [17]J. S. Hesthaven, C. Pagliantini, and G. Rozza. Reduced basis methods for time-dependent problems. Acta Numer., 31:265–345, 2022.DOI
- [18]J. S. Hesthaven, B. Peherstorfer, and B. Unger. Nonlinear model reduction for transport-dominated problems. Acta Numer., 35:173–272, 2026.
- [19]J. S. Hesthaven, G. Rozza, and B. Stamm. Certified Reduced Basis Methods for Parametrized Partial Differential Equations. SpringerBriefs in Mathematics. Springer, Cham, 2016.DOI
- [20]J. S. Hesthaven, B. Stamm, and S. Zhang. Efficient greedy algorithms for high-dimensional parameter spaces with applications to empirical interpolation and reduced basis methods. ESAIM Math. Model. Numer. Anal., 48:259–283, 2014.
- [21]J. S. Hesthaven and S. Ubbiali. Non-intrusive reduced order modeling of nonlinear problems using neural networks. J. Comput. Phys., 363:55–78, 2018.DOI
- [22]D. B. P. Huynh, G. Rozza, S. Sen, and A. T. Patera. A successive constraint linear optimization method for lower bounds of parametric coercivity and inf-sup stability constants. C. R. Math. Acad. Sci. Paris, 345:473–478, 2007.DOI
- [23]O. A. Karakashian and F. Pascal. A posteriori error estimates for a discontinuous Galerkin approximation of second-order elliptic problems. SIAM J. Numer. Anal., 41(6):2374–2399, 2003.DOI
- [24]M. Kast, M. Guo, and J. S. Hesthaven. A non-intrusive multifidelity method for the reduced order modeling of nonlinear problems. Comput. Methods Appl. Mech. Engrg., 364:112947, 2020.DOI
- [25]Z. Li and S. Zhang. Non-intrusive least-squares functional a posteriori error estimator: linear and nonlinear problems with plain convergence. Comput. Math. Appl., 191:275–295, 2025.arxiv.org/abs/2407.13253
- [26]Y. Liang and S. Zhang. Robust augmented mixed finite element methods for Stokes interface problems with discontinuous viscosity in multiple subdomains. Comput. Math. Appl., 210:25–42, 2026.
- [27]Q. Liu and S. Zhang. Adaptive least-squares finite element methods for linear transport equations based on an H(div) flux reformulation. Comput. Methods Appl. Mech. Engrg., 366:113041, 2020.arxiv.org/abs/1807.01524
- [28]Y. Maday. Reduced basis method for the rapid and reliable solution of partial differential equations. In Proceedings of the International Congress of Mathematicians, Madrid, 2006, volume III, pages 1255–1270. Eur. Math. Soc., Zürich, 2007.DOI
- [29]M. Ohlberger and S. Rave. Reduced basis methods: success, limitations and future challenges. In Proceedings of the Conference Algoritmy 2016, pages 1–12, 2016.arxiv.org/abs/1511.02021
- [30]G. Padula, M. Girfoglio, and G. Rozza. A brief review of reduced order models using intrusive and non-intrusive techniques. Proc. Appl. Math. Mech., 24(4):e202400210, 2024.arxiv.org/abs/2406.00559
- [31]A. Quarteroni, A. Manzoni, and F. Negri. Reduced Basis Methods for Partial Differential Equations: An Introduction, volume 92 of UNITEXT. Springer, Cham, 2016.DOI
- [32]A. Quarteroni, G. Rozza, and A. Manzoni. Certified reduced basis approximation for parametrized partial differential equations and applications. J. Math. Ind., 1:Art. 3, 2011.DOI
- [33]G. Rozza, D. B. P. Huynh, and A. Manzoni. Reduced basis approximation and a posteriori error estimation for Stokes flows in parametrized geometries: roles of the inf-sup stability constants. Numer. Math., 125(1):115–152, 2013.DOI
- [34]G. Rozza, D. B. P. Huynh, and A. T. Patera. Reduced basis approximation and a posteriori error estimation for affinely parametrized elliptic coercive partial differential equations: application to transport and continuum mechanics. Arch. Comput. Methods Eng., 15:229–275, 2008.DOI
- [35]G. Rozza and K. Veroy. On the stability of the reduced basis method for Stokes equations in parametrized domains. Comput. Methods Appl. Mech. Engrg., 196:1244–1260, 2007.DOI
- [36]Y. Wu and S. Zhang. Goal-oriented error estimation for least-squares finite element methods via physically meaningful adjoint PDEs. arXiv:2607.23850, 2026.arxiv.org/abs/2607.23850
- [37]M. Yano. A reduced basis method with exact-solution certificates for steady symmetric coercive equations. Comput. Methods Appl. Mech. Engrg., 287:290–309, 2015.
- [38]M. Yano. A minimum-residual mixed reduced basis method: Exact residual certification and simultaneous finite-element reduced-basis refinement. ESAIM Math. Model. Numer. Anal., 50(1):163–185, 2016.DOI
- [39]M. Yano. A reduced basis method for coercive equations with an exact solution certificate and spatio-parameter adaptivity: Energy-norm and output error bounds. SIAM J. Sci. Comput., 40:A388–A420, 2018.DOI
- [40]S. Zhang. Primal-dual reduced basis methods for convex minimization variational problems: Robust true solution a posteriori error certification and adaptive greedy algorithms. SIAM J. Sci. Comput., 42(6):A3638–A3676, 2020.arxiv.org/abs/1810.04073
- [41]S. Zhang. A simple approach for coerciveness of first-order system least-squares methods for general second-order elliptic PDEs. Comput. Math. Appl., 130:98–104, 2023.DOI
- [42]S. Zhang. Least-squares finite element methods with weakly imposed boundary conditions: norm and error equivalences, over-penalization, and fully discontinuous discretizations. arXiv:2610.17678, 2026.arxiv.org/abs/2610.17678
- [43]S. Zhang. Non-intrusive least-squares reduced basis methods: Guaranteed bounds and sharp estimates for exact quantities of interest. In preparation, 2026.





