NLA-lib Explorer

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

Library · Result group

Theorem (exists_forall_integral_norm_sub_kaczmarzIterate_sq_le_mul_add_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 to reach its horizon, for any right-hand side: there are absolute constants C, \varepsilon_0 > 0 such that for every \mathbf{x}_\star with \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 + \|\mathbf{A}^{+}\|_2^2\,\|\mathbf{b} - \mathbf{A}\mathbf{x}_\star\|^2\,. The constants come before every dimension. Proved from NLAlib.integral_norm_sub_kaczmarzIterate_sq_le_mul_add_of_hasLaw_iidSequence_of_mul_log_le with C = 1 and \varepsilon_0 = 1. [ZouziasFreris2013, Theorem 7].

Headline (provisional)

Lean statement and details
NLAlib.exists_forall_integral_norm_sub_kaczmarzIterate_sq_le_mul_add_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))) μ →
            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 +
                        specNorm (pinv A) ^ 2 * ‖WithLp.toLp 2 (b - A *ᵥ xs)‖ ^ 2

Full source on GitHub

Copy link

Other forms

Theorem (integral_norm_sub_kaczmarzIterate_sq_le_add_of_hasLaw_iidSequence). Randomized Kaczmarz, any right-hand side: with 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}), for every \mathbf{x}_\star with \mathbf{x}_\star - \mathbf{x}_0 in the row space of \mathbf{A} and with \rho = 1 - (\|\mathbf{A}\|_{\mathsf{F}}\|\mathbf{A}^{+}\|_2)^{-2}, \mathbb{E}\|\mathbf{x}_\star - \mathsf{kaczmarzIterate}(\mathbf{A}, \iota, \mathbf{b}, \mathbf{x}_0, q)\|^2 \le \rho^q\|\mathbf{x}_\star - \mathbf{x}_0\|^2 + (1 - \rho^q)\, \|\mathbf{A}^{+}\|_2^2\,\|\mathbf{b} - \mathbf{A}\mathbf{x}_\star\|^2\,. No rank assumption. The reference point. For \mathbf{x}_0 = \mathbf{0} take \mathbf{x}_\star = \mathbf{A}^{+}\mathbf{b}; in general take the least-squares solution nearest \mathbf{x}_0, \mathbf{x}_0 + \mathbf{A}^{+}(\mathbf{b} - \mathbf{A}\mathbf{x}_0), which minimises the horizon; see NLAlib.integral_norm_add_pinv_mulVec_sub_kaczmarzIterate_sq_le_of_hasLaw_iidSequence. The choice \mathbf{x}_\star = \mathbf{A}^{+}\mathbf{b} with a generic \mathbf{x}_0 violates the row-space hypothesis, and the bound then fails. [ZouziasFreris2013, Theorem 7]; the same horizon \|\mathbf{w}\|^2/\sigma_{\min}^2, here with the factor 1 - \rho^q. [Needell2010, Theorem 2.1]; there for full column rank, in the unsquared norm and with the larger horizon R\gamma^2 \ge \|\mathbf{A}^{+}\|_2^2\|\mathbf{b} - \mathbf{A}\mathbf{x}_\star\|^2, which this implies by Jensen's inequality. Iteration count: NLAlib.integral_norm_sub_kaczmarzIterate_sq_le_mul_add_of_hasLaw_iidSequence_of_mul_log_le.

Lean statement and details
NLAlib.integral_norm_sub_kaczmarzIterate_sq_le_add_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 → 𝕜}
  (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 +
      (1 - (1 - 1 / frobPseudoConditionNumber A ^ 2) ^ q) * specNorm (pinv A) ^ 2 *
        ‖WithLp.toLp 2 (b - A *ᵥ xs)‖ ^ 2

Full source on GitHub

Copy link