Swiss Optimization Symposium
University of Basel · * Equal contribution
27 August 2026
2-layer tanh MLP · CIFAR-10 · full-batch GD · MSE · \eta=0.01.
w_{t+1}=w_t-\eta\nabla {\color{#0072B2}{f(w_t)}}.
2-layer tanh MLP · CIFAR-10 · full-batch GD · MSE · \eta=0.01.
w_{t+1}=w_t-\eta\nabla {\color{#0072B2}{f(w_t)}}.
{\color{#D55E00}{\mathcal S(w_t)}} := {\color{#D55E00}{\lambda_{\max}}}\!\left(\nabla^2 f(w_t)\right).
{\color{#D55E00}{\mathcal S(w_t)}} \approx {\color{#171717}{\frac{2}{\eta}}}.
Modern deep learning typically operates at the Edge of Stability.
Cohen et al. (2021), Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability.
f(x)=\frac12 x^\top Hx, \qquad H\succeq0, \qquad \lambda_{\max}(H)=L.
{\color{#0072B2}{ \begin{gathered} 0<\eta<\frac{2}{L}, \\[0.55em] \lambda_{\max}(H)=L<\frac{2}{\eta}, \\[0.55em] f(x_{t+1})<f(x_t), \qquad x_t\longrightarrow0. \end{gathered} }}
{\color{#E69F00}{ \begin{gathered} \eta=\frac{2}{L}, \qquad x_0\parallel v_{\max}, \\[0.55em] \lambda_{\max}(H)=L=\frac{2}{\eta}, \\[0.55em] x_{t+1}=-x_t, \qquad f(x_{t+1})=f(x_t). \end{gathered} }}
{\color{#D55E00}{ \begin{gathered} \eta>\frac{2}{L}, \qquad \langle x_0,v_{\max}\rangle\ne0, \\[0.55em] \lvert1-\eta L\rvert>1, \\[0.55em] \lVert x_t\rVert\longrightarrow\infty, \qquad f(x_t)\longrightarrow\infty. \end{gathered} }}

{\color{#3E7786}{g_t}}:=\nabla f(x_t),\qquad x_{t+1}=x_t-\eta {\color{#3E7786}{g_t}}.
{\color{#56B4E9}{\bar{\lambda}_t}} := \frac{ {\color{#3E7786}{g_t}}^\top \left(2\!\int_0^1(1-\tau)\nabla^2 f(x_t-\tau\eta {\color{#3E7786}{g_t}})\,d\tau\right) {\color{#3E7786}{g_t}} }{\lVert {\color{#3E7786}{g_t}}\rVert^2}
= \frac{2}{\eta} + \frac{2\bigl[f(x_{t+1})-f(x_t)\bigr]} {\eta^2\lVert {\color{#3E7786}{g_t}}\rVert^2}
f\in C^2(\mathbb R^d), \qquad {\color{#78647D}{\Delta_t}} :=x_{t+1}-x_t =-\eta {\color{#3E7786}{g_t}}.
f(x_{t+1})-f(x_t) \overset{\mathrm{Taylor}}{=} {\color{#3E7786}{g_t}}^\top {\color{#78647D}{\Delta_t}} + \int_0^1(1-\tau)\, {\color{#78647D}{\Delta_t}}^\top\nabla^2 f(x_t+\tau {\color{#78647D}{\Delta_t}}){\color{#78647D}{\Delta_t}}\,d\tau.
\begin{aligned} f(x_{t+1})-f(x_t) &= -\eta\lVert {\color{#3E7786}{g_t}}\rVert^2 + \eta^2\!\int_0^1(1-\tau)\, {\color{#3E7786}{g_t}}^\top\nabla^2 f(x_t-\tau\eta {\color{#3E7786}{g_t}}){\color{#3E7786}{g_t}}\,d\tau \\[0.55em] &= -\eta\lVert {\color{#3E7786}{g_t}}\rVert^2 + \frac{\eta^2}{2}\lVert {\color{#3E7786}{g_t}}\rVert^2 {\color{#56B4E9}{\bar{\lambda}_t}}. \end{aligned}
f(x_{t+1})-f(x_t) = -\eta\, \underset{{\color{#3E7786}{\text{gradient energy}}}}{ {\color{#3E7786}{\boxed{\lVert g_t\rVert^2}}}} \qquad \underset{{\color{#557D66}{m_t\;\text{step margin}}}}{ {\color{#557D66}{\boxed{\left(1-\frac{\eta {\color{#56B4E9}{\bar{\lambda}_t}}}{2}\right)}}}}.
-\eta\lVert g_t\rVert^2 \left(1-\frac{\eta{\color{#D55E00}{\lambda_{\max}(H_t)}}}{2}\right)>0, \qquad {\color{#D55E00}{\lambda_{\max}(H_t)}}>{\color{#171717}{\frac{2}{\eta}}} \quad\not\Rightarrow\quad f(x_{t+1})-f(x_t)>0.
\begin{gathered} {\color{#56B4E9}{\bar{\lambda}_t}} = \frac{2}{\eta} + \frac{2\bigl[f(x_{t+1})-f(x_t)\bigr]} {\eta^2\lVert g_t\rVert^2}, \\[0.55em] {\color{#56B4E9}{\bar{\lambda}_t}} > {\color{#171717}{\frac{2}{\eta}}} \quad\Longleftrightarrow\quad f(x_{t+1})-f(x_t)>0. \end{gathered}
\lambda_1(t)\ge\cdots\ge\lambda_k(t) \ge \lambda_{k+1}(t)\ge\cdots\ge\lambda_d(t)
\begin{gathered} P_{\mathrm{dom},t}:=\sum_{i=1}^{k}u_i(t)u_i(t)^\top, \\[0.65em] {\color{#E69F00}{ x_{t+1}^{\mathrm{dom}}=x_t-\eta P_{\mathrm{dom},t}g_t. }} \end{gathered}
\begin{gathered} P_{\mathrm{bulk},t}:=I-P_{\mathrm{dom},t}, \\[0.65em] {\color{#009E73}{ x_{t+1}^{\mathrm{bulk}}=x_t-\eta P_{\mathrm{bulk},t}g_t. }} \end{gathered}
\Phi(w_1,w_2,s)=(1-w_1w_2)^2+\frac{s^2}{2000}.
\eta=0.501 · (w_{1,0},w_{2,0},s_0)=(1,0.95,5) · k=1 · t_\star=25
Dataset CIFAR-10 · 50,000 train Loss MSE Model 2-layer tanh MLP · width 200
full-batch GD · \eta=0.05 · k=10 · t_\star=1000
{\color{#E69F00}{\lambda^\eta_{\mathrm{dom},t}}} > \frac{2}{\eta} \approx {\color{#56B4E9}{\bar\lambda_t}} > {\color{#009E73}{\lambda^\eta_{\mathrm{bulk},t}}} \quad\overset{\mathrm{observed}}{\Longrightarrow}\quad {\color{#E69F00}{f(x_T^{\mathrm{Dom}})}} > {\color{#0072B2}{f(x_T^{\mathrm{GD}})}} > {\color{#009E73}{f(x_T^{\mathrm{Bulk}})}}.
{\color{#557D66}{M^g_{s:T}}} := \frac{ \sum_{t=s}^{T-1}{\color{#3E7786}{\lVert g_t\rVert^2}}{\color{#557D66}{m_t}} }{ \sum_{t=s}^{T-1}{\color{#3E7786}{\lVert g_t\rVert^2}} }
{\color{#557D66}{m_t}} := 1-\frac{\eta {\color{#56B4E9}{\bar{\lambda}_t}}}{2}.
f(x_t)-f(x_{t+1}) = \eta\,{\color{#3E7786}{\lVert g_t\rVert^2}}\,{\color{#557D66}{m_t}}.
\sum_{t=s}^{T-1}\bigl[f(x_t)-f(x_{t+1})\bigr] = \eta\sum_{t=s}^{T-1} {\color{#3E7786}{\lVert g_t\rVert^2}}\,{\color{#557D66}{m_t}}.
f(x_s)-f(x_T) = \eta {\color{#557D66}{M^g_{s:T}}} \sum_{t=s}^{T-1}{\color{#3E7786}{\lVert g_t\rVert^2}}.
\boxed{ f(x_T)<f(x_s) \quad\Longleftrightarrow\quad {\color{#557D66}{M^g_{s:T}}}>0 }
Theorem.
\begin{gathered} f\in C^2(\mathbb R^d),\qquad x_{t+1}=x_t-\eta g_t,\qquad g_t=\nabla f(x_t),\qquad \eta>0,\qquad 0\le s<T. \end{gathered} {\color{#557D66}{m_t}}:=1-\dfrac{\eta{\color{#56B4E9}{\bar\lambda_t}}}{2}, \qquad {\color{#557D66}{M^g_{s:T}}} := \dfrac{\sum_{t=s}^{T-1}{\color{#3E7786}{\lVert g_t\rVert^2}}{\color{#557D66}{m_t}}} {\sum_{t=s}^{T-1}{\color{#3E7786}{\lVert g_t\rVert^2}}}. {\color{#557D66}{M^g_{s:T}}} \ge {\color{#557D66}{\gamma_{\eta,T-s}}}>0.
(iii) Polyak–Łojasiewicz condition.
\begin{gathered} \textbf{Assume}\quad \mu>0,\quad \mathcal X_\star\ne\varnothing,\quad \lVert\nabla f(x)\rVert^2\ge2\mu\bigl(f(x)-f_\star\bigr), \\[0.65em] \textbf{Then} \\[0.15em] \frac1{T-s}\sum_{t=s}^{T-1}\bigl(f(x_t)-f_\star\bigr) \le \frac{f(x_s)-f_\star} {2\mu(T-s){\color{#557D66}{\gamma_{\eta,T-s}}}}. \end{gathered}
F(w_1,w_2):=(y-xw_1w_2)^2,\quad x,y>0,\quad \rho:=\frac yx,\quad w_0=\sqrt{\rho}\,(1,1-h),\quad h\in\left(0,\frac12\right),\quad \eta=\eta_c:=\frac1{2xy}.
{\color{#0072B2}{F_{2n+1}}} < {\color{#0072B2}{F_{2n+2}}} < {\color{#0072B2}{F_{2n}}}, \qquad F_t\longrightarrow0.
\eta_c{\color{#D55E00}{\kappa_{2n}}}<2< \eta_c{\color{#D55E00}{\kappa_{2n+1}}}, \qquad \eta_c{\color{#56B4E9}{\bar\lambda_{2n}}}<2< \eta_c{\color{#56B4E9}{\bar\lambda_{2n+1}}}.
{\color{#557D66}{M^g_{0:T}}} \ge \frac{h^2}{16[1+\log(1+2Th^2)]} = \Omega\!\left(\frac1{\log T}\right).
\lVert\nabla F(w_t)\rVert^2 \ge 2{\color{#78647D}{\mu_h}}F(w_t), \qquad {\color{#78647D}{\mu_h}} := 2xy\!\left[1+(1-h)^2\right].
\frac1T\sum_{t=0}^{T-1}F(w_t) \le \frac{F(w_0)} {2{\color{#78647D}{\mu_h}}\,T\,{\color{#557D66}{M^g_{0:T}}}} = O\!\left(\frac{\log T}{T}\right), \qquad \min_{0\le t<T}\lVert\nabla F(w_t)\rVert^2 = O\!\left(\frac{\log T}{T}\right).
\begin{gathered} r:=w_1w_2-1,\qquad F_{\mathrm{CE}}(w_1,w_2):=\log 2+\log\cosh\!\left(r+\frac13r^3\right),\qquad F_{\mathrm{CE}}^\star=\log2,\\[-0.12em] w_{1,0}=w_{2,0}=\sqrt{1-h},\qquad 0<h\le h_0,\qquad \eta_c=1. \end{gathered}
\eta_c{\color{#56B4E9}{\bar\lambda_{\mathrm{CE},2n}}}<2< \eta_c{\color{#56B4E9}{\bar\lambda_{\mathrm{CE},2n+1}}},\qquad \eta_c{\color{#56B4E9}{\bar\lambda_{\mathrm{CE},t}}}\longrightarrow2.
{\color{#0072B2}{F_{\mathrm{CE},t}-F_{\mathrm{CE}}^\star}} = \Theta_h\!\left(t^{-1/2}\right).
\begin{gathered} {\color{#0072B2}{F_{\mathrm{CE},t}-F_{\mathrm{CE}}^\star}} =\Theta_h\!\left(t^{-1/2}\right),\\[-0.05em] {\color{#557D66}{M^{g,\mathrm{CE}}_{0:T}}} \ge \dfrac{h^4}{1024\!\left[1+\left(\frac85Th^4\right)^{1/2}\right]} =\Omega_h\!\left(T^{-1/2}\right). \end{gathered}
\begin{gathered} r:=w_1w_2-1,\qquad F_{\mathrm{MSE}}(w_1,w_2):=\frac12r^2+\frac14r^4,\qquad F_{\mathrm{MSE}}^\star=0,\\[-0.12em] w_{1,0}=w_{2,0}=\sqrt{1-h},\qquad 0<h\le h_0,\qquad \eta_c=1. \end{gathered}
\eta_c{\color{#56B4E9}{\bar\lambda_{\mathrm{MSE},2n}}}<2< \eta_c{\color{#56B4E9}{\bar\lambda_{\mathrm{MSE},2n+1}}},\qquad \eta_c{\color{#56B4E9}{\bar\lambda_{\mathrm{MSE},t}}}\longrightarrow2.
{\color{#0072B2}{F_{\mathrm{MSE},t}-F_{\mathrm{MSE}}^\star}} = \Theta_h\!\left(t^{-1/3}\right).
\begin{gathered} {\color{#0072B2}{F_{\mathrm{MSE},t}-F_{\mathrm{MSE}}^\star}} =\Theta_h\!\left(t^{-1/3}\right),\\[-0.05em] {\color{#557D66}{M^{g,\mathrm{MSE}}_{0:T}}} \ge \dfrac{h^6}{512\!\left[1+\left(60Th^6\right)^{2/3}\right]} =\Omega_h\!\left(T^{-2/3}\right). \end{gathered}
ViT · CIFAR-10k · full-batch GD · CE and MSE · 10 learning rates · 10–11 seeds / rate
N:=T-s,\qquad {\color{#557D66}{M^g_{s:s+N}}} \gtrsim {\color{#557D66}{cN^{-\widehat\alpha}}},\qquad {\color{#557D66}{\widehat\alpha}}\le\frac12.
\lambda_{\max} does not describe convergence at EoS.
Toy models help us understand the phenomenon.
Despite loss spikes, we find statistically significant evidence of polynomial convergence at EoS.
f_\theta
EoS-friendly, general toy models
\longrightarrow
\mathcal A_{\mathrm{EoS}}
Optimization assumptions that reproduce EoS dynamics
\longrightarrow
\operatorname{rate}(T)
Convergence guarantees
Theorem (continued).
{\color{#557D66}{M^g_{s:T}}} \ge {\color{#557D66}{\gamma_{\eta,T-s}}}>0, \qquad f\ \text{is bounded below}.
(i) General non-convex.
\min_{s\le t<T}\lVert g_t\rVert^2 \le \frac1{T-s}\sum_{t=s}^{T-1}\lVert g_t\rVert^2 \le \frac{f(x_s)-f_\star} {\eta{\color{#557D66}{\gamma_{\eta,T-s}}}(T-s)}.
Theorem (continued).
{\color{#557D66}{M^g_{s:T}}} \ge {\color{#557D66}{\gamma_{\eta,T-s}}}>0.
(ii) Aiming condition.
\begin{gathered} \textbf{Assume}\quad \theta>0,\quad \mathcal X_\star\ne\varnothing,\quad \langle\nabla f(x),x-\operatorname{proj}_{\mathcal X_\star}(x)\rangle \ge\theta\bigl(f(x)-f_\star\bigr), \\[0.65em] \textbf{Then} \\[0.15em] \frac1{T-s}\sum_{t=s}^{T-1}\bigl(f(x_t)-f_\star\bigr) \le \frac{\operatorname{dist}^2(x_s,\mathcal X_\star)}{2\eta\theta(T-s)} +\frac{f(x_s)-f_\star}{2\theta(T-s){\color{#557D66}{\gamma_{\eta,T-s}}}},\\[-0.05em] \min_{s\le t<T}\bigl(f(x_t)-f_\star\bigr) \le \frac{\operatorname{dist}^2(x_s,\mathcal X_\star)}{2\eta\theta(T-s)} +\frac{f(x_s)-f_\star}{\eta\theta(T-s){\color{#557D66}{\gamma_{\eta,T-s}}}}. \end{gathered}
Theorem (continued).
(iv) Blockwise PL.
\begin{gathered} \textbf{Assume}\quad t_0<\cdots<t_K,\quad {\color{#557D66}{M^g_{t_k:t_{k+1}}}} \ge{\color{#557D66}{\gamma_k}}>0,\quad 2\eta\mu{\color{#557D66}{\gamma_k}}\le1, \\[0.85em] \textbf{Then} \\[0.20em] f(x_{t_K})-f_\star \le \bigl(f(x_{t_0})-f_\star\bigr) \prod_{k=0}^{K-1}\bigl(1-2\eta\mu{\color{#557D66}{\gamma_k}}\bigr). \end{gathered}
t_{\mathrm{EoS}}^{(r)} := \inf\!\left\{t:{\color{#56B4E9}{\bar{\lambda}_t^{(r)}}}\ge{\color{#9E4652}{\frac2\eta}}\right\},
s_r := t_{\mathrm{EoS}}^{(r)} + \left\lceil 0.05\bigl(T_r-t_{\mathrm{EoS}}^{(r)}\bigr) \right\rceil.
[s_r,T_r).
5% burn-in for the primary margin window
N:=T-s,\qquad {\color{#557D66}{M^g_{s:T}}} \gtrsim cN^{-\widehat\alpha} \quad\Longrightarrow\quad N{\color{#557D66}{M^g_{s:T}}} \gtrsim cN^{1-\widehat\alpha}.
\widehat\alpha_{\mathrm{median}}\le\frac12 \quad\Longrightarrow\quad \frac1N\sum_{t=s}^{T-1}\lVert g_t\rVert^2 \le \frac{f(x_s)-f_\star} {\eta\,{\color{#557D66}{M^g_{s:T}}}\,N} = O\!\left(N^{-1/2}\right).
M^g_{s_r:s_r+q} \stackrel{?}{\approx} \frac{A}{\log(1+q)}.