Corollary 14.14: for a convex-smooth-bounded problem (β, B) with ℓ(0,z) ≤ 1 and ε > 0, SGD with η = 1/(β(1 + 3/ε)) and T ≥ 12B²β/ε² has E[L_D(w̄)] ≤ min_{w∈H} L_D(w) + ε
ProvedUnderstandingML.sgd_learns_convex_smoothconvex-learninglearnabilitysmoothnessstochastic-gradient-descent
Corollary 14.14. Consider a convex-smooth-bounded learning problem with parameters . Assume in addition that for all . For every , set . Then running SGD with yields .
Formally, as printed: every , with no assumption that . By Theorem 14.13 with , for every one has . Taking gives , which is at most whenever or . Taking gives , which is at most when and , that is .
Preamble
import Definitions.Def_UnderstandingML_SGD open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Corollary 14.14** (p. 199). Consider a convex-smooth-bounded learning problem with
parameters `β, B`, and assume in addition that `ℓ(0, z) ≤ 1` for all `z`. For every `ε > 0` set
`η = 1/(β(1 + 3/ε))`. Then running SGD with `T ≥ 12B²β/ε²` yields
`E[L_D(w̄)] ≤ min_{w ∈ H} L_D(w) + ε`. From Theorem 14.13, applied with `w⋆ = w` and with
`w⋆ = 0` (which need not lie in `H`), this holds for every `ε > 0`. -/
theorem sgd_learns_convex_smooth {d : ℕ} {Z : Type*} [MeasurableSpace Z] (H : Set (Vec d))
(loss : Vec d → Z → ℝ) {β B : ℝ} (hβ : 0 < β) (hB : 0 < B)
(hprob : ConvexSmoothBounded H loss β B) (h0 : ∀ z, loss 0 z ≤ 1)
(hmeas : Measurable (Function.uncurry loss))
(hgrad : Measurable (Function.uncurry fun w z ↦ gradient (fun w ↦ loss w z) w)) {ε : ℝ}
(hε0 : 0 < ε) (T : ℕ) (hT : 12 * B ^ 2 * β / ε ^ 2 ≤ T) (D : Measure Z)
[IsProbabilityMeasure D] :
∀ w ∈ H, ∫ S, risk loss D
(sgdAverage (1 / (β * (1 + 3 / ε))) (fun w z ↦ gradient (fun w ↦ loss w z) w) S)
∂(iidLaw D T) ≤ risk loss D w + ε := 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.5.2 p. 199, Corollary 14.14 (from Theorem 14.13)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.