NLA-lib Explorer

Late-truncated RSVD

Definition (Late-truncated RSVD). Form \mathbf{B}=\mathbf{P}_{\mathbf{A}\mathbf\Omega}\mathbf{A}, then return [\mathbf{B}]_k, a best rank-at-most-k approximation to \mathbf{B}. Here [\cdot]_k denotes truncated SVD.

Copy link

Implementations

Mathematical guarantees

Theorem (Orthogonal error decomposition). For every matrix \mathbf{A}, sketch \mathbf\Omega, and target rank k,

\|\mathbf{A}-[\mathbf{B}]_k\|_{\mathrm{F}}^2=\|\mathbf{A}-\mathbf{B}\|_{\mathrm{F}}^2+\|\mathbf{B}-[\mathbf{B}]_k\|_{\mathrm{F}}^2,\qquad\mathbf{B}=\mathbf{P}_{\mathbf{A}\mathbf\Omega}\mathbf{A}.

The squared error separates into the range-finding error and the error from truncating within that range.

Lean statement and details
NLAlib.frobNorm_sub_truncatedSVD_rsvd_sq.{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 : ℕ) :
  frobNorm (A - truncatedSVD (rsvd A Ω) k) ^ 2 =
    frobNorm (A - rsvd A Ω) ^ 2 + frobNorm (rsvd A Ω - truncatedSVD (rsvd A Ω) k) ^ 2

Full source on GitHub

Copy link

Components

Mathematical background

Family

Appears under these tasks