NLA-lib Explorer

Early-truncated generalized Nyström through a random projection-cost-preserving sketch

Library · Result group

Theorem (HasProjectionCostPreserving.measureReal_mul_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_le). Early-truncated generalized Nyström through a random projection-cost-preserving sketch: if \mathbf{\Omega}^{\mathsf{H}} is a rank-k projection-cost-preserving sketch for \mathbf{A} with constants a \ge 0, \mathbf{b} except with probability \delta, and an independent co-range test matrix \mathbf{\Psi} has \mathbf{\Psi}^{\mathsf{H}} an oblivious subspace injection for dimension k with constant a' > 0 and failure probability \delta', then for t > 0 a\|\mathbf{A} - \mathsf{earlyTruncatedGN}(\mathbf{A}, \mathbf{\Omega}, \mathbf{\Psi}, k) \|_{\mathsf{F}}^2 \le \Bigl(1 + \frac{t}{a'}\Bigr) \mathbf{b}\, \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2 except with probability \delta + \delta' + 1/t. One pass, rank at most k. Proved as the union of the events of NLAlib.HasProjectionCostPreserving.measureReal_mul_frobNorm_sub_earlyTruncatedRSVD_sq_gt_le and the completion step NLAlib.IsObliviousSubspaceInjection.measureReal_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_mul_le. For real sketches with the JL moment property NLAlib.HasJLMoment.measureReal_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_le uses no projection-cost-preserving event and has no 1/t term; this is the form for a sketch known only to be projection-cost-preserving. [TroppYurtseverUdellCevher2017, §7.3.1], the algorithm and the remark that the results of [CohenElderMuscoMuscoPersu2015, Theorem 12 and §10.1] imply a (1+\varepsilon) bound at \Theta(r/\varepsilon^2) for both sketch sizes, with unspecified constants; here explicit, with failure probability \delta + \delta' + 1/t.

Headline (provisional)

Lean statement and details
NLAlib.HasProjectionCostPreserving.measureReal_mul_frobNorm_sub_earlyTruncatedGeneralizedNystrom_sq_gt_le.{u_1,
    u_2, u_3, u_4, u_5, u_6}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {m : Type u_3}
  {n : Type u_4} {l : Type u_5} {p : Type u_6} [Fintype m] [Fintype n] [Fintype l] [Fintype p]
  [DecidableEq m] {X : Ω → Matrix n l 𝕜} {Ψ : Ω → Matrix m p 𝕜} [IsProbabilityMeasure μ]
  {A : Matrix m n 𝕜} {k : ℕ} {a b δ a' δ' t : ℝ}
  (h : HasProjectionCostPreserving (fun ω ↦ (X ω)ᴴ) A k a b δ μ) (ha : 0 ≤ a)
  (hΨ : IsObliviousSubspaceInjection (fun ω ↦ (Ψ ω)ᴴ) k a' δ' μ) (ha' : 0 < a') (ht : 0 < t)
  (hind : X ⟂ᵢ[μ] Ψ) (hX : AEMeasurable X μ) (hΨm : AEMeasurable Ψ μ) :
  μ.real
      {ω |
        (1 + t / a') * b * frobNorm (A - truncatedSVD A k) ^ 2 <
          a * frobNorm (A - earlyTruncatedGeneralizedNystrom A (X ω) (Ψ ω) k) ^ 2} ≤
    δ + δ' + 1 / t

Full source on GitHub

Copy link

Other forms

Theorem (HasProjectionCostPreserving.measureReal_mul_frobNorm_sub_earlyTruncatedRSVD_sq_gt_le). Early truncation through a random projection-cost-preserving sketch: if \mathbf{\Omega}^{\mathsf{H}} is a rank-k projection-cost-preserving sketch for \mathbf{A} with constants a, \mathbf{b} except with probability \delta, then a\|\mathbf{A} - \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k)\|_{\mathsf{F}}^2 \le \mathbf{b}\|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2 except with probability \delta, for every choice of the truncations. With constants 1 \mp \varepsilon this is (1 - \varepsilon)\|\mathbf{A} - \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k) \|_{\mathsf{F}}^2 \le (1 + \varepsilon)\|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2\,. The tail form of NLAlib.IsProjectionCostPreserving.mul_frobNorm_sub_earlyTruncatedRSVD_sq_le. For a sketch of a known family the structural route NLAlib.HasJLMoment.measureReal_frobNorm_sub_earlyTruncatedRSVD_sq_gt_le (the tail form of NLAlib.IsSubspaceInjection.frobNorm_sub_earlyTruncatedRSVD_sq_le) uses fewer events and gives better constants; this is the form for a sketch known only to be projection-cost-preserving. [CohenElderMuscoMuscoPersu2015, Lemma 3]; there for a fixed sketch with \varepsilon, here a tail with constants a, \mathbf{b} and the named output.

Lean statement and details
NLAlib.HasProjectionCostPreserving.measureReal_mul_frobNorm_sub_earlyTruncatedRSVD_sq_gt_le.{u_1,
    u_2, u_3, u_4, u_5}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {m : Type u_3}
  {n : Type u_4} {l : Type u_5} [Fintype m] [Fintype n] [Fintype l] {X : Ω → Matrix n l 𝕜}
  [IsFiniteMeasure μ] {A : Matrix m n 𝕜} {k : ℕ} {a b δ : ℝ}
  (h : HasProjectionCostPreserving (fun ω ↦ (X ω)ᴴ) A k a b δ μ) :
  μ.real
      {ω |
        b * frobNorm (A - truncatedSVD A k) ^ 2 <
          a * frobNorm (A - earlyTruncatedRSVD A (X ω) k) ^ 2} ≤
    δ

Full source on GitHub

Copy link

Theorem (IsProjectionCostPreserving.mul_frobNorm_sub_earlyTruncatedRSVD_sq_le). Early truncation through a projection-cost-preserving sketch: if \mathbf{A}\mathbf{\Omega} is a rank-k projection-cost-preserving sketch of \mathbf{A} with constants a, \mathbf{b}, then a\|\mathbf{A} - \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k) \|_{\mathsf{F}}^2 \le \mathbf{b}\|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2\,, that is (1+\varepsilon)/(1-\varepsilon) times the optimal error in the two-sided form, for every choice of the truncations. A pointwise statement: off the event where the sketch is a projection-cost-preserving sketch the error is bounded only by \|\mathbf{A}\|_{\mathsf{F}}^2, so no expectation bound follows from it; the structural bound NLAlib.IsSubspaceInjection.frobNorm_sub_earlyTruncatedRSVD_sq_le gives one. [CohenElderMuscoMuscoPersu2015, Lemma 3]; there with \varepsilon and a set of rank-k projectors; here constants a, \mathbf{b} and the named output.

Lean statement and details
NLAlib.IsProjectionCostPreserving.mul_frobNorm_sub_earlyTruncatedRSVD_sq_le.{u_1, u_2, u_3, u_4}
  {𝕜 : Type u_1} [RCLike 𝕜] {l : Type u_2} {m : Type u_3} {n : Type u_4} [Fintype l] [Fintype m]
  [Fintype n] {A : Matrix m n 𝕜} {Ω : Matrix n l 𝕜} {k : ℕ} {a b : ℝ}
  (h : IsProjectionCostPreserving A (A * Ω) k a b) :
  a * frobNorm (A - earlyTruncatedRSVD A Ω k) ^ 2 ≤ b * frobNorm (A - truncatedSVD A k) ^ 2

Full source on GitHub

Copy link

Theorem (IsSubspaceEmbedding.mul_frobNorm_sub_earlyTruncatedRSVD_sq_le). Early truncation under a subspace embedding of the row space: if \mathbf{\Omega}^{\mathsf{H}} is a subspace embedding for \operatorname{range}\mathbf{A}^{\mathsf{H}} with constants a, \mathbf{b}, then for every k a\|\mathbf{A} - \mathsf{earlyTruncatedRSVD}(\mathbf{A}, \mathbf{\Omega}, k) \|_{\mathsf{F}}^2 \le \mathbf{b}\|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_k\|_{\mathsf{F}}^2\,. The embedding dimension is at least \operatorname{rank}\mathbf{A}; a sketch of dimension independent of the rank needs NLAlib.IsSubspaceInjection.frobNorm_sub_earlyTruncatedRSVD_sq_le. [Woodruff2014, Theorem 61]; there transposed (Woodruff's column space of \mathbf{A} is the row space here), with unsquared constants 1 \pm \varepsilon, here a = (1-\varepsilon)^2 and \mathbf{b} = (1+\varepsilon)^2, and the conclusion 1 + O(\varepsilon).

Lean statement and details
NLAlib.IsSubspaceEmbedding.mul_frobNorm_sub_earlyTruncatedRSVD_sq_le.{u_1, u_2, u_3, u_4}
  {𝕜 : Type u_1} [RCLike 𝕜] {l : Type u_2} {m : Type u_3} {n : Type u_4} [Fintype l] [Fintype m]
  [Fintype n] {A : Matrix m n 𝕜} {Ω : Matrix n l 𝕜} {a b : ℝ} (h : IsSubspaceEmbedding Ωᴴ Aᴴ a b)
  (k : ℕ) :
  a * frobNorm (A - earlyTruncatedRSVD A Ω k) ^ 2 ≤ b * frobNorm (A - truncatedSVD A k) ^ 2

Full source on GitHub

Copy link