Theorem 1
RDWCSchedule-free SGD (?), with an appropriate choice of parameters \gamma, c_t, \kappa_t, achieves optimal rates for nonsmooth and nonconvex F.
This work investigates the effectiveness of schedule-free methods, developed by A. Defazio et al. (NeurIPS 2024), in nonconvex optimization settings, inspired by their remarkable empirical success in training neural networks. Specifically, we show that schedule-free SGD achieves optimal iteration complexity for nonsmooth, nonconvex optimization problems. Our proof begins with the development of a general framework for online-to-nonconvex conversion, which converts a given online learning algorithm into an optimization algorithm for nonconvex losses. Our general framework not only recovers existing conversions but also leads to two novel conversion schemes. Notably, one of these new conversions corresponds directly to schedule-free SGD, allowing us to establish its optimality. Additionally, our analysis provides valuable insights into the parameter choices for schedule-free SGD, addressing a theoretical gap that the convex theory cannot explain.
Schedule-free SGD (?), with an appropriate choice of parameters \gamma, c_t, \kappa_t, achieves optimal rates for nonsmooth and nonconvex F.
Let F:\mathbb{R}^d \to \mathbb{R} be a differentiable function with the following properties:
Let \Delta_F \coloneqq F({\mathbf x}_0) -\inf_{{\mathbf x}} F({\mathbf x}).
For any two points {\mathbf x} and {\mathbf w}, F({\mathbf x})-F({\mathbf w}) = \int_0^1 \left\langle \nabla F({\mathbf w}+t({\mathbf x}-{\mathbf w})),{\mathbf x}-{\mathbf w} \right\rangle\mathrm{d} t.
F is G-Lipshitz, i.e., for any point {\mathbf x}, \left\|\nabla F({\mathbf x})\right\|\leq G.
We assume access to a stochastic gradient oracle at any point {\mathbf x}. More formally, for any given point {\mathbf x}, each call to the oracle independently returns a stochastic gradient \mathbf{g} that satisfies the following properties:
We denote the stochastic gradient oracle as \textsc{StoGrad}. When the oracle returns the stochastic gradient \mathbf{g} at point {\mathbf x}, we write this as \mathbf{g} \gets \textsc{StoGrad}({\mathbf x}).
Suppose F:\mathbb{R}^d\to \mathbb{R} is differentiable. We say {\mathbf x} is a (\lambda,\varepsilon)-stationary point of F if \left\| \nabla F({\mathbf x})\right\|^{[\lambda]} \leq \varepsilon, where
If F is L-smooth, then an (L^2 \varepsilon^{-1},\varepsilon)-stationary point {\mathbf x} of F satisfies \left\|\nabla F({\mathbf x})\right\|\leq 2\varepsilon. Moreover, if F is H-second-order-smooth, then an (H/2,\varepsilon)-stationary point {\mathbf x} of F satisfies \left\|\nabla F({\mathbf x})\right\|\leq 2\varepsilon.
Consider the loss sequence \ell_{1:T}. For any T\geq 1, we define the discounted regret of an online learner with respect to a comparator \mathbf{u} as:
Given a discount factor \beta \in (0,1) and a sequence of iterates \{\mathbf{y}_s\}_{s=1}^t, the \beta-EMA of the sequence up to time t, denoted as \overline{\mathbf{y}}_t, is defined as
Let \tau be a random index distributed over \{1, 2, \dots, T\} with the following distribution:
Consider the iterates generated by ?. The iterate stability factor, denoted by C_{{\mathbf x}} \geq 0, is the smallest nonnegative constant such that:
Consider the iterates generated according to ?. For \beta \in (0, 1) and D > 0, define the comparators for online learner as follows:
Then, as long as the regularization strength satisfies \mu \geq 8\lambda D \left(1 + { C_{{\mathbf x}}}{(1-\beta)^{-2}} \right), the following holds:
See ?.
Let \beta \in (0,1), \mu \geq 0, \eta > 0, and a sequence of vectors \{\mathbf{g}_t\}_{t=1}^T. Suppose that \mathbb{E}\left\|\mathbf{g}_t\right\|^2 \leq G^2 + \sigma^2 for all t\in[T]. Consider an online learner initialized with {\boldsymbol \delta}_1 = \bm{0} and updated as follows:
Then, this online learner with \eta = \frac{2}{G + \sigma} \left\|\mathbf{u}\right\| \sqrt{1-\beta} achieves the following discounted regret bound:
See ?.
Consider the iterates generated according to ?, where the online learner \mathcal{A} achieves the discounted regret given by (2). Let \varepsilon > 0 be such that \varepsilon \leq \frac{7}{2}(G + \sigma) and let T \geq 49 (G + \sigma)^2 \varepsilon^{-2}. Then, there exists a choice of parameters \beta=\beta_\star, D=D_\star, \mu=\mu_\star such that with \overline{\mathbf{y}}_t and \tau as specified by Definition 3 and Definition 4, the following holds:
The choice of parameters is summarized as follows:
The discounting factor is \beta_\star = 1 - (\frac{\varepsilon}{7(G + \sigma)})^2.
The comparator norm is D_\star = \frac{1}{4} \lambda^{-1/2} \varepsilon^{1/2} \left(1+\frac{49(G + \sigma)^2 }{\varepsilon^2} \sqrt{C_{{\mathbf x}}} \right)^{-1}.
The regularization strength is \mu_\star = 2 \lambda^{1/2}\varepsilon^{1/2} \left(1 + \frac{49(G + \sigma)^2 }{\varepsilon^2}\sqrt{C_{{\mathbf x}}} \right).
See ?.
Consider the iterates of ?. Under the setting of Theorem 2, it holds that \mathbb{E}_{\tau} \left\| \nabla F(\overline{\mathbf{y}}_{\tau})\right\|^{[\lambda]} \leq 4\varepsilon, provided that
With ?, the above inequalities, (?) and (?), show that \sum_{t=1}^{T} \left(F({\mathbf x}_t) - F({\mathbf w}_t)\right) \leq \Delta_F and C_{{\mathbf x}} \leq 1. Therefore, by applying Theorem 2, we have
provided that T \geq 49 (G + \sigma)^2 \varepsilon^{-2}. From this, the iteration complexity bound (3) follows.
Consider the iterates of ?. Under the setting of Theorem 2, the following holds:
provided that T \geq 49 (G + \sigma)^2 \varepsilon^{-2}.
Consider the iterates of ?. Under the setting of Theorem 2, it holds that
provided that N \geq 4\Delta_F \lambda^{1/2} \varepsilon^{-3/2} and T \geq 49 (G + \sigma)^2 \varepsilon^{-2}.
Applying Corollary 5 to each epoch n, we obtain:
where the last equality follows because \mathbf{a}_{n+1} is chosen uniformly at random from \{{\mathbf w}^{(n)}_t\}_{t=1}^T.
Summing over all epochs, since \sum_{n=1}^N ( F(\mathbf{a}_n) - F(\mathbf{a}_{n+1})) = F(\mathbf{a}_1) - F(\mathbf{a}_{N+1}), we have:
Thus, setting N \geq 4\Delta_F \lambda^{1/2} \varepsilon^{-3/2} ensures that the right-hand side is at most 4\varepsilon.
Consider the iterates of ? with the parameter choices as in Theorem 2, i.e., \beta = \beta_\star, D = D_\star, \mu = \mu_\star, and the parameters of ? chosen as:
Then, it holds that \mathbb{E}_{\tau} \left\| \nabla F(\overline{\mathbf{y}}_{\tau})\right\|^{[\lambda]} \leq 5\varepsilon, provided that
It is clear by definition that C_{{\mathbf x}} = \frac{1}{\zeta_\star}. Thus, the crux of the proof lies in controlling the sum of loss decrements by leveraging (?) in order to apply Theorem 2. In particular, we decompose the sum using the G-Lipschitz continuity of F as follows:
Applying the closeness property (?) between {\mathbf x}_t and {\mathbf w}_{t-1}, we can show that the first term in the upper bound is at most \mathcal{O}\left(D_\star T \varepsilon\right), making it a lower-order term. For a complete proof, see ?.
Under ? and using the extrapolated iterates defined in (?), the following holds:
With the parameter choices given in Corollary 6, we have \zeta = \zeta_\star = 1 - \Theta \left(\frac{\varepsilon^2}{(G + \sigma)^2} \right). Specifically, the parameters in schedule-free SGD are set as follows:
\kappa_t is chosen uniformly from [\zeta_\star, 1], implying that 1 - \Theta \left(\frac{\varepsilon^2}{(G + \sigma)^2}\right) \leq \kappa_t \leq 1 for all t. This selection ensures that \kappa_t remains close to 1.
The step size for the base SGD ({\mathbf z}-trajectory) is set to \frac{\eta_\star}{1-\zeta_\star}, making it \Theta\left(\frac{(G + \sigma)^2}{\varepsilon^2}\right) times larger than the OMD step size, \eta_\star.
For \beta\in(0,1), consider the iterates generated as per ?.
Consider the following definitions:
For each t \in [T], let \mathbf{u}_t \coloneqq -D \frac{\sum_{s=1}^t\beta^{t-s}\nabla F(\mathbf{y}_s)}{\left\|\sum_{s=1}^t\beta^{t-s}\nabla F(\mathbf{y}_s)\right\|}.
For each t \in [T], let \mathbf{Y}_t be the random iterate distributed over \{\mathbf{y}_s\}_{s=1}^t as:
Then, the following upper bound holds:
See ?.
For \beta\in(0,1), consider the iterates generated as per ?
See ?.
For \beta\in(0,1), consider the iterates generated as per ?.
Consider the following definitions:
For each t \in [T], let \mathbf{u}_t \coloneqq -D \frac{\sum_{s=1}^t\beta^{t-s}\nabla F(\mathbf{y}_s)}{\left\|\sum_{s=1}^t\beta^{t-s}\nabla F(\mathbf{y}_s)\right\|}.
For each t \in [T], let \mathbf{Y}_t be the random iterate distributed over \{\mathbf{y}_s\}_{s=1}^t as:
Then, for any n\in [T], we have
See ?.
For each n \in [T] the following holds:
See ?.
The following holds:
See ?.
For each n \in [T], it holds that
Let us fix n \in [T]. Let \widehat{\mathbf{X}}_n be an independent copy of \mathbf{X}_n. Then, by Jensen’s inequality, we get:
Next, using Cauchy-Schwartz and triangle inequality, we get:
Hence, it follows that
This completes the proof.
For 1\leq t\leq n\leq T, it holds that
In order to prove the desired upper bound, let us first simplify the expression for \lambda_{n,t} as follows:
Next, let us compute the inner summation:
Substituting this back to the above expression for \lambda_{n,t}, we have
Now one can compute the first and second terms above using the following identities:
First term: note that \sum_{k=0}^{n-t} \beta^k = \frac{1-\beta^{n-t+1}}{1-\beta} = \frac{1-\beta^a}{1-\beta}.
Second term: note that \sum_{k=0}^{n-t} k\beta^k = \beta \frac{\mathrm{d}}{\mathrm{d} \beta} \left( \frac{1-\beta^a}{1-\beta}\right) =\frac{\beta -\beta^{a+1}}{(1-\beta)^2} - \frac{a\beta^a}{1-\beta}.
Thus, it follows that
Upon plugging back the definition of a and b, this completes the proof of Proposition 5.
The text on this page is from arXiv:2411.07061v1 by Kwangjun Ahn, Gagik Magakyan and Ashok Cutkosky, under the licence CC BY 4.0. The corpus made these changes: it read the items out of the LaTeX source, it expanded the macros of the paper, it put each proof after its statement, and it converted the text to HTML. The formulas are the TeX of the paper, and KaTeX renders them. A formula or a reference can look different from the PDF. The page is published under CC BY 4.0.
The record of each item is in analysis/objects/2411/2411.07061.jsonl.