Hutch++: tail bound given a range-finder guarantee
Library · Result group
Theorem (measureReal_abs_trace_sub_hutchpp_ge_le).The deviation of Hutch++ given a range-finder guarantee. Let the sketch test matrix \mathbf{S} be almost everywhere measurable and the n \times \ell residual test matrix \mathbf{G} be independent of it, with independent entries that each satisfy the sub-Gaussian moment generating function bound with variance proxy c (HasSubgaussianMGF) and have second moment 1. If, for some r and K, the range-finder event \|\mathbf{A} - \mathsf{rsvd}(\mathbf{A}, \mathbf{S})\|_{\mathsf{F}}^2 \le K\|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}^2 fails with probability at most \delta_1, then for every real square \mathbf{A} and every \tau \ge 0, with \mathbf{E}_r = \mathbf{A} - \llbracket\mathbf{A}\rrbracket_r, <!-- value hansonWrightConstant --> \mathbb{P}\bigl[\lvert \operatorname{tr}\mathbf{A} - \mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G}) \rvert \ge \tau\bigr] \le \delta_1 + 2\exp\Bigl(-\frac{1}{196}\min\Bigl( \frac{\ell\tau^2}{c^2 K\|\mathbf{E}_r\|_{\mathsf{F}}^2}, \frac{\ell\tau}{c\sqrt{K}\|\mathbf{E}_r\|_{\mathsf{F}}}\Bigr)\Bigr)\,; the constant is hansonWrightConstant. On the range-finder event the compressed residual has Frobenius (hence spectral) norm at most \sqrt{K}\|\mathbf{E}_r\|_{\mathsf{F}}; conditionally on \mathbf{S} the Girard–Hutchinson tail applies (NLAlib.measureReal_abs_trace_sub_girardHutchinson_ge_le), and ProbabilityTheory.IndepFun.measureReal_mem_le_add integrates it over the sketch. A zero denominator makes its fraction 0, and the bound is then at least 2; in particular, when \|\mathbf{E}_r\|_{\mathsf{F}} = 0 the bound says nothing, and that case is handled through exactness of Hutch++ on the range-finder event instead. Instances: NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le_of_isSubgaussianVector, NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le_of_hasLaw_gaussianMatrix. [MeyerMuscoMuscoWoodruff2021, Theorem 4 and Lemma 2]; there for positive semidefinite \mathbf{A} with \|\mathbf{\Delta}\|_{\mathsf{F}} \le 2\|\mathbf{E}_r\|_{\mathsf{F}} given, unspecified constants and a sample-size form.
Headline (provisional)General form: sizes are index types
Lean statement and details
NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le.{u_1, u_2, u_3, u_4} {Ω : Type u_1}
{mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {s : Type u_3} {t : Type u_4} [Fintype n]
[Fintype s] [Fintype t] [DecidableEq n] (A : Matrix n n ℝ) {S : Ω → Matrix n s ℝ}
{G : Ω → Matrix n t ℝ} {c : ℝ≥0} (hS : AEMeasurable S μ) (hSG : S ⟂ᵢ[μ] G)
(hGind : iIndepFun (fun p ω ↦ G ω p.1 p.2) μ)
(hGsub : ∀ (i : n) (j : t), HasSubgaussianMGF (fun ω ↦ G ω i j) c μ)
(hGvar : ∀ (i : n) (j : t), ∫ (ω : Ω), G ω i j ^ 2 ∂μ = 1) {r : ℕ} {K δ₁ : ℝ}
(hRF :
μ.real {ω | K * frobNorm (A - truncatedSVD A r) ^ 2 < frobNorm (A - rsvd A (S ω)) ^ 2} ≤ δ₁)
{τ : ℝ} (hτ : 0 ≤ τ) :
μ.real {ω | τ ≤ |A.trace - hutchpp A (S ω) (G ω)|} ≤
δ₁ +
2 *
rexp
(-(hansonWrightConstant *
min (↑(Fintype.card t) * τ ^ 2 / (↑c ^ 2 * K * frobNorm (A - truncatedSVD A r) ^ 2))
(↑(Fintype.card t) * τ / (↑c * √K * frobNorm (A - truncatedSVD A r)))))
Theorem (measureReal_abs_trace_sub_hutchpp_ge_le_of_hasLaw_gaussianMatrix).The deviation of Gaussian Hutch++. Let the n \times \lvert s \rvert sketch test matrix \mathbf{S}, \lvert s \rvert \ge 1, and the n \times \ell residual test matrix \mathbf{G} be independent and standard Gaussian. If \delta > 0 and <!-- value subgaussianEmbeddingDim {\cdot 1} r (1/2) (\delta/2) --> \lvert s \rvert \ge 25 \cdot 1^2 (r \log 21 + \log(2/(\delta/2)))/(16C (1/2)^2), with <!-- value subgaussianJLConstant -->C = 1/36, that is \lvert s \rvert \ge 225(r \log 21 + \log(4/\delta)), then for every real square \mathbf{A} and every \tau \ge 0, with \mathbf{E}_r = \mathbf{A} - \llbracket\mathbf{A}\rrbracket_r, we get <!-- value subgaussianRangeFinderFactor {\cdot 1} --> <!-- value hansonWrightConstant --> \mathbb{P}\bigl[\lvert \operatorname{tr}\mathbf{A} - \mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G}) \rvert \ge \tau\bigr] \le \delta + 2\exp\Bigl(-\frac{1}{196}\min\Bigl( \frac{\ell\tau^2}{(1 + 5\cdot 1/2)\|\mathbf{E}_r\|_{\mathsf{F}}^2}, \frac{\ell\tau}{\sqrt{1 + 5\cdot 1/2}\,\|\mathbf{E}_r\|_{\mathsf{F}}}\Bigr)\Bigr)\,; the size is subgaussianEmbeddingDim 1 r (1 / 2) (δ / 2), C is subgaussianJLConstant, the factor is subgaussianRangeFinderFactor 1 and the constant in the exponent is hansonWrightConstant. The case c = c' = 1 of NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le_of_isSubgaussianVector: the range-finder step goes through the sub-Gaussian range finder NLAlib.measureReal_frobNorm_sub_rsvd_sq_gt_le_mul_of_isSubgaussianVector at c = 1, with the factor 7/2 and the size 225(r \log 21 + \log(4/\delta)). This is weaker than the Gaussian range-finder tail NLAlib.measureReal_frobNorm_sub_rsvd_sq_gt_le_of_hasLaw_gaussianMatrix (NLAlib/LowRank/Gaussian/RangeFinderTail.lean), whose factor 1 + (tr/d)(1 + u)^2 at deviation u (since \sigma_r(\mathbf{A}) \le \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}) is reached at the size \lvert s \rvert = r + d - 1; the generic NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le takes that tail as its range-finder hypothesis directly. [MeyerMuscoMuscoWoodruff2021, Theorem 4 and §5, Algorithm 3]; there with unspecified constants.
General form: sizes are index types
Lean statement and details
NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le_of_hasLaw_gaussianMatrix.{u_1, u_2, u_3, u_4}
{Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {s : Type u_3}
{t : Type u_4} [Fintype n] [Fintype s] [Fintype t] [DecidableEq n] [Nonempty s] (A : Matrix n n ℝ)
{S : Ω → Matrix n s ℝ} {G : Ω → Matrix n t ℝ} (hS : HasLaw S (gaussianMatrix n s) μ)
(hG : HasLaw G (gaussianMatrix n t) μ) (hSG : S ⟂ᵢ[μ] G) {r : ℕ} {δ : ℝ} (hδ : 0 < δ)
(hs : subgaussianEmbeddingDim 1 r (1 / 2) (δ / 2) ≤ ↑(Fintype.card s)) {τ : ℝ} (hτ : 0 ≤ τ) :
μ.real {ω | τ ≤ |A.trace - hutchpp A (S ω) (G ω)|} ≤
δ +
2 *
rexp
(-(hansonWrightConstant *
min
(↑(Fintype.card t) * τ ^ 2 /
(subgaussianRangeFinderFactor 1 * frobNorm (A - truncatedSVD A r) ^ 2))
(↑(Fintype.card t) * τ /
(√(subgaussianRangeFinderFactor 1) * frobNorm (A - truncatedSVD A r)))))
Theorem (measureReal_abs_trace_sub_hutchpp_ge_le_of_isSubgaussianVector).The deviation of Hutch++ with a sub-Gaussian sketch. Let the sketch \mathbf{S}^{\mathsf{H}} of the n \times \lvert s \rvert sketch test matrix \mathbf{S}, \lvert s \rvert \ge 1, have independent, isotropic, sub-Gaussian rows with proxy c, and let the n \times \ell residual test matrix \mathbf{G} be independent of \mathbf{S}, with independent entries that each satisfy the sub-Gaussian moment generating function bound with variance proxy c' and have second moment 1. If \delta > 0 and <!-- value subgaussianEmbeddingDim c r (1/2) (\delta/2) --> \lvert s \rvert \ge 25 c^2 (r \log 21 + \log(2/(\delta/2)))/(16C (1/2)^2), with <!-- value subgaussianJLConstant -->C = 1/36, then for every real square \mathbf{A} and every \tau \ge 0, with \mathbf{E}_r = \mathbf{A} - \llbracket\mathbf{A}\rrbracket_r, we get <!-- value subgaussianRangeFinderFactor c --> <!-- value hansonWrightConstant --> \mathbb{P}\bigl[\lvert \operatorname{tr}\mathbf{A} - \mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G}) \rvert \ge \tau\bigr] \le \delta + 2\exp\Bigl(-\frac{1}{196}\min\Bigl( \frac{\ell\tau^2}{c'^2 (1 + 5c/2)\|\mathbf{E}_r\|_{\mathsf{F}}^2}, \frac{\ell\tau}{c'\sqrt{1 + 5c/2}\,\|\mathbf{E}_r\|_{\mathsf{F}}}\Bigr)\Bigr)\,; the size is subgaussianEmbeddingDim c r (1 / 2) (δ / 2), C is subgaussianJLConstant, the factor is subgaussianRangeFinderFactor c and the constant in the exponent is hansonWrightConstant. NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le with the range finder NLAlib.measureReal_frobNorm_sub_rsvd_sq_gt_le_mul_of_isSubgaussianVector. Sign sketches and residual probes are the case c = c' = 1. [MeyerMuscoMuscoWoodruff2021, Theorem 4 and §3, proof of Theorem 1]; there with sign test matrices, the factor 2 and unspecified constants.
General form: sizes are index types
Lean statement and details
NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le_of_isSubgaussianVector.{u_1, u_2, u_3, u_4}
{Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {s : Type u_3}
{t : Type u_4} [Fintype n] [Fintype s] [Fintype t] [DecidableEq n] [Nonempty s] (A : Matrix n n ℝ)
{S : Ω → Matrix n s ℝ} {G : Ω → Matrix n t ℝ} {c c' : ℝ≥0}
(hSind : iIndepFun (fun i ω ↦ (S ω)ᴴ i) μ)
(hSsub : ∀ (i : s), IsSubgaussianVector (fun ω ↦ (S ω)ᴴ i) c μ)
(hSiso : ∀ (i : s), IsIsotropic (fun ω ↦ (S ω)ᴴ i) μ)
(hGind : iIndepFun (fun p ω ↦ G ω p.1 p.2) μ)
(hGsub : ∀ (i : n) (j : t), HasSubgaussianMGF (fun ω ↦ G ω i j) c' μ)
(hGvar : ∀ (i : n) (j : t), ∫ (ω : Ω), G ω i j ^ 2 ∂μ = 1) (hSG : S ⟂ᵢ[μ] G) {r : ℕ} {δ : ℝ}
(hδ : 0 < δ) (hs : subgaussianEmbeddingDim (↑c) r (1 / 2) (δ / 2) ≤ ↑(Fintype.card s)) {τ : ℝ}
(hτ : 0 ≤ τ) :
μ.real {ω | τ ≤ |A.trace - hutchpp A (S ω) (G ω)|} ≤
δ +
2 *
rexp
(-(hansonWrightConstant *
min
(↑(Fintype.card t) * τ ^ 2 /
(↑c' ^ 2 * subgaussianRangeFinderFactor ↑c * frobNorm (A - truncatedSVD A r) ^ 2))
(↑(Fintype.card t) * τ /
(↑c' * √(subgaussianRangeFinderFactor ↑c) * frobNorm (A - truncatedSVD A r)))))
General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.