Abstract
We present a controlled computational comparison of quasi-Monte Carlo (QMC) estimators coupled with symmetric interior-penalty discontinuous Galerkin (SIPG) and hybridizable discontinuous Galerkin (HDG) discretizations for parametric elliptic problems. Both implementations use identical randomly shifted Halton points, coefficient fields, mesh families, polynomial degrees, and quantities of interest. A conditional total-error decomposition distinguishes parametric integration from spatial discretization error, while global-coupling counts characterize the effect of HDG static condensation. One-dimensional tests verify the discrete formulations and investigate nested finite-reference QMC discrepancies; two-dimensional manufactured-solution experiments assess spatial convergence for constant and nonconstant coefficients. This principal performance study uses coefficient-mode precomputation and optimized assembly for both methods, with five timing repetitions at each of five two-dimensional mesh resolutions. For , , and four shared QMC points, the HDG-QMC implementation has lower median wall-clock cost than DG-QMC at every tested resolution (), with measured DG-to-HDG total-time ratios between 2.99 and 4.94. A separate SuperLU ordering check at and 96 shows that this ratio depends on the sparse factorization setting: with a symmetric MMD_AT_PLUS_A ordering, it falls to about 1.8, although HDG remains faster with all tested settings. HDG incurs greater element-local assembly and condensation costs but substantially lowers the sparse global-solve time and sampled peak process memory. A separate variable-coefficient manufactured problem with an exactly known expected quantity of interest enables an exploratory accuracy-versus-cost comparison of 80 configurations, eight independent QMC shifts, and three timing repetitions. At two uncertainty-screened accuracy thresholds, the least expensive configurations in the tested grid favor DG-QMC, illustrating that the computational ranking depends on the discretization and workload. For the original model, an additional eight-shift study with an independently seeded numerical reference and mesh/sample sensitivity diagnostics reports exploratory cost comparisons for two prescribed screening thresholds, where the least-cost tested small-grid choices also favor DG-QMC. The accuracy–cost selections are confined to small meshes and do not validate the large-mesh timing advantage at a prescribed accuracy. These results are specific to implementation and sparse direct solver and do not establish solver-independent or certified optimal equal-error costs.
Keywords:
quasi-Monte Carlo; discontinuous Galerkin; hybridizable discontinuous Galerkin; weak formulation; parametric elliptic PDEs; uncertainty quantification MSC:
65N30; 65C05; 65N12; 65D32
1. Introduction
Uncertainty quantification for partial differential equations often requires solving a deterministic boundary-value problem for many values of uncertain parameters. In a parametric elliptic model, the diffusion coefficient depends on a vector
and the expected value of a quantity of interest becomes a high-dimensional integral over the parameter domain. Quasi-Monte Carlo (QMC) methods approximate this integral using deterministic or randomized low-discrepancy points. For each point in the QMC rule, one deterministic PDE must be solved.
We compare
The QMC point set is identical in both methods. Therefore, differences in accuracy at fixed spatial resolution, globally coupled degrees of freedom, memory demand, or computational cost can be traced to the deterministic spatial discretization and its linear algebra rather than to a different sampling strategy. Hybridization does not alter the QMC quadrature rule; its potential advantage lies in replacing a globally coupled element system by local element solves together with a lower-dimensional global trace system.
The analysis is written in dimension-independent form for and , while the numerical implementations serve different purposes. The one-dimensional code verifies the method formulations and their common-QMC sampling behavior. This computational performance study is two-dimensional and sparse, so the effect of hybridization is evaluated with realistic facet coupling and sparse linear algebra.
2. Related Work and Positioning
A classical background on Monte Carlo and quasi-Monte Carlo integration was given by Caflisch [1]. Nuyens surveyed the construction of lattice and polynomial lattice rules [2]; these studies provide useful QMC background but are distinct from the randomly shifted Halton rule employed in the present experiments.
This work lies at the intersection of quasi-Monte Carlo integration for parametric PDEs, discontinuous Galerkin discretization, and hybridization. Kaarnioja and Rupp developed tailored QMC cubatures for nonconforming DG approximations of elliptic PDEs with random coefficients, treating affine-uniform and lognormal models and proving that the resulting QMC convergence behavior is comparable to that obtained with conforming finite elements [3]. Their theoretical analysis concerns lattice-rule QMC cubature and therefore does not supply a convergence guarantee for the randomly shifted Halton points used in the present experiments. It is cited for the broader DG-QMC setting, not as a theorem applying to this sampling rule.
Hybridizable DG methods reduce global coupling by introducing a trace variable on the mesh skeleton and eliminating element-interior variables locally. The unifying hybridization framework of Cockburn, Gopalakrishnan, and Lazarov provides the standard structural basis for this approach [4]. Beyond elliptic diffusion problems, Nehmetallah et al. developed an explicit HDG method for the three-dimensional time-domain Maxwell equations, illustrating the applicability of hybridization to high-order time-domain electromagnetic discretizations [5]. In stochastic computation, Li and Luo combined an HDG discretization with a multilevel Monte Carlo ensemble strategy for stochastic parabolic problems and established rigorous error estimates [6]. That setting differs from the elliptic, same-sample QMC comparison considered here, but it confirms that hybridization can be profitably combined with sampling-based uncertainty quantification.
Computational comparisons of hybridized and continuous Galerkin formulations have also been studied directly in the deterministic setting. Kirby, Sherwin, and Cockburn compared CG and HDG implementations for two-dimensional elliptic problems and showed that the relative efficiency depends on polynomial order, global-system structure, and implementation costs [7]. Yakovlev, Moxey, Kirby, and Sherwin extended this comparison to three dimensions and emphasized that the observed performance also depends strongly on the linear solver and problem regime [8]. These studies provided an important deterministic baseline for the present work. Our setting differs in that DG and HDG are embedded in the same parametric QMC loop, so the deterministic cost is incurred repeatedly over a common set of parameter samples.
Our contribution is a controlled computational comparison of established DG and HDG discretizations within the same QMC setting. The QMC rule, DG formulation, HDG formulation, conditional error decomposition, and global degree-of-freedom estimates are not presented as new. Instead, this study fixed the parameter samples, coefficient model, mesh family, polynomial degree, and quantity of interest and then compared the resulting deterministic solvers through spatial accuracy, global coupling, assembly and factorization/solve costs, and reproducibility. The purpose is to quantify how hybridization changes the deterministic cost accumulated inside a sampling-based uncertainty-quantification workflow.
3. Parametric Elliptic Model Problem
Let , with in the intended numerical experiments, be a bounded Lipschitz domain. For each parameter vector , consider
The diffusion coefficient is assumed uniformly positive:
A typical affine parametric coefficient is
with and chosen so that (2) holds. In a one-dimensional implementation, one may take, for example,
with sufficiently small.
The quantity of interest is denoted by
For example, one may use the spatial average
The target statistical quantity is
where is the parameter density. For uniform parameters on , .
4. QMC Estimator
Let be a QMC point set. For a spatial method , the QMC estimator is
The same points are used in DG-QMC and HDG-QMC. Consequently, the comparison is not designed to show that HDG changes QMC convergence. Instead, it measures how the deterministic solver used inside the sampling loop affects the cost of computing (8).
The Python code accompanying this paper uses a shifted Halton sequence. Points are shifted modulo one and mapped to by
5. Error Decomposition and Analytical Comparison
We do not reproduce the full parametric regularity and QMC theory here; instead, we isolate the error decomposition needed for a fair DG–HDG comparison. Let
Define the exact-solution QMC estimator
Then, for either spatial method,
The first term is purely a sampling/integration error and is common to DG-QMC and HDG-QMC because the same QMC points are used. The second term is the spatial discretization contribution evaluated at those same parameter samples.
5.1. A Conditional Total-Error Estimate
Remark 1.
(Conditional total-error estimate).
Assume that there exist a normed space X and constants and , independent of and h, such that
For the elliptic DG and HDG discretizations considered here, estimates of this type require uniform ellipticity of the coefficient, a shape-regular mesh family, and sufficient spatial regularity of the exact solution uniformly with respect to the parameter; see, for example, the standard SIPG and hybridization analyses in [4,9]. Suppose also that the quantity of interest is Lipschitz-continuous in the same norm,
Finally, assume that the selected QMC rule and integrand satisfy an estimate of the form
for some . Such a bound depends on the regularity of the parameter-to-output map and on the particular QMC construction; a general QMC background is given in [1]. Under these assumptions, the triangle inequality in (11) and the Lipschitz estimate give
Indeed,
Equation (14) is therefore an assumption used to display the error separation; it is not a convergence theorem proved in this paper. In particular, we do not derive or claim a specific value of for the shifted Halton sequence used in the numerical experiments. The common term concerns the exact integrand evaluated at the common QMC points; using the same points does not, by itself, imply identical finite-sample errors for the two discrete DG and HDG integrands.
Equation (15) consequently separates a common exact-integrand sampling contribution from method-dependent spatial discretization and computational costs. Any observed DG–HDG difference must be interpreted through the latter terms and through discrete numerical experiments, rather than as a change in the underlying QMC rule.
5.2. Balancing Sampling and Spatial Errors
If both contributions in (15) are of comparable size, a natural asymptotic balance is
For this reason, this numerical study reports not only error versus sample count and mesh size but also error versus computational cost. A method that is faster at fixed is not necessarily better at fixed accuracy unless the spatial errors are comparable.
6. Hybridization and Global-Coupling Complexity
The principal computational distinction between DG and HDG is the dimension and structure of the globally coupled linear system. Let denote the number of elements and the number of interior facets.
For a scalar DG method using total-degree polynomials on triangles in two dimensions,
For the condensed HDG system with a scalar trace in on every interior edge,
For a large conforming triangular mesh away from boundary effects, , giving the indicative ratio
Thus, the reduction in globally coupled unknowns becomes more pronounced as p increases. This count does not include the local HDG flux and scalar variables, because those are eliminated elementwise and do not enter the global condensed system. The exact finite-n ratio for the structured triangular meshes used in the two-dimensional benchmark is reported in Section 13.5.
For tensor-product elements on a quadrilateral mesh,
and, for large structured quadrilateral meshes, , so
These counts motivated the two-dimensional sparse study, but they do not imply a runtime advantage by themselves. Local mixed-system assembly, static condensation, sparsity patterns, factorization strategy, solver behavior, preconditioning, and implementation constants all affect wall-clock time. We therefore compare both global-system size and measured cost rather than infer speed from degree-of-freedom counts alone.
7. Mesh Notation and Discrete Spaces
Let be a shape-regular partition of into intervals when or triangles/quadrilaterals when . Let denote an element, its diameter, and its boundary. The collection of all facets is denoted by , with interior facets and boundary facets .
For a polynomial degree , define the broken scalar space
and, for an integer , the broken vector space
The two reference implementations use different local HDG polynomial pairs. In the one-dimensional verification code, we use
where a trace function on a one-dimensional facet (an endpoint) has one scalar degree of freedom. This mixed-degree choice describes the verified one-dimensional QMC implementation; it is not a general well-posedness requirement for HDG in one dimension. A separate reconstruction of the earlier equal-order endpoint-trace prototype identified an assembly error in the second local HDG weak equation: the term is assembled with the derivatives applied to the trial flux basis instead of the test basis. Correcting that transposed volume-coupling matrix while retaining restores the expected behavior on the constant-coefficient verification problem. The defect is therefore specific to the historical prototype and is not evidence of an inherent instability of equal-order one-dimensional HDG. The principal two-dimensional sparse implementation instead uses the standard equal-order pair
Accordingly, the weak form below is written with , where for the one-dimensional verification and for the principal two-dimensional implementation. The one-dimensional numerical results should therefore be interpreted as tests of that stated mixed-degree implementation, not as evidence against alternative equal-order one-dimensional HDG discretizations.
For HDG, define the skeleton trace space
The subspace incorporating Dirichlet data is written as
where denotes an appropriate projection onto the trace space. For homogeneous Dirichlet data, is used.
For broken inner products, we write
8. DG Weak Formulation: Symmetric Interior Penalty Method
The DG method is written directly for the primal elliptic problem (1). On an interior facet, with outward normals and , for a scalar function w and a vector field , define
On a boundary facet, set
The symmetric interior penalty DG method seeks such that
The bilinear form is
where the penalty is chosen as
For SIPG coercivity, must be chosen sufficiently large under the stated mesh-regularity and coefficient assumptions; see, e.g., the classical interior-penalty analysis in [9]. In the present two-dimensional implementation, the coefficient factor in (33) is evaluated directly as at each edge quadrature point (without arithmetic or harmonic averaging of cellwise coefficients), and is the minimum of the adjacent triangle heights normal to F, . The same convention applies on boundary facets with the single incident triangle. The two-dimensional experiments fix ; its empirical robustness is examined in Section 13.3.
For Dirichlet data imposed weakly by Nitsche-type DG boundary terms, the linear functional is
For homogeneous Dirichlet data, , so only the volume term remains in (34). The DG method produces a globally coupled system over all element degrees of freedom.
9. Full HDG Weak Formulation
The HDG method is written in mixed form. Introduce the flux
Then, (1) becomes the first-order system
The HDG method seeks
such that, for all ,
The numerical normal flux is defined elementwise by
where is a stabilization parameter. We use the scaling
This coefficient-weighted, degree- and mesh-dependent scaling is a fixed design choice intended to maintain the relative influence of facet stabilization under mesh refinement and changes in polynomial degree. It is consistent with the inverse-trace scaling commonly used in discontinuous Galerkin penalty formulations, but the present experiments do not prove that this scaling is necessary, optimal, or preferable to a suitable mesh-independent stabilization for HDG. For the two-dimensional implementation, the representative coefficient in (42) means the Gauss–Legendre quadrature approximation of the mean of a along the local facet , namely, for quadrature weights on the reference interval , where . The local size means the triangle height corresponding to that facet; thus, the implemented stabilization is constant along each local facet. The stabilization factors are in the one-dimensional verification study and in the two-dimensional experiments. The latter is tested in Section 13.3. Equation (38) is the weak form of the constitutive relation . Equation (39) is the weak form of local conservation. Equation (40) enforces conservation of the numerical flux across interior facets.
For boundary facets, the trace condition is imposed through
For homogeneous boundary data, this reduces to on .
Local Solvers and Global Trace System
A key feature of HDG is that and are locally coupled to the trace . For a fixed trace value on , the element Equations (38) and (39) can be solved independently on each element. Eliminating element variables produces a global system only for the skeleton unknown . After solving the skeleton system, the element variables are recovered locally.
Thus, the computational comparison between DG-QMC and HDG-QMC should be understood as follows: DG solves one global system involving element degrees of freedom. HDG solves many local element systems plus one global trace system. In high-order or multidimensional settings, this difference in globally coupled unknowns is the main reason HDG may reduce the cost per QMC sample.
10. Discretization Diagrams
This section gives visual summaries of the sampling loop and of the difference between DG and HDG coupling.
Figure 1 illustrates the common QMC workflow used for both DG-QMC and HDG-QMC.
Figure 1.
QMC uncertainty-quantification workflow. For each parameter point, the coefficient is constructed and the deterministic PDE is solved using DG or HDG. The resulting quantities of interest are then averaged to obtain the QMC estimator.
Figure 2 compares the globally coupled element unknowns in DG with the condensed trace unknowns in HDG.
Figure 2.
Two-dimensional coupling topology on the same four-triangle patch. In DG (a), the element-based scalar unknowns enter a global matrix and couple across each interior facet (red double arrows). In HDG (b), element-local scalar and flux unknowns (open circles) are eliminated by static condensation; the global system retains only trace unknowns (blue squares) on all interior facets of the mesh skeleton (blue segments). Exterior Dirichlet traces are prescribed, not additional global unknowns. Marker counts and positions are schematic rather than actual polynomial degrees of freedom.
Figure 3 illustrates the local elimination, global trace solve, and local recovery steps of HDG.
Figure 3.
HDG local elimination and global trace solve. The global solve is posed on the mesh skeleton; element variables are reconstructed afterward.
11. Discrete Quantity of Interest
For either method, the discrete quantity of interest is computed from the scalar approximation:
For HDG, denotes the element scalar variable recovered after solving the trace system.
12. One-Dimensional Verification and Numerical Results
The one-dimensional implementation was used to verify the DG and HDG spatial schemes and to compare their discrete quantities of interest under common QMC sample points. All sampling experiments described in this section use a fixed reference mesh with elements; the results were evaluated against method-specific discrete QMC references rather than an exact parametric integral. We did not use one-dimensional dense-solver runtimes to infer a solver-independent efficiency ranking. Indeed, for fixed degree p, the one-dimensional SIPG matrix was block banded, and the HDG trace matrix was tridiagonal, so the measured cost strongly depended on whether the linear solver exploited these structures. Comparative runtime evidence was therefore restricted to the two-dimensional sparse study. The mixed-degree one-dimensional HDG tests verified only their own formulation; they did not verify the distinct equal-order two-dimensional HDG implementation, which was assessed by the two-dimensional spatial tests.
Auxiliary diagnostic of the historical equal-order prototype.
For the one-dimensional constant-coefficient problem on with homogeneous Dirichlet data, the exact solution is , and the integral quantity of interest is . A controlled reconstruction of the historical implementation compared the original local assembly with an otherwise identical version in which the volume-coupling matrix was transposed to represent correctly. At , the corrected absolute QoI error decreased from ( elements) to () and (); for and , the corrected QoI agreed with to floating-point precision on all three meshes. The incorrect historical assembly exhibited severely distorted estimates and, at odd degrees, a nearly trace-independent local flux response. This check diagnoses a specific historical assembly mistake; it neither changes the mixed-degree data reported below nor constitutes a validation of the separate two-dimensional HDG implementation. The reconstruction script and its output are supplied as an auxiliary 1D diagnostic in the Supplementary Material.
Reproducibility.
The one-dimensional experiments used the fixed shifted-Halton seed 20260710 and the same parameter points for both spatial methods. The finite-reference discrepancies below are not independent integration-error estimates or solver-efficiency benchmarks.
12.1. Nested Finite-Reference Discrepancies for Low-Order Cases
The reported discrepancy is defined relative to a method-specific finite-sample discrete reference:
For the one-dimensional sampling experiments, we used
with in every table. These sample counts were already used in the original experiments; the construction below clarifies their dependence rather than increasing the reference size.
Construction and Dependence of the Reference
For each parameter dimension s, a single randomly shifted Halton sequence is constructed with seed 20260710. The first points define , and the first N points of that same sequence define ; hence, the two estimates are nested and statistically dependent under the random shift. Both methods use the same parameter points, but the reference values are computed separately from their respective discrete quantities of interest. In particular, writing for the average of the final discrete evaluations gives the exact identity
Consequently, the values in Table 1, Table 2 and Table 3 are nested finite-reference discrepancies, not independent estimates of the true QMC integration error and not standard errors. In particular, a small discrepancy may partly reflect dependence on the reference, and its decay cannot by itself establish a QMC convergence rate. The finite reference also leaves an unknown integration error relative to the exact expected discrete quantity of interest. Local increases or decreases should therefore be interpreted descriptively rather than as asymptotic convergence evidence.
Table 1.
Nested finite-reference discrepancies for DG-QMC and HDG-QMC (, ; ). The N-point sets are prefixes of the reference sequence.
Table 2.
Nested finite-reference discrepancies for DG-QMC and HDG-QMC (, ; ). The N-point sets are prefixes of the reference sequence.
Table 3.
Nested discrete finite-reference discrepancies (, , , ) alongside the continuous-QoI estimator standard deviation over 24 independent random shifts. The first two columns are correlated prefix-to-reference differences; the last is a separate randomization diagnostic.
Figure 4 shows the nested finite-reference discrepancies for DG-QMC and HDG-QMC with and .
Figure 4.
Nested finite-reference discrepancy versus QMC sample count for , . The DG-QMC and HDG-QMC curves nearly coincide.
Figure 5 shows the nested finite-reference discrepancies for DG-QMC and HDG-QMC with and .
Figure 5.
Nested finite-reference discrepancy versus QMC sample count for , . The DG-QMC and HDG-QMC curves nearly coincide.
12.2. Higher Parameter Dimension and Higher Polynomial Degree
The case and combines larger parameter dimension with a higher-order spatial approximation. The local rate between and depends strongly on the finite QMC reference: evaluating the continuous one-dimensional quantity of interest with 16,384, 32,768, 65,536 gives estimated rates of approximately , , , and , respectively. This sensitivity demonstrates why a single local rate is not a reliable characterization of asymptotic QMC convergence. The numerical tables therefore report nested finite-reference discrepancies without local-rate estimates.
To characterize variability under randomization, we evaluated the continuous one-dimensional quantity of interest using high-order spatial quadrature with 24 independently randomly shifted Halton sequences. In this verification setting, the continuous-QoI estimates and the corresponding , DG and HDG estimates agree to approximately . The standard deviations below were computed across the continuous-QoI estimates from the independent shifts, rather than from repeated finite-element simulations; they quantify the sensitivity of the QMC estimator to the random shift.
Figure 6 shows the nested finite-reference discrepancies for DG-QMC and HDG-QMC with and .
Figure 6.
Nested finite-reference discrepancy versus QMC sample count for , . The DG-QMC and HDG-QMC curves nearly coincide.
Figure 7 illustrates the decrease in sampling variability as the number of QMC points increases. The standard deviation across independent random shifts follows a decreasing trend, indicating reduced shift-to-shift variability in the estimator at larger sample sizes. At in the example, the nested DG and HDG discrepancies are approximately , while the standard deviation of the independently shifted continuous-QoI estimators is approximately . These statistics answer different questions; in particular, the much smaller nested-reference discrepancy must not be read as evidence of equally small integration uncertainty. Together with the reference-size sensitivity reported above, the independent-shift analysis cautions against inferring convergence rates from individual nested discrepancies.
Figure 7.
Standard deviation of the QMC estimates of the continuous one-dimensional quantity of interest for 24 independently randomly shifted Halton sequences as a function of the sample size N.
12.3. Interpretation of One-Dimensional Results
In the one-dimensional verification, the fixed stabilization choices were and . The parameter-sensitivity and numerical positive-definiteness checks discussed later concern the two-dimensional implementation only and do not establish optimality or a coercivity threshold for the one-dimensional scheme.
The sampled DG-QMC and HDG-QMC estimates display closely matching behavior with common shifted Halton points at fixed spatial resolution. This agreement is numerical, not a theorem asserting the equality of the sampling errors for the two distinct discrete integrands. The one-dimensional results are thus interpreted as a verification study: no claim about a solver-independent DG/HDG runtime crossover or relative computational efficiency is based on these experiments. Because the one-dimensional HDG implementation uses a mixed-degree local flux space, whereas the two-dimensional method uses an equal-order space, these tests do not constitute a verification of the separate two-dimensional HDG implementation; the latter was assessed independently through its manufactured-solution convergence tests.
12.4. Globally Coupled Degrees of Freedom
The globally coupled degrees of freedom also provide a structural comparison. In 1D, the DG globally coupled unknowns grow like , while the HDG trace unknowns are associated with interior mesh nodes. This 1D behavior should not be overinterpreted as a two-dimensional result because, in two dimensions, the HDG trace space lives on edges and also grows with p.
Table 4 compares the numbers of globally coupled degrees of freedom for DG and HDG in the one-dimensional implementation.
Table 4.
Globally coupled degrees of freedom in the one-dimensional implementation.
Figure 8 illustrates the growth in globally coupled degrees of freedom for the two methods as the polynomial degree increases.
Figure 8.
DG globally coupled degrees of freedom and HDG trace degrees of freedom versus polynomial degree in the one-dimensional implementation.
13. Two-Dimensional Sparse Numerical Study
The two-dimensional study was the main performance experiment. It tested whether the reduction in global coupling predicted in Section 6 produces a measurable cost reduction while DG and HDG retain comparable spatial and QMC accuracy. The implementation uses sparse linear algebra on structured triangular meshes of the unit square and the equal-order HDG choice in (25).
The numerical data, generated tables, and PGFPlots figures were obtained from the computational outputs produced by the accompanying Python implementation. The computational code and supporting numerical data are provided in the supplementary ZIP archive submitted with this manuscript. The numerical configurations, historical environment declarations and thread settings were retained in the run manifests. The author-confirmed correction to the principal benchmark environment and the unresolved accuracy–cost version labels are distinguished below. An analytic lower bound for the diffusion coefficient is stated explicitly. For the two-dimensional timing study, BLAS/OpenMP threading was restricted to one thread so that the reported wall-clock times were less sensitive to machine-dependent thread-pool behavior.
13.1. Reference Problem and Sparse Discretizations
The physical domain is
For the QMC experiments, homogeneous Dirichlet data were imposed, and the source was . The affine-parametric diffusion coefficient has the form
Here, . Positive integer mode pairs are ordered by increasing and then by increasing . The first eight are
Since , the coefficient satisfies
independent of the parameter dimension s.
The unit square is partitioned into an Cartesian grid, with each square split into two counter-clockwise triangles, giving
The DG method is assembled as a sparse SIPG system. The HDG method forms the element-local mixed systems, eliminates the element variables by static condensation, assembles the sparse global trace system over interior edges, solves for the trace, and finally recovers the local scalar and flux variables.
The principal settings for the two-dimensional calculations are collected in Table 5. The shifted Halton rule uses an additive random shift modulo one with seed 20260710 (the dimension-dependent shift generator is specified in the supplementary implementation). Element integrals use a Duffy-product Gauss–Legendre rule on the reference triangle, with order per one-dimensional factor. Facet integrals use Gauss–Legendre quadrature with order in the equal-order p experiments.
Table 5.
Numerical configuration for the two-dimensional spatial, sampling, and optimized timing studies.
13.2. Manufactured-Solution Spatial Convergence
Before any QMC timing claims are considered, both spatial discretizations are verified against the manufactured solution
for which
The numerical tables report the error and the QoI error for along the prescribed mesh-refinement sequence. Table 6 reports the DG spatial-convergence results for .
Table 6.
Two -dimensional DG spatial-convergence results for .
Figure 9 compares the spatial -error convergence of DG and HDG for .
Figure 9.
Two-dimensional spatial -error convergence for .
Table 7 reports the corresponding HDG spatial-convergence results for .
Table 7.
Two -dimensional HDG spatial-convergence results for .
Figure 10 compares the spatial -error convergence of DG and HDG for .
Figure 10.
Two -dimensional spatial -error convergence for .
Table 8 reports the DG spatial-convergence results for .
Table 8.
Two -dimensional DG spatial-convergence results for .
Table 9 reports the corresponding HDG spatial-convergence results for .
Table 9.
Two -dimensional HDG spatial-convergence results for .
Figure 11 compares the spatial -error convergence of DG and HDG for .
Figure 11.
Two -dimensional spatial -error convergence for .
Table 10 reports the DG spatial-convergence results for .
Table 10.
Two -dimensional DG spatial-convergence results for .
Table 11 reports the corresponding HDG spatial-convergence results for .
Table 11.
Two -dimensional HDG spatial-convergence results for .
These tables should be used to verify the expected -convergence behavior before interpreting any runtime comparison. In particular, the main efficiency comparison is meaningful only when the spatial errors of DG and HDG are of the same order and magnitude.
13.3. Stabilization-Parameter Sensitivity and Numerical Positive-Definiteness
The constants in the SIPG and HDG stabilization terms are fixed at and , respectively, in the principal two-dimensional comparison. These values are not asserted to be optimal. To assess their robustness without retuning the principal computational benchmark, we also consider a nonconstant-coefficient manufactured problem. We retain the coefficient in (47) with and , set
and impose the corresponding homogeneous Dirichlet data. Thus, the same exact solution is known for each coefficient realization; the exact quantity of interest is . Since and , uniform ellipticity follows from
First, at (128 triangles), we sweep for SIPG and for HDG, using one reproducible shifted-Halton coefficient realization and . This exploratory sweep reveals that lower but adequately stabilizing values tend to reduce the absolute error. In particular, the smallest measured error in the broad sweep is found at for DG and for HDG for each of the three polynomial degrees. The broad-sweep figures and complete per-parameter outputs are retained in the supplementary numerical archive.
Second, we assess mesh- and parameter-realization robustness at , , using and . The four coefficient realizations consist of three separately seeded randomly shifted Halton vectors and the admissible corner . Figure 12 and Figure 13 show the median error across those four realizations for the principal degree . The selected constants preserve the expected fourth-order decay, even though lower values achieve smaller error constants on these tests.
Figure 12.
Nonconstant-coefficient DG -error refinement at for selected SIPG penalty constants. Each point is the median across four coefficient realizations. The original benchmark uses .
Figure 13.
Nonconstant-coefficient HDG -error refinement at for selected trace stabilization constants. Each point is the median across four coefficient realizations. The original benchmark uses .
Table 12 summarizes the median observed convergence rates for the constants used in the main study. The last two columns give the median and worst -error ratios, calculated realization-by-realization at fixed relative to the smallest error among the tested constants for the same method; hence, ratios greater than one quantify the accuracy cost of a conservative fixed choice, not a loss of convergence.
Table 12.
Nonconstant-coefficient sensitivity study at the originally selected stabilization constants. Median observed rates are computed from consecutive mesh refinements. The error ratios summarize the comparison with the best tested value at fixed and coefficient realization.
For SIPG, a separate numerical positive-definiteness check distinguishes stabilization sufficient to preserve a solvable system from stabilization sufficient to make the tested stiffness matrices symmetric positive-definite. For , each SIPG stiffness matrix was symmetrized and diagonally normalized, with . We evaluated the smallest algebraic eigenvalue of and checked its sign against a sparse factorization-based inertia diagnostic. Across all four coefficient realizations and , all 16 matrices with were indefinite, whereas all 80 matrices with were SPD. Figure 14 displays this classification. The smallest tested value that was SPD throughout this finite test set was ; this is an empirical finding, not a sharp coercivity threshold or proof of mesh-uniform coercivity. Moreover, the magnitude of a diagonally normalized smallest eigenvalue should not be interpreted as a monotone stability margin as changes.
Figure 14.
Empirical SPD classification of the two-dimensional SIPG stiffness matrix for over four mesh resolutions and four coefficient realizations. The numerical matrices were indefinite for and SPD for every tested . These finite-dimensional tests do not establish a sharp theoretical coercivity threshold.
Taken together, the numerical tests support retaining and as fixed conservative stabilization choices for the reported solver comparison. They preserve the expected spatial convergence orders over the tested nonconstant coefficients and mesh family, and lies well within the empirical SPD range of the tested SIPG systems. The values are not accuracy-optimal and were not tuned to minimize error or end-to-end runtime. Consequently, the principal timing comparison remains a comparison at common and fixed method settings, not a comparison at separately optimized equal-error tolerances.
13.4. QMC Sampling Study
The illustrative two-dimensional QMC sampling experiment uses the structured mesh (288 triangles), with the same shifted Halton points for DG-QMC and HDG-QMC. For each parameter dimension, the point set is generated with seed . The reference uses the first points, while each reported estimator uses the first points of the same shifted sequence. The reported quantity is therefore the nested, method-specific discrepancy
As in one dimension, the two estimators on the right-hand side are correlated. Because , the largest estimate is compared against a reference with only twice as many samples. These numbers are neither independent reference-error estimates nor estimates of the error against the exact parametric integral. Apparent agreement or local decay in the discrepancy curves should not be interpreted as a certified QMC convergence order. The independent-shift calculations in the separate accuracy–cost experiments use a different reference design and should not be conflated with these illustrative, nested comparisons.
The three representative cases below cover low-, intermediate-, and higher-dimensional polynomial settings. Their tables report only the nested discrepancies; the separate optimized large-mesh timing experiment in Section 13.5 uses a different, controlled performance protocol. The legacy runtime columns are omitted from these tables because their historical implementation/environment provenance does not support a comparison with the optimized benchmark. The original numerical records, including those runtime values, remain in the preservation archive; the nested discrepancies are unchanged.
Table 13 reports the nested finite-reference discrepancies for and on the mesh.
Table 13.
Two -dimensional nested finite-reference discrepancies for , , on the mesh.
Figure 15 shows the nested finite-reference discrepancies for DG-QMC and HDG-QMC with and on the mesh.
Figure 15.
Two -dimensional nested finite-reference discrepancy versus N for , . The DG-QMC and HDG-QMC curves nearly coincide.
Table 14 reports the corresponding nested finite-reference discrepancies for and .
Table 14.
Two -dimensional nested finite-reference discrepancies for , , on the mesh.
Figure 16 shows the nested finite-reference discrepancies for DG-QMC and HDG-QMC with and on the mesh.
Figure 16.
Two -dimensional nested finite-reference discrepancy versus N for , . The DG-QMC and HDG-QMC curves nearly coincide.
Table 15 reports the nested finite-reference discrepancies for and on the mesh.
Table 15.
Two -dimensional nested finite-reference discrepancies for , , on the mesh.
Figure 17 shows the nested finite-reference discrepancies for DG-QMC and HDG-QMC with and on the mesh.
Figure 17.
Two -dimensional nested finite-reference discrepancy versus N for , . The DG-QMC and HDG-QMC curves nearly coincide.
The two curves nearly coincide for these particular discrete quantities of interest and nested point sets. This empirical agreement does not imply equal quadrature errors or demonstrate a QMC convergence rate: the plotted values are correlated, method-specific discrepancies, and the underlying discrete integrands are not identical.
13.5. Optimized Two-Dimensional Timing and Global Coupling
The principal timing experiment fixes , and common shifted-Halton points on the structured triangular meshes , where . Both implementations use precomputed coefficient-mode values and reusable element-level basis/quadrature data; the discrete SIPG and equal-order HDG formulations are unchanged. In particular, HDG factorizes each element-local matrix once and solves the corresponding multiple right-hand sides using that factorization. The local coefficient-dependent matrices and the condensed trace system are constructed for each parameter sample. For SIPG, the coefficient dependence is affine under the pointwise coefficient convention used here, whereas HDG condensation involves local inverses and is generally nonlinear in the parameters. We did not implement a separate affine offline/online DG matrix decomposition or reuse sample-dependent assembled matrices, local HDG factorizations, or global sparse factorizations across different parameter points. The shared precomputations concern coefficient modes and geometry-dependent finite-element tensors, not the numerical operators after substitution of a particular parameter vector.
13.5.1. Changes from the Earlier Assembly Implementation
The change to the optimized implementation was computational rather than variational. In the earlier implementation, the element and facet loops repeatedly formed physical quadrature coordinates, evaluated the spatial coefficient modes, evaluated basis functions and gradients, and accumulated dense local matrices using quadrature-point loops. The optimized implementation precomputes the spatial coefficient modes at all fixed volume and edge quadrature points once per mesh; at each parameter point, the coefficient arrays are obtained by tensor contractions with the parameter vector. On the structured, uniformly triangulated grids used here, volume and facet tensors that depend only on triangle orientation, local-face configuration, geometry, polynomial degree, and quadrature rule are cached. The DG volume and face contributions are then assembled by vectorized contractions. In HDG, the invariant mixed volume and face blocks are retained as templates, while the parameter-dependent inverse-coefficient flux mass block and stabilization-weighted face blocks are formed for each sample before local condensation. Matrix multiplications replace many scalar quadrature loops and repeated basis evaluations. The element-local HDG LU factorization is still performed separately for every element and parameter sample; importantly, the earlier implementation already reused that one factorization for all its local right-hand sides, so this is not a new source of acceleration. The numerical formulations and global sparse-solve interface remain the same. The historical near-parity ratio at (about ) and the optimized ratio (about ) belong to different implementation/protocol records. The reduction in repeated element-local work accounts qualitatively for the lower HDG assembly cost; the two ratios are not a controlled estimate of acceleration from assembly optimization alone. These changes explain the main classes of redundant work removed, but the separate timing environments and absence of an optimization-by-optimization ablation study do not permit a quantitative attribution of the observed assembly reduction to individual changes.
Wall-clock timings include the four sparse assemblies and global solves per QMC estimator, together with quantity-of-interest evaluation for SIPG and local recovery followed by output evaluation for HDG. Shared coefficient-mode precomputation is performed once per mesh and excluded from each repetition; its separately measured cost ranges from to s over the tested resolutions. This is a comparison of repeated sampling costs after shared initialization, not a claim about an independently optimized single-PDE solve. BLAS/OpenMP thread pools were restricted to one thread. Five repetitions per method and mesh were recorded using the same numerical settings, and Table 16 presents sample medians, the ratio of the two medians, and the relative standard deviation of the five total times.
Table 16.
Optimized two-dimensional QMC timing at matched . Total wall-clock time for the four-sample estimator (seconds); “SD” denotes standard deviation relative to the mean across five repetitions. The reported speed-up is the ratio of method-specific medians, with values above one favoring HDG.
Figure 18 shows the median wall-clock times of the optimized DG-QMC and HDG-QMC implementations.
Figure 18.
Median end-to-end wall-clock time versus mesh subdivision n for the optimized two-dimensional implementations.
Figure 19 shows the ratio of their median total times.
Figure 19.
Ratio of median DG-QMC and HDG-QMC total times; the dashed line denotes parity.
Figure 20 compares their globally coupled degrees of freedom.
Figure 20.
Globally coupled unknowns in the DG (SIPG) element system and the condensed HDG interior-edge trace system.
Table 16 shows lower measured total HDG time on each of the five meshes in this implementation, including the smaller meshes. Although the relative variability is larger at and than at the higher resolutions, the method-specific ranges do not overlap for those two cases. No DG-to-HDG timing crossover is established by the present five-mesh comparison. Supplementary Table S1 reports the separate measurement session, with five repetitions per method and mesh and DG-to-HDG median ratios of , and . These supplementary measurements are not pooled with the principal benchmark.
The component timing breakdown is given in Table 17. SIPG assembly is less expensive, whereas HDG performs element-local mixed-system construction, condensation and recovery. However, the smaller trace system substantially reduces the measured sparse direct-solution cost. At , for example, the method-specific median global-solve times are approximately s (SIPG) and s (HDG). The larger HDG local-work component is thus more than compensated within the measured configuration. Component times are summarized by independent medians and therefore need not sum exactly to the median total.
Table 17.
Median measured component times (seconds) for the four-sample estimator. “Assembly” includes HDG local computation and static condensation; “post” includes output evaluation and, for HDG, local solution recovery. The component medians are computed independently.
For the HDG implementation, the measured local-work subdivision includes coefficient evaluation, element quadrature/matrix construction, local LU factorizations and triangular solves, and scattering into the global sparse trace matrix. At , coefficient evaluation takes about s, local quadrature/matrix construction s, local LU factorization s, local triangular solves s, and global sparse scattering s across the four common samples. Thus, the cost of forming and scattering local contributions remains relevant even after optimizing their reuse; local factorization alone does not account for the assembly overhead.
13.5.2. Role of Parametric Sampling Loop
The N-point estimator requires N distinct deterministic boundary-value solves for each spatial method. The common shifted-Halton points control the comparison of the discrete estimators; they do not reduce the number of deterministic solves. In particular, no assembled coefficient-dependent global matrix or sparse numerical factorization is reused between QMC points. Excluding the separately reported shared initialization, the observed sampling cost is therefore the sum, over the N parameter points, of assembly/condensation, global solution, and output-recovery costs. At , the DG assembly component is approximately 17 s versus 556 s for its global solve (both over four samples). Even an idealized elimination of all DG assembly would therefore save only about of the combined assembly-plus-solve time under the present direct solver, disregarding output evaluation. By contrast, the individual HDG local-work profile components reported above total approximately 33 s, compared with about 76 s for its global solve, indicating a more appreciable potential contribution from local computation. These independently summarized components are descriptive and need not sum exactly to the medians of complete runs. An affine offline/online decomposition of DG assembly might reduce repeated setup further, but it would not address the measured dominant DG sparse-solve cost. Moreover, the parameter dependence of the condensed HDG Schur complement is generally nonaffine, so an analogous exact decomposition does not follow directly from affine dependence of the input coefficient. The large-mesh comparison thus measures the cost of the two deterministic implementations repeated at common QMC points; it does not establish a sampling-method-specific computational acceleration.
The globally coupled dimensions follow and . At , the exact dimension ratio is . Sparse-factor fill-in and process-memory diagnostics provide complementary measures of the computational burden (Table 18). Factor fill is from separate SuperLU factorizations with COLAMD ordering; these diagnostic factors are not asserted to be the internal factors of the timed SciPy spsolve calls. Memory measurements are sampled peak resident-set sizes from separate diagnostic runs and are not exact allocator peaks.
Table 18.
Globally coupled degrees of freedom (DOFs), independent SuperLU factor fill-in, and sampled peak process resident memory for the optimized timing meshes. The fill-in values use separate COLAMD/SuperLU factorization probes.
The original five-mesh measurements were obtained under Windows 11 on an Intel Core i7-10750H, with 12 logical processors and 31.77 GiB of physical memory, using Python 3.12.10, NumPy 2.1.3 and SciPy 1.17.1, with single-threaded OpenBLAS. The processor model and software versions were author-confirmed, and the author confirms that this environment has not changed. These declarations supersede the conflicting historical manifest labels; the raw manifests were retained unchanged with a separate provenance correction. The benchmark used SciPy’s sparse direct-solve interface spsolve; no symmetric-positive-definite-specific Cholesky algorithm or preconditioned iterative solver was selected. The optional scikit-umfpack package was not installed in the benchmark environment (interpreter Python312, Python 3.12.10, NumPy 2.1.3, SciPy 1.17.1; checked on the unchanged installation on 4 November 2026), so SciPy’s spsolve used SuperLU with its default COLAMD column ordering rather than UMFPACK. Individual historical spsolve calls were not instrumented. The explicit factor-fill measurements were obtained with SuperLU. Consequently, the observed differences should be interpreted for this sparse direct-solver workflow rather than as a solver-independent performance ranking.
13.5.3. Sparse Direct-Solver Ordering Sensitivity
To investigate the dependence of the relative computational costs on the sparse factorization, a separate controlled experiment used explicit SuperLU LU factorization through scipy.sparse.linalg.splu at and 96, with , , four common shifted-Halton points and five repetitions per method and solver configuration. The discrete SIPG and HDG formulations, coefficient samples and optimized assembly were unchanged. Three settings were considered: COLAMD with the standard diagonal pivot threshold 1; COLAMD with SuperLU symmetric-mode settings and diagonal pivot threshold ; and MMD_AT_PLUS_A with the same symmetric-mode settings and pivot threshold . Thus, the last two configurations isolated the column-ordering change under a common pivoting strategy; the first and third changeed both ordering and pivoting. These are all LU factorizations, not Cholesky factorizations.
Table 19 compares the measured timings and factor-fill ratios for the tested SuperLU configurations.
Table 19.
Sparse direct-solver sensitivity for the optimized assembly, measured independent of the principal five-mesh timing benchmark. The displayed times are medians of five complete four-sample runs; fill denotes from the timed SuperLU factorizations. Values above one in DG/HDG favor HDG. The symmetric-mode settings include a changed pivot threshold and are not SPD-specific Cholesky solves. The individual times, their dispersion, residuals and factor nonzero counts are provided as supplementary data.
At , switching between the two symmetric-mode orderings reduces the observed DG fill ratio from to and the HDG fill ratio from to ; the ratio of the method-specific median total times decreases from to . At , the corresponding ratios are and , respectively. HDG is faster for all tested settings at these two meshes, but the magnitude of its advantage is clearly solver-configuration-dependent. The timing repetitions exhibit substantial variability in several configurations, including large outliers for DG. Accordingly, these ratios are descriptive rather than precise estimates of machine-independent performance; the more stable factor-fill differences directly identify an important mechanism. Across solver configurations, the method-specific quantities of interest agree to approximately , while the largest recorded relative linear-system residual is approximately .
This sensitivity experiment was performed on a separate Windows 11 machine with an Intel Core i5-1155G7 processor, 16 GB installed RAM, Python 3.12.10, NumPy 2.2.6 and SciPy 1.14.1, using single-threaded OpenBLAS. Its absolute timings were not combined with the principal five-mesh benchmark, which was obtained on different hardware and software. Because SuperLU was selected explicitly in this sensitivity experiment, its backend was unambiguous; these runs did not retrospectively identify the internal backend of the earlier spsolve benchmark.
13.6. Accuracy Versus Cost with an Analytically Known Parametric Reference
To complement the matched-parameter timing comparison, we performed a separate accuracy–cost study for a nonconstant, parameter-dependent diffusion coefficient of the form in Equation (47). We prescribe the parameter-dependent manufactured solution
and construct the parameter-dependent right-hand side . Thus, unlike the principal benchmark, the forcing also depends on . The boundary conditions are homogeneous, and, since , the expected integrated scalar quantity of interest is known analytically:
This is a verification experiment with a genuinely variable diffusion coefficient and a nonconstant parametric output; the affine dependence of the prescribed exact solution nevertheless makes its sampling integrand unusually simple.
For , , and , both methods use the same QMC samples in eight independently randomly shifted Halton sequences. The sequence seeds are , , before the dimension-dependent shift offset used by the solver. Let denote the estimator for shift r and method . We report , its observed error , and the across-shift standard error , where is the sample standard deviation of the eight shift estimates. For exploratory tolerance screening, we use
This statistic is an uncertainty-aware screening quantity, not a certified upper bound on spatial-plus-sampling error, and its use does not remove possible finite-sample bias, selection effects, or non-Gaussian shift variability. In particular, a small observed error can result from cancellation.
Every QMC shift was timed three times, and the median full estimator wall time was retained; the table and figure use the sum of those eight shift-specific medians. This includes repeated sparse PDE solves and output evaluation but excludes imports, mesh and Halton construction, and separately recorded per-method warm-up solves. The experiments used the same optimized-assembly source as the five-mesh performance study. The current accuracy–cost results are the complete 4 November 2026 rerun under Windows 11, Python 3.12.10, NumPy 2.2.6 and SciPy 1.14.1, with the three recorded thread controls set to one. The solver SHA-256 matched the archived optimized-assembly source. Historical accuracy–cost manifests reporting NumPy 2.5.2 and SciPy 1.14.0 remained preserved as unresolved provenance; those labels were not reassigned to the new run. The rerun numerics agree closely with the historical manufactured data, but neither this agreement nor the new manifest retrospectively authenticates the historical software installation. Absolute timing values from different sessions were not pooled with the principal large-mesh benchmark.
The rerun driver originally selected its tolerance-summary rows using only , despite recording for every configuration. We corrected this postprocessing to select the lowest measured cost subject to as defined in Equation (52). The original rerun summary was retained verbatim and labeled as superseded; the following table and figure were regenerated from the uncertainty-screened results. No new PDE solutions were introduced by this correction.
Table 20 reports the least-cost tested configurations satisfying each uncertainty-aware screening threshold.
Table 20.
Least -cost configurations in the tested grid satisfying the exploratory criterion . is the observed absolute error against the analytic reference , and includes the t-weighted standard error across eight random shifts. Costs are sums of method-specific medians over the eight shifts, not complete end-to-end process times.
Figure 21 compares the uncertainty-screening values against measured estimator costs for both methods.
Figure 21.
Observed uncertainty-screening value versus measured total QMC-estimator wall time for the two polynomial degrees. Each point is a method–mesh–sample-count configuration with eight independent shifts; within each panel and . Dashed and dotted horizontal lines mark and , respectively.
In the surveyed grid, the least expensive admissible configuration at is for both methods: DG-QMC takes s and HDG-QMC s. At , both select , with corresponding costs s and s. No tested configuration reaches . More demanding accuracy requires additional sampling levels or other experimental changes. The small-grid preference for DG-QMC is consistent with the fact that local HDG condensation can cost more than it saves when the global matrices are modest in size. This is not evidence of a DG-to-HDG timing crossover for the principal benchmark, which uses a different protocol and software environment. Conversely, at , the measured total is s for DG-QMC versus s for HDG-QMC, indicating a distinct, HDG-favorable computational regime. These observations do not prove equal-error cost optimality for the original parametric model or outside the configurations tested.
13.7. Original Problem: Independent-Shift Accuracy Versus Cost
We next assessed the original parameter-dependent elliptic model in Section 13.1 with , rather than the manufactured parameter-dependent forcing in Section 13.6. Here, the expected QoI was not available analytically. Both methods used the same affine coefficient (), stabilization settings ( and ), optimized-assembly source, and randomly shifted Halton point sets. The candidates comprised , mesh subdivisions , and , evaluated with eight independent random shifts, for 64 method-specific combinations. Each method–shift computation was repeated three times for timing; the estimator used one set of QMC points, not three statistically independent realizations. The reference shifts were generated from a distinct seed and did not reuse the candidate shifts. The current candidate and reference results are from the second, stable 4 November run, whose manifests recorded Windows 11, Python 3.12.10, NumPy 2.2.6 and SciPy 1.14.1, with the recorded thread controls set to one. The first November rerun was excluded. Earlier pre-deposit raw records retained their historical environment labels and are separate from the current evidence; no historical record was silently relabeled.
13.7.1. Numerical Reference and Sensitivity
A separate HDG computation with uses eight reference shifts at and . Its largest configuration gives
Table 21 reports the reference means and t-based confidence-interval half-widths. At , the change from to is ; at , the change from to is . These are diagnostics of sensitivity, not rigorous bounds on the unknown reference error. The data indicate that QMC sampling variability is larger than the observed reference mesh-refinement effect.
Table 21.
Independent-shift numerical-reference sensitivity for the original model, using HDG with . Each mean uses eight independently shifted Halton sequences. Confidence-interval half-widths use the Student t multiplier for seven degrees of freedom and are not error certificates.
13.7.2. Sampling Variability and Tolerance Criterion
For each method M, we denote by the mean over eight candidate shifts, by their sample standard deviation, and by their standard error. Relative to the independent numerical reference, the observed absolute error is . We used the descriptive screening statistic actually implemented in the experiment:
Here, denotes the mean over the corresponding eight reference shifts. The t multiplier is approximately . The terms in (54) provide an uncertainty and sensitivity proxy, not a probabilistically guaranteed bound on the true error; unknown discretization bias, QMC dependence, and reference error remain.
As a diagnostic of sampling variability, at fixed and the shift standard deviations decrease with the QMC sample count, as shown in Table 22. The two methods have nearly identical shift dispersion under paired sampling, but this observation does not imply identical discretization errors.
Table 22.
Standard deviation of eight independently shifted QMC QoI estimates for the original model, fixed , , . These are shift-to-shift standard deviations, not standard errors.
13.7.3. Grid-Restricted Accuracy–Cost Comparison
For a chosen , we select the least expensive tested candidate with , separately for each method. Table 23 shows the two prespecified screening thresholds. DG-QMC is less expensive in both grid-restricted selections. At , the selected costs s for DG-QMC and s for HDG-QMC; at , the selected costs s and s, respectively. These values sum the median per-shift full-estimator times over the eight shifts; reference computation, shared setup, mesh/QMC construction, and one warm-up solve per method and mesh/degree are excluded. The three repetitions quantify runtime rather than increase the number of independent QMC shifts.
Table 23.
Lowest measured method-specific cost within the investigated grid satisfying the descriptive original-problem criterion . The reference is numerically approximated rather than analytic; neither nor the selected configurations certify true equal-error optimality. Cost excludes reference generation and separately performed setup.
Figure 22 compares the descriptive screening values against measured estimator costs for the original problem.
Figure 22.
Original problem: descriptive screening value versus cost for eight independent QMC shifts. Each marker corresponds to a method, degree, mesh, and sample count; dashed and dotted levels show and , respectively. Costs are sums of method-specific timing medians and exclude reference generation and setup.
Unlike the principal large-mesh performance study (, ), the least expensive feasible candidates here use relatively small global systems. On the least-cost small-grid choices, local condensation overhead outweighs HDG’s global-solve advantage. Within this same stable-run protocol, at , the measured DG and HDG totals are s and s, respectively (DG/HDG ). At , the observed DG/HDG ratios across range from – at to – at . This is a grid-observed timing crossover at matched configurations, not an equal-accuracy crossover or an extrapolation to the principal large-mesh benchmark. The coefficient of variation across eight shift-specific timing medians is below for all 64 configurations, below for 58, and below for 60. These are diagnostics across different shifts, not uncertainty intervals from independent complete-run replications. The complete per-repetition timings were not retained for this original-model run, so their within-shift variability cannot be reconstructed.
Accordingly, the independent-shift study provides an original-problem comparison against an independent, refinement-checked numerical reference, and the eight-shift data address randomization sensitivity. They do not establish a rigorous solver-independent or globally optimal equality of accuracy.
13.8. Interpretation of Two-Dimensional Results
The manufactured-solution experiments recovered the expected spatial-convergence orders for , including tests with a nonconstant diffusion coefficient. The separate parameter-dependent manufactured accuracy–cost experiment used an analytic expected QoI and independent two-dimensional random shifts, providing an additional, explicitly qualified comparison at two error-screening thresholds. The two discrete sampling curves have similar nested-reference discrepancies; this is an empirical observation, not a consequence of identical QMC nodes and not a measure of independent quadrature error. The optimized timing study instead isolated differences in deterministic computational work, including the additional HDG local computations and the reduction in global coupling. Within the tested sparse direct-solver setting, the smaller condensed HDG system produces lower total time and sampled process memory on every investigated mesh. Neither the numerical accuracy nor the performance comparison is asserted to extend uniformly to untested solvers, approximation orders, or problem families.
14. Interpretation of the Comparison
Using common QMC points isolates the deterministic spatial method within the sampling loop. All sample-dependent matrices and numerical factorizations are recomputed at each parameter point; only coefficient modes and finite-element geometry templates are shared. Hybridization does not change the underlying shifted-Halton rule: the numerical advantage observed in the optimized two-dimensional experiment arises from reducing the globally coupled solve sufficiently to offset the additional element-local work. The results are interpreted as the performance of the two concrete software implementations, not as a general theorem comparing discontinuous and hybridizable discontinuous Galerkin methods.
15. Limitations and Scope
The one-dimensional experiments verify the formulations and characterize sampling behavior; no solver-independent one-dimensional performance conclusion is drawn. In two dimensions, the timing study compares fixed , and at matched meshes and uses a single sparse direct-solver workflow. This is a benchmark of repeated parametric PDE solves and not a full scaling study in the QMC sample count. The focus is on comparing two discontinuous formulations embedded in the same QMC sampling loop; a separately optimized conforming Galerkin (CG) baseline is therefore not included. Preconditioned iterative solvers, algebraic multigrid, and statically condensed conforming Galerkin methods are outside the measured comparison. Alternative sparse LU ordering and pivoting strategies were tested separately at two meshes, as reported in Section 13.5. At these meshes, the DG-to-HDG ratio fell to about with a symmetric ordering, so the magnitude of the HDG advantage in Section 13.5 should be read as specific to the default COLAMD workflow; a Cholesky solver was not tested and could change it further. In particular, the separate SuperLU factor diagnostics do not establish the internal factor structure of every timed sparse solve.
The principal large-mesh performance comparison is a matched- direct-solver benchmark, whereas Section 13.7 presents a separate original-problem accuracy–cost screen with eight independent QMC shifts, finite-reference stability checks, and two grid-restricted tolerances. The original one-shift 2D QMC plots are nested finite-reference examples; the independent-shift accuracy–cost experiment does not retroactively convert those correlated discrepancies into independent integration-error estimates. Because the new reference is numerical and has residual sampling variability, its finite-shift screening statistic does not certify the true equal-error cost optimum. The analytically referenced manufactured test remains a distinct verification setting with parameter-dependent forcing and an unusually simple affine-parametric exact solution. The implementations do not apply separate higher-degree HDG scalar postprocessing, and no superconvergence claim is made. Likewise, no dimension-independent shifted-Halton convergence rate is asserted. The accuracy–cost studies select small meshes (128 triangles in the least-cost cases); they do not validate the observed HDG timing advantage on the much larger meshes at a prescribed accuracy. In the large-mesh benchmark, the choice of gives a sampling-dominated regime rather than the error-balanced workloads considered in an accuracy–cost optimization. No tighter-tolerance study at or was performed to bridge these regimes, and the available numerical evidence does not establish which discretization reaches such prescribed accuracies at lower total cost. Moreover, the HDG stabilization sweep found its smallest measured error at the lowest tested coefficient ; this does not establish optimality or resolve the behavior of mesh-independent choices. A mesh-independent stabilization can also support higher-order () scalar postprocessing under suitable assumptions; such a postprocessed HDG variant, including a possible degree- HDG versus degree-p DG accuracy–cost comparison, was not tested. This omission may disadvantage HDG in an equal-accuracy comparison, and our results do not characterize the performance of postprocessed HDG. A more accurate independently converged QMC reference, higher sampling levels, alternative stabilization/postprocessing choices, and alternative solver/preconditioner benchmarks remain useful future work.
16. Conclusions
A controlled DG-QMC/HDG-QMC comparison was developed using identical parameter samples and matched numerical settings. The analytical error decomposition distinguishes parametric integration error from spatial discretization error; the one-dimensional verification and two-dimensional spatial tests provide numerical evidence for the discretization behavior. Independent shifted-Halton realizations in one dimension further show why isolated finite-reference sampling rates should not be interpreted as asymptotic convergence orders.
In the optimized two-dimensional study, HDG-QMC exhibits lower total wall-clock time and sampled peak process memory than DG-QMC across all five investigated mesh resolutions, with total-time ratios from approximately 3 to 5 under the default COLAMD-ordered spsolve workflow; in a separate check at and 96, a symmetric MMD_AT_PLUS_A ordering reduced the ratio to about (HDG still faster, with substantial timing variability and on a different computer). The measured cost reduction results from a smaller globally coupled HDG trace system, which compensates for its greater local computation under the tested sparse direct solver. The complete November rerun of the analytically referenced, variable-coefficient manufactured test, with corrected uncertainty-based selection, confirms a regime-dependent ranking: for two exploratory uncertainty-screened thresholds, the lowest-cost cases on the small tested grids favor DG-QMC, whereas a larger configuration favors HDG-QMC. For the original problem, the second stable November eight-shift run uses an independently seeded, spatially refined numerical reference and identifies the least-cost configurations satisfying two descriptive screening thresholds on the tested grid. The small-grid selections favor DG-QMC, while the same stable run favors HDG-QMC at ; reference uncertainty prevents certified true equal-error optimality. The accuracy–cost screening results concern selected small meshes and do not demonstrate that the observed large-mesh HDG timing advantage translates into a lower cost at a prescribed accuracy. The large-mesh study uses only four QMC points and was not optimized to balance integration and spatial errors. The results are specific to the tested configurations, implementation strategies, and sparse direct-solver environments; they do not imply a universal advantage of either method. The combined evidence clarifies the trade-off between local hybridization work and repeated global solves in parametric sampling problems.
Supplementary Materials
The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/math14234445/s1, Supplementary File S1: Supplementary Numerical Evidence (mathematics-14-04445-supplementary.pdf), including Table S1 (independent large-mesh timing replication), Table S2 (cross-environment manufactured-subset validation), and reproducibility notes. Supplementary File S2: Historical one-dimensional equal-order HDG diagnostic (mathematics-14-04445-supplementary-1D-diagnostic.zip), containing the comparison driver, unchanged historical prototype, numerical results, diagnostic report, README, and checksums.
Author Contributions
Conceptualization, G.N., M.A. and C.S.; Methodology, G.N., M.A. and C.S.; Software, G.N.; Validation, G.N., M.A. and C.S.; Formal analysis, G.N., M.A. and C.S.; Investigation, G.N.; Data curation, G.N.; Writing—original draft, G.N.; Writing—review & editing, G.N., M.A. and C.S.; Visualization, G.N.; Project administration, G.N. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The numerical results used in the optimized timing comparison, including individual repetition times, method-specific timing summaries, memory measurements, independent sparse factorization diagnostics, numerical configurations, and PGFPlots input data, are provided in the Supplementary Data archive. The one- and two-dimensional numerical data and supporting plotting files for the remaining experiments are also supplied there. The separate analytic-reference accuracy–cost experiment is accompanied by per-configuration errors, all eight per-shift estimator results and repeated wall-time measurements, warm-up records, a run manifest, a script to regenerate its LaTeX inputs, and the optimized-assembly source used in the computation. Details of the numerical setup and the associated software environment are provided in the timing metadata. The separate original- experiment is provided with the full eight-shift candidate-level CSV, the independent reference study (two meshes, two sample counts), numerical-reference and error-screening reports, configurations, and the corresponding generated LaTeX and PGFPlots inputs. The reference study and candidate evaluation used independent shift seeds. The complete source code, experiment configurations, and supporting numerical data are available in the versioned Zenodo software and data archive (Version 1.0.0; https://doi.org/10.5281/zenodo.23970593). A separate diagnostic of the historical one-dimensional equal-order prototype, performed after the version 1.0.0 archive was published, is supplied with the accompanying Supplementary Files; it is not included in that Zenodo release.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Caflisch, R.E. Monte Carlo and quasi-Monte Carlo methods. Acta Numer. 1998, 7, 1–49. [Google Scholar] [CrossRef] [Scilit]
- Nuyens, D. The construction of good lattice rules and polynomial lattice rules. In Uniform Distribution and Quasi-Monte Carlo Methods; Springer: Cham, Switzerland, 2014. [Google Scholar]
- Kaarnioja, V.; Rupp, A. Quasi-Monte Carlo and discontinuous Galerkin. Electron. Trans. Numer. Anal. 2024, 60, 589–617. [Google Scholar] [CrossRef] [Scilit]
- Cockburn, B.; Gopalakrishnan, J.; Lazarov, R. Unified hybridization of discontinuous Galerkin, mixed, and continuous Galerkin methods for second order elliptic problems. SIAM J. Numer. Anal. 2009, 47, 1319–1365. [Google Scholar] [CrossRef] [Scilit]
- Nehmetallah, G.; Lanteri, S.; Descombes, S.; Christophe, A. An Explicit Hybridizable Discontinuous Galerkin Method for the 3D Time-Domain Maxwell Equations. In Spectral and High Order Methods for Partial Differential Equations ICOSAHOM 2018; Sherwin, S.J., Moxey, D., Peiró, J., Vincent, P.E., Schwab, C., Eds.; Lecture Notes in Computational Science and Engineering; Springer: Cham, Switzerland, 2020; Volume 134, pp. 513–523. [Google Scholar] [CrossRef] [Scilit]
- Li, M.; Luo, X. A multilevel Monte Carlo ensemble and hybridizable discontinuous Galerkin method for a stochastic parabolic problem. Numer. Methods Partial Differ. Equ. 2023, 39, 2840–2864. [Google Scholar] [CrossRef] [Scilit]
- Kirby, R.M.; Sherwin, S.J.; Cockburn, B. To CG or to HDG: A comparative study. J. Sci. Comput. 2012, 51, 183–212. [Google Scholar] [CrossRef] [Scilit]
- Yakovlev, S.; Moxey, D.; Kirby, R.M.; Sherwin, S.J. To CG or to HDG: A comparative study in 3D. J. Sci. Comput. 2016, 67, 192–220. [Google Scholar] [CrossRef] [Scilit]
- Arnold, D.N. An interior penalty finite element method with discontinuous elements. SIAM J. Numer. Anal. 1982, 19, 742–760. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





















