Corollary 15.7 (first parts): for D on the ρ-ball × {±1}, Soft-SVM (15.6) with parameter λ has E_S[L^hinge_D(A(S))], E_S[L^{0−1}_D(A(S))] ≤ L^hinge_D(u) + λ‖u‖² + 2ρ²/(λm) for every u
ProvedUnderstandingML.soft_svm_generalizationgeneralization-boundregularizationsoft-svmsupport-vector-machines
Corollary 15.7 (first two parts). Let be a distribution over , where . Consider running Soft-SVM (Equation (15.6)) on a training set and let be the solution of Soft-SVM. Then, for every ,
Furthermore, since the hinge loss upper bounds the 0–1 loss we also have .
Formally: the support condition holds almost surely, , , and the learner is measurable (automatic for the unique minimizer).
Preamble
import Definitions.Def_UnderstandingML_SVM open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Corollary 15.7** (p. 208), first two parts. Let `D` be a distribution over `X × {±1}` where
`X = {x : ‖x‖ ≤ ρ}`. Consider running Soft-SVM (Equation (15.6)) with parameter `λ` on a
training set `S ∼ D^m` and let `A(S)` be its solution. Then for every `u`,
`E_S[L^hinge_D(A(S))] ≤ L^hinge_D(u) + λ‖u‖² + 2ρ²/(λm)`; and since the hinge loss upper bounds
the 0–1 loss, also `E_S[L^{0−1}_D(A(S))] ≤ L^hinge_D(u) + λ‖u‖² + 2ρ²/(λm)`. The support
condition is almost sure; `A` is measurable (automatic for the unique minimizer). -/
theorem soft_svm_generalization {d : ℕ} (D : Measure (Vec d × ℝ)) [IsProbabilityMeasure D]
{ρ : ℝ} (hρ : 0 < ρ) (hD : ∀ᵐ z ∂D, ‖z.1‖ ≤ ρ ∧ (z.2 = 1 ∨ z.2 = -1)) {lam : ℝ}
(hlam : 0 < lam) (A : Learner (Vec d × ℝ) (Vec d)) (hA : IsRLMLearner hingeLoss lam A)
(hAmeas : ∀ m, Measurable (A m)) (m : ℕ) (hm : 0 < m) (u : Vec d) :
∫ S, risk hingeLoss D (A m S) ∂(iidLaw D m) ≤
risk hingeLoss D u + lam * ‖u‖ ^ 2 + 2 * ρ ^ 2 / (lam * m) ∧
∫ S, risk zeroOneLoss D (A m S) ∂(iidLaw D m) ≤
risk hingeLoss D u + lam * ‖u‖ ^ 2 + 2 * ρ ^ 2 / (lam * m) := 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, §15.2.1 p. 208, Corollary 15.7 (from Corollary 13.8 and Claim 15.6)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.