The randomized SVD and early truncation with a sub-Gaussian test matrix
Library · Source module
The randomized SVD and early truncation with a sub-Gaussian test matrix
The sub-Gaussian instances of NLAlib.LowRank.Oblivious.RangeFinder and NLAlib.LowRank.Oblivious.EarlyTruncation, for the family of NLAlib.Sketching.Gaussian.SubGaussian: a random test matrix \mathbf{\Omega} \in \mathbb{R}^{n \times \ell} whose sketch \mathbf{\Omega}^{\mathsf{H}} has independent, isotropic, sub-Gaussian rows with proxy c (the columns of \mathbf{\Omega}; hypotheses hind, hsub, hiso on fun ω => (X ω)ᴴ, in that order). The randomized SVD \mathsf{rsvd}(\mathbf{A}, \mathbf{\Omega}) reaches error (1 + \varepsilon)\|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2 with probability 1 - \delta at \ell = O(c^2(k/(\varepsilon\delta) + \log(1/\delta))) through the second JL moment and at \ell = O(c^2k\log(1/\delta)/\varepsilon) through the JL moment at p = \log(1/\delta), and the early-truncated randomized SVD \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k) at \ell = O(c^2(k/\delta + \log(1/\delta))/\varepsilon^2), respectively O(c^2k\log(1/\delta)/\varepsilon^2). To a constant factor, <!-- value subgaussianRangeFinderFactor c -->1 + 5c/2, the randomized SVD needs only \ell = O(c^2(k + \log(1/\delta))), the range-finder step of Hutch++. The family's predicates are about the normalised sketch \ell^{-1/2}\mathbf{\Omega}^{\mathsf{H}}; the generic theorems run there and NLAlib.rsvd_smul_right (respectively the projector of \llbracket\mathbf{A}\mathbf{\Omega}\rrbracket_k at the raw test matrix) returns to the output the user computes. Isotropy forces c \ge 1 (NLAlib.IsSubgaussianVector.one_le_of_isIsotropic), which covers the family's side condition \varepsilon \le 2c at the accuracies used here. Real throughout.
Rademacher test matrices are the case c = 1 (CONTRIBUTING's one statement per interface; no Rademacher file): for hX : HasLaw (fun ω => (X ω)ᴴ) (rademacherMatrix l n) μ the three hypotheses are
hX.iIndepFun_eval fun i => isSubgaussianVector_of_hasLaw_rademacherVector (hX.eval i) fun i => isIsotropic_of_hasLaw_rademacherVector (hX.eval i)
(rademacherMatrix l n is the product of rademacherVector n over the rows), and every statement here applies at proxy 1, with 16c^2 - 1 = 15.
Statements with no per-family form. Nyström, generalized Nyström and the truncations apply through the family's OSI and JL moment property:
isObliviousSubspaceInjection_of_isSubgaussianVector_of_subgaussianEmbeddingDim_le hind hsub hiso hε hεc hδ hl hasJLMoment_of_isSubgaussianVector hind hsub hiso hε
both about fun ω => (√(Fintype.card l : ℝ))⁻¹ • (X ω)ᴴ, which is fun ω => ((√(Fintype.card l : ℝ))⁻¹ • X ω)ᴴ by Matrix.conjTranspose_smul.
Main definitions
* NLAlib.subgaussianRangeFinderFactor c: the constant factor of the sub-Gaussian range finder, <!-- value subgaussianRangeFinderFactor c -->1 + 5c/2.
Main results
* NLAlib.measureReal_frobNorm_sub_rsvd_sq_gt_le_of_isSubgaussianVector: the randomized SVD, its \log(1/\delta) twin measureReal_frobNorm_sub_rsvd_sq_gt_le_of_isSubgaussianVector_of_subgaussianJLMomentDim_le and the asymptotic form exists_forall_measureReal_frobNorm_sub_rsvd_sq_gt_le_of_isSubgaussianVector. * NLAlib.measureReal_frobNorm_sub_rsvd_sq_gt_le_mul_of_isSubgaussianVector: the randomized SVD to that constant factor at \ell = O(c^2(k + \log(1/\delta))), with \log(1/\delta) in place of 1/\delta (the Hsu–Kakade–Zhang tail in place of the JL moment), and its asymptotic form exists_forall_measureReal_frobNorm_sub_rsvd_sq_gt_le_mul_of_isSubgaussianVector. * NLAlib.measureReal_frobNorm_sub_earlyTruncatedRSVD_sq_gt_le_of_isSubgaussianVector: early truncation, its \log(1/\delta) twin (…_of_subgaussianJLMomentDim_le) and the asymptotic form exists_forall_measureReal_frobNorm_sub_earlyTruncatedRSVD_sq_gt_le_of_isSubgaussianVector.
Declarations
- NLAlib.exists_forall_measureReal_frobNorm_sub_earlyTruncatedRSVD_sq_gt_le_of_isSubgaussianVector
- NLAlib.exists_forall_measureReal_frobNorm_sub_rsvd_sq_gt_le_mul_of_isSubgaussianVector
- NLAlib.exists_forall_measureReal_frobNorm_sub_rsvd_sq_gt_le_of_isSubgaussianVector
- NLAlib.measureReal_frobNorm_sub_earlyTruncatedRSVD_sq_gt_le_of_isSubgaussianVector
- NLAlib.measureReal_frobNorm_sub_earlyTruncatedRSVD_sq_gt_le_of_isSubgaussianVector_of_subgaussianJLMomentDim_le
- NLAlib.measureReal_frobNorm_sub_rsvd_sq_gt_le_mul_of_isSubgaussianVector
- NLAlib.measureReal_frobNorm_sub_rsvd_sq_gt_le_of_isSubgaussianVector
- NLAlib.measureReal_frobNorm_sub_rsvd_sq_gt_le_of_isSubgaussianVector_of_subgaussianJLMomentDim_le
- NLAlib.one_le_subgaussianRangeFinderFactor
- NLAlib.subgaussianRangeFinderFactor
- NLAlib.subgaussianRangeFinderFactor_def
- NLAlib.subgaussianRangeFinderFactor_le
- NLAlib.subgaussianRangeFinderFactor_mono