- The paper introduces a rejection-sampling algorithm that samples exactly from a PSD matrix’s length-squared distribution using O(n) expected entry queries, with termination within O(n log(1/δ)) queries at failure probability δ.
- The paper proves these costs are optimal, including Ω(min{mn, n²}) queries for m independent samples and Ω(min{n/ε², n²}) queries for relative-error Frobenius norm estimation.
- The paper removes column-norm access assumptions in eigenvalue and low-rank approximation algorithms, while extending sampling to ℓp distributions and robust settings with explicit accuracy and noise-dependent query bounds.
Overview
Length-squared sampling—drawing a column of a matrix with probability proportional to its squared ℓ2-norm—is a foundational primitive in randomized numerical linear algebra, underlying algorithms for low-rank approximation, approximate matrix multiplication, randomized Kaczmarz, and sublinear eigenvalue estimation. In the entry-query model, however, exact length-squared sampling has generally been assumed rather than implemented: computing even a single column norm requires n queries, and computing the full sampling distribution requires reading all n2 entries. The paper under review, by Bhattacharjee, Epperly, Musco, and Tian (2608.12503), shows that for positive-semidefinite (psd) matrices this assumption can be removed entirely: an extremely simple rejection-sampling procedure samples exactly from the length-squared distribution using only O(n) expected entry queries and arithmetic operations. This is asymptotically optimal even among diagonal matrices, and it immediately simplifies several known sublinear-time algorithms that previously required column norms as input.
The sampling algorithm
The core algorithm exploits the psd off-diagonal inequality: for psd A, every entry satisfies Aij2≤AiiAjj, since the {i,j}-principal submatrix has nonnegative determinant. This inequality is what rules out the Ω(n2) hard case for general matrices—a single nonzero entry hidden at an arbitrary location—for on a psd matrix large off-diagonal entries can only occur where both corresponding diagonal entries are large.
The procedure reads the full diagonal once (n queries) to form the diagonal distribution D(i)=Aii/tr(A), then repeatedly proposes independent indices n0, accepting the pair n1 with probability n2. By the off-diagonal inequality this acceptance probability lies in n3. Conditioning on acceptance, the pair is distributed according to the entry-squared distribution n4, so each marginal index follows the length-squared distribution exactly.
The runtime analysis hinges on the per-round acceptance probability
n5
where the last step is Cauchy–Schwarz. The number of rounds is geometric with mean n6, giving n7 expected total cost; with probability n8 the algorithm terminates within n9 operations, and truncating at that point yields a sampler within n20 total variation distance of the target distribution. Since many downstream applications require only approximate length-squared sampling (probability at least a constant fraction of the true value), constant n21 typically suffices.
The same rejection-sampling template extends to n22 column-norm sampling for any n23: replacing diagonal weights n24 by n25 yields an n26-time sampler from the n27th-power entry distribution, with an identical proof.
Optimality
The n28 bound is tight in two senses. First, even positive diagonal matrices require reading the full diagonal to perform length-squared sampling, so n29 is unavoidable. Second—and less obvious—the paper proves that amortization across multiple samples does not help: any algorithm outputting O(n)0 independent length-squared samples must read O(n)1 entries in expectation. The lower bound reduces from a "heavy column" problem on a randomly permuted block matrix with O(n)2 heavy columns: identifying a heavy column requires finding one of O(n)3 nonzero off-diagonal entries hidden among O(n)4 positions, costing O(n)5 queries via Yao's minimax principle. Thus repeating the rejection sampler O(n)6 times, at O(n)7 total cost, is optimal up to constants.
Frobenius norm estimation
The same proposal mechanism yields an unbiased estimator for O(n)8: for O(n)9 independently, the variable A0 satisfies A1 and, by the off-diagonal inequality, A2. Averaging A3 iid copies and rescaling by A4 gives a A5-relative approximation to A6 with probability A7, in A8 time. The paper also proves a matching lower bound of A9 queries, via a permutation-hidden construction where distinguishing two instances requires estimating the mean of a Boolean vector whose means differ by Aij2≤AiiAjj0, combining standard mean-estimation lower bounds with a certificate-counting argument showing that finding Aij2≤AiiAjj1 nonzero off-diagonal entries costs Aij2≤AiiAjj2 queries. Both the upper and lower bounds are therefore optimal.
Applications
Eigenvalue approximation. The length-squared-based eigenvalue approximation algorithms of Bhattacharjee et al. and Swartworth–Woodruff assumed access to column norms and Aij2≤AiiAjj3. Combining the new sampler with the Frobenius norm estimator removes these assumptions for psd inputs. Two technical adaptations are needed: a Aij2≤AiiAjj4 approximation to Aij2≤AiiAjj5 suffices both for the zeroing-out (truncation) step and for approximately rescaling sampled rows—the distortion introduced by the estimated normalizer is absorbed into the accuracy parameter via a clean rescaling argument—and a Poissonization trick converts independent length-squared samples into the row-wise Poisson sampling scheme required by the prior analysis. The resulting algorithm returns an additive Aij2≤AiiAjj6 approximation to the full spectrum using Aij2≤AiiAjj7 entry queries in expectation.
Additive-error low-rank approximation. Sampling Aij2≤AiiAjj8 columns via the new sampler, computing their top-Aij2≤AiiAjj9 singular vectors {i,j}0, and forming the right factor {i,j}1 by leverage-score-based approximate matrix multiplication yields factors {i,j}2 with {i,j}3 using {i,j}4 queries and {i,j}5 arithmetic operations. This is substantially simpler than prior sublinear psd low-rank approximation algorithms, though strictly weaker than the relative-error guarantee of Bakshi, Chepurko, and Woodruff, who achieve {i,j}6 with {i,j}7 queries—matching a known lower bound up to polylogs. The paper explicitly poses as open whether {i,j}8 length-squared samples suffice for additive-error approximation, which would close this gap.
Robust low-rank approximation. In the corruption model {i,j}9 with Ω(n2)0, the paper adapts its sampler to the clipped matrix Ω(n2)1 obtained by clipping each entry to Ω(n2)2. Clipping provably does not increase the noise (Ω(n2)3), and clipping induces a modified off-diagonal inequality Ω(n2)4 involving the diagonal corruption parameter Ω(n2)5, enabling rejection sampling from Ω(n2)6's length-squared distribution in Ω(n2)7 expected queries per sample. Plugging this into the additive-error LRA algorithm gives the same error guarantee as Bakshi et al.—Ω(n2)8—while removing their row-wise noise-spreading assumption entirely, at the cost of an extra Ω(n2)9 factor in query complexity (n0 versus n1).
Limitations and open questions
The results are confined to psd matrices; for general matrices, length-squared sampling provably requires n2 queries, so no extension along those lines is possible without additional structure. The robust LRA result inherits the n3 error floor inherent to the model and pays a factor-n4 query overhead relative to the sample-optimal algorithm of Bakshi et al.; whether the simpler approach can be brought to n5 samples is left open, as noted above. The eigenvalue approximation carries polylogarithmic factors (n6) inherited from the prior analyses, which may not be tight. Finally, the optimality result for multiple samples assumes independence of the drawn indices; correlated or adaptive sampling schemes fall outside the lower bound's scope.
Conclusion
This paper establishes that exact length-squared sampling on psd matrices is achievable in optimal n7 expected time via a three-line rejection-sampling scheme built on the psd off-diagonal inequality, together with matching lower bounds for both single-sample and multi-sample regimes and for Frobenius norm estimation. Beyond its intrinsic simplicity, the primitive eliminates the column-norm access assumption embedded in several existing sublinear algorithms, yielding streamlined implementations for spectral approximation and (robust) low-rank approximation of psd matrices.