<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Near-Optimal Hierarchical Matrix Approximation from Matrix-Vector Products</title></titleStmt>
			<publicationStmt>
				<publisher>ACM-SIAM Symposium on Discrete Algorithms (SODA) 2025.</publisher>
				<date>01/12/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10582704</idno>
					<idno type="doi"></idno>
					
					<author>Tyler Chen</author><author>Feyza Duman Keles</author><author>Diana Halikias</author><author>Cameron Musco</author><author>Christopher Musco</author><author>David Persson</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[We describe a randomized algorithm for producing a near-optimal hierarchical o↵-diagonal low-rank (HODLR) approximation to an n⇥n matrix A, accessible only though matrix-vector products with A and A T . We prove that, for the rank-k HODLR approximation problem, our method achieves a (1 + ) log(n) -optimal approximation in expected Frobenius norm using O(k log(n)/ 3 ) matrix-vector products. In particular, the algorithm obtains a (1 + ")-optimal approximation with O(k log 4 (n)/" 3 ) matrix-vector products, and for any constant c, an n c -optimal approximation with O(k log(n)) matrix-vector products. Apart from matrix-vector products, the additional computational cost of our method is just O(n poly(log(n), k, )). We complement the upper bound with a lower bound, which shows that any matrix-vector query algorithm requires at least ⌦(k log(n) + k/") queries to obtain a (1 + ")-optimal approximation.Our algorithm can be viewed as a robust version of widely used "peeling" methods for recovering HODLR matrices and is, to the best of our knowledge, the first matrix-vector query algorithm to enjoy theoretical worstcase guarantees for approximation by any hierarchical matrix class. To control the propagation of error between levels of hierarchical approximation, we introduce a new perturbation bound for low-rank approximation, which shows that the widely used Generalized Nyström method enjoys inherent stability when implemented with noisy matrix-vector products. We also introduce a novel randomly perforated matrix sketching method to further control the error in the peeling algorithm.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Many linear algebra tasks can be solved more e ciently in the presence of structure. As such, a fundamental framework for designing matrix algorithms is to first approximate relevant matrices with structured ones, and then to solve the resulting structured problem. For example, matrices are frequently approximated by low-rank matrices, which can be stored in less space, admit faster multiplication by vectors, and more. The power of low-rank structure has motivated significant work on finding near-optimal low-rank approximations of arbitrary matrices [DM05; DKM06; HMT11; CW13; NN13; Woo14; MM15; MM17].</p><p>For problems in computational science and data science that involve multi-scale phenomena, however, low-rank approximation is often insu cient. Frequently, hierarchical low-rank structure is more appropriate; long-range interactions at a given scale can be well-approximated by low-rank matrices, while shorter-range interactions can be recursively treated at a finer scale. Like low-rank matrices, hierarchical low-rank matrices are cheap to store and work with. For instance, matrix-vector multiplies, linear solves, and other operations can typically be done in linear or nearly linear time in the dimension of the matrix [AD13; Cha+07; VXCB16; OX22]. For this reason, hierarchical low-rank approximations lie at the heart of many numerical methods, including the Fast Multipole Method (FMM) [GR87; YDGD03; YBZ04; YIK17], and have applications ranging from partial di&#8629;erential equation (PDE) solvers and control problems to the non-uniform Fourier transform [BGH03; <ref type="bibr">BK16;</ref><ref type="bibr">WEB24]</ref>. In fact, the study of hierarchical low-rank matrices is one of the most active topics of research in modern numerical linear algebra <ref type="bibr">[Hac15;</ref><ref type="bibr">BK16]</ref>.</p><p>There are many di&#8629;erent types of hierarchical low-rank matrices, including H matrices, H 2 matrices, and hierarchical semiseparable (HSS) matrices <ref type="bibr">[BK16]</ref>. In this work, we consider one of the most general classes: hierarchical o&#8629;-diagonal low-rank (HODLR) matrices. 1   Definition 1.1. Fix a rank parameter k. An n &#8677; n matrix A is HODLR(k) if n &#63743; k or if A can be partitioned into (n/2) &#8677; (n/2) blocks</p><p>such that A 1,2 and A 2,1 are each of rank at most k and A 1,1 and A 2,2 are each HODLR(k). 2   HODLR matrices are e cient to work with: they can be stored using just O(nk log(n/k)) numbers, multiplied by vectors with O(nk log(n/k)) operations, and admit linear system solves in O(nk 3 log(n/k) + nk 2 log 2 (n/k)) time <ref type="bibr">[BK16]</ref>.</p><p>We are interested in finding a near-optimal HODLR approximation to a matrix A that can only be accessed through black-box matrix-vector product queries x 7 ! Ax and matrix-transpose-vector product queries x 7 ! A T x (both of which will henceforth be referred to as "matvec queries to A"). This problem has received significant attention due to both practical and theoretical importance [LLY11; Mar11; Mar16; LM24b; BHT23; BT23; LM24a]. For example, black-box HODLR approximation methods can be used to obtain fast direct solvers in settings where we have access to e cient matrix-vector products, e.g., via an FMM or iterative method <ref type="bibr">[LLY11;</ref><ref type="bibr">Mar16]</ref>. Black-box methods are also central in the field of operator or PDE learning, where A is an unknown di&#8629;erential operator and one can access matrix-vector products through physical experiments or simulations involving di&#8629;erent forcing functions [BT22; <ref type="bibr">BHOT24;</ref><ref type="bibr">SO24]</ref>.</p><p>In these applications and many others, matvec queries with A are expensive, and typically dominate other computational costs. As such, we hope to minimize the number of queries required to find a near-optimal HODLR approximation for A. Matrix-vector query complexity has become central in theoretical work on numerical linear algebra due to the practical importance of the access model and the fact that it generalizes other models, such as the matrix sketching and Krylov subspace models <ref type="bibr">[SWYZ21]</ref>. There has been recent progress giving tight query complexity bounds for central problems like linear system solving, eigenvector approximation, and trace estimation [SER18; BHSW20; MMMW21; DM21; Che+24; JPWZ24]. Closer to our setting, there has also been significant work on the query complexity of structured matrix approximation, with classes like low-rank matrices [BCW22; BN23], diagonal matrices [BKS07; TS11; BN22; DM23], sparse matrices [CPR74; CM83; CC86; WEV13; DSBN15; Ams+24], and beyond [WSB11; SKO21; HT23].</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Formal problem setup</head><p>If A is exactly HODLR(k), it is well known that it can be recovered using O(k log(n/k)) matvec queries using the so-called peeling algorithm of Lin, Lu, and Ying <ref type="bibr">[LLY11;</ref><ref type="bibr">Mar16;</ref><ref type="bibr">LM24b]</ref>. 3  We describe this algorithm in Section 2. However, in most practical situations, A is not exactly HODLR. This has resulted in broad concern about whether peeling algorithms applied to non-HODLR matrices might produce inaccurate approximations [LLY11; BTK19; HT23; BET22; BHT23]. Notably, a recent SIAM Linear Algebra Best Paper <ref type="bibr">[BT22]</ref> poses an algorithmic challenge which roughly asks whether a near-HODLR matrix be approximated at nearly the same cost as algorithms for recovering an exactly HODLR matrix. Our work addresses this challenge.</p><p>In particular, we study the following HODLR approximation problem, which makes no assumptions about A.</p><p>Problem 1.1. Given an n &#8677; n matrix A, accessible only by matvec queries, a rank parameter k 1, and an accuracy parameter 1, find a HODLR(k) matrix e A such that kA e Ak F &#63743; &#8226; min</p><p>kA Hk F .</p><p>1 HSS matrices are special cases of HODLR matrices, as are other well-studied structured classes, like diagonal plus low-rank matrices [MMW21; TVX23; BCM17].</p><p>2 Definition 1.1 applies to matrices with dimension n = n base &#8226; 2 L for some n base &#63743; k and integer L 0. Throughout this paper, we will always assume that n and k are related in this way. More general definitions of HODLR matrices are possible, but Definition 1.1 is the most standard <ref type="bibr">[BK16]</ref>.</p><p>3 For exact recovery, the number of queries used by the peeling algorithm is within a constant factor of optimal; see Theorem 1.2 and Section 6 for a formal lower bound.</p><p>Interesting parameter regimes for Problem 1.1 can range from = (1 + ") for " 2 (0, 1) to larger approximation factors when A is very close to HODLR(k), e.g., = O(log n) or = O(n c ) for a small constant c.</p><p>Problem 1.1 can be trivially solved for = 1 using n matrix-vector products. Via multiplication by an identity matrix, we can recover all entries of A and then compute an exactly optimal HODLR approximation by computing optimal rank-k approximations to A's top right and bottom left (n/2) &#8677; (n/2) blocks, and recursing on the top left and bottom right blocks. However, outside this baseline and the case when A is exactly HODLR, we are unaware of any non-trivial results on Problem 1.1. This is despite the vast literature on HODLR matrix approximation and on e cient matrix-vector query methods for vanilla low-rank approximation [CW09; RST09; Coh+15; TYUC17; BCW22; TW23; BN23].</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">Main results</head><p>Our main contribution is an e cient algorithm for solving Problem 1.1.</p><p>Theorem 1.1. Fix a rank parameter k and accuracy parameter . Let L = dlog 2 (n/k)e. There exists a non-adaptive 4 algorithm (Algorithm 3) that uses O(k/ 3 &#8226; L) matvec queries to A and solves Problem 1.1 to accuracy = (1 + ) L with probability at least 99/100 5 . Apart from matvec queries, the algorithm requires a log(n) or even constant factor approximation) with the same number of matvecs. Additionally, Theorem 1.2 establishes that our O(k log 4 (n/k)/" 3 ) query result for (1 + ") error cannot be improved by more than log factors and a 1/" 2 factor. Interestingly, the lower bound shows a separation between the complexity of vanilla low-rank approximation and hierarchical low-rank approximation in terms of dependence on ". The best known low-rank approximation algorithms use just &#213;(k/" 1/3 ) matrix-vector products to achieve relative error (1 + ") [BCW22; MMM24].<ref type="foot">foot_0</ref> In contrast, Theorem 1.2 shows that a sublinear dependence on 1/" cannot be achieved for HODLR matrix approximation. The proof of Theorem 1.2 builds on a growing body of work on lower bounds for adaptive matrix-vector product algorithms [SER18; BHSW20; Che+23], which require techniques beyond those used to prove lower bounds, e.g., in the non-adaptive sketching setting. Our proof draws specifically on a recent result on the number of matrix-vector products required to obtain an optimal block diagonal approximation to a matrix A <ref type="bibr">[Ams+24]</ref>.</p><p>Organization. The remainder of the paper is organized as follows. In Section 2, we describe the classic peeling algorithm for HODLR matrix recovery, and discuss the challenges in applying it to the HODLR matrix approximation problem (Problem 1.1). In Section 3, we discuss the techniques we use to analyze our variant of peeling, including our new perturbation bound for low-rank approximation. Then, in Section 4, we describe the exact implementation of our algorithm and introduce notation required for our main analysis. The final proof of Theorem 1.1 is given in Section 5. In Section 6, we prove our lower bound, Theorem 1.2. Finally, in Section 7 we show the results of some numerical experiments.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">The Peeling Algorithm</head><p>In this section, we describe the classic peeling method for HODLR matrix recovery, on which our algorithm is based. As discussed, existing analyses of this method apply only in the setting when the input matrix A is exactly HODLR. We illustrate here how errors can arise when peeling is applied to solve Problem 1.1 in the general case when A is only approximated by a HODLR matrix. The precise notation used in the figures will be fully described in Section 4.2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Low-rank approximation</head><p>The peeling algorithm makes use of matrix-vector query algorithms for lowrank approximation: given a matrix B 2 R m1&#8677;m2 , accessible only via matrix-vector queries, we would like to find a rank-k approximation to B, or to exactly recover B when rank(B) &#63743; k. It is well-known that the best low-rank approximation to B in the Frobenius norm is [[B]] k , the rank-k truncated SVD of B.</p><p>Perhaps the most well-known algorithms for this task are the Randomized SVD (RSVD) <ref type="bibr">[HMT11]</ref> and the Generalized Nystr&#246;m Method [CW09; TYUC17; Nak20], summarized below:</p><p>Both methods first compute an orthonormal basis Q for the column span of the matrix B&#8998;, formed by multiplying B by a random sketching matrix &#8998; with s R columns. Throughout, we take this matrix to be Gaussian for simplicity, although most other popular sketching distributions can also be employed; see e.g. <ref type="bibr">[Woo14;</ref><ref type="bibr">HMT11]</ref>. RSVD then projects B onto this column span and forms the best rank-k approximation of the result. Generalized Nystr&#246;m follows the same idea, but instead computes an approximate projection of B onto Q by using a second sketch on the left. If rank(B) &#63743; k, RSVD and Generalized Nystr&#246;m both recover B exactly (with probability one) if, respectively,</p><p>More generally, these methods can obtain a near-optimal low-rank approximation for</p><p>with high probability <ref type="bibr">[Sar06]</ref>. The output of Generalized Nystr&#246;m gives the same guarantee when s R = O(k/ ) and s</p><p>2.2 Exact HODLR recovery Recall from Definition 1.1 that any HODLR(k) matrix A 2 R n&#8677;n is composed to four (n/2) &#8677; (n/2) sized blocks. The o&#8629;-diagonal blocks, A 1,2 and A 2,1 , are rank-k and the on-diagonal blocks, A 1,1 and A 2,2 , are themselves HODLR(k). The key idea of the peeling algorithm is to first recover the lowrank o&#8629;-diagonal blocks A 1,2 and A 2,1 , to implicitly subtract them from the matrix, and to then continue on to recursively recover the on-diagonal HODLR(k) blocks. More formally, peeling relies on the following observations:</p><p>Observation 1. We can perform matrix-vector products with the o&#8629;-diagonal blocks A 1,2 and A 2,1 (and their transposes) using matrix-vector products with A and A T . In particular, we can compute products with A 2,1 and (A 2,1 ) T by (2.1)</p><p>and analogously with A 1,2 and (A 1,2 ) T by (2.2)</p><p>Here, " &#8672; " indicates a block of the output that we ignore in our computations. As discussed in Section 2.1, algorithms like RSVD and Generalized Nystr&#246;m can exactly recover a rank-k matrix (with probability one) using k products with each the matrix and its transpose. Thus, when A is exactly HODLR(k), we can fully recover both o&#8629;-diagonal blocks using just 4k total queries to A (implementing k queries with each of A 1,2 , (A 1,2 ) T , A 2,1 , and (A 2,1 ) T ).<ref type="foot">foot_1</ref> </p><p>Figure 1: State of the hierarchical matrix at the start of the `= 2 level of peeling. A (2) denotes the matrix A after subtracting the low-rank o&#8629;-diagonal blocks recovered at the first level -these blocks are zero in A (2) and shown as white in the figure. For j = 1, 3, we can simultaneously obtain the products A</p><p>(2) j+1,j &#8998; j and the transpose-products (A (2) j+1,j ) T j+1 from the sketches A&#8998; + and A T . Letting &#8998; + and have k columns and blocks chosen to be appropriate sketching matrices, these products can be used to exactly recover the rank-k blocks A</p><p>(2) j+1,j for j = 1, 3. Obtaining products with and recovering A</p><p>(2) j 1,j for j = 2, 4 can be done analogously using &#8998; and + . Overall, we can recover all four rank-k o&#8629; diagonal blocks at level `= 2 using just 4k queries to A (k for each of &#8998; + , &#8998; , + , and ).</p><p>Observation 2. After exactly obtaining the blocks A 2,1 and A 1,2 , we can simultaneously perform matrix-vector products with the on-diagonal blocks A 1,1 and A 2,2 (and their transposes) using matrix-vector queries to A. In particular, we can compute for any &#8998; 1 and &#8998; 1 ,</p><p>and analogously</p><p>Since A 1,1 and A 2,2 are themselves HODLR(k), by Observation 1, we can recover their low-rank o&#8629; diagonal blocks (each of size (n/4) &#8677; (n/4)) using just 4k queries to A (see Figure <ref type="figure">1</ref>).</p><p>Observation 3. We can repeat this process, recursing toward the diagonal, to recover smaller and smaller o&#8629;diagonal low-rank blocks. Critically, the number of matrix-vector products used to recover the o&#8629;-diagonal blocks at a given level depends only on the rank parameter k and is independent of the level itself. After L = dlog 2 (n/k)e recursive steps, the blocks will be of size at most k. At this point, the diagonal blocks can be recovered all at once using k matrix-vector products. Overall, 4k queries to A are used at each level, and k are used at the final level, giving total cost of O(k &#8226; (L + 1)) matvec queries.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Peeling in the presence of error</head><p>The peeling algorithm described in Section 2.2 assumes that the matrix A is exactly HODLR(k). In particular, Observation 2 does not hold if the o&#8629;-diagonal blocks at the previous level are not recovered exactly. This is illustrated in Figure <ref type="figure">2</ref>. As noted in <ref type="bibr">[LLY11]</ref>, "it is a natural concern that whether the error from low-rank decompositions on top levels accumulates in the peeling steps." In particular, if all of the error at a given level propagated to the next level through perturbations on the desired sketches, the error could double at each level; i.e., result in an exponential blow-up of the error with respect to the number of levels. In fact, as we demonstrate in Section 7.3, certain variants of the peeling algorithm can exhibit such a failure mode on hard instances. Thus, understanding the propagation of error from one level to the next is critical in the design and analysis of peeling algorithms. In Section 3 we discuss the techniques we use to control and analyze this error propagation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A</head><p>(3) 8,5</p><p>Figure <ref type="figure">2</ref>: State of the hierarchical matrix at the start of the `= 3 level of peeling. A (3) denotes the matrix A after subtracting o&#8629;-diagonal blocks that were (approximately) recovered at the first two levels. We would like to use the sketches A</p><p>(3) 6,5 &#8998; 5 and (A</p><p>(3) 6,5 ) T 6 to obtain a low-rank approximation to the o&#8629;-diagonal block A</p><p>(3) 6,5 . However, if the o&#8629;-diagonal blocks at previous levels were not recovered exactly (since these blocks may not be exactly rank-k), then after subtraction, these blocks will not be exactly zero in A (3) . We thus obtain perturbed sketches of the form</p><p>8,5 ) T 8 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Techniques</head><p>As discussed in Section 2.3, when the peeling algorithm is applied to a matrix A that is not exactly HODLR, errors at previous levels can pollute the matrix-vector products at a given level. The aim of this paper is to show that these errors can be controlled in such a way that the peeling algorithm can still solve Problem 1.1 to high accuracy. To do this we must understand: (1) how matrix-vector query algorithms for low-rank approximation are impacted by noise in their matvecs and (2) how this noise can be controlled in the setting of peeling.<ref type="foot">foot_2</ref> In the next two subsections we outline the high-level ideas we use to address each question.</p><p>3.1 A perturbation bound for low-rank approximation To understand how matvec query errors impact low-rank approximation algorithms, including RSVD and Generalized Nystr&#246;m (see Section 2.1), we develop the following perturbation bound, which we believe will be of general interest. The bound is proven in Section 5.1.</p><p>, and E 2 2 R s&#8677;m2 , and let Q = orth(B&#8998; + E 1 ). Write B in its singular value decomposition as</p><p>where U and V are orthonormal and &#8963; is diagonal, and the "top" blocks represent the top k columns; i.e.,</p><p>, and &#8963; top 2 R k&#8677;k . Define also</p><p>Theorem 3.1 is most naturally a perturbation bound for the RSVD method, which, as discussed in Section 2.1, first computes an orthonormal basis Q for B&#8998; where &#8998; is a random sketching matrix, and then outputs Q[[Q T B]] k -the best rank-k approximation to B lying in the span of Q. The error term E 1 captures error that occurs during the initial sketching step, i.e., due to noise in computing the matrix-vector products B&#8998;. Similarly, E 2 captures noise in the second projection step. Theorem 3.1 can be used to recover the standard bounds for RSVD implemented with exact matrix-vector products (i.e., where E 1 and E 2 are zero). In particular, in this case the RSVD Frobenius error is bounded by:</p><p>.</p><p>When the sketching matrix &#8998; is Gaussian, we can observe that &#8998; bot and &#8998; top are independent Gaussian matrices since V top and V bot are orthogonal to each other. This allows us to apply a standard bound (see Theorem 5.1) to argue that when</p><p>Theorem 3.1 can also be used as a perturbation bound for the Generalized Nystr&#246;m Method. In this case, E 2 is used to account for the error due to using an approximate projection onto Q via a sketched regression problem, as well as the errors in the matvecs with A T used to set up the regression problem. We discuss this further in Section 3.2. As with RSVD, Theorem 3.1 matches the current best known bounds for Generalized Nystr&#246;m implemented with exact matvecs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Low-rank approximation in the peeling algorithm</head><p>We now consider how Theorem 3.1 can be applied to control the propagation of error in the peeling algorithm implemented with di&#8629;erent base algorithms for lowrank approximation of the o&#8629;-diagonal blocks.. Randomized SVD. First consider implementing peeling with RSVD as the base low-rank approximation algorithm. In this case, E 1 and E 2 will be nonzero since we cannot compute exact matrix-vector products with an o&#8629;-diagonal low-rank block B due to noise from previous levels (i.e., we cannot exactly compute B&#8998; and Q T B). Fortunately, the error E 1 that arises in peeling has a particular structure that can be used to bound the kE 1 &#8998; &#8224; top k F term in Theorem 3.1. In particular, recalling Figure <ref type="figure">2</ref>, we will have</p><p>where the M j are fixed matrices that depend on the recovery error at the previous levels of peeling, and the &#8998; j are independent Gaussian matrices.<ref type="foot">foot_3</ref> e &#8998; is itself a Gaussian matrix that is independent from &#8998; top , allowing us to bound the</p><p>), again using Theorem 5.1. I.e., with a large enough sketch size, we can drive down the error term E 1 to be arbitrarily small, and ensure that it does not accumulate too much across the levels of peeling.</p><p>Unfortunately, we cannot handle the kE 2 k F term in Theorem 3.1 in the same way. We have E 2 = P j M j Q j for orthogonal matrices Q j computed for each o&#8629;-diagonal block at the current level. The Q j and M j matrices may be arbitrarily correlated, and so it is not clear that kE 2 k F can be made small compared to the noise from the previous levels, kMk F . In fact, as discussed in Section 7.3, theoretical and empirical evidence suggests the existence of hard instances where standard peeling with RSVD can su&#8629;er exponential error blow-up across levels. Generalized Nystr&#246;m. Our first key observation is that when peeling is implemented with the Generalized Nystr&#246;m method as the base low-rank approximation algorithm, rather than RSVD, the kE 2 k F error term in Theorem 3.1 can in fact be bounded. For peeling implemented with Generalized Nystr&#246;m, E 2 encapsulates two sources of error: the first is due to the fact that Generalized Nystr&#246;m does not exactly return</p><p>T QZk F for a random sketching matrix and returns Q[[X]] k . We can think of X as an approximation to Q T B = argmin Z kB QZk F . It is well known that this source of error can be controlled by setting the size of the sketch large enough -this leads to the standard analysis of Generalized Nystr&#246;m from the literature <ref type="bibr">[TYUC16]</ref>.</p><p>The second source of error in E 2 is due to noise in computing the matrix-vector products T B. Fortunately, analogously to how we bounded E 1 for RSVD in Section 3.1, we can leverage the fact that in peeling, this noise has the structure of equation (3.3) -it is the product of a fixed matrix M (the recovery error at previous levels of peeling) and a random Gaussian matrix e that is independent of . Using this structure, we are able to bound its impact on the final approximation quality. In particular, we use Theorem 3.1 to give the following bound for the Generalized Nystr&#246;m Method with Gaussian errors as in (3.3). This bound is proven in Section 5.1.</p><p>, and e &#8672; Gaussian(q, s L ) be independent. Define</p><p>where</p><p>We can see from Theorem 3.2 that, for fixed noise matrices M and N, if we set s R large enough compared to k and s L large enough compared to s R , we can drive the expected error of the rank-k approximation Q[[X]] k arbitrarily close to the error of the best possible rank-k approximation [[B]] k . Formally, in Section 5 (Theorem 5.2) we use Theorem 3.2 to show that for any 2 (0, 1), if we set s R = O(k/ 2 ) and</p><p>), then at each level of peeling, our approximation error blows up by at most a (1 + ) factor. Over L + 1 levels, we obtain final accuracy = (1 + ) L+1 . This matches our main result, Theorem 1.1, but with a slightly worse dependence on : we require O(k/ 4 &#8226; L) rather than O(k/ 3 &#8226; L) total matvecs. In Section 3.3 we show how to give the improved dependence using a novel sketching approach to further control the noise terms M and N.</p><p>We note that the algorithm described above, which simply implements standard peeling with Generalized Nystr&#246;m is particularly simple and performs well experimentally -see Section 7. It would be interesting to understand if our bounds on s R and s L are tight -we suspect that they are not. In particular, even in the case of exact matrix-vector products, we suspect that s L = O(k/ 2 ) su ces to achieve a (1 + ) approximation, even though current best known bound is O(k/ 3 ). Giving an improved bound in this setting would very likely yield an improved bound in our setting.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Randomly perforated Gaussian sketching</head><p>We next discuss how we can further improve the query complexity of peeling with Generalized Nystr&#246;m-based low-rank approximation by altering the sketching distribution to explicitly reduce matvec query errors that arise due to inexact recovery at previous levels.</p><p>Referring back to Figures <ref type="figure">1</ref> and <ref type="figure">2</ref>, we observe that at each level the peeling algorithm employs two random sketching matrices on the right: &#8998; + and &#8998; and two on the left: + and . For sake of exposition we focus here just on the right sketches, &#8998; + and &#8998; , which are both block matrices with 2 `blocks, alternating between random Gaussian blocks (i.e., &#8998; 1 , &#8998; 2 , &#8998; 3 , ...) and zero blocks. In particular, &#8998; + has even blocks set to zero, while &#8998; has odd blocks set to zero.</p><p>This "perforated" structure arises naturally from Observation 1 and Observation 2. Intuitively, since &#8998; + has even blocks set to zero, it has no interaction with the diagonal blocks at level `with even indices. Thus, it can be used to simultaneously produce right sketches of every bottom-left o&#8629;-diagonal block at level `, without incurring any error due to the unrecovered on-diagonal blocks.</p><p>Of course, as discussed, when the peeling algorithm is applied to a non-HODLR matrix, the sketch does incur error due to inexact recovery at the previous levels. In particular, referring to Figure <ref type="figure">2</ref>, when approximating a given o&#8629;-diagonal block at level `(e.g., A</p><p>(3) 6,5 in the figure), the sketch incurs error from 2 ` 1 1 blocks that were only approximately recovered in previous levels of peeling (i.e., A</p><p>(3) 6,1 , A</p><p>(3) 6,3 , and A</p><p>(3) 6,7 in the figure).</p><p>Our key idea to reduce this error is simple: we will increase the sparsity of &#8998; + and &#8998; , so that a higher fraction of blocks are set to zero. Thus, when recovering each block at level `, we will incur error due to a smaller number of inexactly recovered blocks from the previous levels. We still need non-zero blocks for each of the 2 &#242;&#8629;-diagonal blocks that are recovered at level `, so our sparser matrices will have a large number of block columns than before. See Figure <ref type="figure">3</ref> for an illustration.</p><p>Of course, just decreasing the number of inexactly recovered blocks that introduce error into each of our sketches may not decrease the magnitude of this error if the error is all concentrated on a few blocks. Thus, we will chose the nonzero blocks of our sketches randomly, ensuring that the expected error when recovering each block at level `is small. Formally, our modified sketches &#8998; + , &#8998; , + , and will be 2 `&#8677; t block matrices, with a single Gaussian block placed randomly in each odd (resp. even) block row. They can be thought of as block Kronecker products of Gaussian matrices with Count-sketch-like sparse sketching matrices -see Section 4.1 for a more complete description. We call our sketches randomly perforated Gaussian sketches.</p><p>By increasing the number of block columns t in our randomly perforated sketches, we decrease the expected matvec error introduced by inexactly recovered blocks at each level. In particular, we show that the expected noise added to each matvec query is decreased by a factor of 1/t in the squared Frobenius norm. We describe our variant of Generalized Nystr&#246;m-based peeling with perforated sketching in Algorithm 3 and analyze it in Section 5 (Theorem 5.2), using the perturbation bound for Generalized Nystr&#246;m described in Section 3.2. Ultimately, this approach gives our main result Theorem 1.1.</p><p>We note that perforated sketching can also be combined with vanilla RSVD-based peeling, giving a similar bound to Theorem 1.1. We describe the resulting algorithm in Appendix A. We numerically compare our main Generalized Nystr&#246;m Method-based algorithm with the RSVD-based algorithm in Section 7.</p><p>Figure 3: As in Figures <ref type="figure">1</ref> and <ref type="figure">2</ref>, we aim to obtain the sketches A</p><p>(3) j&#177;1,j &#8998; + j and (A</p><p>. The key observation is that by using randomly perforated Gaussian sketches, which decrease the number of nonzero blocks per block-column (while increasing the number of column. This results in less error. We illustrate the error for block A</p><p>(3) 6,5 . Note that we obtain sketches A</p><p>(3) 6,5 &#8998; 5 + A</p><p>(3) 6,1 &#8998; 1 and (A (3) 6,5 ) T 6 . Thus, the error is decreased compared to Figure <ref type="figure">2</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">The Generalized Nystr&#246;m Method Peeling Algorithm</head><p>We now describe our variant of the peeling algorithm, which is summarized as Algorithm 3. In Sections 4.1 and 4.2 we describe preliminary notation and give pseudocode for the algorithm. Then, in Sections 4.3 and 4.4 we describe how the two key stages of the Generalized Nystr&#246;m Method are approximately implemented in the peeling algorithm and introduce notation we will use in the analysis. Finally, in Section 4.5 we discuss how to recover the diagonal blocks at the final level. Analysis of the method appears in Section 5.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Notation for sketching distributions</head><p>We begin by defining notation needed to describe the "randomly perforated Gaussian" sketches used in our variant of the peeling algorithm.</p><p>Note that " &#8226; " is a block row-wise Kronecker product; i.e. the block-rows of X &#8226; Y are obtained as the Kronecker product of the rows of X and the block-rows of Y.</p><p>Definition 4.2. We say &#8998; &#8672; Gaussian(p, q) if each entry of &#8998; 2 R p&#8677;q is independently a standard normal random variable.</p><p>Definition 4.3. We say &#8672; &#8672; CountSketch(d, t) if &#8672; 2 {0, 1} d&#8677;t is such that each row of &#8672; independently has exactly one nonzero entry in a uniformly random column. We respectively denote the (j, i) entry of &#8672; as &#8672; j,i .</p><p>Definition 4.4. We say &#8672; + , &#8672; &#8672; PerfCountSketch(d, t) if</p><p>where &#8672; &#8672; CountSketch(d, t). We respectively denote the (j, i) entry of &#8672; + and &#8672; as &#8672; + j,i and &#8672; j,i .</p><p>We are now ready to formally define the randomly perforated Gaussian sketching distribution.</p><p>Definition 4.5. We say &#8672; + , &#8672; , &#8998; + , &#8998; &#8672; RandPerfGaussian(n, d, s, t) if</p><p>where &#8672; + , &#8672; &#8672; PerfCountSketch(d, t) and each &#8998; i &#8672; Gaussian(n/d, s) independently.</p><p>The sketching matrices &#8998; + and shown in Figure <ref type="figure">3</ref> illustrate the sparsity structure of the randomly perforated Gaussian sketching distribution (Definition 4.5) with t = 3. In the case that t = 1, then the randomly perforated Gaussian sketching matrices are of the form used by the standard peeling algorithm -see Figure <ref type="figure">1</ref>. The resulting approximation to these blocks is placed in a matrix H (`) . This is repeated for L := dlog 2 (n/k)e &#63743; O(log(n/k)) levels, at which points the blocks are of size at most k. At the final level `= L, the algorithm also obtains an approximation b H to the 2 L diagonal blocks. The final approximation is then expressed in terms of the approximations at each level as</p><p>Suppose we are at level `, and let A (`) be the matrix A at step `after subtracting the approximations H (` 1)  , . . . , H (1) from the previous levels; that is</p><p>Partition A (`) into a 2 `&#8677; 2 `block matrix with blocks of size (n/2 `) &#8677; (n/2 `):</p><p>(4.5)</p><p>.</p><p>We will use the Generalized Nystr&#246;m Method to simultaneously approximate the relevant blocks</p><p>with low-rank matrices</p><p>The low-rank matrices obtained will then be placed in the block tridiagonal matrix (4.7)</p><p>and the algorithm proceeds to the next level. Note that the sketching matrices used by the peeling algorithm to recover the matrices in (4.6) depends on the parity of the column index j: when the first index is even the second index is one smaller and when the first index is odd the second index is one larger. To handle the two cases simultaneously in our analysis, we will introduce the following notation. Fix a value j 2 {1, . . . , d}. We will use "&#177;" and "&#8997;" to indicate addition or subtraction depending on the parity of j: For instance example j &#177; 1 means j + 1 if j is odd and j 1 if j is even, and similarly &#8672; &#177; j means &#8672; + j if j is odd and &#8672; j if j is even.</p><p>The diagonal blocks A (`) j,j may have large norm, and the sketching matrices used by the peeling algorithm are constructed explicitly to avoid touching these diagonal blocks. Assuming the algorithm has not accumulated much error, then besides the diagonal blocks and sub/super diagonal blocks we aim to recover, the other blocks in (4.6) will be on the scale of the best possible error. In particular, as described in Section 2, if A is exactly HODLR, then these blocks are all zero.</p><p>At the final level `= L, we must also approximate the on-diagonal blocks. Let b A (L) be the matrix after removing our approximation to the o&#8629;-diagonal blocks of</p><p>i,j for all i 6 = j &#177; 1; indeed, the approximation H (L) to the o&#8629;-diagonal low-rank blocks at level L only updates the blocks A (L) j&#177;1,j . We will approximate the blocks b A (L) j,j with matrices b H j which we place in the matrix</p><p>We now have the notation needed to fully describe Algorithm 3. In Sections 4.3 to 4.5 we describe in more detail the main conceptual pieces of the algorithm and introduce additional notation used in our analysis.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Range approximation</head><p>We first describe how to obtain an approximate range Q (`) j for each A j&#177;1,j at level `. Towards this end, let</p><p>as defined in Definition 4.5. We will access A via the sketches A (`) &#8998; + and A (`) &#8998; , each of which can be computed using s R t R matvecs with A. Fix j and let &#8674; = &#8674;(j) be the (unique) index such that &#8672; &#177; j,&#8674; = 1. We will try to recover a good approximation to the range of A (`) j&#177;1,j using the information from the (j &#177; 1, &#8674;) block of the sketch A&#8998; &#177; . This is illustrated in Figure <ref type="figure">3</ref>. In particular, we will use the sketch</p><p>It will be useful to write</p><p>We will then set (4.12)</p><p>which will still be an approximate top subspace of A (`) j&#177;1,j , provided the noise term E (`) j</p><p>is not too large. In particular, note that if A is exactly HODLR, then E (`) j is zero. This is because in this setting, A</p><p>j&#177;1,i = 0 except when i = j or i = j &#177; 1, and &#8672; &#177; j&#177;1,&#8674; = 0 so that there is no contribution from the on-diagonal block A (`) j&#177;1,j&#177;1 .</p><p>Algorithm 3 Generalized Nystr&#246;m Method Peeling algorithm for HODLR approximation</p><p>Set L = dlog 2 (n/k)e . Final level blocks of size at most k 3:</p><p>for `= 1, 2, . . . , L do 4:</p><p>Allocate and partition H (`) as in (4.7)</p><p>. blocks of size n/2 `&#8677; n/2 5:</p><p>. as in Definition 4.5</p><p>. as in Definition 4.5</p><p>. 2s L t L matvecs with A T 9:</p><p>for j = 1, 2, . . . , 2 `do 10:</p><p>Set &#8674; such that &#8672; &#177; j,&#8674; = 1</p><p>11:</p><p>Set such that &#8675; &#8997; j&#177;1, = 1</p><p>15:</p><p>Allocate and partition b H as in (4.10)</p><p>. as in Definition 4.5</p><p>. s L t L matvecs with A T 19:</p><p>Set such that b &#8675; j, = 1</p><p>Low-rank approximation from given subspace We now describe how to obtain the low-rank approximations</p><p>j&#177;1,j at level `, given the approximate left subspaces Q (`) j computed by the procedure described in Section 4.3. Let</p><p>as defined in Definition 4.5. We will access A via the sketches (A (`) ) T + and (A (`) ) T , each of which can be computed using s L t L matvecs with A T .</p><p>Fix j and let = (j) be the (unique) index such that &#8675; &#8997; j&#177;1, = 1. We will try to recover a low-rank approximation of A (`) j&#177;1,j whose column space is Q (`) j from the ( , j) block of the sketch ( &#8997; ) T A (`) . This is illustrated in Figure <ref type="figure">3</ref>. In particular, we will use the sketch</p><p>Similar to above, we therefore have</p><p>Now, we obtain obtain the right factors by (4.14) X (`)</p><p>Finally, we obtain an approximation H (`)</p><p>j will be nearly the best approximation to A (`) j&#177;1,j with range equal to the column span of Q (`) j . Similar to before, if A is exactly HODLR, the noise term F (`) j is zero.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.5">Recovering the diagonal blocks</head><p>The strategy we use to recover the diagonal blocks is similar to the o&#8629;diagonal blocks. However, since the blocks have at most k columns, there is no need to obtain the left subspace. <ref type="foot">11</ref>We let</p><p>Fix j and let = (j) be the (unique) index such that b &#8675; j, = 1. We will try to recover an approximation to b A (L) j,j using the ( , j) block of the sketch (A (L+1) ) T b . In particular, we will use the sketch</p><p>Similar to above, we therefore have</p><p>We obtain the diagonal blocks by</p><p>Finally, we obtain an approximation b</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Analysis</head><p>We are now prepared to prove our main accuracy guarantee for Algorithm 3, stated as Theorem 5.2. The simplified Theorem 1.1 stated in Section 1.2 will follow as a direct corollary. In Section 5.1 we first prove Theorem 3.1, a deterministic perturbation bound for RSVD and Generalized Nystr&#246;m implemented with inexact matvec queries (see discussion in Section 3.1). We then use this bound to prove Theorem 3.2, is a probabilistic error bound that holds for Generalized Nystr&#246;m implemented with random Gaussian sketches. In Section 5.2 we use this bound to prove our main approximation guarantees. In particular, our analysis applies Theorem 3.2 to each o&#8629;-diagonal block at each level. Assuming we have obtained nearoptimal low-rank approximations to the o&#8629;-diagonal blocks at the previous levels, we show that we can obtain near-optimal low-rank approximations to the o&#8629;-diagonal blocks at the current level.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Perturbation bound for the RSVD</head><p>We begin with proving Theorem 3.1, which we restate below.</p><p>, and E 2 2 R s&#8677;m2 , and let Q = orth(B&#8998; + E 1 ). Write B in its singular value decomposition as</p><p>where U and V are orthonormal and &#8963; is diagonal, and the "top" blocks represent the top k columns; i.e.,</p><p>, and &#8963; top 2 R k&#8677;k . Define also</p><p>Using this, the triangle inequality, and the relations kB</p><p>Note that rank((B&#8998; + E 1 )M) &#63743; k and let P 2 R m1&#8677;m1 denote the orthogonal projector onto range((B&#8998; + E 1 )M). Again, using [Gu15, Theorem 3.5] and the triangle inequality, we obtain</p><p>(5.18) Now, following [Con23, Chapter 5] we can bound each term (5.18). First note that</p><p>For the second term, observe that since we have assumed rank</p><p>We thus have:</p><p>By the Pythagorean theorem then we have</p><p>Combining (5.17) and (5.20) yields the desired inequality.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.1">Probabilistic bounds</head><p>To apply Theorem 3.1 to a setting with Gaussian sketching matrices, we make use of the following well-known fact about the Frobenius norm of Gaussian matrices and their pseudoinverses, proofs of which can be found throughout the literature; see for instance [HMT11, Proposition A.5].</p><p>Theorem 5.1. Let X be u&#8677;v and G &#8672; Gaussian(v, q) and H &#8672; Gaussian(p, q) independently. Then, if q &gt; p+1,</p><p>We proceed with proving the following lemma, which relates to the error of the approximate projection step of the Generalized Nystr&#246;m Method, when implemented with approximate matvecs as they arise in the peeling algorithm -see discussion in Section 3.2. Lemma 5.1. Let B 2 R m1&#8677;m2 , Q 2 R m1&#8677;sR with orthonormal columns, and N 2 R q&#8677;m2 be fixed matrices and &#8672; Gaussian(m 1 , s L ) and e &#8672; Gaussian(q, s L ) be independent. Then, provided s</p><p>the identity, and</p><p>Therefore, recalling our definition of</p><p>Since s L s R , with probability 1, &#8224; 1 1 = I. Thus, rearranging the above equation, we find that</p><p>&#8224; 1 e T N. (5.21) Next, as shown in [PBK24, Lemma A.2(i)], for deterministic matrices X, Y, Z and a Gaussian matrix 2 , (5.22)</p><p>Therefore, using that 1 , 2 and b are independent and applying (5.22) and Theorem 5.1 to bound the righthand side of (5.21), we obtain</p><p>Noting that k e Q T Bk 2 F = kB QQ T Bk 2 F yields the desired result.</p><p>Finally, we use Theorem 3.1 and Lemma 5.1 to prove Theorem 3.2.</p><p>Theorem 3.2. Let B 2 R m1&#8677;m2 , M 2 R m1&#8677;p , and N 2 R q&#8677;m2 be fixed matrices, and let</p><p>, and e &#8672; Gaussian(q, s L ) be independent. Define</p><p>where</p><p>Proof. Let B have SVD as partitioned in Theorem 3.1 and define &#8998; top = V T top &#8998; and &#8998; bot = V T bot &#8998;. Note that, by the unitary invariance of Gaussian random matrices &#8998; top &#8672; Gaussian(k, s R ) and &#8998; bot &#8672; Gaussian(m 2 k, s R ) independently of one another and e &#8998;. Note that &#8998; top has rank k with probability one, and Theorem 3.1 asserts</p><p>We will set E 1 = E[C 2 ] and E 2 as an upper bound for for 2E[A 2 + B 2 ] which is itself an upper bound for E[(A + B) 2 ]. Then, by the linearity of expectation and Cauchy-Schwarz,</p><p>and</p><p>First, using Theorem 5.1 we have that</p><p>Since QQ T B is the best Frobenius-norm approximation to B with range contained in range(Q), using Theorem 3.1 along with the inequality (x + y) 2 &#63743; 2x 2 + 2y 2 gives (5.26)</p><p>Applying Lemma 5.1, (5.26), and Theorem 5.1 yields</p><p>Our choices of k, s R , and s L ensure k sR k 1 &#63743; 1 and sR sL sR 1 &#63743; 1. Hence,</p><p>(5.27)</p><p>Combining (5.24) and (5.27) and noting</p><p>as required.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Analysis of Algorithm 3</head><p>We are now prepared to analyze Algorithm 3.</p><p>Definition 5.1. For each `= 1, 2, . . . , L, let F `be the sigma algebra representing the information known to the algorithm at the start of the `-th step.</p><p>We begin by proving the key approximation guarantee for an o&#8629;-diagonal low-rank block at level `. This shows that, even in the presence of noise, we can obtain a near-optimal low-rank approximation to each of the o&#8629;-diagonal blocks (and the on-diagonal blocks at the final level `= L). This can be viewed as a version of Theorem 3.2 adapted to the errors appearing within the peeling algorithm.</p><p>Lemma 5.2. Fix a rank parameter k and let 2 (0, 1). Suppose t L 1 and s R , t L , and s R are such that</p><p>Then for each `= 1, 2, . . . , L the o&#8629;-diagonal low-rank blocks obtained by Algorithm 3 are nearly optimal in the sense that</p><p>where</p><p>Moreover, at the final level `= L, the on-diagonal blocks obtained by Algorithm 3 are nearly exact in that</p><p>Proof. We begin with the first result. Let d = 2 `and let &#8998; &#177; and &#177; be the sketches used at level `of Algorithm 3. Fix j and recall that &#8674; and are the unique indices so that &#8672; &#177; j,&#8674; = 1 and</p><p>i and the random Gaussian matrices</p><p>Then we can write E (`)</p><p>j = e T N, where E (`) j and F (`) j are are the additive perturbation terms as defined in (4.11) and (4.13). Furthermore, note that e &#8998; and e are independent of &#8998; j and j&#177;1 . Recall that Q (`) j is an orthonormal basis for range(A j&#177;1,j &#8998; j + E (`) j ) and X (`)</p><p>). The specified conditions on k, s R , and s L ensure that s L 2s R + 1 and s R 2k + 1. Therefore, Theorem 3.2 yields (5.28)</p><p>where</p><p>By our choice of &#8672; &#177; , the &#8672; &#177; i,&#8674; are independent for di&#8629;erent i and E[&#8672; &#177; i,&#8674; ] is zero or 1/t R depending on the parity of &#8674;. Thus, E[&#8672; &#177; i,&#8674; ] &#63743; 1/t R . Furthermore, note that E[&#8672; &#177; j&#177;1,&#8674; ] = 0 by construction. Thus,</p><p>By a similar argument,</p><p>Hence, by the law of total expectation, the Cauchy-Schwarz inequality, and (5.28) we have</p><p>where</p><p>Using that max</p><p>and our assumptions on t L , t R , s L , and s R allows us to get bounds</p><p>Therefore, since E 1 &#63743; 2E</p><p>(`) j and 1/30 + (36 + 16 + 32)/30 2 + 2 p 2(36 + 16 + 32)/30 2 &#8673; 0.991 &#63743; 1, we get a bound</p><p>(5.30)</p><p>Combining (5.30) with (5.29) yields the first inequality. The proof of the second result is similar to the analysis of the Generalized Nystr&#246;m method Theorem 3.2. First define</p><p>and the random Gaussian matrix</p><p>Similar to above we have</p><p>Since s L s R &gt; 2k + 1 and k n/2 L we can apply Theorem 5.1 to obtain</p><p>as required.</p><p>Finally, we prove our main theorem.</p><p>Theorem 5.2. Fix a rank parameter k and let 2 (0, 1). Suppose t L 1 and s R , t L , and s R are such that</p><p>Let L = dlog 2 (n/k)e. Then, using 2Ls R t R products with A and (2L + 1)s L t L products with A T , Algorithm 3 outputs a HODLR(k) matrix e A such that</p><p>kA Hk 2 F .</p><p>Theorem 1.1 is an immediate consequence of Theorem 5.2.</p><p>Proof of Theorem 1.1. We can instantiate Theorem 5.2 with (5.31)</p><p>Write err 2 := kA e Ak 2 F and opt 2 := min H2HODLR(k) kA Hk 2 F . Rearanging Theorem 1.1 we see E[err 2 opt 2 ] &#63743; ((1 + ) L+1 1)opt 2 . Then, since err 2 opt 2 0, we can apply Markov's inequality and obtain a bound</p><p>Note that 1 + 100((1 + ) L+1 1) &#63743; (1 + 100 ) L+1 for all , L &gt; 0. Therefore, err 2 &#63743; (1 + 100 ) L+1 opt 2 , except with probability at most 1/100. Taking a square root and adjusting by a constant factor gives the result.</p><p>The parameters in (5.31) are chosen to minimize the beta dependencies in the resulting bound. Another interesting parameter setting is</p><p>which corresponds to an implementation of the standard peeling algorithm with the Generalized Nystr&#246;m Method (i.e. does not use randomly perforated sketching) attaining the same (1 + ) L+1 approximation factor. In the experiments in Section 7, we find that it does not seem necessary to set s L = O(k/ 4 ), and that s L = O(k/ 2 ) (with t L = 1) seems su cient.</p><p>Proof of Theorem 5.2. First, note that at each of the L levels we use 2s R t R matrix-vector products with A and 2s L t L matrix-vector products with A T . When recovering the diagonal we use an additional s L t L products with A T . This results in the specified cost.</p><p>We now analyze the error. For each `= 1, 2, . . . , L partition A (`) as in (4.5) and H (`) as in (4.7). Define,</p><p>.</p><p>By the definition of HODLR matrices the on-diagonal blocks at level L are of size at most k. Therefore, since the di&#8629;erent levels are disjoint,</p><p>(5.33) min</p><p>Next, define the error incurred in the o&#8629;-diagonal low-rank blocks at level `,</p><p>Define also the error of the on-diagonal blocks at the final level,</p><p>Since the approximations at each level are disjoint (see (4.4)) we have</p><p>We claim that it su ces to prove that for each `= 1, 2, . . . , L,</p><p>and that at the final level</p><p>(5.36)</p><p>Indeed, since err(`0) 2 0, together (5.35) and (5.36) imply that</p><p>In light of (5.33) and (5.34), this is the desired result. We begin by proving (5.35) by induction. First note that (5.35) at level `= 1 we have incurrred no error from previous levels and Lemma 5.2 gives E[err(1)] &#63743; (1 + )opt(1). Now suppose the analog of (5.35) holds for each level up to ` 1. Then, since err(`0) 2 0,</p><p>(5.37) Applying Lemma 5.2 for each j = 1, 2, . . . 2 `and summing over j we find</p><p>Observe that the sum over all blocks of A (`) except the on-diagonal blocks and the o&#8629;-diagonal low-rank blocks at level `is expressed as</p><p>Therefore,</p><p>In the final equality above we have used that the (i, j) blocks for i 6 = j, j &#177; 1 contain exactly the errors made at previous levels. Hence, taking the expectation of (5.39), using (5.37), and plugging into (5.38) gives</p><p>which gives (5.35). The proof of (5.36) follows analogously. By Lemma 5.2 we have</p><p>where we used that</p><p>i,j k 2 F is precisely the errors made at previous levels and (5.37). This gives the desired inequality.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Lower Bounds</head><p>In this section, we prove that our main result on HOLDR matrix approximation (Theorem 1.1) is close to optimal in terms of the number of matrix-vector products needed to solve Problem 1.1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1">Lower bound for exact recovery</head><p>We begin with a simple lower bound in the setting where A is exactly HODLR, in which case solving Problem 1.1 requires exactly recovering A. For this setting, we can appeal to prior work by Halikias and Townsend <ref type="bibr">[HT23]</ref> on the query complexity of recovering matrices from linearly parameterized matrix families. In particular, any set B 1 , . . . , B m of linearly independent base matrices induces a linearly parameterized family L consisting of linear combinations of the base matrices; i.e.</p><p>Halikias and Townsend observe (see <ref type="bibr">[HT23]</ref>, Lemma 2.2) that recovering a matrix A 2 L requires at least dm/ne matvec queries with A. In particular, any matrix-vector product with A or A T yields n linear equations in entries of &#10003;. Since recovering A amounts to determining the corresponding &#10003;, at least m such equations are needed to uniquely determine A. We leverage this observation to prove the following: Theorem 6.1. Any algorithm that can recover any n &#8677; n matrix A 2 HODLR(k) from adaptive matvec queries must use at least dk log 2 (n/k)e queries. Therefore, solving Problem 1.1 requires &#8998;(k log(n/k)) matvec queries for any finite approximation factor .</p><p>Proof. The proof follows from observing that, while HODLR(k) is not itself a linearly parameterized family, it contains a linearly parameterized family L. In particular, consider the subset of HODLR(k) matrices where every rank-k block in the matrix is zero everywhere except in its first k columns. The first k columns in each block can be chosen to have entries with any value such that the block is rank-k, and the matrix is therefore HODLR(k).</p><p>As such, L is equal to the set of matrices that can be written as a linear combination of B 1 , . . . , B m , where each B i is a matrix that is zero everywhere, but has a single 1 in one of the first k columns in one of the rank-k blocks of the HODLR structure. Recall that for an n &#8677; n matrix to be HODLR(k), it must be that n = n base &#8226; 2 p for integers n base 2 (k/2, k] and p = log 2 (n/n base ).<ref type="foot">foot_5</ref> It can be checked that the total number of base matrices, m, equals:</p><p>So, by Lemma 2.2 in <ref type="bibr">[HT23]</ref>, we require dnk log 2 (n/k)e/ne = dk log 2 (n/k)e matvec queries to exactly recover a given A 2 L. Since L &#8674; HODLR(k), the theorem follows. We note that to solve Problem 1.1 for finite , we must exactly recover all A 2 HODLR(k).</p><p>6.2 Lower bound for approximation Next, we prove a lower bound in the setting where A is not exactly HODLR, and we seek to solve Problem 1.1 with error = (1 + ") for some " 2 (0, 1). A natural approach for such a lower bound might be to leverage lower bounds for near-optimal rank-k approximation, since HODLR approximation is a strictly harder problem. However, as discussed in Section 1.2, the best known lower bound for Frobenius-norm error rank-k approximation in the matrix-vector query model is just O(k + 1/" 1/3 ) <ref type="bibr">[BN23]</ref>. Such a lower bound does not show that the multiplicative relationship between k and poly(1/") in our upper bound, Theorem 1.1, is necessary.</p><p>We obtain a stronger lower bound by instead proving a reduction from the problem of fixed-pattern sparse matrix approximation, which was recently studied in <ref type="bibr">[Ams+24]</ref>. That work proves tight lower bounds in the matrix-vector query model for approximating matrices by a wide variety of matrix classes with fixed sparsity patterns, including diagonal matrices, banded matrices, and more. Below, we state a special case of the lower bound from <ref type="bibr">[Ams+24]</ref> for approximation by block diagonal matrices. This lower bound will be used to obtain our lower bound for HODLR approximation. For integers n and b, such that b divides n, we let B(n, b) denote the set of n &#8677; n block-diagonal matrices with blocks of size b &#8677; b. We have the following: Lemma 6.1. (Corollary of Thm. 2 from [Ams+24] 13 ) There are absolute constants c, C &gt; 0 such that the following holds: For any " &gt; 0 and any positive integers b, n such that b divides n and n cb/", there is a distribution over n &#8677; n matrices A such that any algorithm that accesses A with &#63743; Cb/" adaptive matvec queries and returns an approximation e B 2 B(n, b) must have kA e Bk F (1 + ") min B2B(n,b) kB Ak F with probabilty 24/25. The probability is taken over the randomness of A, as well as possible randomness in the algorithm. Lemma 6.1 establishes that, even to succeed with small positive probability, any algorithm for computing a nearoptimal block-diagonal approximation to an arbitrary matrix A requires &#8998;(b/") matvec queries to A. Intuitively this result is useful because block diagonal approximation is an easier problem than HODLR approximation. In particular, it is not hard to verify that B(n, 2k) &#8674; HODLR(k); matrices in B(n, 2k) are zero except on the diagonal and o&#8629;-diagonal low-rank blocks of the final level of HODLR(k) matrices. Formally, we prove that, if we had an algorithm for finding a near-optimal HODLR approximation to a given matrix, the result could be post-processed via projection onto B(n, 2k) to obtain a near-optimal block-diagonal approximation. If we found the near-optimal HODLR approximation with o(k/&#9999;) matvec queries, we would violate Lemma 6.1. This approach results in the following lower bound: Theorem 6.2. There are absolute constants c, C &gt; 0 such that the following holds: For any k, " &gt; 0, and n ck/", 14 there is a distribution over n &#8677; n matrices A such that any algorithm which accesses A with &#63743; Ck/" adaptive matvec queries fails to solve Problem 1.1 with probability 24/25.</p><p>Proof. First note that we may assume &#9999; &#63743; 1, as the result already holds by Theorem 6.1 for larger values of &#9999;. Let n = n base 2 p for n base 2 bk/2 + 1c, . . . , k and p 0. Let b = 2n base and observe that b k, and for c 2, b &#63743; n. Let S 2 {0, 1} n&#8677;n be an indicator matrix for a block-diagonal sparsity pattern with n/b blocks of size b. I.e., S is zero everywhere except that, for each t 2 0, . . . , n/b 1, S i,j = 1 for i, j 2 {bt + 1, . . . , bt + b}. Observe that for any block diagonal matrix B 2 B(n, b), B S = B, where " " denotes the entrywise product. Let S denote the compliment of S: for all i, j, Si,j = 1 S i,j . Observe that for any matrix H, we can write:</p><p>Our proof approach is to show that, if we can solve Problem 1.1 with error = (1 + ") using m matrix-vector products, i.e. if we can find some e H 2 HODLR(k) that satisfies</p><p>H S is a near-optimal block diagonal approximation to A. Concretely, we will show that</p><p>Accordingly, we reach a contradiction to Lemma 6.1 unless m = &#8998;(k/") = &#8998;(b/") matrix-vector products were used to compute e H. To see why (6.41) implies (6.42), the main observation is that:</p><p>(6.43) follows from the fact that the entries in the bottom level of a HODLR(k) matrix (those corresponding to the ones in S) can be set arbitrarily without violating the HODLR property. Accordingly, by adjusting those entries to match A exactly, we can obtain a HODLR approximation with error equal to kA S e H Sk 2 F . The optimal approximation H &#8676; cannot have larger error.</p><p>Then, using (6.41), (6.40), and (6.43), we have:</p><p>We conclude that</p><p>Moreover, kA e H Sk 2 F = kA S e H Sk 2 F + kA A Sk 2 F , and recall that A S = B &#8676; , So:</p><p>Taking a square root on both sides proves (6.42), and as explained above, Theorem 6.2 follows.</p><p>We conclude the section by noting that Theorem 1.2 (stated in Section 1) follows from combining Theorem 6.1 and Theorem 6.2. An interesting question for future work is to prove a lower bound that multiplicatively combines k, log(n/k), and 1/"; e.g., to prove that m = &#8998;(k log(n/k)/") matrix-vector product queries are necessary to solve Problem 1.1. This is currently beyond the reach of our current approach and that of <ref type="bibr">[Ams+24]</ref>. In particular, the lower bound instance in <ref type="bibr">[Ams+24]</ref> is based on a random Wishart matrix, which has found applications in a number of prior results on lower bounds for adaptive matrix-vector query algorithms <ref type="bibr">[BHSW20]</ref>. It can be checked that a constant factor near-optimal HODLR approximation for such a matrix can be found by simply returning a near-optimal block diagonal approximation for block size O(k). Since that can be done with O(k) matrix-vector products using the algorithm from <ref type="bibr">[Ams+24]</ref>, we cannot hope to use the Wishart instance to prove a lower bound that combines k and log(n/k).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">Numerical experiments and examples</head><p>In this section we provide several examples which provide insight into the behavior of peeling-based algorithms.</p><p>The code used to generate our figures is available at <ref type="url">https://github.com/tchen-research/HODLR_approx</ref>.</p><p>In our experiments we consider two parameter choices for the Generalized Nystr&#246;m Method based method Algorithm 3 and two parameter choices for a Randomized SVD based method Algorithm 4 described in Appendix A. The parameter values are summarized in Table <ref type="table">1</ref>. The aim of our numerical experiments is to provide some basic insight into how the various parameters of peeling algorithms impact their performance. There are many reasonable parameter combinations, and a comprehensive understanding of the best choice of parameters is far beyond the scope of this paper, but would be an interesting topic for future work.</p><p>Table <ref type="table">1</ref>: Parameter choices used in our numerical experiments.</p><p>The RSVD1 and GN1 methods do not use random perforated sketches and can therefore be viewed as standard implementations of the peeling algorithm (e.g. as described in <ref type="bibr">[LLY11;</ref><ref type="bibr">Mar16]</ref>). The RSVD1 method uses the same sketching dimensions as required to obtain a (1+O( ))-optimal rank-k approximation to a matrix <ref type="bibr">[HMT11]</ref>. Similarly, the GN1 method uses the sketching dimensions required for the Generalized Nystr&#246;m Method (without truncation to rank-k) to produce a low-rank approximation with error less than (1+O( )) times the optimal rankk approximation to a matrix <ref type="bibr">[TYUC17]</ref>. <ref type="foot">15</ref> The choice of paramaters for GN1 is also equivalent (after rescaling ) to the parameters (5.32) needed for Theorem 5.2 to guarantee convergence for Generalized Nystr&#246;m peeling method without perforation.</p><p>Both RSVD2 and GN2 use the randomly perforated sketches described in Section 3. In particular, the GN2 method adds perforation to the sketch used to obtain the approximate range. Compared to GN1, this does not increase the asymptotic cost but improves the bound for which can be obtained from Theorem 5.2. Interestingly, in our numerical experiments, the accuracy of GN1 and GN2 is very similar. The RSVD2 method adds perforation to both sketches. This increases the asymptotic cost over RSVD1. However, as illustrated in Section 7.3, regardless of , RSVD1 cannot solve Problem 1.1 for arbitrary &gt; 1. On the other hand, RSVD2 can.</p><p>For an approximation e A to A, we will consider the relative and absolute errors defined by: relative error:</p><p>where A ? := min H2HODLR(k) kA Hk 2 F is the best possible HODLR(k) approximation to A. When e A is HODLR(k), the relative error corresponds to the smallest value of " for which Problem 1.1 is solved with = (1 + ").</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.1">Poisson's equation</head><p>In this example, we take A as the discretized solution operator to a di&#8629;erential equation. In particular, we consider the 2-dimensional Poisson's equation @ 2 @x 2 u(x, y) + @ 2 @y 2 u(x, y) = f (x, y) on a periodic domain (x, y) 2 [0, 1] 2 (i.e., with boundary conditions u(x, 0) = u(x, 1) and u(0, y) = u(1, y). We discretize the problem on a uniform t&#8677;t grid x i = i/t, y j = j/t for i, j = 0, 1, . . . , t 1 (so that n = t 2 ). The matrix A is defined as the n &#8677; n linear map taking forcing data f = {f (x i , y j )} t i,j=1 2 R n to the solution approximate</p><p>2 4 6 8 10 12 14 16 18 20 oversampling parameter: 1/ 10 2 10 1 10 0 10 1 relative error k = 1 k = 5 k = 10  <ref type="table">1</ref> on discrete inverse Poisson matrix described in (7.44) as a function of the the oversampling parameter for several choices of the rank-parameter k. Legend : GN1 ( ), GN2 ( ), RSVD1 ( ), RSVD2 ( ). Takeaway: Both Generalized Nystr&#246;m Method-based variants seem to perform similarly, and produce an increasingly accurate output as 1/ increases. On the other hand, the standard randomized SVD-based variant, RSVD1, stagnates. The RSVD2 variant, which uses randomly perforated sketches, converges. u = {u i,j } t i,j=1 . Matrix-vector products with A (and A T ) can be e ciently computed using a FFT-based 2D Poisson solver. Specifically, given f 2 R n = R t&#8677;t , we define A by (7.44)</p><p>where D : R t&#8677;t ! R t&#8677;t is the diagonal map with diagonal entries D i,j = 1/(&#63743; 2 i + &#63743; 2 j ), where the harmonics &#63743; i are defined by &#63743; i = i if i &#63743; t/2 1 and &#63743; i = m t if i &gt; t/2 1. Here DFT 2 and IDFT 2 are respectively the 2-dimensional Discrete Fourier Transform and Inverse Discrete Fourier Transform. In our experiment we set t = 32 so that n = t 2 = 1024.</p><p>In Figure <ref type="figure">4</ref> we show the relative error of the algorithms from Table <ref type="table">1</ref> for various ranks k as a function of the oversampling parameters (averaged over 20 trials). As expected, as ! 0, the relative errors of GN1, GN2, and RSVD1 all converge to zero. On the other hand, RSVD1 stagnates. In the left panel of Figure <ref type="figure">5</ref> we show the absolute error. Here we see that while the RSVD1 algorithm has a much higher relative error than the other algorithms, the absolute error is not significantly larger. Finally, in the right panel of Figure <ref type="figure">5</ref> we show the absolute error of the algorithms without truncation to rank-k. This results in a much better approximations for the same number of matrix-vector products, but the resulting approximations have HODLR rank larger than k. The best tradeo&#8629; between HODLR rank and matvecs depends on the problem at hand and the computing environment.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.2">Kernel Matrix</head><p>In this example we consider a kernel matrix A defined by</p><p>where {x i } n i=1 are a collection of points. Matrix-vector products with matrices such as A can be e ciently performed using algorithms such as the Fast Multipole Method <ref type="bibr">[GR87]</ref>.</p><p>In our numerical experiments, we set n = 16384 and sample points x i = (x i , y i , z i ) by taking x i as uniformly spaced points in [ 4, 4], y i = sin(2&#8673;x i ) + 0.05&#8672; i , and z i = cos(2&#8673;x i ) + 0.05&#8675; i , where &#8672; i and &#8675; i are independent  <ref type="table">1</ref> on discrete inverse Poisson matrix described in (7.44) as a function of the oversampling parameter with and without truncation to rank-k for several choices of the rank-parameter k. Legend : GN1 ( ), GN2 ( ), RSVD1 ( ), RSVD2 ( ). Takeaway: Without truncation, all of the algorithms can perform significantly better. However, the resulting approximations are not HODLR(k), and are therefore more expensive to store and work with. standard normal random variables. Products with A are performed using the Flatiron Institute's FMM3D code <ref type="bibr">[Ask+]</ref>. The left panel of Figure <ref type="figure">6</ref> shows a sample of the points we use, and the right panel shows the magnitude of the entries of the kernel matrix (7.45) induced by these points. In Figure <ref type="figure">7</ref> we show the absolute error of the GN1 and RSVD1 methods as a function of the target rank, for several values of .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.3">Hard instances for RSVD-based peeling</head><p>In this section we provide two examples which illustrate that a RSVD-based implementation of the peeling algorithm, which truncates the low-rank approximations to rank-k at every level, cannot solve Problem 1.1 for certain values of .</p><p>We emphasize that the purpose of this section is simply to illustrate a potential failure mode which must be addressed by an algorithm provably solving Problem 1.1. In particular, these hard instances are not hard instances for more practical RSVD-based variants which do not truncate.   <ref type="table">1</ref> on the kernel matrix described in (7.45) as a function of the rank-parameter k for several values of . Legend : GN1 ( ), RSVD1 ( ). Takeaway: While RSVD1 may not produce near-optimal low-rank approximations, it can sometimes produce good approximations. In addition, when the sketch size used for the regression problem is too large, the Generalized Nystr&#246;m Method does not produce highly accurate low-rank approximations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.3.1">An illustrative example</head><p>Our first hard instance illustrates that all of the error from a one level can propagate to the next level. This example provides clear intuition for why the Randomized SVD-based peeling algorithm (with sketches of size s R and truncation to rank-k at every level) cannot solve Problem 1.1 for arbitrary &gt; 1. We emphasize that the hard instance depends on the truncation rank-k used by the algorithm. If we allow the algorithm to use an adaptively chosen rank or do not use truncation (both of which are often done in practice [LLY11; LM24b]) then it would no longer be a hard instance.</p><p>Define, for some &#8984; 1,</p><p>For notational convenience, we write equality for the limits as &#8984; ! 1. In particular, when &#8984; ! 1, Randomized SVD (with any s R k) will recover optimal rank-k approximations to the bottom left and top right blocks.</p><p>We then remove the low-rank components we found at the first level to obtain</p><p>Note, however, that since the o&#8629;-diagonal low-rank blocks of A are not rank-k, we fail to zero out the o&#8629;-diagonal blocks at the first level. At the next level, the randomized SVD (with any s R k) will exactly recover an orthonormal basis Q</p><p>2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 dimension: n ), GN2 ( ), RSVD1 ( ), RSVD2 ( ). Takeaway: The RSVD1 variant has error growing as n (thin solid reference line); i.e. exponential growth at every level. When the sketch size increases su ciently quickly with n, the Generalized Nystr&#246;m Method-based variants produce an error bounded independent of n.</p><p>containing the range of X. In particular, we perform a product 2 6 6 4</p><p>We then compute<ref type="foot">foot_7</ref> Q = orth(X(&#8998; 1 + &#8998; 3 )) and</p><p>and analogously for the super-diagonal o&#8629;-diagonal blocks. Since QQ T X = X, our rank-k approximation to each of the o&#8629;-diagonal blocks at the second level is 2X. In particular, we see that all of the error from the first level propagates to the second level. Even assuming we exactly recover the diagonals (if we do not, this can only increase the error), the final approximation is thus</p><p>As long as &#8984; &gt; 1, the best HODLR approximation to A is</p><p>Therefore we find kA A ? k 2 F = 4kXk 2 F while kA e Ak 2 F = 8kXk 2 F .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.3.2">Exponential growth</head><p>The example in Section 7.3.1 shows that there are problems for which a Randomized SVD-based peeling algorithm cannot solve Problem 1.1 for small (constant) . We now exhibit a problem instance for a Randomized SVD-based peeling algorithm which suggests that such algorithms cannot even guarantee better than an O(n)-factor approximation. This is exponentially large in the number of levels, and to the best of our knowledge, is the first instance demonstrating an exponential instability in the algorithm. This is the first problem instance we are aware of for which a variant of the peeling algorithm actually incurs a significant propagation of error from level-to-level. It remains an open question whether other variants of the peeling algorithm (e.g., using Randomized SVD without truncation) can fail for the approximation problem.</p><p>For any integer L &gt; 0 let n = 2 L and define the n &#8677; n matrix A n by</p><p>For each of the nonzero o&#8629;-diagonal blocks, note that the second column is orthogonal to the first column. Hence, the optimal rank-1 HODLR approximation to A n is just A n with the first column set to zero. This means the error of the optimal approximation is from the n/2 1 ones in the first column excluding the (1, 1) entry on the diagonal.</p><p>We set &#8984; = 10 8 and run an implementation of the peeling algorithm using the Randomized SVD with truncation to rank-1 at each level to obtain a HODLR rank-1 matrix b</p><p>A n . This is repeated for increasing values of n. In Figure <ref type="figure">8</ref> we plot (as a function of n) the quantity kA n b A n k F / p n/2 1 1, which is the smallest value of for which the output b</p><p>A n solves Problem 1.1 (averaged over 20 trials). This experiment suggests that kA n b</p><p>A n k F / p n/2 1 1 = &#8677;(n) as n ! 1. Since n = 2 L , this is exponentially bad (with a constant base 2) in the number of levels L.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8">Outlook</head><p>We have presented an algorithm provably solving the HODLR approximation problem in the matrix-vector query model. As far as we can tell, this is the first result on the approximation problem in the matrix-vector query model for any hierarchical matrix family. While we focus on HODLR approximation for clarity of exposition, we expect the ideas used in our analysis can be extended to algorithms for other hierarchical families. The most natural would extension would be to the coloring-based variant of the peeling algorithm for H-matrices introduced in <ref type="bibr">[LM24b]</ref>. The H format is a generalization of HODLR which allows for a more general tree structure and recursive blocks o&#8629; of the diagonal, and is significantly more e cient than HODLR for multi-dimensional problems.</p><p>Our work raises a number of interesting questions on approximation algorithms for hierarchical matrices:</p><p>&#8226; For any constant c &gt; 0, we show that Problem 1.1 can be solved to accuracy = n c with O(k log(n/k)) matrix-vector queries. Up to constants, this is the best possible query complexity; as we prove in Theorem 1.2, exactly recovering a HODLR matrix requires O(k log(n/k)) queries. It remains open whether there exist matvec query algorithms which solve Problem 1.1 to higher accuracy (e.g. = log(n)) with O(k log(n/k)) queries. &#8226; Hierarchical Semi-Separable (HSS) matrices are an important subfamily of HODLR matrices. The low-rank factors of HSS matrices at di&#8629;erent levels are related in such a way that they can be stored and manipulated more e ciently than general HODLR matrices. In particular, there are a number of algorithms for recovering an exactly HSS matrix that require O(k) matrix-vector products <ref type="bibr">[LM24a;</ref><ref type="bibr">HT23]</ref>. It is therefore natural to ask whether there exists an HSS approximation algorithm producing (1 + ")-optimal HSS approximation using O(poly(k, 1/")) matvecs. A major di culty is that, in contrast with HODLR matrices, we are unaware of a simple characterization of the best HSS approximation to a given matrix.</p><p>&#8226; Operator learning aims to learn representations of operators mapping functions to functions [Lu+21; KLS24; BT23; Li+21; GSBK21]. A number of recent works study the problem of approximating certain classes of infinite dimensional linear operators [BT22; BHT23] by hierarchically structured operators. Understanding how our analysis and theoretical techniques extend to the infinite dimensional setting may yield stronger theoretical guarantees for some problems in operator learning.</p><p>&#8226; Our structural perturbation bound Theorem 3.1 for low-rank approximation suggests fundamental di&#8629;erences between the behaviors of the Randomized SVD and Generalized Nystr&#246;m Method in the presence of noisy matrix-vector products. The bound also highlights limitations in our current understanding of the impact of truncation on the Generalized Nystr&#246;m Method. The best known bounds for the method with truncation are worse than without truncation, but we are unaware of any convincing evidence that such bounds are sharp. Further theoretical and numerical studies of these methods would be of interest.</p><p>We also thank Noah Amsel for useful discussions in the early stages of this work.</p><p>A A randomized-SVD peeling algorithm As discussed in Section 7.3, a simple RSVD-based peeling algorithm with truncation cannot perform well, as there is no way of controlling errors made in the projection step. However, by using a similar randomized perforation technique as described in Section 3.3, one can implement an RSVD-based algorithm which can solve Problem 1.1 for arbitrary &gt; 1. We now define the additional notation needed. The full algorithm is described in Algorithm 4. At level `, the RSVD-based peeling algorithm will obtain left subspaces Q (`) j as in Section 4.3. However, rather than solving a regression problem like Algorithm 3, the algorithm will attempt to directly compute (Q (`) j ) T A (`) j&#177;1,j . To control the error, we first sample &#8675; + , &#8675; &#8672; PerfCountSketch(d, t R ) and define sketching matrices</p><p>By setting t R large, the expected squared error for each block can be driven arbitrarily small. As with Algorithm 3, at the final level, we do not need to sketch A. However, to limit the error when trying to perform the projections (onto the identity), we sample b &#8672; &#8672; CountSketch(d, t R ) and use the sketching matrix</p><p>Here 1 is the all-ones vector and " &#8998; " is denotes the Kronecker product so that 1 &#8998; I is the stacked identity matrix.</p><p>Theorem A.1. Fix a rank parameter k and let 2 (0, 1). Suppose t L 1 and s R , t L , and s R are such that</p><p>Let L = dlog 2 (n/k)e. Then, using 2Ls R t R products with A and (2L + 1)s L t L products with A T , Algorithm 4 outputs a HODLR(k) matrix e A such that</p><p>kA Hk 2 F .</p><p>Proof. The proof is analagous to Theorem 5.2. First, note that in Theorem 3.2 we change the definition of X to</p><p>where E 2 R sL&#8677;m2 . The resulting bound now has</p><p>Algorithm 4 Randomized SVD Peeling algorithm for HODLR approximation 1: procedure RandomizedSVDPeeling(A, k, s L , t L , s R )</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>2:</head><p>Set L = dlog 2 (n/k)e . Final level blocks of size at most k 3:</p><p>for `= 1, 2, . . . , L do 4:</p><p>Allocate and partition H (`) as in (4.7) . blocks of size n/2 `&#8677; n/2 5:</p><p>Sample &#8672; + , &#8672; , &#8998; + , &#8998; &#8672; RandPerfGaussian(n, 2 `, s R , t R ) . as in Definition 4.5 6:</p><p>Compute A (`) &#8998; &#177; . 2s R s R matvecs with A 7:</p><p>for j = 1, 2, . . . , 2 `do 8:</p><p>j is (j &#177; 1, &#8674;) block of A (`) &#8998; &#177;</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>9:</head><p>Sample &#8675; + , &#8675; &#8672; PerfCountSketch(d, t L ) . as in Definition 4.4</p><p>10:</p><p>11:</p><p>Compute ( &#177; ) T A (`)  . 2s L t L matvecs with A T 12:</p><p>for j = 1, 2, . . . , 2 `do 13:</p><p>Extract X (`) j</p><p>. X</p><p>(`) j is (j, ) block of ( &#177; ) T A 14: </p><p>where E 1 is as before and</p><p>Therefore, we get</p><p>and our assumptions on t L , t R , and s L allow us to bound</p><p>kA (`) j&#177;1,i k 2 F &#63743; 4 2 10 2 E (`) j , 2 t L d X i=1 i6 =j,j&#177;1 kA (`) i,j k 2 F &#63743; 4 2 10 2 E (`) j .</p><p>Finally, since 1/10 + (4 + 4)/10 2 + 2 p 2(4 + 4)/10 2 &#8673; 0.980 &#63743; 1 we get the desired bound.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="7" xml:id="foot_0"><p>The best known lower bound for vanilla k-rank approximation is &#8998;(k + 1/" 1/3 ) matrix-vector products<ref type="bibr">[BCW22]</ref>. Combining the k and " terms, as we do in our Theorem 1.2 for hierarchical approximation, is an open question.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="8" xml:id="foot_1"><p>Algorithms in the literature [LLY11; LM24b; HT23] commonly use a sketch size k+p, where p is a small "oversampling" parameter (e.g., p = 2). This is important for adding robustness when recovering matrices which are numerically, but not exactly, rank-k. This is not necessary if we assume exact computations and exactly rank-k blocks.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="9" xml:id="foot_2"><p>In<ref type="bibr">[BHT23]</ref>, a similar approach is taken to analyze an infinite dimensional variant of the peeling algorithm for the task of approximating the Green's function of an elliptic partial di&#8629;erential (PDE) operator by a HODLR operator. However,<ref type="bibr">[BHT23]</ref> relies strongly on the fact that the o&#8629;-diagonal blocks of the Green's function have rapid spectral decay and are thus low-rank, up to exponentially small error<ref type="bibr">[BH03]</ref>. This allows the overall error to be controlled, even if the error can grow exponentially across levels. In contrast, we make no assumptions about A.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="10" xml:id="foot_3"><p>In Figure2, the M j &#8998; j terms when B = A(3) 6,5 are A (3) 6,1 &#8998; 1 , A(3)6,3 &#8998; 3 , and A(3) 6,7 &#8998; 7 .</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="11" xml:id="foot_4"><p>This is also true for the o&#8629;-diagonal blocks in levels where n/2 `&#63743; sR. In such cases Q (`) j will be (square) orthogonal, so it could be set to the identity a priori. We do not separate this case to simplify the notation in our analysis.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="12" xml:id="foot_5"><p>If n &#63743; k/2 then the bound is vacuously true.14  Recall that HODLR(k) matrices are only defined for dimensions n of the form n = n base 2 p for n base &#63743; k and p 0. Formally, the theorem holds for any such n that is ck/".</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="15" xml:id="foot_6"><p>As we discuss in Section 3.2, it is believed that this also produces a (1 + O( ))-optimal approximation with truncation.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="16" xml:id="foot_7"><p>Here we assume orth(&#8226;) is a deterministic function.</p></note>
		</body>
		</text>
</TEI>
