(4.25) — expected value after one dynamic batch step in terms of
ProvedDynSampleSize.Stoch.eq_4_25mini-batchp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-optimization
Let , , and satisfy the stochastic model of §4.2 (integrable loss, measurable gradient with finite second moment, ), and let satisfy (4.2) with constants . Fix a point and a sample size , draw a batch of independent points with law , and let . Then and are integrable, and
where .
In the paper, is the current iterate and the expectation is conditional on ; this is the first step of the one-iteration analysis of the dynamic batch method.
Formalization Note The batch law is the product measure on ; fixing and averaging over the batch is exactly the paper's conditional expectation given .
Preamble
import Mathlib import Definitions.Def_DynSampleSize_Stoch_UniformConvexity import Definitions.Def_DynSampleSize_Stoch_Model open MeasureTheory
Formal statement
namespace DynSampleSize.Stoch
/-- (4.25), p. 11: at a point `w`, with the batch `b` of `n ≥ 1` i.i.d. draws from `P` and
`g = batchGrad gradℓ n w b`, the step `w − g/L` satisfies
`E[J(w − g/L)] ≤ J(w) − (1/L)‖∇J(w)‖² + (1/(2L)) E‖g‖²` and
`E‖g‖² = ‖∇J(w)‖² + ‖Var(g)‖₁`; all expectations exist. -/
theorem eq_4_25 {m : ℕ} {Z : Type*} [MeasurableSpace Z] (P : Measure Z) [IsProbabilityMeasure P]
(ℓ : EuclideanSpace ℝ (Fin m) → Z → ℝ)
(gradℓ : EuclideanSpace ℝ (Fin m) → Z → EuclideanSpace ℝ (Fin m))
(hmodel : StochModel P ℓ gradℓ) (lam L : ℝ) (hJ : UniformlyConvex (objective P ℓ) lam L)
(w : EuclideanSpace ℝ (Fin m)) (n : ℕ) (hn : 1 ≤ n) :
Integrable (fun b => objective P ℓ (w - (1 / L) • batchGrad gradℓ n w b))
(Measure.pi (fun _ : Fin n => P)) ∧
Integrable (fun b => ‖batchGrad gradℓ n w b‖ ^ 2) (Measure.pi (fun _ : Fin n => P)) ∧
∫ b, objective P ℓ (w - (1 / L) • batchGrad gradℓ n w b) ∂(Measure.pi (fun _ : Fin n => P)) ≤
objective P ℓ w - 1 / L * ‖gradient (objective P ℓ) w‖ ^ 2 +
1 / (2 * L) * ∫ b, ‖batchGrad gradℓ n w b‖ ^ 2 ∂(Measure.pi (fun _ : Fin n => P)) ∧
∫ b, ‖batchGrad gradℓ n w b‖ ^ 2 ∂(Measure.pi (fun _ : Fin n => P)) =
‖gradient (objective P ℓ) w‖ ^ 2 +
vecVar (Measure.pi (fun _ : Fin n => P)) (batchGrad gradℓ n w) := by sorry
end DynSampleSize.Stoch
Source
Byrd, Chin, Nocedal, Wu, Sample size selection in optimization methods for machine learning, Math. Program. (2012), doi:10.1007/s10107-012-0572-5 — authors' version of 18 Oct 2011, p. 11, (4.25)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.