NLA-lib Explorer

Nyström subspace iteration (NysSI)

Use a powered 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 subspace iteration page.

Definition

Definition (Nyström subspace iteration). For Hermitian positive-semidefinite \mathbf{A}, replace the test matrix in the Nyström approximation by \mathbf{A}^p\mathbf\Omega, with p\ge0:

\mathsf{nyssi}(\mathbf{A},\mathbf\Omega,p)=\mathsf{nystrom}(\mathbf{A},\mathbf{A}^p\mathbf\Omega).

The powers emphasize dominant spectral directions. Only the last power is kept; the block Krylov variant keeps all of them. The choice of stable intermediate bases belongs to a concrete implementation.

Copy link

The library states its results for the Nyström approximation with the powered test matrix; \mathsf{nyssi} is this page's name for that matrix. 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

These are upper bounds on the expected spectral error, not its square, for a real positive-semidefinite \mathbf{A} of order n, an n\times\ell test matrix \mathbf{X} with independent standard normal entries, and every number of power steps p\ge0.

Theorem (Expected spectral error with a gap). 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{nyssi}(\mathbf{A},\mathbf{X},p)\|_2\le\sigma_r+e^{-4p\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_nystrom_pow_mul_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 : ℕ} (hr : h + 1 = r) (hrt : r ≤ t)
  (ht : t + 2 ≤ Fintype.card l) (p : ℕ) :
  ∫ (ω : Ω), specNorm (H - nystrom H (H ^ p * X ω)) ∂μ ≤
    singularValues H r +
      rexp (-4 * ↑p * 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 r be a target rank with r+2\le\ell and \sigma_r>0. Then

\mathbb{E}\|\mathbf{A}-\mathsf{nyssi}(\mathbf{A},\mathbf{X},p)\|_2\le\sigma_r\,\rho^{1/(2p+1)},\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_nystrom_pow_mul_le_mul_rpow_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 : ℕ} (hr : r + 2 ≤ Fintype.card l) (p : ℕ)
  (hσ : 0 < singularValues H r) :
  ∫ (ω : Ω), specNorm (H - nystrom H (H ^ p * X ω)) ∂μ ≤
    singularValues H r * rangeFinderTailRatio (CFC.sqrt H) r (Fintype.card l) ^ (1 / (2 * ↑p + 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 number of power steps; they are in the Library.

Used by other algorithms

Mathematical background

Family

Appears under these tasks