NLA-lib Explorer

Nyström block Krylov iteration (NysBKI)

Use a block Krylov test matrix in a Nyström approximation of a positive-semidefinite matrix. This page concerns the untruncated approximation. Its rank-r truncation is on the late-truncated Nyström block Krylov iteration page.

Definition

Definition (Nyström block Krylov iteration). For Hermitian positive-semidefinite \mathbf{A}, a start block \mathbf\Omega with \ell columns, and q blocks, build the test matrix [\mathbf\Omega,\mathbf{A}\mathbf\Omega,\ldots,\mathbf{A}^{q-1}\mathbf\Omega] and apply the Nyström construction to it:

\mathsf{nysbki}(\mathbf{A},\mathbf\Omega,q)=\mathsf{nystrom}\bigl(\mathbf{A},[\mathbf\Omega,\mathbf{A}\mathbf\Omega,\ldots,\mathbf{A}^{q-1}\mathbf\Omega]\bigr).

The powers are retained together rather than keeping only the last one.

Lean statement and details
NLAlib.nystromBKI.{u_1, u_2, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {l : Type u_2} {n : Type u_4}
  [Fintype l] [Fintype n] [DecidableEq n] (H : Matrix n n 𝕜) (Ω : Matrix n l 𝕜) (q : ℕ) :
  Matrix n n 𝕜

Full source on GitHub

Copy link

Singular values are indexed from zero, \sigma_0\ge\sigma_1\ge\cdots; for a positive-semidefinite matrix they are its eigenvalues. [\mathbf{A}]_r denotes the rank-r truncated singular-value decomposition and \|\cdot\|_* the nuclear norm. For a head index h and a tail index t, the relative gap is \gamma=(\sigma_h-\sigma_t)/(\sigma_h+\sigma_t), with \gamma=0 when both vanish.

Components

Mathematical guarantees

The two expectation bounds are upper bounds on the expected spectral error, not its square, for a real positive-semidefinite \mathbf{A} of order n and an n\times\ell start block \mathbf{X} with independent standard normal entries.

Theorem (Expected spectral error with a gap). Let q\ge1, let r=h+1 be the number of head eigenvalues, and let t\ge r be a tail index with t+2\le\ell. Then

\mathbb{E}\|\mathbf{A}-\mathsf{nysbki}(\mathbf{A},\mathbf{X},q)\|_2\le\sigma_r+4e^{-4\sqrt2\,(q-1)\sqrt{\gamma}}\,\frac{t}{\ell-t-1}\,\|\mathbf{A}-[\mathbf{A}]_t\|_*,\qquad\gamma=\frac{\sigma_h-\sigma_t}{\sigma_h+\sigma_t}.

Lean statement and details

General form: sizes are index types

Matrix.PosSemidef.integral_specNorm_sub_nystromBKI_le_singularGapRatio_of_hasLaw_gaussianMatrix.{u_1,
    u_2, u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {X : Ω → Matrix n l ℝ} {H : Matrix n n ℝ} [DecidableEq n] (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {h r t q : ℕ} (hr : h + 1 = r) (hrt : r ≤ t)
  (ht : t + 2 ≤ Fintype.card l) (hq : 1 ≤ q) :
  ∫ (ω : Ω), specNorm (H - nystromBKI H (X ω) q) ∂μ ≤
    singularValues H r +
      4 * rexp (-4 * √2 * (↑q - 1) * √(singularGapRatio H h t)) *
          (↑t / (↑(Fintype.card l) - ↑t - 1)) *
        nuclearNorm (H - truncatedSVD H t)

Full source on GitHub

Copy link

Theorem (Expected spectral error without a gap). Let q\ge2 and let r be a target rank with r+2\le\ell and \sigma_r>0. Then

\mathbb{E}\|\mathbf{A}-\mathsf{nysbki}(\mathbf{A},\mathbf{X},q)\|_2\le\sigma_r\exp\!\biggl(\frac{\log^2(4\rho)}{16(q-1)^2}\biggr),\qquad\rho=1+\frac{r}{\ell-r-1}\,\frac{\|\mathbf{A}^{1/2}-[\mathbf{A}^{1/2}]_r\|_{\mathrm{F}}^2}{\sigma_r(\mathbf{A}^{1/2})^2}.

The library also proves \rho=1+\dfrac{r}{\ell-r-1}\,\dfrac{\|\mathbf{A}-[\mathbf{A}]_r\|_*}{\sigma_r}. No gap between eigenvalues is assumed.

Lean statement and details

General form: sizes are index types

Matrix.PosSemidef.integral_specNorm_sub_nystromBKI_le_mul_exp_of_hasLaw_gaussianMatrix.{u_1, u_2,
    u_3}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {l : Type u_3} [Fintype n]
  [Fintype l] {X : Ω → Matrix n l ℝ} {H : Matrix n n ℝ} [DecidableEq n] (hH : H.PosSemidef)
  (hX : HasLaw X (gaussianMatrix n l) μ) {r q : ℕ} (hr : r + 2 ≤ Fintype.card l) (hq : 2 ≤ q)
  (hσ : 0 < singularValues H r) :
  ∫ (ω : Ω), specNorm (H - nystromBKI H (X ω) q) ∂μ ≤
    singularValues H r *
      rexp
        (Real.log (4 * rangeFinderTailRatio (CFC.sqrt H) r (Fintype.card l)) ^ 2 /
          (16 * (↑q - 1) ^ 2))

Full source on GitHub

Copy link

Theorem (The simulated block). Let \mathbf{A} be a real or complex Hermitian positive-semidefinite matrix and \mathbf\Omega a start block. For all integers s,q\ge0,

\mathsf{nysbki}\bigl(\mathbf{A},\ [\mathbf\Omega,\mathbf{A}\mathbf\Omega,\ldots,\mathbf{A}^{s}\mathbf\Omega],\ q+1\bigr)=\mathsf{nysbki}(\mathbf{A},\mathbf\Omega,\ s+q+1).

Running s+q+1 blocks from \mathbf\Omega gives the same approximation as running q+1 blocks from the wider block formed by the first s+1 Krylov blocks of \mathbf\Omega. Positive semidefiniteness is a hypothesis of the statement.

Lean statement and details
Matrix.PosSemidef.nystromBKI_blockKrylovMatrix.{u_1, u_2, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
  {l : Type u_2} {n : Type u_4} [Fintype l] [Fintype n] [DecidableEq n] {H : Matrix n n 𝕜}
  (hH : H.PosSemidef) (Ω : Matrix n l 𝕜) (s q : ℕ) :
  nystromBKI H (blockKrylovMatrix H Ω (s + 1)) (q + 1) = nystromBKI H Ω (s + q + 1)

Full source on GitHub

Copy link

The same result groups contain a relative form of the gapless bound with a factor (1+\varepsilon)^2 and forms that give a sufficient depth; they are in the Library.

Used by other algorithms

Mathematical background

Family

Appears under these tasks