§4.2, p. 12 — variance of the batch gradient,
ProvedDynSampleSize.Stoch.sample_mean_variancemini-batchp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-optimizationvariance
Let be a probability space, , and a function with finite second moment under . For a sample size draw a batch of independent points with law and let . Then
where for a random vector , is the sum of its componentwise variances.
This is the bound the paper reads off (3.5) on p. 12; it is what makes the noise term of the one-step estimate decay like .
Formalization Note The paper's middle expression carries the finite-population factor of sampling without replacement from points. The formalization samples with replacement (i.i.d. from ), the limit the paper takes on p. 5; for i.i.d. sampling the inequality holds with equality, and the inequality is what the proof uses.
Preamble
import Mathlib import Definitions.Def_DynSampleSize_Stoch_Model open MeasureTheory
Formal statement
namespace DynSampleSize.Stoch
/-- §4.2, p. 12 (display after "From (3.5), we note that"): for a batch `b` of `n ≥ 1` i.i.d. draws
from `P`, the variance of the batch gradient is at most the per-sample gradient variance over `n`,
`‖Var(g)‖₁ ≤ ‖Var(∇ℓ(w; i))‖₁ / n`. -/
theorem sample_mean_variance {m : ℕ} {Z : Type*} [MeasurableSpace Z] (P : Measure Z)
[IsProbabilityMeasure P]
(gradℓ : EuclideanSpace ℝ (Fin m) → Z → EuclideanSpace ℝ (Fin m))
(w : EuclideanSpace ℝ (Fin m)) (hgrad : MemLp (gradℓ w) 2 P) (n : ℕ) (hn : 1 ≤ n) :
vecVar (Measure.pi (fun _ : Fin n => P)) (batchGrad gradℓ n w) ≤
vecVar P (gradℓ w) / n := 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. 12, unnumbered display after 'From (3.5), we note that'
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.