arXiv:2610.06414math.NAOct 2026

Manuscript Offprint

arXiv:2610.06414

A Mixed-Precision Model for Matrix-Splitting Methods

Neil Lindquist, David Appelhans, Chales W. Jackson, Joseph M. Derlaga

NEIL LINDQUIST*, DAVID APPELHANS*, CHARLES W. JACKSON†, AND JOSEPH M. DERLAGA†

Abstract. The performance of stationary iterative methods is memory-bound, due to the low arithmetic intensity. So, we propose a mixed-precision technique to reduce the amount of data movement in matrix-splitting iterative methods. We demonstrate both theoretically and experimentally that this technique will generally converge at a similar rate as an exact-precision iteration, depending on the precision used and the conditioning of the M matrix. Furthermore, we demonstrate that iterative refinement can be used to refine the solution to full double-precision accuracy. Using this approach, we mixed half and double precision to achieve an average speedup over uniform double precision of 1.60×1.60\times for scalar and block Jacobi and 1.25×1.25\times for scalar and block Gauss-Seidel. Furthermore, we reduced the precision in the SSOR iteration used by OVERFLOW, a NASA code for compressible fluid dynamics simulations, and achieved a 1.14×1.14\times speedup to the overall application.

Key words. Mixed precision, reduced-precision arithmetic, Jacobi iterations, Gauss-Seidel iterations

MSC codes. 65F10, 65G50, 65Y04, 65Y20

  1. Introduction. Stationary iterative methods are used in many contexts to solve linear systems of equations, particularly for compressible fluid dynamics simulations [17]. However, such methods are memory-bound, due to the low arithmetic intensity. Thus, selectively storing parts of the matrix in reduced precision will improve performance. Specifically, we focus on solving the linear system Ax=bAx = b with the iteration
xi+1=M−1(b−Nx)x_{i+1}=M^{-1}(b-Nx)

for a splitting A=M+NA = M + N for which portions of the matrix with small magnitude can be stored in reduced precision. We especially consider storing the off-diagonal blocks in low precision since stationary iterations are most commonly used when N is smaller than M.

We specifically focus on matrix-splitting methods. Note that “multi-stage” stationary iterations like symmetric successive over-relaxation (SSOR) or the alternating-direction implicit method (ADI) can be formulated as a series of matrix splittings which are used on alternating iterations. Additionally, any stationary iteration for linear equations with linear convergence induces a corresponding matrix splitting [19, Lemma 2.3], although such a splitting may lack the sparsity of the original problem. So, we only consider matrix-splitting iterations without further comment.

1.1. Related Work. There is a wide breadth of previous work on using mixed precision in numerical linear algebra [1,16]. Such work either stores the data in smaller formats to reduce data movement (like our work) or uses reduced precision for the computation to take advantage of the more numerous low-precision arithmetic units, depending on the arithmetic intensity of the application. We focus on four floating-point formats that are primarily discussed for mixed precision in scientific computing, three defined in the IEEE 754-2019 specification (double, single, and half) and one

*NVIDIA, CA, USA 95051 (nlindquist@nvidia.com, dappelhans@nvidia.com)

†^{\dagger}NASA Langley Research Center, VA USA, 23681 (charles.w.jackson@nasa.gov, joseph.m.derlaga@nasa.gov)

LINDQUIST, APPELHANS, JACKSON AND DERLAGA

Table 1.1: Properties of select floating-point formats.

FormatMaximum ValueUnit round-off*
IEEE double1.80×103081.80 \times 10^{308}2−53≈1.1×10−162^{-53} \approx 1.1 \times 10^{-16}
IEEE single3.40×10383.40 \times 10^{38}2−24≈6.0×10−82^{-24} \approx 6.0 \times 10^{-8}
IEEE half6.55×1046.55 \times 10^{4}2−11≈4.9×10−42^{-11} \approx 4.9 \times 10^{-4}
BFloat163.40×10383.40 \times 10^{38}2−8≈3.9×10−32^{-8} \approx 3.9 \times 10^{-3}
  • The maximum error for rounding to the nearest floating-point value.

originally developed by Google (BFloat16). Table 1.1 outlines the properties of these formats.

Quite similar to our work, Walden et al. have previously considered storing off-diagonal blocks in low precision for the Fun3D compressible CFD code [25]. Specifically, they store the diagonal blocks and right-hand side in double precision, the computed solution in single-precision, and the off-diagonal blocks in either single- or half-precision. Additionally, they developed an approach to convert the data to low precision without requiring a second storage array. However, their explorations were limited to the linear systems arising in an unstructured supersonic fluid simulation. Furthermore, they did not provide any theoretical analysis of the error or consider the use of iterative refinement.

Anzt et al. have explored a mixed-precision Jacobi iteration where a different precision is used for each row [3, 12]. Their approach is based on determining what precision to use for each row as the iteration progresses. This allows the solver to adapt the precision both temporally and row-wise. However, this approach leaves parts of the matrix in high-precision and introduces additional overheads for dispatching between precisions. Originally, the technique was proposed for FPGAs [3], but the development of the split-mantissa storage format made it applicable for general-purpose hardware [12]. A related work uses different precisions for the diagonal blocks of a block-Jacobi preconditioner [10].

Another related work is the mixed-precision work of Ge and Zhang for the general alternating-direction implicit framework [11]. They found that using an alternating-direction sweep as the inner solver of iterative refinement allows a full-precision solution to converge, even with IEEE half-precision. However, they found it necessary to introduce a regularization term that reduced the size of the solution updates; this regularization required tuning for the specific matrix. Additionally, the regularization worked by reducing the size of the solution update, which can increase the number of iterations by requiring the same error-direction to be corrected multiple times. Finally, they recompute the residual every iteration, reducing the potential speedup.

The work of Anzt et al. also emphasizes decoupling the storage format from the data type used to do the computation in the so-called Memory Accessor paradigm [3, 12]. For memory-bound workloads, the compute resources are otherwise largely idle, so extra computation to decode the storage format or doing higher-precision arithmetic will not affect performance. Furthermore, decoupling the storage and compute types allows the use of formats other than IEEE floating-point, which can better exploit the application's specific data. This has recently been expanded by Amestoy et al. into a memory accessor that decodes an entire block, keeping the compute datatype in the L1 cache [2].

Finally, similar to our results, previous work has shown that reducing the preci-sion of a variety of iterative methods usually has little effect on the rate of convergence for sufficiently well-behaved problems [18,20,21,22]. (The meaning of “well-behaved” naturally varies with the method in question, but usually means sufficiently well conditioned.) However, reduced precision almost always reduces the maximum achievable accuracy; in such cases, high-precision iterative refinement can often be used to produce a full-precision solution. Generally, this can be understood by noting that during the initial iterations, the mathematical errors (i.e., those present in exact arithmetic) are several orders of magnitude larger than the round-off errors, and the latter is a minuscule percent of the total error and unnoticeable. 1^{1} Then, as the mathematical error is reduced to a similar or smaller magnitude as the round-off errors, the round-off error is no longer a negligible term and soon dominates, causing the accuracy to stagnate at the working-precision accuracy.

  1. Theoretical Analysis. To understand this approach, we bound the norm-wise forward error of a generic stationary iteration. In short, the theorem shows that the mixed-precision approach will converge almost as fast as an exact iteration until it reaches a relative forward error determined by the storage and computation accuracy. Note that while reducing the precision of off-diagonal blocks is our focus, the theorem applies to a fairly general class of mixed-precision methods.

THEOREM 2.1. Let AA be decomposed as M+NM + N, and let M^=M−EM\widehat{M} = M - E_M and N^=N−EN\widehat{N} = N - E_N be the values that are actually stored. Assume ∥EM∥∞≤ϵM∥M∥∞\|E_M\|_\infty \leq \epsilon_M \|M\|_\infty and ∥EN∥∞≤ϵN∥N∥∞\|E_N\|_\infty \leq \epsilon_N \|N\|_\infty. Assume ∥M−1EM∥∞≤0.5\|M^{-1}E_M\|_\infty \leq 0.5. Let nz≥1n_z \geq 1 be the largest number of nonzeros in any row of NN. Suppose that all computation uses floating point arithmetic with a unit round-off of ϵc\epsilon_c and that the solution to M^xi+1=fi\widehat{M}x_{i+1} = f_i is computed so that

(M^+ES)x~i+1=f~i(\widehat{M}+E_{S})\widetilde{x}_{i+1}=\widetilde{f}_{i}

where ∥ES∥∞≤cnϵc∥M^∥∞\|E_S\|_\infty \leq c_n \epsilon_c \|\widehat{M}\|_\infty. Finally, assume that ∥M−1N∥∞<1\|M^{-1}N\|_\infty < 1, i.e., the iterations converge in exact arithmetic. Then,

∥e~i+1∥∞≤(1+2∥M−1EM∥∞)∥M−1N∥∞∥e~i∥∞+∥M^−1∥∞∥N∥∞((ϵN+γnz)∥x~i∥∞+ϵc∥x∥∞)+(ϵM+ϵc)κ∞(M^)∥x∥∞+cnϵcκ∞(M^)∥x~i+1∥∞\begin{align*}\|\widetilde{e}_{i+1}\|_{\infty}\leq&(1+2\|M^{-1}E_{M}\|_{\infty})\|M^{-1}N\|_{\infty}\|\widetilde{e}_{i}\|_{\infty}\\&+\|\widehat{M}^{-1}\|_{\infty}\|N\|_{\infty}((\epsilon_{N}+\gamma_{n_{z}})\|\widetilde{x}_{i}\|_{\infty}+\epsilon_{c}\|x\|_{\infty})\\&+(\epsilon_{M}+\epsilon_{c})\kappa_{\infty}(\widehat{M})\|x\|_{\infty}\\&+c_{n}\epsilon_{c}\kappa_{\infty}(\widehat{M})\|\widetilde{x}_{i+1}\|_{\infty}\end{align*}

where γnz=ϵcnz/(1−ϵcnz)\gamma_{n_z} = \epsilon_c n_z / (1 - \epsilon_c n_z) [14, Chap. 3]. Furthermore, if we have ∥x~i∥∞≲∥x∥∞\|\widetilde{x}_i\|_\infty \lesssim \|x\|_\infty, ∥x~i+1∥∞≲∥x∥∞\|\widetilde{x}_{i+1}\|_\infty \lesssim \|x\|_\infty, ϵN≤0.1\epsilon_N \leq 0.1, and nzϵc≪1n_z \epsilon_c \ll 1, then

∥e~i+1∥∞≲(1+2∥M−1EM∥∞)∥M−1N∥∞∥e~i∥∞+(ϵN+2.1nzϵc)∥M^−1∥∞∥N∥∞∥x∥∞+(ϵM+(cn+1)ϵc)κ∞(M^)∥x∥∞.\begin{align*}\|\widetilde{e}_{i+1}\|_{\infty}\lesssim&(1+2\|M^{-1}E_{M}\|_{\infty})\|M^{-1}N\|_{\infty}\|\widetilde{e}_{i}\|_{\infty}\\&+(\epsilon_{N}+2.1n_{z}\epsilon_{c})\|\widehat{M}^{-1}\|_{\infty}\|N\|_{\infty}\|x\|_{\infty}\\&+(\epsilon_{M}+(c_{n}+1)\epsilon_{c})\kappa_{\infty}(\widehat{M})\|x\|_{\infty}.\end{align*}

Proof. We begin by bounding some intermediate quantities. By the Woodbury formula,

M^−1=(I+M−1EM(I−M−1EM)−1)M−1.\widehat{M}^{-1}=(I+M^{-1}E_{M}(I-M^{-1}E_{M})^{-1})M^{-1}.

By the assumption on ∥M−1EM∥∞\|M^{-1}E_M\|_\infty, we have

(2.1)

∥I+M−1EM(I−M−1EM)−1∥∞≤1+2∥M−1EM∥∞≤2.\|I+M^{-1}E_{M}(I-M^{-1}E_{M})^{-1}\|_{\infty}\leq1+2\|M^{-1}E_{M}\|_{\infty}\leq2.

1^{1}This is similar to Amdahl's law for improving software performance.

LINDQUIST, APPELHANS, JACKSON AND DERLAGA

Thus,

(2.2)

∥M^∥∞≤(1+ϵM)∥M∥∞and∥M^−1∥∞≤(1+2∥M−1EM∥∞)∥M−1∥∞.\|\widehat{M}\|_{\infty}\leq(1+\epsilon_{M})\|M\|_{\infty}\quad\mathrm{a n d}\quad\|\widehat{M}^{-1}\|_{\infty}\leq(1+2\|M^{-1}E_{M}\|_{\infty})\|M^{-1}\|_{\infty}.

Next, we consider the error introduced by the round-off errors in the computation. By basic error analysis of matrix-vector products [14, (3.12)], b−N^x~ib - \widehat{N}\widetilde{x}_i is computed such that

(2.3)

f~i=b−N^x~i+Efiand∥Efi∥∞≤ϵc∥b∥∞+γnz∥N^∥∞∥x~i∥∞.\widetilde{f}_{i}=b-\widehat{N}\widetilde{x}_{i}+E_{fi}\qquad and\qquad\|E_{fi}\|_{\infty}\leq\epsilon_{c}\|b\|_{\infty}+\gamma_{n_{z}}\|\widehat{N}\|_{\infty}\|\widetilde{x}_{i}\|_{\infty}.

Combined with the assumption on the application of the inversion of M^\widehat{M}, the actual iteration is

(M^+ES)x~i+1=b−N^x~i+Efi,(\widehat{M}+E_{S})\widetilde{x}_{i+1}=b-\widehat{N}\widetilde{x}_{i}+E_{f i},

which is equivalent to

(2.4)

x~i+1=M^−1(b−N^x~i+Efi−ESx~i+1).\widetilde{x}_{i+1}=\widehat{M}^{-1}(b-\widehat{N}\widetilde{x}_{i}+E_{f i}-E_{S}\widetilde{x}_{i+1}).

Finally, we can bound e~i+1=x~i+1−x\widetilde{e}_{i+1} = \widetilde{x}_{i+1} - x in terms of e~i\widetilde{e}_i. Note that Ax=bAx = b can be rearranged to

(2.5)

x=M^−1(b−(N+EM)x).x=\widehat{M}^{-1}(b-(N+E_{M})x).

Then, substituting (2.4) and (2.5) into the error definition gives

e~i+1=M^−1(b−N^x~i+Efi−ESx~i+1)−M^−1(b−(N+EM)x).\widetilde{e}_{i+1}=\widehat{M}^{-1}(b-\widehat{N}\widetilde{x}_{i}+E_{fi}-E_{S}\widetilde{x}_{i+1})-\widehat{M}^{-1}(b-(N+E_{M})x).

Rearranging equations gives

(2.6)

e~i+1=M^−1Ne~i+M^−1(ENx~i+EMx+Efi−ESx~i+1).\widetilde{e}_{i+1}=\widehat{M}^{-1}N\widetilde{e}_{i}+\widehat{M}^{-1}(E_{N}\widetilde{x}_{i}+E_{M}x+E_{f i}-E_{S}\widetilde{x}_{i+1}).

Hence,

∥e~i+1∥∞≤(1+2∥M−1EM∥∞)∥M−1N∥∞∥e~i∥∞+ϵN∥M^−1∥∞∥N∥∞∥x~i∥∞+ϵMκ∞(M^)∥x∥∞+∥M^−1∥∞∥ES∥∞∥x~i+1∥∞+∥M^−1∥∞(ϵc∥b∥∞+(1+ϵN)γnz∥N∥∞∥x~i∥∞)≤(1+2∥M−1EM∥∞)∥M−1N∥∞∥e~i∥∞+ϵN∥M^−1∥∞∥N∥∞∥x~i∥∞+ϵMκ∞(M^)∥x∥∞+ϵcκ∞(M^)∥x∥∞+∥M^−1∥∞∥N∥∞(ϵc∥x∥∞+(1+ϵN)γnz∥x~i∥∞)+cnϵcκ∞(M^)∥x~i+1∥∞.\begin{align*}\|\widetilde{e}_{i+1}\|_{\infty}\leq&(1+2\|M^{-1}E_{M}\|_{\infty})\|M^{-1}N\|_{\infty}\|\widetilde{e}_{i}\|_{\infty}\\&+\epsilon_{N}\|\widehat{M}^{-1}\|_{\infty}\|N\|_{\infty}\|\widetilde{x}_{i}\|_{\infty}+\epsilon_{M}\kappa_{\infty}(\widehat{M})\|x\|_{\infty}+\|\widehat{M}^{-1}\|_{\infty}\|E_{S}\|_{\infty}\|\widetilde{x}_{i+1}\|_{\infty}\\&+\|\widehat{M}^{-1}\|_{\infty}(\epsilon_{c}\|b\|_{\infty}+(1+\epsilon_{N})\gamma_{n_{z}}\|N\|_{\infty}\|\widetilde{x}_{i}\|_{\infty})\\ \leq&(1+2\|M^{-1}E_{M}\|_{\infty})\|M^{-1}N\|_{\infty}\|\widetilde{e}_{i}\|_{\infty}\\&+\epsilon_{N}\|\widehat{M}^{-1}\|_{\infty}\|N\|_{\infty}\|\widetilde{x}_{i}\|_{\infty}+\epsilon_{M}\kappa_{\infty}(\widehat{M})\|x\|_{\infty}\\&+\epsilon_{c}\kappa_{\infty}(\widehat{M})\|x\|_{\infty}+\|\widehat{M}^{-1}\|_{\infty}\|N\|_{\infty}(\epsilon_{c}\|x\|_{\infty}+(1+\epsilon_{N})\gamma_{n_{z}}\|\widetilde{x}_{i}\|_{\infty})\\&+c_{n}\epsilon_{c}\kappa_{\infty}(\widehat{M})\|\widetilde{x}_{i+1}\|_{\infty}.\end{align*}

Finally, assume ∥x~i∥∞≲∥x∥∞\|\widetilde{x}_i\|_\infty \lesssim \|x\|_\infty, ∥x~i+1∥∞≲∥x∥∞\|\widetilde{x}_{i+1}\|_\infty \lesssim \|x\|_\infty, ϵN≤0.1\epsilon_N \leq 0.1, and nzϵc≪1n_z \epsilon_c \ll 1. Therefore,

∥e~i+1∥∞≲(1+2∥M−1EM∥∞)∥M−1N∥∞∥e~i∥∞+(ϵN+2.1nzϵc)∥M^−1∥∞∥N∥∞∥x∥∞+(ϵM+ϵc)κ∞(M^)∥x∥∞+cnϵcκ∞(M^)∥x∥∞.\begin{align*}\|\widetilde{e}_{i+1}\|_{\infty}\lesssim&(1+2\|M^{-1}E_{M}\|_{\infty})\|M^{-1}N\|_{\infty}\|\widetilde{e}_{i}\|_{\infty}\\&+(\epsilon_{N}+2.1n_{z}\epsilon_{c})\|\widehat{M}^{-1}\|_{\infty}\|N\|_{\infty}\|x\|_{\infty}+(\epsilon_{M}+\epsilon_{c})\kappa_{\infty}(\widehat{M})\|x\|_{\infty}\\&+c_{n}\epsilon_{c}\kappa_{\infty}(\widehat{M})\|x\|_{\infty}.\end{align*}

口

Assuming ∥x~i+1∥∞≲∥x∥∞\|\widetilde{x}_{i+1}\|_{\infty} \lesssim \|x\|_{\infty} to bound ∥e~i+1∥∞\|\widetilde{e}_{i+1}\|_{\infty} may appear to be a circular argument. However, note that rearranging (2.6) gives

(I−M^−1ES)−1x~i+1=M^−1Ne~i+M^−1(ENx~i+EMx+Efi).(I-\widehat{M}^{-1}E_{S})^{-1}\widetilde{x}_{i+1}=\widehat{M}^{-1}N\widetilde{e}_{i}+\widehat{M}^{-1}(E_{N}\widetilde{x}_{i}+E_{M}x+E_{f i}).

So if

∥e~i∥∞≲∥x~i∥∞≲∥x∥∞,\|\widetilde{e}_{i}\|_{\infty}\lesssim\|\widetilde{x}_{i}\|_{\infty}\lesssim\|x\|_{\infty}, cnϵcκ∞(M^)≪1,c_{n}\epsilon_{c}\kappa_{\infty}(\widehat{M})\ll1,

and

(ϵc+ϵM+ϵN)(κ∞(M^)+∥M^−1∥∞∥N∥∞)≪1,(\epsilon_{c}+\epsilon_{M}+\epsilon_{N})(\kappa_{\infty}(\widehat{M})+\|\widehat{M}^{-1}\|_{\infty}\|N\|_{\infty})\ll1,

then ∥x~i+1∥∞≲∥x∥∞\|\widetilde{x}_{i+1}\|_{\infty} \lesssim \|x\|_{\infty}.

Additionally, there are a few specific quantities worth considering. First, note that if ϵMκ∞(M^)≤0.5\epsilon_M \kappa_\infty(\widehat{M}) \leq 0.5, then ∥M−1EM∥∞≤0.5\|M^{-1} E_M\|_\infty \leq 0.5. Furthermore, (2.2) implies that bounds relative to ∥M^−1∥∞\|\widehat{M}^{-1}\|_\infty and κ∞(M^)\kappa_\infty(\widehat{M}) can be easily replaced with bounds based on MM. Finally, probabilistic analysis says that the γnz\gamma_{n_z} introduced in (2.3) will scale as nzϵc+O(ϵc2)\sqrt{n_z} \epsilon_c + O(\epsilon_c^2) instead of nzϵc+O(ϵc2)n_z \epsilon_c + O(\epsilon_c^2) for large nzn_z with high probability [15].

Theorem 2.1 implies that for sufficiently small ϵM\epsilon_M and ϵN\epsilon_N, the reduced-precision iteration will converge almost as fast as exact arithmetic until it reaches a relative accuracy dependent on ϵc\epsilon_c, ϵM\epsilon_M, ϵN\epsilon_N κ∞(M)\kappa_\infty(M), and ∥M−1∥∞∥N∥∞\|M^{-1}\|_{\infty}\|N\|_\infty.

This bound additionally provides insight into the selection of ϵM\epsilon_M, ϵN\epsilon_N, and ϵc\epsilon_c. As is usually the case, there is no numerical benefit in storing MM and NN in higher precision that the computation is done in. Second, the approximation of NN doesn't actually affect the rate of convergence but only the maximum achievable accuracy. Thus, ϵN\epsilon_N can be chosen such that ϵN∥M^−1∥∞∥N∥∞\epsilon_N\|\widehat{M}^{-1}\|_{\infty}\|N\|_{\infty} is a little less than the desired relative forward error. Furthermore, as stationary iterations are generally bandwidth bound, cnc_n should ideally be chosen so that

ϵN≥(nz+1)ϵcandϵM≥(cn+1)ϵc.\epsilon_{N}\geq(n_{z}+1)\epsilon_{c}\qquad\mathrm{a n d}\qquad\epsilon_{M}\geq(c_{n}+1)\epsilon_{c}.

If such a precision is not supported natively in hardware, it is reasonable to decrease the accuracy of NN so that ϵN\epsilon_N is somewhere between (nz+1)ϵc(n_z + 1)\epsilon_c and nzϵc\sqrt{n_z}\epsilon_c. The hardest value to develop a heuristic for is ϵM\epsilon_M as this value directly affects the rate of convergence. Theorem 2.1 assumes that ϵMκ∞(M)≤0.5\epsilon_M\kappa_\infty(M) \leq 0.5 and convergence requires (1+2ϵMκ∞(M))∥M−1N∥∞≪1(1+2\epsilon_M\kappa_\infty(M))\|M^{-1}N\|_\infty \ll 1, so the choice of ϵM\epsilon_M should reflect that. Finally, similar analysis to that of ϵN\epsilon_N should be applied to ϵM\epsilon_M to ensure the maximum achievable accuracy is sufficient.

A key part of the bounds in Theorem 2.1 is the condition number κ∞(M)\kappa_\infty(M) and the pseudo-condition number ∥M−1∥∞∥N∥∞\|M^{-1}\|_\infty\|N\|_\infty. Note that if DD is a diagonal matrix that can be applied without round-off error (i.e., it's elements are powers of two), then the rounding errors incurred by the stationary iterations

DMxi+1=(Db−DNxi)andMxi+1=(b−Nxi)DMx_{i+1}=(Db-DNx_{i})\qquad and\qquad Mx_{i+1}=(b-Nx_{i})

will be identical. However, the choice of DD affects ∥(DM)−1∥∞∥DN∥∞\|(DM)^{-1}\|_{\infty}\|DN\|_{\infty} and κ∞(DM)\kappa_{\infty}(DM). This results in the following theorem, which states that the convergence isn't affected by the scaling of block rows. An analogous theorem can also be proven for column-scaling with the 1-norm.

COROLLARY 2.2. Assume AA is decomposed into block rows I1,I2,…,Ib\mathcal{I}_1, \mathcal{I}_2, \ldots, \mathcal{I}_b. Let ϵM\epsilon_M, ϵN\epsilon_N, and cnc_n be such that for every 1≤i≤b1 \leq i \leq b,

∥EM[Ii,:]∥∞≤ϵM∥M[Ii,:]∥∞,∥EN[Ii,:]∥∞≤ϵN∥N[Ii,:]∥∞,\|E_{M}[\mathcal{I}_{i},:]\|_{\infty}\leq\epsilon_{M}\|M[\mathcal{I}_{i},:]\|_{\infty},\qquad\|E_{N}[\mathcal{I}_{i},:]\|_{\infty}\leq\epsilon_{N}\|N[\mathcal{I}_{i},:]\|_{\infty},

LINDQUIST, APPELHANS, JACKSON AND DERLAGA

and∥ES[Ii,:]∥∞≤cnϵc∥M[Ii,:]∥∞\begin{array}{r l}{a n d}&{{}\quad\|E_{S}[\mathcal{I}_{i},:]\|_{\infty}\leq c_{n}\epsilon_{c}\|M[\mathcal{I}_{i},:]\|_{\infty}}\end{array}

(i.e., the errors of a block row are relative to that row). Let DD be any diagonal matrix containing powers of two such that the diagonal values of a given block row are identical,2^2 and assume that κ∞(DM)ϵM≤0.5\kappa_\infty(DM)\epsilon_M\leq0.5. Then,

∥M−1EM∥∞≤ϵMκ∞(DM).\|M^{-1}E_{M}\|_{\infty}\leq\epsilon_{M}\kappa_{\infty}(D M).

Hence,

∥e~i+1∥∞≤(1+2ϵMκ∞(DM))∥M−1N∥∞∥e~i∥∞+∥(DM^)−1∥∞∥DN∥∞((ϵN+γnz)∥x~i∥∞+ϵc∥x∥∞)+(ϵM+ϵc)κ∞(DM^)∥x∥∞+cnϵcκ∞(DM^)∥x~i+1∥∞.\begin{align*}\|\widetilde{e}_{i+1}\|_{\infty}\leq&(1+2\epsilon_{M}\kappa_{\infty}(DM))\|M^{-1}N\|_{\infty}\|\widetilde{e}_{i}\|_{\infty}\\&+\|(D\widehat{M})^{-1}\|_{\infty}\|DN\|_{\infty}((\epsilon_{N}+\gamma_{n_{z}})\|\widetilde{x}_{i}\|_{\infty}+\epsilon_{c}\|x\|_{\infty})\\&+(\epsilon_{M}+\epsilon_{c})\kappa_{\infty}(D\widehat{M})\|x\|_{\infty}\\&+c_{n}\epsilon_{c}\kappa_{\infty}(D\widehat{M})\|\widetilde{x}_{i+1}\|_{\infty}.\end{align*}

and if ∥x~i∥∞≲∥x∥∞\|\widetilde{x}_i\|_\infty \lesssim \|x\|_\infty, ∥x~i+1∥∞≲∥x∥∞\|\widetilde{x}_{i+1}\|_\infty \lesssim \|x\|_\infty, and nzϵc≪1n_z \epsilon_c \ll 1, then

∥e~i+1∥∞≲(1+2ϵMκ∞(DM))∥M−1N∥∞∥e~i∥∞+(ϵN+(nz+1)ϵc)∥(DM^)−1∥∞∥DN∥∞∥x∥∞+(ϵM+(cn+1)ϵc)κ∞(DM^)∥x∥∞.\begin{align*}\|\widetilde{e}_{i+1}\|_{\infty}\lesssim&(1+2\epsilon_{M}\kappa_{\infty}(DM))\|M^{-1}N\|_{\infty}\|\widetilde{e}_{i}\|_{\infty}\\&+(\epsilon_{N}+(n_{z}+1)\epsilon_{c})\|(D\widehat{M})^{-1}\|_{\infty}\|DN\|_{\infty}\|x\|_{\infty}\\&+(\epsilon_{M}+(c_{n}+1)\epsilon_{c})\kappa_{\infty}(D\widehat{M})\|x\|_{\infty}.\end{align*}

Because the error is bounded by the smallest such D, poor row scaling is not detrimental to the convergence and accuracy.

Proof. By the choice of ϵM,ϵN\epsilon_{M}, \epsilon_{N}, and cnc_{n}, we have

∥DEM∥∞≤ϵM∥DM∥∞,∥DEN∥∞≤ϵN∥DN∥∞,\|D E_{M}\|_{\infty}\leq\epsilon_{M}\|D M\|_{\infty},\qquad\|D E_{N}\|_{\infty}\leq\epsilon_{N}\|D N\|_{\infty}, and∥DES∥∞≤cnϵc∥DM∥∞.\mathrm{a n d}\qquad\|D E_{S}\|_{\infty}\leq c_{n}\epsilon_{c}\|D M\|_{\infty}.

Then, Theorem 2.1 applies and provides the result.

It may not be obvious that the block-row assumption on ESE_{S} holds for the usual stationary methods. So, consider the case where M is block lower triangular (which includes the block Jacobi, Gauss-Seidel, and successive over-relaxation iterations). Then, ESE_{S} is the error incurred in computing

M[Ii,Ii]−1(f~i[Ii]−∑j=1i−1M[Ii,Ij]x~i+1[Ij]).M[\mathcal{I}_{i},\mathcal{I}_{i}]^{-1}\left(\widetilde{f}_{i}[\mathcal{I}_{i}]-\sum_{j=1}^{i-1}M[\mathcal{I}_{i},\mathcal{I}_{j}]\widetilde{x}_{i+1}[\mathcal{I}_{j}]\right).

By standard error results [14, (3.12)], the error in computing the parenthetical quantity is bounded by γn∣M[Ii,:]∣∣x~i+1∣\gamma_n|M[\mathcal{I}_i,:]||\widetilde{x}_{i+1}|. The error on inverting the diagonal block depends on the specific algorithm, but generally Gaussian elimination is used. The error for Gaussian elimination depends on a small polynomial of the block size times the growth factor. For many important classes of matrices (e.g., symmetric positive definite or diagonally dominant), the growth factor is a small constant. For general matrices, the growth factor can be much larger (especially if pivoting is not used), but if the diagonal blocks all have similar enough numerical structure, the growth factor won't vary significantly between them. So, there will generally be a constant cnc_n that encompasses the polynomial and growth factor terms.

2^{2}I.e., for 1≤i≤b1 \leq i \leq b, the submatrix D[Ii,Ii]D[\mathcal{I}_i, \mathcal{I}_i] is a power of two times the identity matrix.

Algorithm 2.1 Restarted Stationary Iterations

1: x0=0x_0 = 0 2: for ii in 0,…,ℓ0, \ldots, \ell do 3: ri=b−Axir_i = b - Ax_i 4: yi,0=0y_{i,0} = 0 5: for jj in 0,…,ki0, \ldots, k_i do 6: yi,j+1=M−1ri−M−1Nyi,jy_{i,j+1} = M^{-1}r_i - M^{-1}Ny_{i,j} 7: end for 8: xi+1=xi+yi,ki+1x_{i+1} = x_i + y_{i,k_i+1} 9: end for

2.1. Higher accuracy with iterative refinement. A key limitation of the above bounds is the maximum achievable accuracy. While some applications may only need a few digits of accuracy, many others require higher accuracy. The standard technique to produce a high-precision solution from a low-accuracy solver is mixed-precision iterative refinement. Algorithm 2.1 describes the mixed-precision algorithm. Note that due to the similarity with restarted GMRES, we refer to the outer iterations as restarts. Furthermore, recall that iterative refinement is equivalent to Newton's method [7, Sec. 2.5], so applications where the stationary iteration is embedded within Newton's method may be already able to refine the solution to higher accuracy.

Usefully, we can show that in exact arithmetic using Algorithm 2.1 is equivalent to just doing the stationary iteration. Consider

zi,j=xi+yi,j.z_{i,j}=x_{i}+y_{i,j}.

Note that zi,ki+1=zi+1,0z_{i,k_i+1}=z_{i+1,0} and

zi,j+1=xi+(M−1ri−M−1Nyi,j)=xi+M−1b−xi−M−1Nxi−M−1Nyi,j=M−1b−M−1Nzi,j.\begin{align*}z_{i,j+1}&=x_{i}+(M^{-1}r_{i}-M^{-1}N y_{i,j})\\&=x_{i}+M^{-1}b-x_{i}-M^{-1}N x_{i}-M^{-1}N y_{i,j}\\&=M^{-1}b-M^{-1}N z_{i,j}.\end{align*}

Thus, zi,jz_{i,j} are the iterates of the stationary iteration without iterative refinement. 3^{3} This is a notable result as it implies that restarting will not affect the rate of convergence in exact arithmetic. This stands in sharp contrast to restarted GMRES for which the rate of convergence can be significantly affected by the choice of restarts [9, 24]. The difference is that more iterations before restarting gives GMRES a larger subspace to optimize over [24], while each iteration in a stationary method is independent of any other.

Within the iterative refinement setting, the inner iteration can either run until low precision is saturated or it can restart sooner. If it restarts sooner, then Theorem 2.1 and the equivalence with non-restarted iterations indicate that the mixed-precision approach will converge similarly to a full-precision implementation. So, consider the case where low-precision arithmetic is saturated so that ∥A−1ri−yi,ki+1∥∞≤cϵ∥A−1ri∥∞\|A^{-1}r_i - y_{i,k_i+1}\|_{\infty} \leq c\epsilon \|A^{-1}r_i\|_{\infty}. With a slight modification to a bound by Carson and Higham 4^4 [5, Thm. 3.2 and Cor. 3.3], it is straightforward to show that if cϵ≪1c\epsilon \ll 1, the residual will improve by a

3^{3}Similarly, taking ki=0k_{i}=0 also shows that a stationary iteration is equivalent in exact precision to iterative refinement with M−1M^{-1} as the inner solver.

4^{4}Their formulation of iterative refinement includes an extra rounding of the residual.

LINDQUIST, APPELHANS, JACKSON AND DERLAGA

factor of about cϵc\epsilon after each restart until an x^\hat{x} is computed which satisfies

∥x−x^∥∞∥x∥∞≲4nzϵccond(A,x)\frac{\|x-\hat{x}\|_{\infty}}{\|x\|_{\infty}}\lesssim4n_{z}\epsilon_{c}\mathrm{cond}(A,x)

where ϵc\epsilon_{c} is the unit round-off for the arithmetic used to compute the residual and

cond(A,x)=∥∣A∣∣A−1∣∣x∣∥∞∥∣x∣∥∞≤κ∞(A).\mathrm{cond}(A,x)=\frac{\||A||A^{-1}||x|\|_{\infty}}{\||x|\|_{\infty}}\leq\kappa_{\infty}(A).

An alternative to iterative refinement is to increase the accuracy of the computation as the iteration progresses similar to the work of Anzt et al. [3,12]. However, in such an approach, only the early iterations benefit from reduced precision. Thus, we expect iterative refinement to provide better performance if moderate to high accuracy is required.

  1. Experimental Results. To demonstrate the practical effectiveness of this mixed-precision approach, we tested it on various matrices from the SuiteSparse collection [6] and NASA's OVERFLOW code for compressible computational fluid dynamics [17]. While the theoretical analysis allows for variable block sizes, our implementation assumes a uniform block size for each matrix.

Both test codes are based on using stationary iterations to solve the equation (D−1A)x=(D−1b)(D^{-1}A)x = (D^{-1}b) where DD is the block diagonal of AA. This has several major benefits over directly iterating on AA. First, it normalizes the scale of the rows, preventing problematic overflow and underflow in the limited dynamic range of half precision. Otherwise, values larger than 65 504 will overflow to infinity and values smaller than 6.10×10−56.10 \times 10^{-5} will lose precision. Second, this preprocessing step avoids the cost of doing the triangular solves for the block-rows in each iteration, which improves performance. Finally, at the start of the solve or after a restart, we can take the initial solution vector to be the right-hand side; this is equivalent to a Jacobi iteration, at the low cost of a vector copy. Because of this and the cost of computing the residual, a restart is counted as an iteration.

Our data is available in the supplemental materials. 5^{5} The tests were run on a NVIDIA H200 SXM GPU with a 140 GiB memory with a peak bandwidth of 4.8 TiB/s, and 132 SMs with a peak single-precision throughput of 67 TFLOP/s. The code was compiled and run in the 26.5 NVIDIA HPC SDK Docker container 6^{6} with CUDA Toolkit 13.2 and Ubuntu 24.04.

3.1. SuiteSparse matrices. We begin by testing the mixed-precision approach with block Jacobi and block Gauss-Seidel iterations on a variety of matrices from the SuiteSparse collection [6]. Table 3.1 shows the specific matrices we used. (Note that some matrices use a block size of 1, making them equivalent to scalar Jacobi or Gauss-Seidel.) These matrices were chosen based on whether the double-precision solvers can converge within a reasonable number of iterations. The right-hand sides were generated from a known solution vector of x[i]=sin⁡(2iπ/n)x[i] = \sin(2i\pi/n) ( i=0,…,n−1i = 0, \ldots, n-1). This allows our analysis to include the forward error.

5^{5}Note that, due to NASA restrictions, the source code for the half-precision OVERFLOW is not available as part of our code artifact. However, the half-precision implementation is available to US Persons in version 2.5.2 of OVERFLOW (https://software.nasa.gov/software/LAR-20382-1).

6^{6}nvcr.io/nvidia/nvhpc:26.5-devel-cuda_multi-ubuntu24.04

Table 3.1: Test matrices from the SuiteSparse collection

Namennnzn_{nz}nbn_bKind
atmosmodj1 270 4328 814 8804Computational Fluid Dynamics
cage141 505 78527 130 3495Directed Weighted Graph
Dubcova265 0251 030 22512D/3D Problem
language399 1301 216 3345Directed Weighted Graph
poisson3Db85 6232 374 9491Computational Fluid Dynamics
thermomech_dM204 3161 423 1164Thermal Problem
torso2115 9671 033 47312D/3D Problem

Figure

Fig. 3.1: Convergence rate of block Jacobi on cage14 with different precisions. Vertical lines indicate the iterations in which restarts occur.

We begin by looking at the rate of convergence of block Jacobi on representative matrices in the infinity-norm forward error,

∥x−x∗∥∞∥x∗∥∞,\frac {\| x - x ^ {*} \| _ {\infty}}{\| x ^ {*} \| _ {\infty}},

shown in Figures 3.1 and 3.2. There are several key observations.

First, without restarting, the mixed-precision implementations have the same initial rate of convergence as the double-precision implementation. This aligns with the theory in section 2 and previous work on reduced-precision iterative methods [18, 20, 21]. The ability for low-precision arithmetic to converge just as quickly as high-precision arithmetic is quite powerful. In some contexts (such as Newton's method), we only need a solution accurate to a few decimal places, thus rate of convergence is the only important aspect.

LINDQUIST, APPELHANS, JACKSON AND DERLAGA

Figure

Fig. 3.2: Convergence rate of block Jacobi on language with different precisions. Vertical lines indicate the iterations in which restarts occur.

Furthermore, even with restarting, the mixed-precision convergence behaves reasonably close to the double precision, non-restarted convergence and can converge to full double-precision accuracy. This comes from the fact, as discussed in subsection 2.1, that the restarted iteration is equivalent to the non-restarted iteration. So, for sufficiently frequent restarts, the precision error will remain a relatively small component of the iterate and have limited effect on the rate of convergence. In the extreme case, restarting every iteration is equivalent to doing the solve entirely in double precision.

Note that Jacobi does not reach a forward error of 10−1510^{-15} on the language matrix for any precision. Both Theorem 2.1 and previous results [15, pg. 326] suggest that an error will generally be greater than u∥M−1∥∞∥N∥∞u\|M^{-1}\|_{\infty}\|N\|_{\infty}. For this Jacobi iteration matrix, 7∥M−1∥∞∥N∥∞=1.623×103^7\|M^{-1}\|_{\infty}\|N\|_{\infty}=1.623\times10^3. So, a maximum achievable accuracy on the order of 10−1210^{-12} is reasonable.

Finally, restarting does not affect the rate of convergence for the double-precision implementation. This matches the theory in subsection 2.1 that the restarted iteration is equivalent to the non-restarted iteration when round-off errors are negligible.

We repeat the experiment with block Gauss-Seidel, as shown in Figures 3.3 and 3.4. Like Jacobi, mixed-precision Gauss-Seidel converged at similar rates as double precision and, when restarted, could achieve full double-precision accuracy.

For cage14, restarting Gauss-Seidel had a notable effect on the rate of convergence. This is caused by the restart iterations performing a Jacobi step, which has slower convergence, instead of a Gauss-Seidel step. Note that such a difference was

7^{7}Although, the spectral radius of the iteration matrix is approximately 0.6 which aligns with the latter part of the convergence. See analysis.jl in our code artifact for more details.

Figure

Fig. 3.3: Convergence rate of block Gauss-Seidel on cage14 with different precisions. Vertical lines indicate the iterations in which restarts occur.

Figure

Fig. 3.4: Convergence rate of block Gauss-Seidel on language with different precisions. Vertical lines indicate the iterations in which restarts occur.

LINDQUIST, APPELHANS, JACKSON AND DERLAGA

not obvious for the language matrix, although the restarted configurations do appear to generally be slightly slower. In part, Jacobi converged nearly as quickly as Gauss-Seidel for this matrix (compare Figures 3.2 and 3.4), so the restart iterations had almost as much improvement as the normal iterations. Additionally, the iteration is sensitive to small perturbations in the working solution; for example, note that the single and double precision lines slightly separate well before reaching single-precision accuracy. This instability helps hide the difference in convergence between the restarted and non-restarted configuration. Note that the initial transient growth of the error suggests large pseudospectral radius [14, (18.8)], which is likely the source of the instability.

Now, we consider the effect on performance. The iterations are run until they compute a solution that satisfies

∥x−x∗∥∞∥x∗∥∞≤10−10.\frac{\|x-x^{*}\|_{\infty}}{\|x^{*}\|_{\infty}}\leq10^{-10}.

Note that one of the primary benefits of stationary iterations over Krylov-subspace methods on modern systems is the lack of global reductions, so in many production use cases, a fixed iteration count is used for the stationary iteration instead of a runtime convergence criteria. (Furthermore, the forward error is unknown in real applications.) We mirror this by using a fixed number of iterations for the timed solve, which is computed by a preliminary, untimed solve. Additionally, we restart the mixed-precision configurations based on the number of iterations required for the double precision implementation. The BFloat16 restart length is a fifth of the total double-precision iterations, the half-precision restart length is a fourth, and the single-precision restart is a half, all rounding down. These restart heuristics were chosen based on Figures 3.1 to 3.4.

Tables 3.2 and 3.3 show the performance of block Jacobi and block Gauss-Seidel, respectively. For all of the tested matrices, if double-precision converged, the iteration also converged with mixed precision. Furthermore, in almost all cases, reducing precision improved the overall performance. (The meaningful exceptions are BFloat16 Gauss-Seidel with poisson3Db and all four combinations of iterations and 16-bit precisions with atmosmodj.) Taking the geometric mean of the per-matrix speedups, the Jacobi iteration is 1.21×1.21 \times faster with single-precision, 1.27×1.27 \times faster with half-precision, and 1.10×1.10 \times faster with BFloat16 compared to double precision; the Gauss-Seidel iteration is instead 1.12×1.12 \times faster, 1.08×1.08 \times faster, and 0.95×0.95 \times slower, respectively. If we exclude cases where slow-downs occur, the speedups for Jacobi increase to 1.60×1.60 \times and 1.54×1.54 \times for half-precision and BFloat16, respectively, and the speedups for Gauss-Seidel increase to 1.25×1.25 \times and 1.27×1.27 \times, respectively.

There are several factors that allow mixed precision to achieve a higher speedup with Jacobi than Gauss-Seidel. First, Gauss-Seidel often converges more quickly than Jacobi, so a higher percent of the iterations will be double-precision residuals compared to Jacobi. Additionally, recall that each row in a Jacobi iteration is independent of all others, this allows each iteration to be handled in a single, parallel CUDA kernel. Gauss-Seidel, on the other hand, has dependencies between rows based on a coloring, thus each color is launched with a separate CUDA kernel. Each CUDA kernel launched in an iteration introduces some overhead for launching the kernel and the reduced utilization as the kernel finishes. Furthermore, some colors in the Gauss-Seidel may have a small number of rows, resulting in poor utilization of the GPU, while Jacobi only has a single, high-occupancy kernel.

Note that, when slowdowns occur, they are driven by an increased number of

Table 3.2: Performance of the mixed-precision approach for Jacobi iterations. Uncertainty intervals indicate 3 standard deviations.

MatrixDoubleSingleHalfBFloat16
Time (ms)Iter.Time (ms)Iter.Time (ms)Iter.Time (ms)Iter.
atmosmodj4263.46 ± 20.89441383793.24 ± 14.60445708569.95 ± 52.8611448714627.70 ± 57.38194997
cage1498.05 ± 0.6418171.06 ± 2.0018165.63 ± 0.0918165.89 ± 0.08181
language132.57 ± 0.3864116.44 ± 0.066570.46 ± 0.326179.14 ± 0.4266
thermomech_dM2386.03 ± 1.51873721711.34 ± 4.90873731197.79 ± 3.02872651207.46 ± 0.4485700
torso21.26 ± 0.052361.21 ± 0.012361.08 ± 0.012361.11 ± 0.08239

LINDQUIST, APPELHANS, JACKSON AND DERLAGA

Table 3.3: Performance of the mixed-precision approach for Gauss-Seidel iterations. Uncertainty intervals indicate 3 standard deviations.

MatrixDoubleSingleHalfBFloat16
Time (ms)Iter.Time (ms)Iter.Time (ms)Iter.Time (ms)Iter.
Dubcova21010.86 ±0.24301411022.42 ±0.1630142977.87 ±0.10299461000.98 ±0.1130144
atmosmodj2706.60 ±2.63233942407.73 ±1.60236025977.33 ±5.26664769299.84 ±3.68103289
cage1414.67 ±0.112211.81 ±0.102312.33 ±0.132512.9 ±0.126
language121.44 ±0.385397.89 ±0.445164.53 ±0.454968.62 ±0.4851
poisson3Db613.11 ±1.0111169601.73 ±0.2511161588.10 ±0.1511288819.61 ±0.1515726
thermomech_dM1.77 ±0.02361.41 ±0.03361.23 ±0.02391.26 ±0.0139
torso29.43 ±0.094609.15 ±0.094538.63 ±0.104498.17 ±0.10422

Figure

Fig. 3.5: Convergence rate of block Jacobi on atmosmodj with different precisions. Vertical lines indicate the iterations in which restarts occur for the half-precision configuration.

iterations; for all of the tests on the matrix, reducing the precision always reduces the average time per-iteration. (The one exception is the Dubcova2 matrix with single-precision, which has a 1% slowdown.) To study this difference in iteration count, Figure 3.5 plots the convergence of the Jacobi iteration with different precisions on the atmosmodj matrix. Interestingly, the half-precision implementation forms a scallop-like convergence pattern, with the peaks occurring at the restarts. The convergence of BFloat16, on the other hand, just stagnates after the error improves by a fraction of a digit. Thus, for both of these cases, increasing the restart frequency is expected to reduce the iteration count and improve performance for the 16-bit precisions. Note that for Jacobi, the iteration matrix has a spectral radius 8^8 of approximately 0.999 521 and an ∞\infty-norm of 0.999 999 85. Thus, ∥Ak∥∞\|A^k\|_\infty is always less than 1 and goes to zero as kk goes to infinity in exact or double precision. However, for half-precision, unit round-off is comparable to the gap between the spectral radius and 1 and is significantly larger than the gap between the norm and 1; and for BFloat16, the unit round-off is larger than both gaps. Hence, rounding errors may perturb the effective spectral radius and norm to be larger than 1, which can delay or even prevent convergence. The behavior of Gauss-Seidel on atmosmodj and poisson3Db appears to be similar.

3.2. OVERFLOW. We start by testing the effect of half-precision on OVERFLOW's SSOR linear solver [17]. OVERFLOW is a compressible CFD code developed by NASA and is based on structured overset grids. Thus, the overarching paradigm is a Newton iteration for nonlinear equations, with a linear solve on each grid for each Newton iteration.

OVERFLOW provides many linear solver options, but we focused on the multicolored, SSOR solver. The linear system for each grid comes from discretizing the

8^{8}See analysis.jl in our code artifact for more details.

LINDQUIST, APPELHANS, JACKSON AND DERLAGA

Figure

Fig. 3.6: Effect of mixed-precision on convergence for OVERFLOW. (Note that the convergence lines overlap almost identically.)

mesh with a 7-point finite-difference stencil. Because it is placed within a Newton iteration, only a few digits of accuracy are needed from the linear solver [8]. OVERFLOW already converts the linear system to single-precision before running the SSOR. So, we test the effect of reducing the linear system to BFloat16, including both the matrix and vector elements.

We tested OVERFLOW with a case from the 6th drag prediction workshop. Specifically, we used the WB_ae2p50_medium case, which is a steady-state simulation from an angle-of-attack sweep from aero-elastic deflections. Flow conditions are: M=0.85M = 0.85, Re=5Re = 5 million, Reference temperature = 100°F, and Angle-of-attack = 2.5°. The solver was run for 50 000 Newton iterations with ten SSOR iterations per Newton step.

Figure 3.6 shows the convergence of the baseline, half-precision, and BFloat16 configurations on the overall mesh. The plotted residual is the sum of the per-grid residuals. Note that the nonlinear solve converged almost identically between the configurations, and the achievable accuracy was not limited by the reduction in precision. Heuristically, this is to be expected: OVERFLOW uses a Newton iteration with many steps, so accuracy of individual linear solves is not critical. While the configurations achieved similar convergence, the low-precision configuration had a 13.7% speedup for the overall application. (This speedup includes the setup costs, although the Newton iteration takes 99.9% of the runtime for both configurations.)

To provide a more detailed performance breakdown, we profiled the code with NVIDIA Nsight Systems on 500 Newton iterations. Figure 3.7 shows the time spent in different parts of the Newton solve. (Note that, because the setup phase is negligible for the actual simulation, its time is omitted.) Thus, for the above converged run, that portion will become negligible. The SSOR kernel itself saw a 1.37×1.37 \times speedup. This corresponds to a halving of the floating point data but not reducing the integer

Figure

Fig. 3.7: Performance breakdown for OVERFLOW on 500 Newton iterations.

data or reducing the computational overhead. The performance of the rest of the Newton solve was largely unaffected.

  1. Conclusions. Using this mixed-precision approach for stationary iterative methods reduces the amount of data movement, and thus reduces the time to solution. Theoretical analysis indicates that this approach will converge at a similar rate to full precision until the accuracy of the low-precision component is saturated, which was verified experimentally. Furthermore, experimental results show that selectively using half-precision provided a 1.60×1.60\times speedup for block Jacobi iterations and a 1.25×1.25\times speedup for block Gauss-Seidel iterations. Finally, we demonstrated that this technique can be used to accelerate OVERFLOW, a production fluid simulation code by 1.14×1.14\times.

Importantly, the effectiveness of this approach comes from the classic, mixed-precision iterative refinement paradigm, which has a strong history, and the fact that the initial convergence is not affected by the reduction in precision. This makes the timing of restarts important for performance. However, our experimental results suggested that the ideal restart point for mixed-precision stationary methods cannot be simply determined for a given problem, which aligns with previous work on restarted iterative methods [4,13,20]. Furthermore, the heuristic used in our experiments requires an estimate on the number of iterations needed for the full-precision implementation. Thus, like previous work in mixed precision, our approach would benefit from the development of better restart strategies.

Besides compressible CFD, one of the most important modern uses of stationary iterations is as the smoother step for multigrid methods. Note that the pre-smoother is run with an initial guess of 0. So, based on the discussion in section 2, this suggests that there will be little slowdown in the rate of convergence on the small number of smoother iterations used in practice. Furthermore, by adding a full-precision residual computation after the prolongation step, subsection 2.1 suggests mixed precision will also be effective for the post-smoother. While there has been previous work on using mixed precision for multigrid methods [22, 23], our approach may allow the mix of precisions to be more finely tuned, improving performance.

LINDQUIST, APPELHANS, JACKSON AND DERLAGA

Finally, note that Theorem 2.1 and Corollary 2.2 bound the accuracy given a normwise approximation error. Thus, there is potential for using different compression schemes than just storing each element in a lower-precision floating-point format. For example, storing blocks of the matrix in a block floating-point format or as a low-rank approximation may provide better trade-offs in performance and overall accuracy.

Acknowledgments. Claude was used to generate and improve plotting scripts and to identify flaws and weaknesses in earlier drafts of the manuscript. The authors assume responsibility for all content.

The authors would like to thank the NASA Subsonic Vehicle Technologies and Tools (SVTT) Project for supporting the implementation of this work in OVERFLOW. We would also like to thank the NASA Langley K-Cluster team for providing the compute resources to run preliminary OVERFLOW tests.

REFERENCES

[1] A. ABDELFATTAH, H. ANZT, E. G. BOMAN, E. CARSON, T. COJEAN, J. DONGARRA, A. FOX, M. GATES, N. J. HIGHAM, X. S. LI, J. LOE, P. LUSZCZEK, S. PRANESH, S. RAJAMANICKAM, T. RIBIZEL, B. F. SMITH, K. SWIRYDOWICZ, S. THOMAS, S. TOMOV, Y. M. TSAI, AND U. M. YANG, A survey of numerical linear algebra methods utilizing mixed-precision arithmetic, The International Journal of High Performance Computing Applications, 35 (2021), pp. 344–369, https://doi.org/10.1177/10943420211003313, https://doi.org/10.1177/10943420211003313, https://arxiv.org/abs/https://doi.org/10.1177/10943420211003313.

[2] P. AMESTOY, A. JEGO, J.-Y. L'EXCELLENT, T. MARY, AND G. PICHON, BLAS-based block memory accessor with applications to mixed precision sparse direct solvers. Preprint, April 2025, https://hal.science/hal-05019106.

[3] H. ANZT, J. DONGARRA, AND E. S. QUINTANA-ORTÍ, Adaptive precision solvers for sparse linear systems, in Proceedings of the 3rd International Workshop on Energy Efficient Supercomputing, E2SC '15, New York, NY, USA, 2015, Association for Computing Machinery, p. 10, https://doi.org/10.1145/2834800.2834802, https://doi.org/10.1145/2834800.2834802.

[4] A. BAKER, E. JESSUP, AND T. KOLEV, A simple strategy for varying the restart parameter in GMRES(m), Journal of Computational and Applied Mathematics, 230 (2009), pp. 751–761, https://doi.org/10.1016/j.cam.2009.01.009, https://www.sciencedirect.com/science/article/pii/S0377042709000132.

[5] E. CARSON AND N. J. HIGHAM, Accelerating the solution of linear systems by iterative refinement in three precisions, SIAM Journal on Scientific Computing, 40 (2018), pp. A817–A847, https://doi.org/10.1137/17M1140819, https://doi.org/10.1137/17M1140819.

[6] T. A. DAVIS AND Y. HU, The University of Florida sparse matrix collection, ACM Trans. Math. Softw., 38 (2011), p. 25, https://doi.org/10.1145/2049662.2049663, https://doi.org/10.1145/2049662.2049663.

[7] J. W. DEMMEL, Applied Numerical Linear Algebra, Society for Industrial and Applied Mathematics, 1997, https://doi.org/10.1137/1.9781611971446, https://epubs.siam.org/doi/abs/10.1137/1.9781611971446, https://arxiv.org/abs/https://epubs.siam.org/doi/pdf/10.1137/1.9781611971446.

[8] J. M. DERLAGA, C. W. JACKSON, AND P. G. BUNING, Recent Progress in OVERFLOW Convergence Improvements, 2020, https://doi.org/10.2514/6.2020-1045, https://arc.aiaa.org/doi/abs/10.2514/6.2020-1045, https://arxiv.org/abs/https://arc.aiaa.org/doi/pdf/10.2514/6.2020-1045.

[9] M. EMBREE, The tortoise and the hare restart GMRES, SIAM Review, 45 (2003), pp. 259–266, https://doi.org/10.1137/S003614450139961, https://doi.org/10.1137/S003614450139961, https://arxiv.org/abs/https://doi.org/10.1137/S003614450139961.

[10] G. FLEGAR, H. ANZT, T. COJEAN, AND E. S. QUINTANA-ORTÍ, Adaptive precision block-Jacobi for high performance preconditioning in the ginkgo linear algebra software, ACM Trans. Math. Softw., 47 (2021), p. 28, https://doi.org/10.1145/3441850, https://doi.org/10.1145/3441850.

[11] J. GE AND J. ZHANG, Three-precision iterative refinement with parameter regularization and prediction for solving large sparse linear systems, 2025, https://doi.org/10.48550/arXiv.2501.04229, https://arxiv.org/abs/2501.04229, https://arxiv.org/abs/2501.04229.

[12] T. GRÜTZMACHER, T. COJEAN, G. FLEGAR, F. GÖBEL, AND H. ANZT, A customized precision format based on mantissa segmentation for accelerating sparse linear algebra, Concurrency and Computation: Practice and Experience, 32 (2020), p. e5418, https://doi.org/10.1002/cpe.5418, https://onlinelibrary.wiley.com/doi/abs/10.1002/cpe.5418, https://arxiv.org/abs/https://onlinelibrary.wiley.com/doi/pdf/10.1002/cpe.5418.

[13] A. HAQUE, S. M. SHONTZ, AND X. TU, GPU-accelerated, mixed precision GMRES(m) with varied restarts, in 2025 IEEE High Performance Extreme Computing Conference (HPEC), 2025, pp. 1–7, https://doi.org/10.1109/HPEC67600.2025.11196269.

[14] N. J. HIGHAM, Accuracy and Stability of Numerical Algorithms, Society for Industrial and Applied Mathematics, 2002, https://doi.org/10.1137/1.9780898718027, https://epubs.siam.org/doi/abs/10.1137/1.9780898718027.

[15] N. J. HIGHAM AND T. MARY, A new approach to probabilistic rounding error analysis, SIAM Journal on Scientific Computing, 41 (2019), pp. A2815–A2835, https://doi.org/10.1137/18M1226312, https://doi.org/10.1137/18M1226312, https://arxiv.org/abs/https://doi.org/10.1137/18M1226312.

[16] N. J. HIGHAM AND T. MARY, Mixed precision algorithms in numerical linear algebra, Acta Numerica, 31 (2022), p. 347–414, https://doi.org/10.1017/S0962492922000022.

[17] C. W. JACKSON, D. APPELHANS, J. M. DERLAGA, AND P. G. BUNING, GPU Implementation of the OVERFLOW CFD Code, 2024, https://doi.org/10.2514/6.2024-0042, https://arc.aiaa.org/doi/abs/10.2514/6.2024-0042, https://arxiv.org/abs/https://arc.aiaa.org/doi/pdf/10.2514/6.2024-0042.

[18] C. T. KELLEY, Newton's method in mixed precision, SIAM Review, 64 (2022), pp. 191–211, https://doi.org/10.1137/20M1342902, https://doi.org/10.1137/20M1342902, https://arxiv.org/abs/https://doi.org/10.1137/20M1342902.

[19] P. J. LANZKRON, D. J. ROSE, AND D. B. SZYLD, Convergence of nested classical iterative methods for linear systems, Numerische Mathematik, 58 (1990), pp. 685–702, https://doi.org/https://doi.org/10.1007/BF01385649.

[20] N. LINDQUIST, P. LUSZCZEK, AND J. DONGARRA, Improving the performance of the GMRES method using mixed-precision techniques, in Driving Scientific and Engineering Discoveries Through the Convergence of HPC, Big Data and AI, Cham, 2020, Springer International Publishing, pp. 51–66, https://doi.org/10.1007/978-3-030-63393-6_4.

[21] N. LINDQUIST, P. LUSZCZEK, AND J. DONGARRA, Accelerating restarted GMRES with mixed precision arithmetic, IEEE Transactions on Parallel and Distributed Systems, 33 (2022), pp. 1027–1037, https://doi.org/10.1109/TPDS.2021.3090757.

[22] S. F. McCORMICK, J. BENZAKEN, AND R. TAMSTORF, Algebraic error analysis for mixed-precision multigrid solvers, SIAM Journal on Scientific Computing, 43 (2021), pp. S392–S419, https://doi.org/10.1137/20M1348571, https://doi.org/10.1137/20M1348571, https://arxiv.org/abs/https://doi.org/10.1137/20M1348571.

[23] Y.-H. TSAI, Portable Mixed Precision Algebraic Multigrid on High Performance GPUs, PhD thesis, Karlsruher Institut für Technologie (KIT), 2024, https://doi.org/10.5445/IR/1000168914.46.21.02; LK 01.

[24] H. VAN DER VORST AND C. VUIK, The superlinear convergence behaviour of gmres, Journal of Computational and Applied Mathematics, 48 (1993), pp. 327–341, https://doi.org/10.1016/0377-0427(93)90028-A, https://www.sciencedirect.com/science/article/pii/037704279390028A.

[25] A. WALDEN, E. NIELSEN, B. DISKIN, AND M. ZUBAIR, A mixed precision multicolor point-implicit solver for unstructured grids on GPUs, in 2019 IEEE/ACM 9th Workshop on Irregular Applications: Architectures and Algorithms (IA3), 2019, pp. 23–30, https://doi.org/10.1109/IA349570.2019.00010.

References (21)