Corollary 14.2 (subgradient descent): for convex ρ-Lipschitz f, ‖w⋆‖ ≤ B and η = B/(ρ√T), f(w̄) − f(w⋆) ≤ Bρ/√T; T ≥ B²ρ²/ε² gives ≤ ε
ProvedUnderstandingML.gd_convex_lipschitzconvex-optimizationgradient-descentlipschitzsubgradients
Corollary 14.2. Let be a convex, -Lipschitz function, and let . If we run the GD algorithm on for steps with , then the output vector satisfies . Furthermore, for every , to achieve it suffices to run GD for iterations. (§14.2.3: the same holds for subgradient descent.)
Formally: with directions and any with (the proof never uses optimality of ).
Preamble
import Definitions.Def_UnderstandingML_SGD open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Corollary 14.2** (p. 188), in its subgradient form (§14.2.3). Let `f` be a convex
`ρ`-Lipschitz function and let `w⋆` satisfy `‖w⋆‖ ≤ B` (the book takes a minimizer over the
ball; the bound holds for every such `w⋆`). If we run (sub)gradient descent on `f` for `T`
steps with `η = √(B²/(ρ²T))`, using at each step a subgradient `vₜ ∈ ∂f(w⁽ᵗ⁾)`, then the output
`w̄` satisfies `f(w̄) − f(w⋆) ≤ Bρ/√T`; and for every `ε > 0`, `T ≥ B²ρ²/ε²` iterations give
`f(w̄) − f(w⋆) ≤ ε`. -/
theorem gd_convex_lipschitz {d : ℕ} (f : Vec d → ℝ) (hf : ConvexOn ℝ Set.univ f) {ρ B : ℝ}
(hρ : 0 < ρ) (hB : 0 < B) (hlip : ∀ u v, |f u - f v| ≤ ρ * ‖u - v‖) (wstar : Vec d)
(hw : ‖wstar‖ ≤ B) (T : ℕ) (hT : 0 < T) (v : ℕ → Vec d)
(hv : ∀ t < T, IsSubgradient f (gdIterates (B / (ρ * Real.sqrt T)) v t) (v t)) :
f (gdAverage (B / (ρ * Real.sqrt T)) v T) - f wstar ≤ B * ρ / Real.sqrt T ∧
∀ ε : ℝ, 0 < ε → B ^ 2 * ρ ^ 2 / ε ^ 2 ≤ T →
f (gdAverage (B / (ρ * Real.sqrt T)) v T) - f wstar ≤ ε := by sorry
end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §14.1.1 p. 188, Corollary 14.2, and §14.2.3 p. 190 (subgradient descent)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.