Accelerated Gradient Methods for Nonconvex Nonlinear and Stochastic Programming 4: The Mini-Batch RSAG Method Bounds the Expected Gradient Mapping on Nonconvex Stochastic Composite ProblemsResearch Paper
Motivation
Training a model by stochastic gradients on a constrained or regularized loss is a stochastic composite problem: a smooth expected loss, observed only through noisy gradients, plus a simple non-smooth term such as a constraint set or an penalty. For convex losses, accelerated stochastic approximation methods attain the optimal rates (Lan 2012; Ghadimi & Lan 2012). For nonconvex losses, the available guarantees came from randomized stochastic gradient methods (Ghadimi & Lan 2013) and their mini-batch proximal versions (Ghadimi, Lan & Zhang 2016), which are not optimal when the problem happens to be convex.
Ghadimi and Lan (arXiv:1310.3787v1, 2013; Math. Program. 156, 2016) gave one accelerated scheme covering both cases. This mission formalizes its most general result, Theorem 4 (§3.2): the randomized stochastic accelerated gradient (RSAG) method with mini-batches, on a composite objective whose smooth part may be nonconvex and whose gradients are noisy.
Setting
Work in with the Euclidean norm. The problem (1.3) is
where is differentiable with -Lipschitz gradient and may be nonconvex, is convex and differentiable with -Lipschitz gradient, , and is a convex, possibly non-smooth function with bounded domain (for instance the indicator of a convex compact set, or that indicator plus ).
The prox map (2.37) is for , and the gradient mapping (2.38) is . With , a small certifies approximate stationarity. Assumption 2 asks for with for all and .
Gradients come from a stochastic oracle: queried at , it returns for a random sample . Assumption 1 asks that the output be unbiased, , with variance at most .
Algorithm 4 takes , for , , batch sizes , starts from , and for sets
With and (2.6), the output is , where is drawn independently of the oracle with
Formalization targets
Goal: Theorem 4 (pp. 21–22)
Fix , assume for
let be an optimal solution and . Then
and, if ,
The expectations are over and all samples. The goal keeps general step sizes and batch sizes; Corollaries 4 and 5 (explicit policies) are left for follow-up work.
Milestones
In the order of the proof: Lemma 4 ( is 1-Lipschitz); the mini-batch variance bound (3.28) and its consequence (3.29) for the gradient mapping; Lemma 1, (2.16) and Lemma 5, the two-sided bound ; the three-point inequalities (3.32)–(3.33) and their combination (3.34); the descent bound (2.46) (already proved on the platform) and (2.47); the one-step and summed inequalities of p. 22; the iterate bound (2.52); the summed inequality at ; and the expected bound (3.35).
Significance
The result. Theorem 4 covers stochastic composite problems whether or not is convex, with one step-size policy. Under Corollary 4's policy and batch sizes it gives a sample complexity for that improves the dependence on over mini-batch proximal stochastic gradient [Ghadimi, Lan & Zhang 2016], and when it recovers the optimal rate for convex stochastic composite optimization. Its proof is a template for later variance-controlled accelerated methods: a weighted Lyapunov argument in which nonconvexity enters only through and noise only through the martingale and variance terms.
Formalizing it. The result has been proved and refereed since 2016. As far as is known, no proof assistant has a formalization of it, and the platform has no accelerated stochastic method with a nonconvex guarantee. A complete development gives machine-checked versions of the mini-batch variance bound for martingale-difference noise, the Lipschitz property of the gradient mapping, the proximal three-point inequality on a convex domain, and the composite accelerated analysis with noise. Each of these can be reused in other stochastic proximal methods.
Difficulty
Copying the deterministic composite proof (Theorem 2) fails in two places. First, the deterministic step bounds through the decrease , but here is computed from , so this decrease measures the stochastic gradient mapping. Passing back to the exact one costs an extra variance term, which is why the constant is 8 rather than 2. Second, the noise appears in two ways. The linear term vanishes only in expectation, and only because is fixed before the batch is drawn. The quadratic terms need the variance of an average of dependent samples, which is only when the samples within a batch are conditionally unbiased given the earlier ones. A pathwise argument cannot remove either term, and an unconditional reading of Assumption 1 does not give the second.
Formalization scope
- Space and smoothness. is
EuclideanSpace ℝ (Fin n)(the publishedGhadimiLan.RSG.E). Smoothness of and is the platform'sConvexOptAlg.SmoothGD.IsBetaSmooth. , and are given with the identities , , . - The convex term is its domain
Kwith finite valuesXandConvexOn ℝ K X; the prox map is a functionPwith the minimizer hypothesisIsProxMap K X P. A real-valued on all of is excluded: it makes Assumption 2 unsatisfiable and the goal vacuous. So is a freePwith no minimizer property. - The noise. Oracle calls are numbered consecutively; iteration makes calls with , all at . Assumption 1 is the published
GhadimiLan.RSG.AssumptionA1along these query points: conditional unbiasedness given a filtration of the earlier calls, and conditional variance bound . This conditional form is what the paper's proof uses, and the i.i.d. setting satisfies it. The oracle is jointly measurable. The variance bound (3.28) is a milestone and is never assumed. - The output index is measurable, takes values in with mass function (3.7), and is independent of the whole sample sequence. Algorithm 4 runs pathwise, for every , and is evaluated at , which is the paper's "run steps, output the -th iterate". Integrability of every expected quantity is part of each conclusion.
- Excluded trivializations: batch size fixed to 1 (general is kept), , a fixed , and (3.28) taken as a hypothesis.
- Conventions. Indexing is 1-based, and , so . (2.9) and (2.10) are imposed for , and is written . Two hypotheses are added: an optimal exists (the statement uses it), and (used silently in (2.52) at ). The page prints on the left of (3.35) where is meant; the Lean states .
Contributions welcome: proofs of any milestone. Lemma 4, (3.28) and the three-point inequality are self-contained and reusable. Also welcome: the measurability of the iterates, and Corollaries 4–5 as follow-up statements.
Selected references
- S. Ghadimi, G. Lan, Accelerated Gradient Methods for Nonconvex Nonlinear and Stochastic Programming, arXiv:1310.3787v1, 2013; Math. Program. 156 (2016) 59–99. https://arxiv.org/abs/1310.3787v1 · https://doi.org/10.1007/s10107-015-0871-8
- S. Ghadimi, G. Lan, H. Zhang, Mini-batch stochastic approximation methods for nonconvex stochastic composite optimization, Math. Program. 155 (2016) 267–305 (reference [13] of the paper: the mini-batch variance bound and Proposition 1, the Lipschitz property of ). https://doi.org/10.1007/s10107-014-0846-1
- S. Ghadimi, G. Lan, Stochastic first- and zeroth-order methods for nonconvex stochastic programming, SIAM J. Optim. 23 (2013) 2341–2368 (the randomized stochastic gradient method). https://doi.org/10.1137/120880811
- S. Ghadimi, G. Lan, Optimal stochastic approximation algorithms for strongly convex stochastic composite optimization, I: a generic algorithmic framework, SIAM J. Optim. 22 (2012) 1469–1492 (reference [11] of the paper; its Lemma 2 is the three-point inequality). https://doi.org/10.1137/110848864
- G. Lan, An optimal method for stochastic composite optimization, Math. Program. 133 (2012) 365–397. https://doi.org/10.1007/s10107-010-0434-y