Manuscript Offprint
arXiv:2610.40134Integer-Quantized Hierarchical Matrices with Adaptive Bit Allocation
ERIN CARSON , XINYE CHEN , AND RITESH KHAN
Abstract. We present an adaptive bitwidth allocation method for quantizing low-rank factors in hierarchical matrices in order to decrease storage while meeting a given constraint on their reconstruction error. For the bitwidth allocation we formulate a discrete storage minimization problem and show that an optimal assignment can give larger singular values at least as many bits as smaller ones. We further develop a greedy algorithm that meets the specified max-norm quantization error budget. We investigate a hierarchical block partition in which all of the non-diagonal blocks are represented by quantized low-rank factors and only dense blocks remain dense; in this way a global reconstruction bound related to and is obtained, with the former and latter being bounds on the truncation and reconstruction arithmetic errors, respectively. Extensive simulations, carried out with kernel and BEM matrices under block-relative budgets, indicate that the proposed method achieves a reduction in storage of up to when compared to storing the complete matrix densely in FP64, and a reduction of up to when compared to the FP64 low-rank factors within the same partition, together with measured reconstruction errors that remained below the maximum norm bounds in all the hierarchical tests.
Key words. Hierarchical matrices, integer quantization, mixed precision computing, matrix computations
- Introduction. Hierarchical matrices were introduced by Hackbusch as a data-sparse approximation of dense boundary element matrices [12]. Even after low-rank compression, the stored factors can account for a substantial part of the representation. Reducing their storage precision therefore raises the question of how to control the resulting reconstruction error. Quantization is the process of mapping continuous infinite values to a smaller set of discrete finite values, typically with reduced bitwidth number formats. For large-scale model training and low-precision inference on NVIDIA GPUs, reduced precision formats such as FP8, FP16 are increasingly used as they strike a better balance between numerical range, precision and hardware efficiency when in proper use. However, integer formats like INT8 and INT4 remain highly relevant on edge devices, CPUs, NPUs, integer-oriented accelerators and in any setting that demands strict integer-only inference, aggressive weight compression, or operates under tight bandwidth constraints. Integer arithmetic still offers clear practical advantages in that multiply-accumulate operations can stay exact during accumulation provided overflow is avoided, asymmetric quantization can make fuller use of the available code range for non-negative or skewed distributions, and an integer-only workflow can eliminate floating-point units altogether, which is especially valuable for power-efficient and resource-constrained hardware. Thus, quantization methods built around integer arithmetic continue to be a useful and active research direction.
Quantization has been verified to significantly speed up deep learning inference. Deep neural networks deployed on edge devices, such as mobile or IoT devices, are
*The first and third authors are supported by the European Union (ERC, inEXASCALE, 101075632). Views and opinions expressed are those of the authors only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them. The first author is additionally supported by the Charles University Research Centre program No. UNCE/24/SCI/005.
Department of Numerical Mathematics, Charles University, Prague, Czech Republic (carson@karlin.mff.cuni.cz).
Sorbonne Université, CNRS, LIP6, Paris, France (xinye.chen@lip6.fr).
Department of Numerical Mathematics, Charles University, Prague, Czech Republic (ritesh.khan@matfyz.cuni.cz).
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
subject to stringent compute and memory constraints, while networks deployed in the cloud do not suffer such constraints but might suffer excessive latency and power consumption. The common approach to alleviating the burden of training and inference is via quantization [21, 17], and integer quantizations are the most commonly used. SwitchBack [24] achieves a speedup of 13-25% using INT8 quantized training against the performance of bfloat16 training within 0.1 percentage points for the 1B parameter CLIP ViT-Huge. Details can be found in the survey [10] and references therein.
The H-matrices are constructed by recursively partitioning a matrix into blocks (sub-matrices) and approximating suitable off-diagonal blocks by low-rank matrices. Several hierarchical matrix formats have been extensively studied in the literature, e.g., H [12, 14], [5], HODLR [2], HSS [8], and HBS [11] formats. In this work, we consider hierarchical matrix formats in which the low-rank factors are formed independently in a non-nested fashion. Advances in low-rank approximation techniques and hierarchical matrix formats have significantly reduced the storage requirements of dense matrices by exploiting their underlying low-rank structure. However, the low-rank factors or generators in these representations are typically stored in double precision. This may be inefficient from a storage perspective and limit the potential for further storage savings. There has recently been significant work in reduced-precision storage of and computation with hierarchical matrices: Amestoy et al. [3] use singular-value-dependent floating-point precisions for low-rank factors and analyze their use in BLR LU factorization. Kriemann [18] studies adaptive compression of low-rank and dense data in hierarchical matrices and its effect on matrix arithmetic. Other reduced-precision hierarchical representations are studied in [22, 7, 16].
In this work, we develop a singular value aware bit-allocation strategy for the non-diagonal blocks of a hierarchical matrix. Both admissible blocks and non-diagonal inadmissible blocks use quantized low-rank factors, with only diagonal blocks remaining dense. Spatial adaptivity is supplied by the hierarchical block partition and its block ranks, whereas precision adaptivity is applied inside each factorized block. Let be a rank-r SVD with , and let be the bitwidth assigned to component . The local representation uses the balanced factorization , and quantizes each balanced column independently with its own symmetric integer scale. Under this model the mixed-bit quantization error bound for one block is
Let denote the prescribed absolute max-norm error budget for factor quantization, and the superscript q indicates quantization. Our greedy allocation accounts for the minimum error of the components that have not yet been assigned a bitwidth. We use to denote the exact product of the reconstructed quantized factors. Theorem 2.27 proves that, whenever the highest available precision is feasible, the returned local allocation satisfies
In the hierarchical setting, the quantization budget is the total block budget minus bounds for low-rank approximation and reconstruction arithmetic errors, as defined in . The local result is lifted to the complete H-matrix by the disjoint partition of matrix entries into blocks. In entrywise max norm, local block errors combine by
(a) Hierarchical partition
(b) Bit allocation

(c) Grouped reconstruction
FIG. 1.1. Overview of the hierarchical representation and local bit allocation. In (a), D denotes a dense diagonal block, while admissible blocks A and non-diagonal inadmissible blocks I both use quantized low-rank factors. In (b), paired columns receive the same bitwidth and retain separate left and right scales. In (c), columns are grouped by bitwidth for reconstruction. Colors indicate bitwidths; the widths shown are illustrative.
a maximum rather than a sum. We further group components assigned the same bitwidth for reconstruction, with each column retaining its own quantization scales. We account for rounding in the corresponding GEMM (General Matrix Multiply) operations and in the summation of their outputs. This explicitly separates three error sources, namely, low-rank construction, factor quantization, and finite-precision GEMM.
Our method is motivated by techniques used for model acceleration in integer arithmetic and data compression techniques in data-sparse matrices. Integer quantization is a well-established method for reducing the bitwidth of the number format—by converting floating-point numbers into integers—such that storage and computational costs can be reduced. Often, integer-based arithmetic, such as integer matrix multiplication, can run much faster than conventional floating-point arithmetic on hardware with dedicated integer SIMD or dot-product support (e.g., x86 CPUs with AVX2/AVX-512/VNNI and ARM CPUs with NEON/DotProd extensions), and particularly in specialized hardware implementations (e.g., UNPU [20], Eyeriss [9], Pragmatic [1]) and specialized hardware instructions (e.g., NVIDIA Tensor cores). Related surveys on neural network quantization can be found in [23, 19]. Our software is publicly available at https://github.com/inEXASCALE/qhmat.
The remainder of the paper is organized as follows. Section 2 gives an overview of hierarchical matrices; Section 2.1 formulates the foundations of our quantization models using integer arithmetic and Section 2.2 proposes a bit allocation strategy for matrix computations of hierarchical matrices. Section 3 provides the storage analysis of our bit allocation strategy. Section 4 analyzes the empirical results of experimental simulations, and Section 5 concludes the paper.
- Hierarchical matrices. Hierarchical matrix (in short, H-matrix) formats are block low-rank approximations of dense matrices that exploit the numerical low-rank structure of suitable off-diagonal blocks, which are identified based on an admissibility condition [6, 15]. H-matrices reduce both the storage requirements and the arithmetic complexity [12, 4, 13]. This paper restricts attention to the singular value decomposition (SVD) for low-rank approximation in hierarchical matrices. Let be a matrix block and T a rank-r approximation represented by its SVD.
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
Then we have
(2.1)
where with and . Here , , and . In the quantization analysis, its residual relative to is bounded separately.
Let be the matrix index set and have a common row and column cluster tree. The symbol denotes disjoint union. Then, the induced block partition has block index set , where contains only the diagonal blocks, with identical row and column index clusters, and contains all non-diagonal blocks. The latter includes both geometrically admissible blocks and non-diagonal inadmissible blocks whose row and column clusters are terminal. These two classes are distinguished in the storage diagnostics, but use the same quantization model. Admissible blocks may stop the block-tree recursion before both row and column clusters are terminal; geometric admissibility and the choice of storage format are distinct.
Further, each index identifies a block , where are its row and column index clusters. Set and . The blocks form the disjoint partition
(2.2)
Consequently, each matrix entry belongs to exactly one block. This disjointness is a property of the block partition rather than a synonym for non-diagonality or geometric inadmissibility. Off-diagonal row and column index clusters are disjoint even when their geometric supports touch.
For every , we write
(2.3)
with retained rank . Geometric inadmissibility does not prevent such a factorization, but no uniformly small rank or storage reduction is assumed for near-field blocks; the retained rank can reach the smaller block dimension. Only diagonal blocks are stored exactly, while each is balanced, quantized, and evaluated independently. Sections 2.1 and 2.2 first establish the local theory; their notation suppresses the block index for readability. The index is restored in the global results of Algorithm 2.2 and Theorem 2.29.
The present representation retains a standard hierarchical block partition but also factorizes its non-diagonal inadmissible blocks. It provides storage accounting and reconstruction error bounds for the blocks, without invoking a geometric low-rank guarantee for the additional blocks. Nested-basis representations and forward-error bounds for hierarchical matrix–matrix multiplication require additional basis-transfer and cross-block accumulation terms and are outside the current scope.
Integer and block-scaled formats offer two complementary benefits. First, prequantized factors reduce memory traffic, cache pressure, and communication. Second, on hardware with INT8 or block-scaled matrix instructions, the factor–matrix products arising when a non-diagonal block is applied to an input matrix can be mapped to low-precision matrix kernels with a higher arithmetic throughput. However, this does not necessarily lead to performance gain since quantization and scale processing introduce overhead, e.g., small off-diagonal blocks can lead to inefficient kernel launches, and a mathematically convenient placement of scales may not map to a single GEMM supported by hardware.
2.1. Quantization model. We analyze the error introduced by integer quantization of balanced low-rank factors. Floating-point reconstruction error is treated separately in the GEMM-aware analysis below.
For a matrix , . For a vector , . Since the columns of and are unit 2-norm vectors,
(2.4)
The singular value aware motivation follows the same general principle as mixed-precision low-rank representations such as [3]: components associated with smaller singular values may be stored at lower precision because their contribution to the low-rank block is smaller. The bounds below are derived for the symmetric integer quantizer defined next.
For a bitwidth , set . Given a nonzero matrix or vector , define the symmetric scale for matrices, with the analogous definition using for vectors. The reconstructed quantized object is
(2.5)
For , set . Because the scale is chosen from the largest magnitude entry, no clipping is needed in exact arithmetic.
Assumption 2.1. Throughout the paper we assume:
(A1) rounding to nearest in (2.5);
(A2) the scale factors are stored exactly, or at sufficiently high precision that scale-rounding errors are negligible relative to the modeled data quantization error;
(A3) the stated bitwidth b refers to the signed integer quantizer in (2.5);
(A4) when column-wise balanced quantization is used, each balanced column has its own scale for the left factor and its own scale for the right factor;
(A5) the bit allocation uses the same bitwidth for the left and right balanced columns associated with singular component j;
(A6) storage formulae below count the quantized payload; fixed scale metadata is discussed separately in Section 3.
LEMMA 2.2. Under Assumption 2.1, for a matrix Z and a vector z, we have
(2.6)
Proof. Each rounded integer differs from its unrounded value by at most 1/2. Multiplying by the scale yields . The vector case is identical.
It is convenient to define the bit-dependent coefficient
(2.8)
This coefficient will appear repeatedly in the product-error bounds.
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
Direct quantization of SVD factors. We first analyze general factors and in , keeping explicit. Direct quantization of the SVD factors in (2.1) is the special case and . The resulting error bound depends on and . For a matrix , denotes its nuclear norm; in particular, .
THEOREM 2.3. Let
(2.9)
where with . Supposing and , with and and , we have
(2.10)
Proof. Expanding the product gives
(2.11)
For every entry ,
(2.12)
Taking the maximum over all entries and applying the triangle inequality yields (2.10).☐
COROLLARY 2.4. If X and Y are quantized by (2.5) at the same bitwidth b, then
(2.14)
Proof. By Lemma 2.2,
(2.15)
Substitution into Theorem 2.3 gives
(2.16)
☐
COROLLARY 2.5. For SVD factors U and V, take X = U and Y = V in Corollary 2.4. Then
(2.17)
Proof. Every entry of a unit 2-norm vector has magnitude at most one, hence and . Apply Corollary 2.4.
Remark 2.6. A bound of the form
is valid as a relaxed bound when and . For arbitrary factors, Theorem 2.3 retains the max norms of both factors.
The direct bound uses one scale for each entire factor and does not distinguish the quantization errors of individual singular components. To assign bitwidths by component, we instead quantize balanced columns separately.
Balanced factors and weighted quantization. We define balanced factors, followed by a weighted quantization based on singular values. We write the balanced factors as
(2.18)
Thus , , and . Accordingly, each pair , is quantized with separate scales determined from those columns.
The role of balancing depends on the scaling. With separate maximum-based column scales and a fixed bit map, reciprocal positive diagonal rescaling , leaves the quantized product unchanged. Indeed, for the column quantizer is positively homogeneous: . Balancing therefore exposes the singular-value weights used in the analysis, and it is not itself a mechanism for reducing ideal quantization error under this model. A scale shared by several columns does not have this componentwise invariance, and finite-range arithmetic can also break it. Supplementary Section B.3 gives the argument and a numerical control.
LEMMA 2.7. Given a singular component and a bitwidth . Quantize and independently with column-wise scales, i.e., and , then
(2.19)
where and . Consequently,
(2.20)
Proof. Since , , Lemma 2.2 gives
(2.21)
Expanding the rank-one product,
(2.22)
Using , we have
Summing gives (2.19). Equation (2.20) follows from (2.4).
An adaptive assignment may use a different bitwidth for each rank-one term in T. The error bound for the complete block must therefore reflect these individual choices rather than a single width for the whole factor. The following theorem bounds the error from quantizing the balanced factors.
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
THEOREM 2.8. Let each singular component use a possibly different bitwidth and column-wise balanced quantization as in Lemma 2.7. Let , then
(2.23)
In particular, the singular values alone give the bound
(2.24)
Proof. Following , we apply the triangle inequality in max norm and then Lemma 2.7. The bound follows from .
The first bound retains the sizes of the singular-vector entries; the second uses only the singular values. We use the latter to choose bitwidths because the singular values are ordered, whereas the geometry-dependent weights need not be. In the following, we denote the two bounds in Theorem 2.8 by and , respectively.
COROLLARY 2.9. Let be a disjoint partition of and let every component in group use bitwidth . Then
(2.25)
Hence the error contributed by a group can be bounded using only the sum of its singular values.
The geometry-aware weights can reduce conservatism, but they need not inherit the ordering of the singular values. The monotone singular value allocation theorem in Section 2.2 therefore uses the weights .
The preceding bounds use a separate scale for each column. If columns assigned the same bitwidth instead share a scale, the error bound changes.
LEMMA 2.10. Let contain components and define
(2.26)
Suppose is quantized using one shared scale and is quantized using one shared scale, both at bitwidth . Let and , then
(2.27)
Proof. Let and . Lemma 2.2 gives
(2.28)
For matrices and , we have
(2.29)
Expanding
(2.30)
and applying the preceding inequality yields (2.27).
COROLLARY 2.11. For balanced SVD columns,
(2.31)
where . Therefore
(2.32)
Proof. Each column of and has unit 2-norm, so and . Thus . By substituting these bounds into (2.27), it gives (2.32).
Remark 2.12. For column-wise scales, the bound for a group is proportional to . For one shared scale, the safe bound is proportional to , which can be substantially larger when the singular values decay across the group. Therefore the additive bound allocation rule should only be used under the column-wise scaling model (or under another model for which that inequality has been separately proved).
Floating-point reconstruction of bitwidth groups. The bounds above compare the exact product T with the exact real-arithmetic product of its reconstructed quantized factors. In an implementation, one GEMM forms the product for each bitwidth group, and these products are summed in floating point. Both operations can introduce rounding. The analysis applies whether the stored integers are explicitly dequantized before the GEMM or an equivalent scaled kernel is used, provided that the returned product obeys the standard accumulation model below.
Assumption 2.13. Let be the unit roundoff of the GEMM accumulator. Here denotes the computed floating-point result. Products and sums do not overflow or underflow, and a length-g dot product satisfies the standard componentwise bound
(2.33)
whenever . We set .
LEMMA 2.14. Let contain balanced columns, all stored at bitwidth but with separate column scales. Define
(2.34)
Under Assumptions 2.1 and 2.13,
(2.35)
where .
Let
(2.36)
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
Then
(2.37)
Consequently, if , we have
(2.38)
Replacing by gives an error bound depending only on the singular values.
Proof. Applying (2.33) entrywise to the group's GEMM gives (2.35). Lemma 2.2 and the balanced column norms give
(2.39)
Therefore, for every entry,
(2.40)
which proves (2.37). Finally, split
(2.41)
and combine Corollary 2.9 with (2.35).
Using the above lemma, we can now state a bound on the local reconstruction error.
THEOREM 2.15. Let be the bitwidth groups and let every be formed as in Lemma 2.14. Suppose their products are accumulated sequentially in the same precision,
(2.42)
Then
(2.43)
The same expression with replaced by is a conservative singular-value-only error bound.
Proof. The first two terms account for factor quantization and rounding in each GEMM, as in Lemma 2.14. Standard sequential summation gives
(2.44)
Moreover, (2.35) implies
(2.45)
Insert (2.37) and add the three error contributions.
☐
The coefficient is caused by quantizing the two balanced factors; is the rounding error inside the GEMM for group ; and the final term is caused by adding the group products. Higher accumulation precision reduces the last two terms without changing the stored factor bits. If the integer dot products are accumulated exactly, the GEMM term is zero for that stage, but rounding in scale application and summation of group products must still be modeled in the precision where those operations are performed. In addition, pairwise or compensated summation may replace the sequential-summation factor by the corresponding sharper bound.
2.2. Singular value aware bit allocation. The error bound for a reconstructed block has three contributions: low-rank approximation, factor quantization, and reconstruction arithmetic. Bit allocation uses the part of the block budget left after the other two contributions have been accounted for.
LEMMA 2.16. Let be a matrix block, let be its low-rank approximation, and let be the exact real-arithmetic product of its reconstructed quantized factors. Let denote the matrix actually returned by the GEMMs for the bitwidth groups and their summation. Let be any upper bound satisfying , and define
(2.46)
Then
(2.47)
Proof. Insert and between and and apply the triangle inequality. For a bit assignment , define the quantization error bound
(2.48)
so that by Theorem 2.8. Let be the sum of the two GEMM-related terms in (2.43). In the conservative singular-value-only form, if block has nonempty bitwidth groups, this is
(2.49)
Then .
Remark 2.17. Suppose the desired total block error constraint is
(2.50)
Choose a nonnegative allowance for GEMM rounding and define
(2.51)
If , it is sufficient to impose
(2.52)
If , the low-rank approximation or the GEMM realization must first be improved. In exact arithmetic, recovers the quantization-only budget .
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
Each entry of A belongs to exactly one block of the partition. Consequently, the global max-norm error is the largest of the blockwise max-norm errors. We present the global reconstruction error in the following theorem.
THEOREM 2.18. Let the blocks satisfy (2.2). Store every diagonal block exactly and, for each non-diagonal block , including the inadmissible ones, construct as above. Let be the matrix obtained by placing these block representations in their original positions, and write for its restriction to block . Define the maximum over an empty as zero. Then
(2.53)
In particular, if for every factorized block, then
(2.54)
Proof. Because the blocks do not overlap, each entry of belongs to exactly one block. Its global maximum magnitude is therefore the maximum of the block-wise max norms. Exact diagonal blocks contribute zero, and Lemma 2.16 together with the two local error bounds gives the inequality.
The bound also controls the exact application of the stored representation. Let contain the exact products of the reconstructed quantized factors, with diagonal blocks stored exactly. Then
with the maximum taken as zero when is empty, i.e., when .
For , it follows that
Indeed, each entry of is a sum of products, each bounded by . The computed application also incurs rounding in the factor-matrix products and block accumulation, and those errors are considered separately in supplementary Section F.
Choosing block-wise error bounds. A direct global-relative choice is
(2.55)
By Theorem 2.18, this yields . A locally scaled alternative is
(2.56)
Since , the same global relative guarantee follows, while every block is controlled relative to its own scale. For very small far-field blocks, a less restrictive choice of block budget is
(2.57)
which also remains no larger than . When is not explicitly formed, as in some kernel- or matvec-based hierarchical matrix constructions, the global-relative and hybrid choices require , whereas the block-relative choice uses the norms of the individual blocks. Replacing a norm by an upper bound makes the resulting guarantee relative to that bound.
If only the low-rank residual bound is known, the global-relative block budget gives the conservative quantization budget
(2.58)
which is valid when the right-hand side is nonnegative.
Remark 2.19. The separate bounds give a sufficient condition: the allocator first enforces and the resulting groups are then checked against . Since depends on the final group sizes and bitwidths, a less conservative implementation could instead allocate against the joint condition
This couples storage selection with the arithmetic realization and is therefore left outside the present greedy allocation analysis.
Remark 2.20. In (2.53), the error contributions are added within each block, while the global entrywise max-norm bound takes the maximum over blocks. Thus, for the entrywise max-norm representation error, a global budget need not be divided by . Such a division would be unnecessarily conservative. This conclusion depends on the disjoint block partition and does not apply unchanged to a norm or operation in which several block contributions are summed into the same output entry.
Remark 2.21. The global theorem assumes exact diagonal blocks relative to the reference matrix. If these blocks are converted to a lower working precision or quantized, and if bounds the resulting error on each diagonal block, then the right-hand side of (2.53) is replaced by
The geometry-dependent bound can be sharper, but its weights need not follow the order of the singular values. For the allocation, we therefore use the bound
(2.59)
to select the precision of each singular component. For a hierarchical block, the available budget is the amount left after the low-rank error and the allowance for GEMM rounding are subtracted from the block budget, as in (2.51); the block index is again suppressed in this section.
Let the available bitwidths be
(2.60)
Set . The following monotonicity observation determines the smallest possible value of .
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
LEMMA 2.22. The coefficient in (2.8) strictly decreases with the bit width . Hence .
Proof. is strictly increasing in . For , the function has derivative
(2.61)
Thus strictly decreases as increases.
Bitwidth allocation. Ignoring fixed scale metadata, a balanced rank-one component stored at bits requires bits for its factor entries. Therefore the allocation problem subject to the error bound is
(2.62)
As such, the role of singular values in storage is obvious. Let be the positive error allowances, which is assigned to the individual components, with . Therefore, the smallest available bitwidth meeting the allowance for component is
which is assumed to be nonempty. Since as increases, this gives the approximate relation before restriction to the available bitwidths. (2.62) chooses the bitwidths under a total error budget without prescribing the individual allowances .
COROLLARY 2.23. The constraint in problem (2.62) is feasible if and only if
(2.63)
Proof. The smallest available error coefficient is , so assigning every component to gives the minimum value of among all admissible bit assignments. Thus (2.63) is both necessary and sufficient.
Swapping the bitwidths of two components leaves their storage cost unchanged but can change their contribution to the error bound. This suggests assigning no fewer bits to a larger singular value.
THEOREM 2.24. Assume . For the optimization problem (2.62), there exists a storage-optimal feasible assignment satisfying . Thus a larger singular value never needs fewer bits than a smaller singular value in at least one optimal solution.
Proof. Consider an inversion: indices with but . Since decreases with , . Swapping the two bitwidths leaves storage unchanged. The change in is
(2.64)
Hence removing an inversion cannot increase the error bound. Repeating this exchange produces a monotone assignment with the same storage and no larger error. Applying this to any storage-optimal feasible assignment proves the claim.
The exchange argument does not determine how many components receive each bitwidth. It does show that one optimal assignment can be described by boundaries in the ordered singular value list.
COROLLARY 2.25. Under the assumptions of Theorem 2.24, an optimal assignment can be represented by contiguous index intervals
(2.65)
where contains a suffix of the smallest singular values assigned to the lowest precision , the next nonempty group contains the next suffix, and the dominant singular values are assigned to the highest precisions. Empty groups are allowed.
Greedy bit allocation. The greedy strategy assigns the lowest available bitwidth to as many of the smallest singular components as possible, while accounting for the error still required by the unassigned components. At every step, it reserves the minimum possible future error of all still-unassigned dominant singular components. This avoids the failure mode in which too much budget is spent on small singular values and the remaining dominant components cannot fit even at the highest available precision. Algorithm 2.1 implements this rule.
Algorithm 2.1 Greedy allocation with a bound on the remaining error
Ensure: Feasibility flag; groups ; precision map ; quantization error bound ; bits used by the factors .
1: Compute for .
2: Compute prefix sums , with .
3: if then
4: return INFEASIBLE
5: end if
6: Set , , and for all .
7: for do
8:
9: while and do
10: Prepend to .
11: ; ; .
12: end while
13: .
14: end for
15: if then
16: .
17: for do
18: .
19: end for
20: .
21: end if
22: , .
23: return FEASIBLE, , , , .
Now we define prefix sums
(2.66)
At a stage where indices remain unassigned, their minimum possible contribution to is .
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
LEMMA 2.26. At the beginning of each precision level in Algorithm 2.1, if indices 1, ..., t remain unassigned and R is the remaining budget, then
(2.67)
Proof. The invariant holds initially by the feasibility test. During a precision level, suppose the current group contributes C to the error bound. Every accepted index satisfies
(2.68)
After accepting it and updating C and t, this becomes .
When the group is closed, the algorithm sets , yielding . If no index is accepted, neither nor changes. Thus the invariant is preserved.
Lemma 2.26 shows that each completed group leaves enough budget to assign the remaining components at the highest available bitwidth. Theorem 2.27 then establishes that the resulting monotone allocation satisfies the quantization budget and the corresponding max-norm error bound.
THEOREM 2.27. If (2.63) holds, Algorithm 2.1 terminates with a monotone bitwidth assignment satisfying
(2.69)
Consequently, under the column-wise balanced quantization model, we have
(2.70)
Proof. By Lemma 2.26, when the algorithm reaches the highest precision, the remaining prefix satisfies and therefore fits in the remaining budget. All committed group errors are nonnegative, so the final remaining budget is nonnegative. Hence . The assignment is monotone because the algorithm processes singular values from the smallest upward while processing bitwidths from the lowest upward. The max-norm statement follows from Theorem 2.8.
Remark 2.28. Algorithm 2.1 greedily makes each low-precision tail group as large as possible while leaving enough budget for the remaining prefix. It guarantees feasibility under , but does not generally minimize the stored factor bits over the available bitwidths.
Mixed-bit H-matrix construction. The local allocator becomes a hierarchical algorithm by applying it independently to every non-diagonal block, including non-diagonal inadmissible blocks. Here, no allocation is performed before the singular components are known. First, the rank components receive bitwidths, and only then do components with a common bitwidth form a group. The groups do not share a quantization scale; each column retains its own left and right scales. The admissibility test determines where subdivision stops; both admissible and non-diagonal inadmissible blocks use factorized storage. If the permitted rank, available bitwidths, and arithmetic choices cannot meet a block-wise error bound, construction reports infeasibility rather than storing that block in dense form.
Algorithm 2.2 Mixed-bit H-matrix construction with diagonal-only dense storage
Require: Matrix access or block data; hierarchical block partition ; block budgets ; bit set ; GEMM accumulator precision and reserves .
1: for all do
2: Store the diagonal block exactly.
3: end for
4: for all non-diagonal (admissible or inadmissible) do
5: Construct or recompress and obtain .
6: Set .
7: if then
8: Refine the low-rank approximation or increase GEMM accuracy; recompute the budget, or return infeasibility if permitted refinements are exhausted. Continue only after the budget is nonnegative.
9: end if
10: Apply Algorithm 2.1 to with budget .
11: if the highest-precision feasibility test fails then
12: Increase the admissible precision set or improve the low-rank approximation and recompute the budget; repeat the block allocation, or return infeasibility if permitted refinements are exhausted.
13: end if
14: Form and ; quantize each column with its own left and right scale at bitwidth .
15: Form groups and compute from Theorem 2.15.
16: if then
17: Increase accumulator precision, use a sharper group summation, or enlarge the rounding allowance and rerun the allocation; return infeasibility if permitted refinements are exhausted.
18: end if
19: Set .
20: end for
21: (zero if ).
22: return and .
THEOREM 2.29. If every repeated block step in Algorithm 2.2 terminates with , , then
(2.71)
Proof. For each factorized block, Remark 2.17 gives . The result then follows directly from Theorem 2.18.
Extension to ACA-generated blocks. The preceding theory does not require the initial low-rank approximation to be constructed by a large dense SVD. Now suppose adaptive cross approximation (ACA) produces
(2.72)
A small-factor recompression supplies the orthogonal SVD coordinates needed by the singular value aware allocation. Compute thin QR factorizations and , and the SVD of the , which gives
(2.73)
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
so and can be passed directly to the balanced quantization and allocation stages. Only the small core requires an SVD.
The reconstruction analysis requires a valid low-rank residual bound. If ACA provides and recompression introduces , then
(2.74)
Thus one may take in (2.51). An ACA stopping estimator that is not a proven upper bound gives an empirical rather than a fully certified global result; the quantization and GEMM parts of the analysis remain valid conditionally on the reported .
- Storage accounting. The objective in (2.62) counts only bits used by the quantized factor entries, omitting scales and bitwidth labels. Over the complete hierarchical partition, this contribution is
(3.1)
Let be the number of bits per dense entry. Diagonal blocks add bits. The sum in (3.1) includes non-diagonal inadmissible blocks; a failed non-diagonal candidate makes the strict construction infeasible rather than reverting to dense storage. Each retained component requires two reconstruction scales, so scales stored at bits per scale contribute . Including bitwidth labels gives the reported storage model
(3.2)
where counts the selected widths. Hierarchical storage totals include scales and direct precision labels but exclude tree topology, headers, and workspace; (2.62) excludes all metadata. Encoding details are given in supplementary Section A.
The width denotes the signed integer quantizer in (2.5). Assumption 2.1 requires exact or sufficiently accurate scales. Lower-precision scales introduce errors not included in or and require a separate allowance. Theorems 2.8 and 2.27 use separate left and right scales for each balanced column. If the columns of a bitwidth group share one scale within each factor, the error bound depends on the group maxima and as in (2.27). Finally, zero singular value components may be discarded before allocation, so denotes the retained positive rank.
- Numerical experiments. We compare measured errors with the theoretical bounds and evaluate the discrete allocation quality and the storage benefit of quantization in complete hierarchical representations. The principal storage and bound comparisons use FP64 emulation. Separate C++/CUDA tests examine numerical behavior of the native implementation. On a single NVIDIA A100 GPU, all 1,501 native reconstruction tests with strict arithmetic error bounds satisfied their stated allowances. The mixed-bit path decodes factors to FP32 and uses floating-point GEMMs (see supplementary Section E).
4.1. Test problems and methodology. The local tests use matrices , with and rank . We construct the orthonormal columns of and by QR factorization of independent Gaussian matrices and prescribe the singular values , , or . These three cases are referred to below as the Exponential, Algebraic, and Flat spectra. We use and six relative tolerances from 0.002 to 0.1 (listed in supplementary Section A), with local quantization budget .
The hierarchical suite contains 44 matrices: Euclidean point kernels, BEM matrices, and six supplementary one-dimensional kernels. For the point kernels, or for , with uniform or clustered points in two or three dimensions. We set without regularizing off-diagonal distances; no positive definiteness or three dimensional Laplace interpretation of is assumed.
The BEM matrices discretize single-layer operators by constant panels and midpoint collocation:
Circle and ellipse boundaries have up to 2048 panels; cube and cuboid boundaries have up to 1536. Analytic panel integrals include singular self terms, without forced symmetrization. Supplementary Section A specifies the geometries and remaining kernels.
We build the common row/column cluster tree by a stable median split along the coordinate of largest spread, stopping when a cluster contains at most 32 indices. For BEM matrices, cluster boxes enclose full panel supports. We use a geometric admissibility test based on cluster bounding boxes [13, 4]. For boxes and , a block is admissible when . Here, distance is the Euclidean separation of the boxes, diameter is the length of a box diagonal, and we set . Otherwise the block-tree recursion continues until both clusters are terminal. Every non-diagonal block, including inadmissible ones, is factorized; only diagonal blocks remain dense in FP64. We use ten total relative tolerances from to (see supplementary Section A for details). Unless stated otherwise . For each non-diagonal block, rank selection starts from a full dense SVD and requires its tail to satisfy both a relative Frobenius target of 0.1 and an absolute allowance of . The measured max-norm residual is then subtracted from the budget, with 2% reserved for arithmetic. Ranks may reach the smaller block dimension; low rank is an observed property, not an assumption.
The available integer bitwidths are , with FP64 scales, group products, and accumulation. Failed candidates are reported as infeasible, without dense non-diagonal substitution. Independent arithmetic tests use both FP32 and FP64. Emulation forms integer codes and independently scaled decoded factors. The reported storage is calculated from the assigned integer bitwidths, FP64 scales, and bitwidth labels.
For the implemented arithmetic bound, factor-representation rounding is included in addition to Theorem 2.15. With , one rounding per factor entry gives
(4.1)
The native decoder uses to account for scale multiplication and conversion (supplementary Section C).
4.2. Local error bounds and allocation quality. We compare Algorithm 2.1 with uniform bitwidths, the low to high greedy baseline without a future-error reserve,
ERIN CARSON, XINYE CHEN, AND RITESH KHAN

FIG. 4.1. Local reconstruction errors and error bounds divided by , for and rank 64. Both bounds are evaluated on the same greedy assignments, which use singular value weights. Missing points are referred to as those do not satisfy .
and a dynamic-programming (DP) optimum for the same discrete payload objective under the singular value error bound. Across the 36 matrix tolerance pairs, the proposed allocator and DP have the same 24 feasible cases as uniform 16-bit allocation. The remaining 12 cases fail the highest-bit feasibility test: even assigning 16 bits to every retained component cannot satisfy . The baseline without a reserve returns no feasible assignment in this sweep, including the 24 cases for which a feasible assignment exists. Uniform 4- and 8-bit assignments are also infeasible throughout, whereas uniform 12-bit succeeds in four cases. Thus the future-error reserve ensures feasibility under the prescribed error bound. The feasibility threshold remains determined by the highest available bitwidth.
For example, with eight unit singular values, , and , the baseline assigns six components 4 bits, leaving only for two components that require at least . The proposed rule assigns five components 4 bits and three 8 bits and remains feasible; supplementary Figure B.4 shows the corresponding slack trace.
For all 76 feasible local results, including the baselines, the measured reconstruction errors remain below the corresponding singular value-based bounds. For the 24 proposed allocations, the largest ratio of measured error to is 0.0162 (rounded upward). Evaluating the geometry-aware bound on the same assignments reduces the bound by factors between 25.8 and 54.2, without a violation. The difference between the two bounds comes from retaining in the geometry-aware bound; the assignments still use the ordered weights . Figure 4.1 displays the normalized errors and both bounds for . The gap between the two bounds identifies a source of potential improvement in allocation, while the remaining gap to measured error cautions against treating either bound as an error prediction.
Adaptivity is most useful for decaying spectra. At , the exponential cases require only 52.3–54.3% of the uniform 16-bit payload, whereas the flat cases require 94.9–96.1%. Figure 4.2 shows the corresponding tolerance dependence, normalized by the bits used by uniform 16-bit factors rather than dense matrix storage, thereby removing the common low-rank compression factor. Dominant components retain high precision while a low-precision tail absorbs the remaining error budget. Figure 4.3 shows the assignments: for the exponential case at , , 20, 2, 6, and 36 components receive 16, 12, 8, and 4 bits, respectively. Maps need not be nested across tolerances; monotonicity in singular value index within an assignment is a different

Reserve greedy DP optimum Uniform 16-bit Uniform 12-bit
FIG. 4.2. Local integer payload relative to uniform 16-bit factors for n = 256 and r = 64. Only assignments satisfying are shown; infeasible points are omitted. Uniform 4- and 8-bit allocations and the baseline without a reserve have no feasible points. Scale and precision-map metadata are excluded. The algebraic spectrum shows that greedy need not dominate a feasible uniform precision.

FIG. 4.3. Representative greedy bitwidth assignments for n = 256, r = 64. Indices follow decreasing singular value. The exponential and algebraic cases show different transitions; the latter also exhibits the payload behavior in supplementary Table B.2.
property. Supplementary Section B gives the full local validation and the n = 512 storage curves.
We next compare the factor bits used by greedy with those of the DP-optimal assignment. Let and be the bits used by the factors under the proposed greedy and DP-optimal assignments, respectively. Over the 24 matched pairs, has median 1.091 and maximum 1.503. The maximum occurs for the algebraic spectrum with at . Theorem 2.27 guarantees feasibility; the ratios above show how the greedy payload compares with the DP optimum under the same error bound.
The uniform baseline also matters. At , uniform 12-bit allocation is feasible for both algebraic-spectrum cases, but greedy uses 13.54% and 14.58% more payload for n = 256 and 512, respectively. In these cases, uniform 12-bit factors use less storage than the greedy assignment, despite its savings relative to uniform 16-bit factors. For the algebraic cases, greedy payload also increases when the tolerance changes from 0.05 to 0.1, and the payloads is given in supplementary Table B.2. The feasible sets expand with the budget, but the recomputed greedy choices need not improve the
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
(a) Paired feasible cases
(b) Feasibility

precision-menu extension
available precision menu
Greedy DP
FIG. 4.4. Sensitivity to available bitwidths in the independent rank-25 study. Left: paired payload ratios over cases feasible before and after each extension (180, 180, and 450 pairs, respectively); boxes show quartiles and medians, and whiskers span the full range. Newly feasible cases are excluded from these ratios. Right: feasibility counts out of 450, identical for the proposed greedy method, DP, and the best feasible uniform precision. The dotted line on the left denotes unchanged payload.
objective. This is a property of the heuristic, not of the exact discrete optimum, whose payload cannot increase when its budget is relaxed.
4.3. Sensitivity to available bitwidths. A separate FP64 emulation study varies the set of available bitwidths while keeping each matrix and its budget fixed. It uses matrices of rank 25, ten random seeds, five spectra, and nine tolerances, giving 450 matrix tolerance pairs. The spectra comprise three exponential decays, an algebraic decay, and a flat spectrum; supplementary Section B.1 specifies the reproducible configuration. The nested sets of bitwidths are
Comparisons use bits for the integer factor entries, excluding metadata, with the same constraint for greedy, DP, and the best feasible uniform precision.
However, increasing the available bitwidths does not necessarily improve the heuristic. From to , the highest-bit feasibility threshold is unchanged: both sets admit 180 pairs. Nevertheless, greedy payload increases in 153 of 180 matched pairs, by at most 24.65% (rounded upward), whereas DP payload never increases. Adding 24- and 32-bit choices admits all 450 pairs, including 270 newly feasible pairs. On the original 180 pairs, however, greedy uses more payload in 177 cases, with a maximum increase of 66.87%. Adding the 2-bit choice changes no feasibility decision and can either increase or decrease greedy payload.
The distinction is between a larger feasible set and the decisions of a particular heuristic. A lower highest-bit coefficient permits more aggressive early commitments to the low-precision tail; repairing the remaining prefix can then be expensive. DP cannot deteriorate under these nested sets, since every previous assignment remains admissible. For the same reason, retaining a previously feasible assignment as an incumbent would guard against payload regression, without implying DP optimality. Supplementary Sections B.1 and B.2 give spectrum-resolved statistics and a reserve trace, and distinguish the exact feasibility boundary from its floating-point realization. No runtime conclusion is drawn from this study.

FIG. 4.5. Circle BEM, N = 2048, with block-relative budgets and only diagonal blocks stored densely. Left: absolute max-norm error and error bound. Middle: storage ratios against dense FP64 and same-partition floating factors. Right: shares of total stored bits, including scales and maps, for the three block classes. The horizontal tolerance is relative to each block norm. All points represent feasible quantized constructions.
4.4. Hierarchical reconstruction errors and storage reduction. All combinations of matrix, tolerance, and block budget are feasible when only diagonal blocks are stored densely, with no off-diagonal dense fallback. None violates with validation allowance . All measured errors are nonzero; for block-relative budgets, ranges from 4.39 to 36.75. Thus the error bound is conservative but remains informative over five orders of magnitude in prescribed tolerance. The quantization term is at least 86.0% of the dominant block's error bound.
Figure 4.5 shows the circle BEM matrix at N = 2048. The measured error stays below the error bound throughout the sweep. Here, as in the other BEM tests, the reference is the assembled collocation matrix.
Let include bits for the quantized factors, FP64 diagonal blocks, column scales, and precision maps, but exclude tree topology, allocation overhead, and execution workspace. We distinguish total compression from the incremental storage benefit of quantization:
where is the diagonal dense cost and . The floating-factor controls retain the identical partition and ranks, absorb singular values, and require no quantization scales or precision maps. The ratios therefore quantify storage differences for the fixed partition and ranks.
Table 4.1 gives , whereas the same-partition gains are and . Circle BEM has the largest dense-baseline compression but the smallest same-partition gain among these cases. Conversely, the three dimensional 1/r point kernel has substantially less total compression but the largest incremental quantization gain. Geometric compressibility and precision reduction are therefore distinct effects; the dense-baseline ratio alone does not measure the contribution of adaptive bit allocation.
The storage decomposition identifies different remaining limitations. At , diagonal blocks occupy 61.16% of the circle BEM representation, whereas non-diagonal
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
TABLE 4.1
Diagonal-only dense storage at with block-relative budgets. Each geometry uses its largest tested matrix; point clouds are uniform. compares against dense FP64; compare against same-partition, same-rank floating factors with unchanged FP64 diagonal blocks. The quantized denominator includes scales and maps.
| Matrix | N | E/e | |||
|---|---|---|---|---|---|
| 2D BEM, circle | 2048 | 39.141 | 1.666 | 2.721 | 10.48 |
| 2D BEM, ellipse | 2048 | 37.107 | 1.680 | 2.781 | 6.74 |
| 3D BEM, cube | 1536 | 12.524 | 2.542 | 4.889 | 9.29 |
| 3D BEM, cuboid | 1536 | 12.908 | 2.454 | 4.706 | 13.18 |
| 2D uniform, 1/r | 2048 | 19.133 | 2.437 | 4.575 | 9.92 |
| 2D uniform, log r | 2048 | 19.873 | 2.379 | 4.448 | 8.08 |
| 3D uniform, 1/r | 2048 | 9.828 | 2.757 | 5.361 | 15.07 |
| 3D uniform, log r | 2048 | 8.890 | 2.714 | 5.288 | 11.97 |
inadmissible factors occupy 64.70% and 62.56% for the three dimensional 1/r and log r kernels. Consequently, reducing factor bitwidths alone has limited leverage in the former, while the latter retain a substantial near-field factor cost. Scale/map metadata is 3.69–17.92% of storage across the table and cannot be neglected when many short factors are quantized.
The three dimensional log kernel remains less compressible than circle BEM. At , the three dimensional BEM and point-kernel cases contain full-rank non-diagonal inadmissible blocks; at , their median rank fractions are 0.250–0.281. Factorization therefore does not imply a per-block storage advantage. Rank and precision both adapt with tolerance, so the storage changes cannot be attributed to bitwidths alone. Supplementary Figure D.1 and Table D.2 give the corresponding curves and rank diagnostics.
We also compare three quantizations of the same balanced factors. Per-tensor quantization uses one scale for each whole factor and one bitwidth per block. Fixed-bit per-channel quantization uses a scale for each factor column but a common width within a block. The proposed method uses a separate scale and adaptive width for each column. Each fixed-bit control chooses the lowest feasible width separately for each non-diagonal block. All three methods share the partition, retained ranks, and block-relative budgets, and their total storage includes the common FP64 diagonal blocks, scales, and precision maps.
Across 60 matched matrix tolerance pairs, the adaptive representation uses less storage than fixed-bit per-channel quantization in every pair (median fixed-bit/adaptive ratio 1.252), but less than per-tensor quantization in only 45 pairs. For the three cases in Figure 4.6, the per-channel/adaptive ratios narrow from 1.42–1.68 at to 1.10–1.37 at ; the per-tensor/adaptive ratios narrow from 1.13–1.66 to 0.93–0.97. Thus the endpoint storage differences diminish as tolerance is relaxed, although discrete bit and rank decisions make individual steps nonmonotone. Each control satisfies its own sufficient error bound while the measured reconstruction errors may differ. Complete comparison is given in supplementary Section D.1.
For all 132 combinations of matrix and block budget, total compression is non-decreasing over the tested tolerances; no general monotonicity of the greedy allocator follows. Comparisons of block budgets for the same matrix also require care: supplementary Table D.3 shows that hybrid budgets can reduce storage without changing the global error or its bound, whereas global-relative budgets permit larger errors. This is consistent with the maximum-over-blocks error bound, not an equal-accuracy

Per-tensor, fixed bits
Per-channel, fixed bits
Adaptive, per-channel
FIG. 4.6. Total stored bits relative to the same-partition FP64 factor representation for circle BEM, uniform two-dimensional 1/r, and uniform three dimensional log r matrices at N = 2048. All methods use identical ranks at each block-relative tolerance. The numerator includes FP64 diagonal blocks, factor scales, and precision maps. Fixed-bit controls choose the lowest feasible width per block; their realized errors need not match the adaptive method's.
ranking of the budget choices. The studies that retain inadmissible blocks densely and those that store only diagonal blocks densely also differ in rank selection, available bitwidths, and arithmetic. Therefore, their comparison does not isolate the effect of near-field factorization.
We also evaluated using the representation that stores only diagonal blocks densely. Factorized blocks are applied without forming their dense products. In all 3,600 runs, the observed arithmetic errors were below their respective bounds, as were the application errors bounded by propagating the measured block residuals (supplementary Section F).
- Conclusion. We developed an adaptive method for quantizing hierarchical matrices based on an allocation strategy that leverages information on singular values. It proceeds by allocating bitwidths subject to a reconstruction error bound for the non-diagonal blocks of hierarchical matrices, with only diagonal blocks retained densely and unquantized. With balanced column-wise quantization the strategy yields an additive max-norm error bound, and reserving the minimum future error makes the greedy allocation feasible whenever the highest available precision is feasible. Combining truncation, quantization, and arithmetic bounds over a disjoint partition of matrix entries establishes a global reconstruction error bound. Numerical experiments show the storage reductions obtained by quantization and quantify the effectiveness of the error bounds. Future work includes error analysis for complete hierarchical operations and hardware-aware execution.
REFERENCES
[1] J. ALBERICIO, A. DELMÁS, P. JUDD, S. SHARIFY, G. O'LEARY, R. GENOV, AND A. MOSHOVOS, Bit-pragmatic deep neural network computing, in Proceedings of the 50th Annual IEEE/ACM International Symposium on Microarchitecture, MICRO-50 '17, ACM, 2017, pp. 382–394, https://doi.org/10.1145/3123939.3123982.
[2] S. AMBIKASARAN, K. R. SINGH, AND S. S. SANKARAN, HODLRlib: A library for hierarchical matrices, Journal of Open Source Software, 4 (2019), p. 1167.
[3] P. AMESTOY, O. BOITEAU, A. BUTTARI, M. GEREST, F. JÉZÉQUEL, J.-Y. L'EXCELLENT, AND T. MARY, Mixed precision low-rank approximations and their application to block low-rank lu factorization, IMA Journal of Numerical Analysis, 43 (2023), pp. 2198–2227, https://doi.org/10.1093/imanum/drac037.
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
[4] M. BEBENDORF, Hierarchical Matrices: A Means to Efficiently Solve Elliptic Boundary Value Problems, vol. 63 of Lecture Notes in Computational Science and Engineering, Springer, Berlin, Heidelberg, 2008, https://doi.org/10.1007/978-3-540-77147-0.
[5] S. BÖRM, Construction of data-sparse -matrices by hierarchical compression, SIAM Journal on Scientific Computing, 31 (2009), pp. 1820–1839.
[6] S. BÖRM, L. GRASEDYCK, AND W. HACKBUSCH, Hierarchical matrices, Lecture notes, 21 (2003), p. 2003.
[7] E. CARSON, X. CHEN, AND X. LIU, Mixed precision HODLR matrices, SIAM Journal on Scientific Computing, 47 (2025), pp. A1408–A1435, https://doi.org/10.1137/24M1683925.
[8] S. CHANDRASEKARAN, P. DEWILDE, M. GU, W. LYONS, AND T. PALS, A fast solver for HSS representations via sparse matrices, SIAM Journal on Matrix Analysis and Applications, 29 (2007), pp. 67–81.
[9] Y.-H. CHEN, J. EMER, AND V. SZE, Eyeriss: A spatial architecture for energy-efficient dataflow for convolutional neural networks, in 2016 ACM/IEEE 43rd Annual International Symposium on Computer Architecture (ISCA), IEEE, 2016, pp. 367–379, https://doi.org/10.1109/ISCA.2016.40.
[10] A. GHOLAMI, S. KIM, Z. DONG, Z. YAO, M. W. MAHONEY, AND K. KEUTZER, A survey of quantization methods for efficient neural network inference, in Low-Power Computer Vision, Chapman and Hall/CRC, 2022, pp. 291–326, https://doi.org/10.1201/9781003162810-13.
[11] A. GILLMAN, P. M. YOUNG, AND P.-G. MARTINSSON, A direct solver with complexity for integral equations on one-dimensional domains, Frontiers of Mathematics in China, 7 (2012), pp. 217–247.
[12] W. HACKBUSCH, A sparse matrix arithmetic based on H-matrices. part I: Introduction to H-matrices, Computing, 62 (1999), pp. 89–108, https://doi.org/10.1007/s006070050015.
[13] W. HACKBUSCH, Hierarchical Matrices: Algorithms and Analysis, vol. 49 of Springer Series in Computational Mathematics, Springer, Berlin, Heidelberg, 2015, https://doi.org/10.1007/978-3-662-47324-5.
[14] W. HACKBUSCH AND B. N. KHOROMSKIJ, A sparse H-matrix arithmetic. part ii: Application to multi-dimensional problems, Computing, 64 (2000), pp. 21–47.
[15] W. HACKBUSCH, B. N. KHOROMSKIJ, AND R. KRIEMANN, Hierarchical matrices based on a weak admissibility criterion, Computing, 73 (2004), pp. 207–243.
[16] R. KHAN AND E. CARSON, Hybrid hierarchical matrices with adaptive mixed precision storage, 2026, https://arxiv.org/abs/2604.09147.
[17] S. KIM, A. GHOLAMI, Z. YAO, M. W. MAHONEY, AND K. KEUTZER, I-BERT: Integer-only bert quantization, in Proceedings of the 38th International Conference on Machine Learning, vol. 139 of Proceedings of Machine Learning Research, PMLR, 2021, pp. 5506–5518.
[18] R. KRIEMANN, Hierarchical low-rank arithmetic with floating point compression, SIAM Journal on Scientific Computing, 47 (2025), pp. B763–B784, https://doi.org/10.1137/24M1649009.
[19] U. KULKARNI, A. S. HOSAMANI, A. S. MASUR, S. HEGDE, G. R. VERNEKAR, AND K. SIRI CHANDANA, A survey on quantization methods for optimization of deep neural networks, in 2022 International Conference on Automation, Computing and Renewable Systems (ICACRS), IEEE, 2022, pp. 827–834, https://doi.org/10.1109/ICACRS55517.2022.10028742.
[20] J. LEE, C. KIM, S. KANG, D. SHIN, S. KIM, AND H.-J. YOO, UNPU: A 50.6TOPS/W unified deep neural network accelerator with 1b-to-16b fully-variable weight bit-precision, in 2018 IEEE International Solid-State Circuits Conference (ISSCC), IEEE, 2018, pp. 218–220, https://doi.org/10.1109/ISSCC.2018.8310262.
[21] Z. LI AND Q. GU, I-ViT: Integer-only quantization for efficient vision transformer inference, in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), October 2023, pp. 17065–17075, https://doi.org/10.1109/ICCV51070.2023.01565.
[22] R. OOI, T. IWASHITA, T. FUKAYA, A. IDA, AND R. YOKOTA, Effect of mixed precision computing on H-matrix vector multiplication in BEM analysis, in Proceedings of the International Conference on High Performance Computing in Asia-Pacific Region, ACM, 2020, pp. 92–101, https://doi.org/10.1145/3368474.3368479.
[23] B. ROKH, A. AZARPEYVAND, AND A. KHANTEYMOORI, A comprehensive survey on model quantization for deep neural networks in image classification, ACM Transactions on Intelligent Systems and Technology, 14 (2023), pp. 97:1–97:50, https://doi.org/10.1145/3623402.
[24] M. WORTSMAN, T. DETTMERS, L. ZETTLEMOYER, A. MORCOS, A. FARHADI, AND L. SCHMIDT, Stable and low-precision training for large-scale vision-language models, in Advances in Neural Information Processing Systems, vol. 36, 2023, pp. 10271–10298, https://doi.org/10.52202/075280-0451.
The supplementary materials provide reproducibility details and extended diagnostics for Section 4 of the main paper. The main paper presents the local and global error bounds, allocation comparisons, the effects of geometry on storage, and storage comparisons on the same block partitions. Further results for the fixed-bit quantization controls and native GPU numerical checks are collected here. The reconstruction and application checks use separate validation suites and distinct references.
Random seeds are fixed by the experiment configurations; the study across ten seeds specifies them in Section B.1. The single-block suite has , rank 64, and exponential, algebraic, and flat spectra as specified in the main paper. The single-block comparison uses six tolerances 0.002, 0.005, 0.01, 0.02, 0.05, 0.1 and bitwidths . The hierarchical study in which only diagonal blocks remain dense uses ten tolerances and the available bitwidths .
The hierarchical storage totals charge two FP64 scales per retained component and a direct precision map recording each assigned bitwidth, at a cost of bits for each factorized block . By Theorem 2.24, a monotone assignment could instead be encoded by the bitwidth labels of its nonempty groups and the boundaries between them. Tree topology, serialization headers, and runtime workspace are excluded. The bounds treat scales as exact or sufficiently accurate; more aggressive scale quantization would require additional error terms.
The 44 hierarchical matrices comprise six one-dimensional kernels, 24 point-kernel matrices, eight planar BEM matrices, and six surface BEM matrices. For the one-dimensional cases, , , , and . The matrices are
The last is the Matérn-3/2 kernel. The code identifier laplace1d denotes the regularized inverse-distance matrix above. These kernels include their finite diagonal entries.
The point-kernel matrices use unregularized off-diagonal 1/r or log r, with omitted self interactions . Uniform clouds lie in ; clustered clouds have centers and coordinate standard deviation 0.07. The combinations of , uniform or clustered distributions, two kernels, and give 24 cases.
The planar BEM boundaries are polygonal approximations of a circle of radius 0.5 and an ellipse with semiaxes (0.75, 0.25), each with panels. The surface boundaries are a unit cube and a cuboid with side lengths (1.5, 1, 0.5). Subdividing each face into rectangles for gives .
ERIN CARSON, XINYE CHEN, AND RITESH KHAN

FIG. B.1. Local errors and error bounds divided by the local budget, with n = 512 and rank 64, supplementing the n = 256 comparison in Figure 4.1 of the main paper. Both bounds use the same feasible greedy assignments. Omitted tolerances are infeasible under the available bitwidths.
The constant-panel, midpoint-collocation matrices use the analytic single-layer integrals in the main paper, including finite singular self terms. No symmetrization is applied.
The hierarchical experiment builds the common row/column cluster tree by a stable median split along the coordinate of largest spread, stopping when a cluster contains at most 32 indices. For BEM matrices, cluster boxes include full panel supports. The admissibility test uses as specified in Section 4.1 of the main paper; blocks that fail the test are subdivided until both clusters are terminal. Only diagonal blocks remain dense. The rank rule and FP64 arithmetic follow that section, with a 25% truncation allowance and 2% arithmetic reserve. Failed non-diagonal candidates are reported as infeasible.
The hierarchical results include storage totals for floating-point factors on the same partitions. All error-bound checks use FP64 numerical references with the stated allowances. Section F specifies the application checks.
Supplementary Material B. Local error bounds and allocation
Theorem 2.8 gives both the singular-value bound and the sharper bound involving the column maxima . Figure B.1 evaluates both on the same feasible assignments from the proposed greedy algorithm, dividing each error or bound by that case's budget . The geometry bound is 25.8–54.2 times smaller than the singular-value bound across the 24 allocations. Both bounds are evaluated on assignments chosen using singular-value weights.
Table B.1 gives the casewise feasibility and DP comparisons. Greedy, DP, and the uniform 16-bit allocation share 24 feasible pairs; the other 12 fail even at the highest precision. The uniform 12-bit allocation succeeds in four pairs, whereas the uniform 4-bit and uniform 8-bit allocations and the low-to-high greedy baseline without a reserve have no feasible pairs. The latter rule fails on all 24 pairs admitting a feasible assignment.
Figure B.2 completes the main paper’s storage plot with . Decaying spectra allow substantial savings relative to the uniform 16-bit allocation, whereas flat spectra offer little component separation. The feasible uniform 12-bit algebraic case is cheaper than greedy at , even though greedy remains feasible.
Table B.2 documents the payload increases when the budget is relaxed. A larger feasible set cannot worsen the exact optimum, but a recomputed heuristic need not select a better point. Figure 4.3 of the main paper shows the corresponding bitwidth
TABLE B.1
Local allocation at rank 64. Feasibility counts are out of six tolerances. denote greedy, uniform 16-bit, and DP-optimal integer payloads. The fourth column uses ; the last is the maximum over matched feasible tolerances. Metadata is excluded from all three objectives.
| n | Spectrum | Feasible | Max. | |
|---|---|---|---|---|
| 256 | Exponential | 5/6 | 0.523 | 1.126 |
| 256 | Algebraic | 5/6 | 0.852 | 1.503 |
| 256 | Flat | 3/6 | 0.961 | 1.065 |
| 512 | Exponential | 4/6 | 0.543 | 1.112 |
| 512 | Algebraic | 5/6 | 0.859 | 1.358 |
| 512 | Flat | 2/6 | 0.949 | 1.000 |

Reserve greedy DP optimum Uniform 16-bit Uniform 12-bit
FIG. B.2. Local payload comparison for , , normalized by uniform 16-bit factor payload, supplementing Figure 4.2 of the main paper. Missing assignments indicate that no admissible bit assignment exists; methods with no feasible points are omitted.
assignments.
B.1. Available bitwidths and results across seeds. For each seed in , Gaussian QR factors have dimensions and . The same factors are reused across spectra and sets of available bitwidths. Singular values are for , or . The tolerances are , with . The sets are defined in Section 4.3 of the main paper. The statistics summarize these ten seeds.
All 3780 feasible combinations of methods, bitwidth sets, and test cases pass the numerical checks , with allowance for FP64 evaluation. Here is FP64 machine epsilon. Several combinations reuse the same matrices. The DP minimizes integer factor payload subject to the same error bound.
The extension increases greedy payload in 80 of 450 paired cases, with maximum factor 1.546; its median factor is one. The three extensions isolate the effects of adding intermediate bitwidths, increasing the largest available bitwidth, and allowing 2-bit assignments. Figure B.3 shows the gaps between greedy and DP by spectrum.
B.2. Reserve traces and the feasibility boundary. For a failure case, take eight unit singular values, , and . The greedy baseline without a reserve assigns six components to 4 bits, leaving only for
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
TABLE B.2
Nonmonotone greedy payload for the algebraic spectrum, in bits. Uniform12 is feasible at for both sizes.
| n | Greedy, 0.05 | Greedy, 0.1 | Uniform12, 0.1 |
|---|---|---|---|
| 256 | 444416 | 446464 | 393216 |
| 512 | 888832 | 901120 | 786432 |
TABLE B.3
Greedy payload relative to DP in the rank-25 study of available bitwidths. Statistics use each set's feasible subset; Figure 4.4 of the main paper uses paired subsets.
| Set | Feasible/450 | Median | 90th percentile | Maximum |
|---|---|---|---|---|
| 180 | 1.076 | 1.197 | 1.554 | |
| 180 | 1.135 | 1.301 | 1.596 | |
| 450 | 1.273 | 1.658 | 2.587 | |
| 450 | 1.314 | 1.745 | 2.587 |
two components whose minimum error contribution is . Its final error bound exceeds the budget by . The proposed greedy algorithm instead assigns five components to 4 bits and three to 8 bits, leaving a nonnegative reserve. The implementation optionally records the effective remaining budget and minimum future error after each accepted component.
For the boundary test, use two singular values equal to . The exact threshold , , is evaluated with rational arithmetic. Requested budget ratios are ; the algorithms receive their nearest FP64 budgets. Comparing those supplied budgets with the rational threshold, both methods agree with the exact predicate in all 36 evaluations outside the band . The six evaluations at the nominal central ratio are reported separately: the rounded budget lies just below the exact threshold, while both floating-point implementations classify it as feasible. Near this threshold, directed rounding or validated arithmetic would be required to classify the supplied budget rigorously.
B.3. A reciprocal-scaling control. For column quantization with the scale , write , with zero mapped to zero. For , and the normalized entries are unchanged. Thus, in exact arithmetic and for fixed bitwidth assignments,
Summing over columns proves invariance of the quantized product under positive reciprocal diagonal rescaling.
The control uses the 50 triples from the ten seeds and five spectra in Section B.1, with balanced factors and . The repeated bit pattern is , truncated to rank 25. For , set and define ; reconstruct from and . FP64 scales and arithmetic avoid overflow and underflow in this sweep. The maximum change in the quantized product with separate column scales, divided by , is below , whereas it can exceed one when a scale is shared by a bitwidth group. Figure B.5 separates this change from the reconstruction error itself.

Exponential, a = 0.55
Exponential, a = 0.90
Algebraic
Flat
Exponential, a = 0.75
available precision menu
FIG. B.3. Median and maximum greedy/DP payload ratios by spectrum and set of available bitwidths. Each point aggregates feasible tolerances over ten seeds; the feasible subset can change when the largest available bitwidth changes. These descriptive curves complement the paired ratios in Figure 4.4 of the main paper.
(a) Remaining reserve slack
(b) Highest-bit boundary

Reserve greedy
Unrepaired
DP
Rounded threshold
FIG. B.4. Reserve mechanism and boundary diagnostics. Left: remaining budget after accounting for future components, normalized by in the eight-component failure case; the vertical scale is symmetric logarithmic with a linear region around zero. Right: floating-point feasibility decisions for two unit singular values versus relative displacement from the exact threshold. Both methods agree away from the central point, where rounding affects the decision; that point is omitted from the curves and marked by a vertical dotted line.

Separate column scales
Shared channel scales
FIG. B.5. Reciprocal positive diagonal rescaling with fixed bitwidth assignments. Curves show medians and bands the full range over 50 matrices. Left: change from the corresponding unscaled quantized product, divided by . Right: reconstruction error in the same normalization. The left axis is symmetric logarithmic near zero so exact zeros remain visible. Separate column scales preserve the ideal product; scales shared within bitwidth groups provide a contrasting control.
ERIN CARSON, XINYE CHEN, AND RITESH KHAN

FIG. C.1. Measured arithmetic error versus the bound including rounding of the represented factors and the GEMMs, for FP32 and FP64. The dashed line is equality.
Supplementary Material C. Finite-precision reconstruction
Theorem 2.15 bounds rounding in the GEMM for each bitwidth group and in the subsequent summation. The implemented check also accounts for rounding when the factors are represented in the working precision, using equation (4.1) in the main paper. The native decoder uses the more conservative allowance for scale multiplication and conversion. These bounds assume no overflow or underflow.
All 48 measured arithmetic errors satisfy their bounds. The largest error-to-bound ratios are below for FP32 and for FP64. Figure C.1 shows the gap between measured errors and their bounds. For the hierarchical representation with only diagonal dense blocks and block-relative budgets, quantization accounts for at least 86.0% of the dominant block's error bound.
Supplementary Material D. Hierarchical comparisons
The following results concern representations that store only diagonal blocks densely and supplement Table 4.1 of the main paper. All 1,320 configurations are feasible and have nonzero measured error; no dense off-diagonal fallback occurs. The summary records satisfy the storage decomposition into diagonal blocks, admissible factors, and non-diagonal inadmissible factors.
Table D.1 includes the less compressible three-dimensional examples alongside planar BEM. At fixed , circle BEM's total compression increases from 6.229 at N = 256 to 39.141 at N = 2048.
The rank diagnostics in Table D.2 qualify the motivation for factorizing near-field blocks. At 0.01 they are often of moderate rank, but the two surface BEM cases and both three-dimensional point kernels contain full-rank inadmissible blocks at . These remain quantized factor representations; no small-rank assumption or per-block storage advantage is imposed.
Figure D.1 contrasts the uniform three-dimensional log r kernel with circle BEM. Relaxing from to 0.1 increases dense-FP64 compression from 1.928 to 16.005 for the point kernel, compared with 21.987 to 44.262 for the circle. The maximum rank fraction among non-diagonal inadmissible blocks decreases from 1 to 0.406 for the point kernel, and from 0.25 to 0.094 for the circle. Both rank selection
TABLE D.1
Compression ratios relative to dense FP64, including scales and maps, when only diagonal blocks are stored densely and block-relative budgets are used. The largest tested size is used in each geometry; point clouds are uniform. Ranks and bit allocations are recomputed at each tolerance.
| Matrix | |||||
|---|---|---|---|---|---|
| 2D BEM, circle | 2048 | 21.987 | 34.127 | 39.141 | 44.262 |
| 2D BEM, ellipse | 2048 | 20.416 | 32.509 | 37.107 | 42.976 |
| 3D BEM, cube | 1536 | 3.134 | 9.236 | 12.524 | 19.849 |
| 3D BEM, cuboid | 1536 | 3.454 | 9.626 | 12.908 | 19.596 |
| 2D uniform, | 2048 | 5.427 | 14.583 | 19.133 | 27.668 |
| 2D uniform, | 2048 | 6.887 | 15.636 | 19.873 | 28.451 |
| 3D uniform, | 2048 | 2.146 | 6.806 | 9.828 | 17.370 |
| 3D uniform, | 2048 | 1.928 | 6.219 | 8.890 | 16.005 |
TABLE D.2
Rank fractions for non-diagonal inadmissible blocks under block-relative budgets. Medians are unweighted over blocks; maxima expose the least compressible blocks. Matrix sizes are those in Table D.1.
| Matrix | ||||
|---|---|---|---|---|
| Median | Maximum | Median | Maximum | |
| 2D BEM, circle | 0.250 | 0.250 | 0.125 | 0.125 |
| 2D BEM, ellipse | 0.203 | 0.250 | 0.094 | 0.125 |
| 3D BEM, cube | 0.708 | 1.000 | 0.250 | 0.667 |
| 3D BEM, cuboid | 0.583 | 1.000 | 0.250 | 0.625 |
| 2D uniform, | 0.500 | 0.812 | 0.188 | 0.406 |
| 2D uniform, | 0.344 | 0.656 | 0.156 | 0.344 |
| 3D uniform, | 0.781 | 1.000 | 0.281 | 0.594 |
| 3D uniform, | 0.844 | 1.000 | 0.281 | 0.594 |
and bitwidth allocation contribute to these storage changes.
At , cube BEM assigns 19.57% of stored bits to diagonal blocks and 41.49% to non-diagonal inadmissible factors. Its scale/map metadata is 17.40% of total storage, compared with 3.69% for circle BEM. The metadata fraction is counted within the three block-class shares; it is reported separately to show the contribution of scales and bitwidth labels, which is relatively large for short factors.
For a fixed matrix, the choice of changes the error allowed in each block. Table D.3 uses clustered two-dimensional at , . Total budgets are (block-relative), (hybrid), or (global-relative).
Hybrid budgets reduce storage while leaving the measured global error and its bound unchanged. Global-relative budgets give greater compression at substantially larger measured error.
The study that retains dense inadmissible blocks uses a fixed relative Frobenius SVD target of , rank cap 64, four integer bitwidths, FP32 reconstruction, and FP64 dense fallback. In its eight largest cases at 0.01, diagonal, near-field, and fallback dense blocks together occupy 88.2–95.6% of stored bits. The diagonal-only dense study uses different rank selection, bitwidths, and arithmetic. The same-partition controls in the main paper isolate the storage effect of quantization.
ERIN CARSON, XINYE CHEN, AND RITESH KHAN

FIG. D.1. Uniform three-dimensional log r kernel, N = 2048, with block-relative budgets and diagonal-only dense storage. Left: max-norm reconstruction error and its bound. Middle: storage ratios against dense FP64 and same-partition floating factors. Right: storage shares of diagonal blocks, admissible factors, and non-diagonal inadmissible factors. Ranks are recomputed at each tolerance.

FIG. D.2. Cube BEM, N = 1536, with block-relative budgets and diagonal-only dense storage. Panels use the same definitions as Figure 4.5 of the main paper. Near-field factor storage and rank adaptation remain significant even when the complete representation is compressed.
D.1. Fixed-bit quantization controls. We compare the adaptive allocation with per-tensor and per-channel fixed-bit quantization on circle BEM, uniform two-dimensional 1/r, and uniform three-dimensional log r matrices at N = 512 and 2048. All three methods use the same block partition, retained SVD ranks, block-relative budgets, and available bitwidths as the study with only diagonal dense blocks. For each non-diagonal block, the fixed-bit controls choose the lowest feasible width separately. With balanced factors and , the respective bounds on factor-quantization error are
The first uses one scale for each whole factor; the latter two use one scale per retained factor column. All methods reserve the same 2% of each block budget and use the same measured truncation error. The storage includes integer payload, FP64 scales, bitwidth labels, and the common FP64 diagonal blocks. Reconstruction is evaluated in FP64.
All 180 combinations of methods, matrices, and tolerances are feasible and satisfy
TABLE D.3
Comparison of block budgets for one matrix whose representation stores only diagonal blocks densely. e, E are absolute global max-norm error and error bound. All three configurations are feasible.
| Block budget | e | E | |
|---|---|---|---|
| Block-relative | 20.599 | 0.9088 | 14.3087 |
| Hybrid | 20.921 | 0.9088 | 14.3087 |
| Global-relative | 44.620 | 13.2917 | 52.9982 |

Per-tensor, fixed bits
Per-channel, fixed bits
Adaptive, per-channel
FIG. D.3. Stored bits relative to FP64 factors on the same partition for three N = 512 matrices with block-relative budgets, complementing Figure 4.6 of the main paper. Each fixed-bit control uses the lowest feasible width for each non-diagonal block; the adaptive method varies width by retained component. The common FP64 diagonal blocks, factor scales, and bitwidth labels are included. Ranks are identical across the three methods at each tolerance.
their bounds on truncation and quantization error in the numerical checks. Across the 60 matched matrix and tolerance pairs, the ratio of per-channel fixed-bit to adaptive total storage has median 1.252 and range 1.052–1.682; the adaptive representation is smaller in every pair. The ratio of per-tensor fixed-bit to adaptive storage has median 1.122, and the adaptive representation is smaller in 45 of 60 pairs. Per-tensor quantization needs fewer scales and bitwidth identifiers, and its error bound uses the maxima of the actual balanced factors. Figure 4.6 of the main paper shows the N = 2048 matrices; Figure D.3 shows the corresponding N = 512 cases. For each block, all three methods use the same quantization budget, but feasibility is assessed using the error bound for each method. Their measured reconstruction errors may differ.
Supplementary Material E. Native reconstruction validation.
Synthetic outputs have orders 128, 512, and 4096, with ranks 32, 64, 128, and 256 whenever permitted by the dimensions. The 11 synthetic and 68 admissible-block inputs are each tested in six allocation modes: uniform 4-, 8-, 12-, and 16-bit assignments, prescribed mixed-bit assignments, and assignments from the proposed greedy algorithm. The adaptive budget in this suite is .
Packed reconstruction decodes factors to FP32, performs one cuBLAS GEMM per nonempty bitwidth group, and accumulates the results sequentially. The predecoded path starts from decoded FP32 factors. Strict FP32 disables TF32. The reference is the FP64 product of the saved FP32 factors.
All 1,501 reconstruction records to which the strict arithmetic error bound applies
ERIN CARSON, XINYE CHEN, AND RITESH KHAN
pass their stated allowances. The reconstruction allowance includes rounding in the FP32 factors, the GEMMs for each bitwidth group, and their accumulation, as specified in Section C. TF32, FP16, and shared-scale INT8 results are reported separately under their respective arithmetic and scaling models.
Supplementary Material F. Numerical validation of hierarchical matrix application.
The first suite evaluates with right-hand sides using the stored hierarchical partition. Non-diagonal inadmissible blocks remain dense, and low-rank blocks are applied through their factors. The ten matrices are circle and ellipse BEM at , cube and cuboid BEM at , and the four uniform point-kernel cases ( and in two and three dimensions) at . The tolerances are 0.005, 0.01, 0.05 and , giving 120 configurations. The partition, SVD rank threshold, and allocation/fallback decisions come from the stored hierarchical representations. All H-matrix variants use the same partition and ranks. Dense and fallback working blocks use FP32, and three of the 30 matrix and tolerance combinations include dense fallback for admissible blocks. The available bitwidths are . Application arithmetic uses FP32.
The six paths comprise dense FP32 SGEMM, batched H-FP32, adaptive unpack-plus-batched, adaptive predecoded, and two matched tiled FP32 implementations using floating or packed factors. For a block with rows and column cluster of size , let contain the input rows indexed by . If the block is factorized with retained rank , let and denote its FP32 working factors (floating or decoded). The factorized block applies directly. All H-matrix paths include permutation, dense-block products, and deterministic output reduction. Packed tiled multiplication decodes weights locally for FP32 products. All six paths disable TF32 and run on the A100 described in Section A. Each of the 120 configurations is tested with six implementations in five trials, giving 3,600 runs.
Numerical validation uses FP64 applications of the actual FP32 dense matrix, ordinary FP32 factors, or decoded FP32 quantized factors, as appropriate. These references separate arithmetic error from error in representing the source matrix. Here is FP32 unit roundoff. For a low-rank block, the arithmetic envelope includes
with the appropriate dense-block term, output-summation rounding, and an FP64 reference allowance. The bounds assume round-to-nearest arithmetic without overflow or underflow. Let denote the source block and the exact product of its saved FP32 factors, or its FP32 dense working block. The representation error is checked using the measured block residuals and , where and are vectors of ones. In all 3,600 runs, the measured arithmetic errors and the application errors bounded using measured block residuals remained below their respective bounds. The largest error-to-bound ratios were below 0.0347 and 0.1382, respectively.
The second suite uses the same matrices, tolerances, right-hand-side counts, and trials, with the partition and factor assignments from the diagonal-only dense representation. In this suite, diagonal blocks are stored in FP64. All non-diagonal blocks, including inadmissible blocks, are stored as quantized low-rank factors with bitwidths chosen from . Diagonal products accumulate in FP64 before conversion to FP32 for output reduction, and factor products use FP32 arithmetic. The measured errors in all 3,600 runs remained below the corresponding arithmetic and measured-residual propagation bounds. The largest error-to-bound ratios were below 0.0292 and 0.1895, respectively.