NLA-lib Explorer

O(\|\mathbf{A}\|_{\mathsf{F}}^2\|\mathbf{A}^{+}\|_2^2\log(1/\varepsilon)) iterations suffice for randomized Kaczmarz

Library · Result group

Theorem (exists_forall_integral_norm_sub_kaczmarzIterate_sq_le_of_hasLaw_iidSequence_of_mul_log_le). O(\|\mathbf{A}\|_{\mathsf{F}}^2\|\mathbf{A}^{+}\|_2^2\log(1/\varepsilon)) iterations suffice for randomized Kaczmarz: there are absolute constants C, \varepsilon_0 > 0 such that for \mathbf{A}\mathbf{x}_\star = \mathbf{b}, \mathbf{x}_\star - \mathbf{x}_0 in the row space of \mathbf{A}, rows drawn independently from the squared-row-norm law, row i with probability \|\mathbf{a}_i\|^2/\|\mathbf{A}\|_{\mathsf{F}}^2 (\mathbf{a}_i the rows of \mathbf{A}), 0 < \varepsilon \le \varepsilon_0 and q \ge C\|\mathbf{A}\|_{\mathsf{F}}^2\|\mathbf{A}^{+}\|_2^2\log(1/\varepsilon), \mathbb{E}\|\mathbf{x}_\star - \mathsf{kaczmarzIterate}(\mathbf{A}, \iota, \mathbf{b}, \mathbf{x}_0, q)\|^2 \le \varepsilon\|\mathbf{x}_\star - \mathbf{x}_0\|^2\,. The constants come before every dimension. Proved from NLAlib.integral_norm_sub_kaczmarzIterate_sq_le_mul_of_hasLaw_iidSequence_of_mul_log_le with C = 1 and \varepsilon_0 = 1. [StrohmerVershynin2009, (11)], which counts 2\kappa(\mathbf{A})^2\log(1/\varepsilon) steps for the unsquared error.

Headline (provisional)

Lean statement and details
NLAlib.exists_forall_integral_norm_sub_kaczmarzIterate_sq_le_of_hasLaw_iidSequence_of_mul_log_le :
  ∃ C ε₀,
    0 < C ∧
      0 < ε₀ ∧
        ∀ {Ω 𝕜 m n : Type} [inst : MeasurableSpace Ω] [inst_1 : RCLike 𝕜] [inst_2 : Fintype m]
          [inst_3 : Fintype n] [inst_4 : DecidableEq m] [inst_5 : MeasurableSpace m]
          [MeasurableSingletonClass m] (μ : Measure Ω) (A : Matrix m n 𝕜) (b : m → 𝕜)
          (ι : Ω → ℕ → m) (xs x₀ : n → 𝕜) (q : ℕ) (ε : ℝ),
          HasLaw ι (iidSequence (samplingMeasure (rowNormSqDistribution A))) μ →
            A *ᵥ xs = b →
              xs - x₀ ∈ Aᴴ.mulVecLin.range →
                0 < ε →
                  ε ≤ ε₀ →
                    C * (frobPseudoConditionNumber A ^ 2 * Real.log (1 / ε)) ≤ ↑q →
                      ∫ (ω : Ω), ‖WithLp.toLp 2 (xs - kaczmarzIterate A (ι ω) b x₀ q)‖ ^ 2 ∂μ ≤
                        ε * ‖WithLp.toLp 2 (xs - x₀)‖ ^ 2

Full source on GitHub

Copy link

Other forms

Theorem (integral_norm_sub_kaczmarzIterate_sq_le_of_hasLaw_iidSequence). Randomized Kaczmarz converges linearly in expectation (Strohmer–Vershynin), any rank: for \mathbf{A}\mathbf{x}_\star = \mathbf{b}, \mathbf{x}_\star - \mathbf{x}_0 in the row space of \mathbf{A} and rows drawn independently from the squared-row-norm law, row i with probability \|\mathbf{a}_i\|^2/\|\mathbf{A}\|_{\mathsf{F}}^2 (\mathbf{a}_i the rows of \mathbf{A}), \mathbb{E}\|\mathbf{x}_\star - \mathsf{kaczmarzIterate}(\mathbf{A}, \iota, \mathbf{b}, \mathbf{x}_0, q)\|^2 \le \Bigl(1 - \frac{1}{\|\mathbf{A}\|_{\mathsf{F}}^2\|\mathbf{A}^{+}\|_2^2} \Bigr)^q\|\mathbf{x}_\star - \mathbf{x}_0\|^2\,, the rate in [0, 1) for \mathbf{A} \ne \mathbf{0}. [StrohmerVershynin2009, Theorem 2]; there for full column rank, where the row-space hypothesis is empty. [ZouziasFreris2013, Theorem 4]. Iteration count: NLAlib.integral_norm_sub_kaczmarzIterate_sq_le_mul_of_hasLaw_iidSequence_of_mul_log_le.

Lean statement and details
NLAlib.integral_norm_sub_kaczmarzIterate_sq_le_of_hasLaw_iidSequence.{u_1, u_2, u_3, u_4}
  {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] [DecidableEq m]
  {Ω : Type u_4} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [MeasurableSpace m]
  [MeasurableSingletonClass m] {A : Matrix m n 𝕜} {b : m → 𝕜} {ι : Ω → ℕ → m} {x₀ : n → 𝕜}
  (hι : HasLaw ι (iidSequence (samplingMeasure (rowNormSqDistribution A))) μ) {xs : n → 𝕜}
  (hxs : A *ᵥ xs = b) (hx₀ : xs - x₀ ∈ Aᴴ.mulVecLin.range) (q : ℕ) :
  ∫ (ω : Ω), ‖WithLp.toLp 2 (xs - kaczmarzIterate A (ι ω) b x₀ q)‖ ^ 2 ∂μ ≤
    (1 - 1 / frobPseudoConditionNumber A ^ 2) ^ q * ‖WithLp.toLp 2 (xs - x₀)‖ ^ 2

Full source on GitHub

Copy link