Gradient descent reaches arbitrary accuracy in a fixed number of large steps on multiclass logistic regression
Andreea-Alexandra Musat, Nicolas Boumal
Abstract
We show that gradient descent (GD) with step size η can achieve ε optimality gap on the multiclass logistic regression loss in a number of iterations T that is independent of ε. To do so, the step size η must be chosen large enough as a function of ε (and properties of the linearly separable dataset), while T is a constant that only depends on the data. The relevant properties of the data include the number of points and their margin (for T), and one additional quantity (for η) that turns out to be necessary in dimension d≥3. The proofs build on the known fact that, as η→∞, suitably rescaled GD becomes the perceptron algorithm, and the latter finds a perfect classifier in T iterations. A similar claim was shown for two classes in dimension d=2 using other proof techniques.
This result adds to previous works that showed GD on the logistic regression loss can be accelerated by taking large step sizes. Those provoke a wild, oscillatory initial phase, followed by a stable phase. We provide results of this (qualitatively different) nature, too.
1 Introduction
Traditional convex optimization theory prescribes a “small” step size for gradient descent. For an L-smooth convex objective, a step size η<2/L ensures that the loss decreases at every iteration and yields the standard O(1/T) convergence rate in function value.
For logistic regression on linearly separable data, Wu et al. (2024) studied gradient descent (GD) with constant step sizes well above this classical threshold. Although the loss may initially oscillate and the usual descent lemma no longer applies, they showed that GD still converges and, perhaps surprisingly, the loss decays at an O(1/T2) rate, improving on the standard bound. In this setting, the nonmonotonic behavior usually associated with instability can instead improve optimization efficiency.
The analysis of Wu et al. (2024) identifies two phases in the dynamics. The iterates first pass through an unstable region, in which the loss may oscillate, before entering a stable region after τ=O(η) iterations. Once in the stable region, the loss decreases at every iteration. Then, for an iteration budget T, they show that choosing η=Θ(T) yields an accelerated O(1/T2) bound on the final loss. However, since their bound on the transition time τ grows linearly with η, their result suggests that a larger step size may prolong the unstable phase.
In contrast, for logistic regression in two dimensions, Crawshaw and Liu (2026) recently showed that, for sufficiently large step sizes, the number of iterations τ required to enter the stable region is bounded independently of η. In addition, they showed that any target loss value ε can be reached within a fixed number of iterations, independent of ε, by taking η sufficiently large. Thus, higher accuracy is obtained by increasing the step size rather than the number of iterations.
*École Polytechnique Fédérale de Lausanne (EPFL), Institute of Mathematics, {andreea.musat, nicolas.boumal}@epfl.ch.
We show that these phenomena extend to multiclass logistic regression in all dimensions. Specifically, let K≥2 be the number of classes and consider a dataset {(xi,yi)}i=1n, where xi∈Rd and yi∈{1,…,K}. We consider a linear softmax classifier parameterized by W∈RK×d, whose kth row is denoted by wk∈Rd. The associated multiclass cross-entropy loss is
Here, ⟨wk,xi⟩ represents the score of class k for data point xi, and P(W)∈Rn×K is the matrix of row-wise softmax probabilities. Lastly, Y∈Rn×K is the one-hot encoding of the labels, that is,
Yiyi=1,andYik=0forallk=yi.(2)
We assume that the dataset is linearly separable and consider full-batch GD on f with constant step size η>0, whose sequence of iterates {W(t)}t≥0 is generated by the update rule
W(t+1)=W(t)−η∇f(W(t)),
initialized at W(0)=0.
1.1 Main results
We establish two complementary convergence guarantees for multiclass GD with large step sizes. The first gives a two-phase convergence result in which the transition time grows at most linearly with the step size. The second shows that, once the step size is larger than a data-dependent threshold, this dependence disappears and the transition occurs within a fixed number of iterations.
We now introduce the assumptions and notation needed to state these results precisely. Throughout, we define [n]={1,…,n} and we use ⟨⋅,⋅⟩ and ⟨⋅,⋅⟩F for the standard Euclidean inner products on Rd and RK×d, respectively, and ∥⋅∥ and ∥⋅∥F for the associated norms. We assume that the data satisfy the following:
(A1) ∥xi∥≤1 for all i∈[n].
(A2) There exist W∗∈RK×d and γ>0 such that ∥W∗∥F≤1 and
⟨wyi∗,xi⟩≥⟨wk∗,xi⟩+γforalli∈[n]andallk=yi.
The assumptions are standard: (A2) requires the data to be linearly separable with positive margin, while the bounds ∥xi∥≤1 and ∥W∗∥F≤1 merely fix the scale of the problem and are without loss of generality. Note that the margin γ need not be maximal: defining
our results hold for any admissible γ, and in particular with γ=γmax.
Remark 1.1. For K=2, the multiclass problem reduces to binary logistic regression under the identification w=w1−w2, with f(W)=fbin(w), ηbin=2η, and γbin=γmax/2 (see Appendix A).
For GD with step size η, we define the stable region as the set where f(W)<1/(2η), a threshold below which we obtain monotonic descent at every subsequent iteration (Lemma C.3). To quantify when the iterates enter this phase, we introduce the transition time
τ:=inf{t≥0f(W(t))<2η1},
(4) with the convention that inf∅=+∞.
We now state informal versions of our main results, suppressing constants and technical conditions on the step size. The first result extends the two-phase convergence analysis of GD on the logistic regression loss by Wu et al. (2024) from the binary to the multiclass setting. The proof, however, is different: it relies on a multiclass perceptron inequality (Lemma 3.1) and yields a O(1/T2) last-iterate rate, avoiding the additional logarithmic factors in (Wu et al., 2024, Cor. 2). The corresponding quantitative statements are given in Theorem 4.1 and Corollary 4.2.
Theorem 1.2. (informal) Run GD with constant step size η≥2n on f(1), initialized at W(0)=0. As defined, the iterates enter the stable region {W∣f(W)<1/2η} after τ(4) iterations. Then:
(i) (Transition time.) The transition time τ satisfies τ≤O(γ2η+log(ηK)).
(ii) (Loss decrease in the stable region.) For all t>τ, the iterates remain in the stable region and the loss satisfies f(W(t))=O(ηγ2(t−τ)1).
Theorem 1.2 highlights a trade-off: increasing the step size may linearly increase the time required to enter the stable region, but reduces the loss bound once it is there. Balancing these two effects by choosing η in terms of the iteration budget T gives the following accelerated rate for the last iterate.
Corollary 1.3. Assume that the iteration budget satisfies T≳γ2n+logK, and run GD with a suitable constant step size η=Θ(γ2T). Then, the iterates enter the stable region within the first half of the iteration budget, that is, τ≤2T, and the loss at iteration T satisfies f(W(T))=O(γ4T21).
Theorem 1.2 shows that the transition time grows at most linearly with η. In fact, once the step size is sufficiently large, it becomes independent of η (even though the stable region keeps shrinking). For similar reasons (and surprisingly to us), by increasing the step size, we can make the loss arbitrarily small in a number of iterations that is independent of the target loss.
Theorem 1.4. (informal) Fix a dataset {(xi,yi)}i=1n satisfying (A1) and (A2). There exist a constant δ>0 and an iteration count T≤⌊4n/γ2⌋+1 (that depend only on this dataset) such that, if we optimize f in (1) using GD initialized at W(0)=0 with any constant step size η, then
(i) (Transition time.) There exists a threshold ηtr∗=ηtr∗(δ,T,K) such that, if η≥ηtr∗, the iterates enter the stable region in τ≤T iterations.
(ii) ( ε-loss at a fixed iteration T independent of η and ε.) For any ε∈(0,1), there exists a threshold ηε∗=ηε∗(δ,T,K,ε) such that, if η≥ηε∗, then f(W(T))<ε.
For binary logistic regression in two dimensions (K=2,d=2), Crawshaw and Liu (2026) showed a similar result, but with uniform step size thresholds depending only on the coarser dataset parameters n and γ. Specifically, they showed that there exist η0(n,γ) and T(n,γ) such that GD with any step size η≥η0(n,γ) on any dataset with n samples and margin γ enters the stable region after τ≤T(n,γ) iterations. In Theorem 5.2, we further show that such a uniform result does not extend to higher dimensions. This justifies the appearance of a new data-dependent constant such as δ.
Unlike Crawshaw and Liu (2026), whose analysis relies on the region outside the stable one being disconnected (which holds only for d=2), our proof relies on taking η→∞. As already identified by Tyurin (2025) in the binary case, taking η→∞ produces a well-defined limiting dynamical system, namely, a batched multiclass hard perceptron (HP). Using the perceptron inequality (Lemma 3.1), we show that the (HP) dynamics produce a perfect classifier after T≤⌊4n/γ2⌋+1 steps, and subsequently terminates. Then, for every fixed dataset, we quantitatively show that once the step size exceeds a data-dependent threshold, the rescaled GD iterates closely track the corresponding perceptron iterates up to time T. In particular, this implies that the T-th iterate of GD is also a perfect classifier, which ultimately implies a bound on f(W(T)) that decays exponentially in η (Proposition 5.8). This is the key ingredient for both statements of Theorem 1.4.
Remark 1.5. Theorems 1.2 and 1.4 describe different large step size regimes. Corollary 1.3 gives an explicit O(1/T2) guarantee by choosing the step size η as a function of the iteration budget T, whereas Theorem 1.4 shows that, beyond a data-dependent threshold, the transition time itself becomes independent of the step size. Thus, neither result subsumes the other.
1.2 Proof ideas
To analyze gradient descent with large step sizes, we draw on its close resemblance to the perceptron algorithm (Rosenblatt, 1958; Novikoff, 1962). In Section 3, we introduce a general batched perceptron dynamics (GBPD). Using its update rule Z(t+1)=Z(t)+Δ(t) (with Δ(t) specified in Section 3), we bound the progress of the alignment ⟨Z(t),W∗⟩F from below (Lemma 3.3), and the iterate norm ∥Z(t)∥F from above (Lemma 3.4). Both estimates depend on the cumulative average mistake mass up to time t (defined in Eq. (5)). Combining these bounds with the Cauchy–Schwarz inequality gives the main perceptron inequality (Lemma 3.1), which we use for both of our main results.
To study the GD trajectory for large step sizes η and ultimately take the limit η→∞, we must normalize the iterates. We therefore introduce the rescaled variables Z(t)=W(t)/η. After this change of variables, GD takes the form of the soft perceptron dynamics (SPη), an instance of the general system (GBPD). Specializing the main perceptron inequality (Lemma 3.1) to this soft perceptron yields the refined inequality of Lemma 4.3, which bounds the cumulative average mistake mass along the trajectory.
To turn this inequality into a bound on the transition time τ, we adapt the standard perceptron argument (Section 5.1). Instead of evaluating the perceptron inequality at the first perfect classifier iterate, we evaluate it at the first time τ at which the dynamics enters the stable region as in (4). The definition of τ then gives a lower bound on the mistake mass accumulated before time τ, which, combined with the refined perceptron inequality, yields τ=O(η). The remainder of the analysis then follows standard arguments (Wu et al., 2024; Crawshaw and Liu, 2026): once the dynamics enters the stable region, the loss decreases at every subsequent iteration.
For our second result, we study the rescaled dynamics in the limit η→∞. Crucially, this limiting iteration map is well defined: the row-wise softmax becomes a row-wise hardmax that splits mass uniformly among classes with maximal score (Lemma 5.4). The limiting dynamics is a multiclass hard perceptron dynamics (HP), and the standard argument above gives a finite termination time T=O(n/γ2) at which it reaches a perfect classifier.
To transfer this conclusion to GD, we show that the soft perceptron (SP η) shadows the hard perceptron (HP) trajectory up to time T if the step size is large enough. The required step size depends on the smallest positive gap δ between a maximal and a nonmaximal score encountered along the (HP) trajectory (defined in Eq. (21)). This gap is positive because only finitely many iterates and class scores are involved. An induction on t shows that, up to time T, the (SP η) scores remain close to the (HP) ones, which in particular implies that GD also produces a perfect classifier at time T. Additionally, the same argument yields a bound on the loss that decays exponentially in η, giving both the bound on the transition time τ≤T and, after increasing η if necessary, f(W(T))<ε for any prescribed ε>0.
2 Related work
Optimization with large step sizes. Classical analyses of gradient descent typically impose a condition on the step size that guarantees a decrease in the objective at every iteration. Nevertheless, empirical studies have shown that GD can still converge despite this nonmonotonic behavior (Smith and Topin, 2019; Lewkowycz et al., 2020; Cohen et al., 2021). More recent theoretical work has established convergence in several such unstable regions and has proposed mechanisms including progressive sharpening, self-stabilization, and the interaction between successive gradient descent steps (Ahn et al., 2022; Arora et al., 2022; Damian et al., 2022; Chen and Bruna, 2023).
A distinct line of work considers non-constant step size schedules that contain occasional long steps. Although such steps need not decrease the objective individually, their cumulative effect can accelerate gradient descent on smooth convex problems. Examples include fractal step size schedules (Agarwal et al., 2021), long-step schedules (Grimmer, 2024; Grimmer et al., 2025), the silver step size schedule of Altschuler and Parrilo (2025) and schedules involving restarts (Clément and Steinerberger, 2026).
Binary logistic regression with large step sizes. For linearly separable logistic regression, Wu et al. (2023) proved that, for any constant step size, the loss converges to zero and the iterates converge in direction to the maximum-margin separator. Subsequently, Wu et al. (2024) showed that large step sizes can improve the convergence rate: after an initial nonmonotone phase of at most O(η) iterations, gradient descent enters a region in which the loss decreases at each step. In two dimensions, Crawshaw and Liu (2026) showed that, for any η large enough, the length of this initial unstable phase is in fact independent of η. Concurrent works have further refined this picture: Gong and Li (2026) showed that the transition time is upper bounded by an expression polylogarithmic in η, while Wen et al. (2026) showed that a similar polylogarithmic dependence in η is tight in the worst case.
The connection with perceptron dynamics was studied by Tyurin (2025), who showed that, for binary logistic regression, rescaled GD converges to a batch perceptron as the step size tends to infinity, and analyzed the resulting iteration complexity for finding a separating classifier. Extensions to this phenomenon include regularized logistic regression (Wu et al., 2026), local gradient descent on heterogeneous data (Crawshaw et al., 2025), and more general Fenchel–Young losses (Bao et al., 2026). For nonseparable data, however, GD with large step sizes on the logistic regression problem can converge to stable periodic orbits (Meng et al., 2024). A separate line of work considers adaptive or increasing step sizes for separable logistic regression (Axiotis and Sviridenko, 2023; Zhang et al., 2025; Kale et al., 2026).
Multiclass logistic regression with large step sizes. For separable multiclass data, Soudry et al. (2018) and Ravi et al. (2024) showed that, for a sufficiently small fixed step size, the GD iterates converge in direction to the multiclass maximum-margin solution. Emmanouilidis et al. (2026) study multiclass cross-entropy with arbitrary constant step sizes for minibatch SGD. They prove an expected best-iterate convergence guarantee of order O((1+η2)/(γ2ηt)), extending the corresponding binary result for SGD from (Wu et al., 2024, Thm. 4). Additionally, they develop a stochastic notion of stability under which the iterates enter a stable loss sublevel with high probability and subsequently return to it after stochastic excursions. Their bound on the time to first enter the stable region grows linearly with the step size. Our results instead concern deterministic full-batch GD: in the first part, we obtain an explicit O(η/γ2) bound on the transition time, and subsequently show that, for sufficiently large step sizes, there is no dependence on η.
Perceptrons. The perceptron was introduced by Rosenblatt (1958), and its finite convergence on linearly separable data was proved by Novikoff (1962). The standard algorithm is online, while batch variants aggregate the corrections from all currently misclassified examples (Haykin, 2009, §1.6). For multiclass classification, Crammer and Singer (2003) analyzed online perceptron-type algorithms and proved margin-dependent mistake bounds under linear separability.
A connection between large-step GD and batch perceptron dynamics was established by Tyurin (2025) for binary logistic regression: as the step size tends to infinity, the rescaled GD iterates converge to those of a batch perceptron. Our η→∞ dynamics (HP) extends this connection to multiclass cross-entropy. In our case, the limiting dynamics is a full-batch multiclass perceptron that sums the corrections over all training examples, with the correction for each example divided equally among all classes with the largest score. Additionally, we make this connection quantitative for finite step sizes: for sufficiently large η, the GD iterates shadow the multiclass perceptron dynamics up to its termination time. Under suitable conditions on the step size, at this same iteration GD has either entered the stable region or achieved loss below any prescribed ε>0.
In their work showing convergence for GD on Fenchel-Young losses with any step size, Bao et al. (2026) also use a perceptron-type inequality, but for the original GD iterates wt rather than for rescaled iterates. Their lower bound on ⟨wt,w∗⟩ is obtained by recursively expanding the GD update (similar to our Lemma 3.3), and they use the split optimization technique from (Wu et al., 2024) for upper bounding ∥wt∥. In contrast, our proofs do not use this technique: see Lemma 3.4.
3 A general perceptron-like dynamical system
The proofs of our main results build on perceptron-type arguments. To isolate the parts of these arguments that we will reuse later, we first introduce a more general dynamical system.
Let X∈Rn×d be the matrix with rows xi⊤, and Y∈Rn×K the one-hot label matrix as in (2). Consider a map Π:RK×d→Rn×K (which may depend on X) such that for all i∈[n] and k∈[K],
Π(Z)ik≥0andk=1∑KΠ(Z)ik=1.
That is, each row Π(Z)i is a probability vector over the K classes: Π(Z)iyi is the mass assigned to the correct class, while ∑k=yiΠ(Z)ik=1−Π(Z)iyi is the total mass assigned to the other (incorrect) classes. Next, we define the map H:RK×d→Rn×K as
H(Z):=n1(Y−Π(Z)).
The i-th row of H(Z) compares the true label of the i-th data point with the probability vector Π(Z)i. Throughout this section, we study the following general batched perceptron dynamics:
Z(t+1)=Z(t)+H(Z(t))⊤X,Z(0)=0∈RK×d.
(GBPD)
Each update is a linear combination of the data points, weighted by the difference between the true labels Y and the predicted probability vectors Π(Z(t)), hence the connection to the perceptron. Unlike the original online perceptron, which updates using one data point at a time, (GBPD) aggregates the contributions of all data points in each iteration.
For any Z∈RK×d, define the average mistake mass as
Along the trajectory of (GBPD), we write S(t):=S(Z(t)) when convenient.
The next lemma gives the perceptron inequality for this system. We will later apply it for two particular choices of Π. In both cases, after further bounding the second term on the left-hand side, we obtain an upper bound on the cumulative average mistake mass ∑t=0T−1S(Z(t)).
Lemma 3.1. Let (Z(t))t≥0 be the trajectory of (GBPD). Under (A1) and (A2), we have
The rest of this section is devoted to the proof of Lemma 3.1. The argument follows the standard perceptron strategy (Novikoff, 1962): by recursively unrolling the (GBPD) update rule, we first lower bound the inner product of the iterate with the separating matrix W∗ (Lemma 3.3), and then upper bound the growth of ∥Z(T)∥F (Lemma 3.4). The perceptron inequality then follows by combining these two estimates with the Cauchy–Schwarz inequality.
The next lemma shows that each update makes some progress in the direction of W∗.
where we used the notation Π=Π(Z), since there is no risk of confusion. Recall from Eq. (2) that Yik=1 if k=yi and Yik=0 otherwise. Using ∑k=1KΠik=1, we can continue:
where in the third step we applied Jensen's inequality to the function v↦∥v∥2, and in the last one we used (A1). We now relate this quantity to the average mistake mass S(Z(t)) from Eq. (5). To this end, first use that the rows of Y are one-hot encodings for the labels yi, then the fact that the rows of Π(Z(t)) are probability vectors, so that 1−Π(Z(t))iyi=∑k∈[K],k=yiΠ(Z(t))ik. Therefore,
To conclude, unroll this from t=T−1 to t=0 and use Z(0)=0.
The proof of Lemma 3.1 is now immediate.
Proof of Lemma 3.1. By Lemma 3.3, for all T≥1, we have
⟨W∗,Z(T)⟩F≥γKt=0∑T−1S(Z(t)).
Since both sides of the inequality are nonnegative, we can square them. Via Cauchy–Schwarz and using ∥W∗∥F≤1 (from (A2)), we conclude with Lemma 3.4 that
In this section, we prove a quantitative version of Theorem 1.2, with explicit bounds on both the transition time to the stable region, and the value of the loss therein.
Theorem 4.1. Suppose (A1) and (A2) hold. If we optimize f as in (1) using GD initialized at W(0)=0 with constant step size η≥2n, then:
(i) (Transition time.) The transition time to the stable region τ(4) satisfies
τ≤γ28(η+log(4ηe(K−1))).
(ii) (Loss decrease in the stable region.) For all t≥τ, the iterates remain in the stable region and the loss satisfies
f(W(t))≤f(W(τ))1+8ηγ2(t−τ)1.
Choosing the step size in terms of the iteration budget yields an accelerated O(1/T2) rate.
Corollary 4.2. Consider GD with step size η>0 for the multiclass cross-entropy loss (1) under Assumptions (A1) and (A2) and take W(0)=0. Assume the iteration budget satisfies
T≥γ21max{16n,64log(4e(K−1))},
and take η=32γ2T. Then, the transition time (Eq. (4)) satisfies τ≤2T and f(W(T))≤γ4T2512.
To prove these results, we first derive the GD dynamics for the multiclass cross-entropy loss f. In Section 4.1, we show that, after a change of variables, the resulting dynamical system is a general batched perceptron (GBPD), and so we can apply the general results established in the previous section. Combining this with a lower bound on the average mistake mass S(t) in Subsection 4.3 yields the result about the transition time. Then, in Section 4.4, we use a separate descent argument in the stable region to prove the loss rate from the second part of Theorem 4.1, as well as the corollary.
4.1 Rescaled dynamics: the soft perceptron
Fix a step size η>0 and consider the GD iterates W(t) optimizing the loss f as in (1), initialized at W(0)=0. A direct computation (Appendix B) shows that the GD update takes the matrix form
W(t+1)=W(t)+nη(Y−P(W(t)))⊤X.(10)
To apply the general perceptron argument from Section 3, we define the rescaled iterates
Z(t):=η1W(t).
Dividing the GD update (10) by η yields the following update rule for Z(t):
Z(t+1)=Z(t)+n1(Y−P(ηZ(t)))⊤X,Z(0)=0.
(SP η)
We call (SPη) the soft perceptron dynamics. Observe that this corresponds to (GBPD) with
Π(Z)=P(ηZ),andH(Z)=n1(Y−P(ηZ)).
For this choice of Π, the average mistake mass at iteration t is the total softmax probability assigned to the incorrect classes, which we denote by
4.2 Specializing the perceptron bound to the (SPη) dynamics
In this section, we specialize the perceptron-type bound in Lemma 3.1 to the system (SP η). Recall that this bound controls the cumulative average mistake mass S(t) (defined in Eq. (5)). By further controlling the cross term ⟨Z(t),H(Z(t))⊤X⟩F through S(t), we obtain the following result.
Lemma 4.3. Let (Z(t))t≥0 be the trajectory of the soft perceptron dynamics (SPη). Under Assumptions (A1) and (A2), for every T≥1, we have
To obtain this inequality, we combine Lemma 3.1 with the next two results. The first one bounds the cross term from Lemma 3.1 by the average entropy of the softmax probabilities, and the second one further bounds this average entropy in terms of the average mistake mass S(t). Substituting these bounds into the general perceptron-type inequality yields Lemma 4.3.
For a probability vector p=(p1,…,pK), we denote its entropy by Ent(p), defined as
Ent(p):=−k=1∑Kpklogpk.
Lemma 4.4. Let (Z(t))t≥0 be the iterates generated by the soft perceptron dynamics (SPη). Then,
Using that for all i∈[n] the one-hot matrix satisfies Yiyi=1 and Yik=0 for all k=yi, and also using that each row of P is a probability vector, we develop this further
The previous lemma bounds the cross term by the average entropy of the softmax probabilities. We next control this entropy in terms of the average mistake mass S(t).
Lemma 4.5. For every t≥0, the average entropy of the softmax probabilities satisfies
n1i=1∑nEnt(P(ηZ(t))i)≤KS(t)log(KS(t)e(K−1)).
Proof. Let P=P(ηZ(t)). In what follows, we drop the superscript t from all notation. Define
Recall from Eq. (11) that S(Z)=nK1∑i=1n∑k=yiPik=nK1∑i=1nmi. Since h is concave, applying Jensen's inequality we obtain
n1i=1∑nh(mi)≤h(n1i=1∑nmi)=h(KS(Z)).
Thus, plugging this back in Eq. (14) we have shown that
n1i=1∑nEnt(Pi)≤h(KS(Z))+n1i=1∑nmiEnt(P~i).
As P~i is a discrete random variable with K−1 possible outcomes, its entropy is bounded above as Ent(P~i)≤log(K−1), and using again that n1∑i=1nmi=KS(Z), we get
Substituting this bound into the previous inequality and dividing by K gives the result.
4.3 Transition to the stable region
We now prove the first part of Theorem 4.1. The key ingredient is a lower bound on the average mistake mass S(t) while the iterates are in the unstable region. Combined with Lemma 4.3, this yields an upper bound on the length of the unstable phase.
We begin with a general lower bound on the average mistake mass in terms of the loss. The result is the multiclass analogue of Lemma C.1 in (Crawshaw and Liu, 2026), although our proof uses a different argument.
Lemma 4.6. For every Z∈RK×d, the average mistake mass (Eq. (11)) satisfies
S(Z)≥nK1−exp(−nf(ηZ)).
Proof. Let P=P(ηZ), and define li:=−log(Piyi) and mi:=∑k=yiPik. Recall that f(ηZ)=n1∑i=1nli, and so
Since S(Z)=nK1∑i=1n∑k=yiPik=nK1∑i=1nmi, the goal is to relate the above product to the sum ∑i=1nmi. To do this, we use the Weierstrass product inequality, which gives that since mi∈[0,1], ∏i=1n(1−mi)≥1−∑i=1nmi. Thus, we obtain
For all t∈{0,…,T−1}, since T≤τ, from the definition of τ we know that f(W(t))≥2η1. For each such t, Lemma 4.7 gives S(t)≥4Kη1. This implies that log(KS(t)e(K−1))≤log(4e(K−1)η), so plugging this in Eq. (17) we obtain
which contradicts T=⌊τub⌋+1>τub. Therefore, τ≤τub, as claimed in Theorem 4.1, part (i).
4.4 Loss decay in the stable region
This section proves part (ii) of Theorem 4.1, following the argument from the proof of Theorem 2.1 in Crawshaw and Liu (2026).
By definition, W(τ) is in the stable region. By Lemma B.4, it holds that ∇2f(W)⪯2f(W)I for all W. Then, Lemma C.3 gives that the stable region is forward invariant and that, for all t≥τ,
f(W(t+1))−f(W(t))≤−2η∥∇f(W(t))∥F2.
Combining this with Lemma C.2, which gives ∥∇f(W(t))∥F≥2γf(W(t)) in the stable region, gives
f(W(t+1))−f(W(t))≤−8ηγ2f(W(t))2forallt≥τ.
Dividing this by f(W(t))f(W(t+1)) and using f(W(t+1))≤f(W(t)), we obtain
The second part of Theorem 4.1 follows by rearranging.
Finally, Corollary 4.2 follows by taking η=32γ2T. Under the stated assumptions on T, part (i) gives τ≤T/2, and part (ii) then yields f(W(T))≤γ4T2512 (see Appendix C.2 for details).
5 Step-size-independent transition time
The goal of this section is to prove a quantitative version of Theorem 1.4. We do so by comparing the soft perceptron dynamics (SP η) with a dynamical system obtained by taking η→∞. In Section 5.1, we show that this limit is indeed well defined and is given by the following hard perceptron dynamics:
Z~(t+1)=Z~(t)+n1(Y−Q(Z~(t)))⊤X,Z~(0)=0,
(HP)
where Q:RK×d→Rn×K is a row-hardmax operation given by
We call a matrix Z∈RK×d a perfect classifier if, for every training example, the correct class has a strictly larger inner product with the input than every incorrect class:
⟨zyi,xi⟩>⟨zk,xi⟩foralli∈[n]andallk=yi.(19)
If an iterate Z is a perfect classifier, then Q(Z)=Y and so the hard perceptron dynamics terminate. In Lemma 5.5, we show that the hard perceptron dynamics (HP) reach a perfect classifier after
T≤⌊γ24n⌋+1(20)
iterations. This is a batch analogue of the classical convergence guarantees for the online multiclass perceptron (Crammer and Singer, 2003). In Section 5.2, we then show that for sufficiently large η, the soft perceptron trajectory “shadows” the limiting trajectory up to this time. More specifically, the finite- η scores sik(t):=⟨zk(t),xi⟩ remain close enough to the limiting scores s~ik(t):=⟨z~k(t),xi⟩. Define the set of “winner” classes (attaining the largest limiting score) by
Wi(t):=k∈[K]argmaxs~ik(t).
We then define the smallest positive gap between a maximizing and a nonmaximizing class along the first T limiting iterates as
The minimum is taken over a finite, nonempty set of positive values, and therefore δ>0. Moreover, observe that δ is determined entirely by the (HP) trajectory, and therefore depends only on the data X and labels Y. In particular, it is independent of the GD step size η.
Although the shadowing result controls the soft perceptron dynamics only up to time T, choosing a sufficiently large η ensures that, by this time, the iterates have already entered the stable region, despite the fact that the stable sublevel set shrinks as η grows. Alternatively, for any prescribed ε>0, the step size can be chosen so that the loss at time T is at most ε. The following theorem makes these statements precise.
Theorem 5.1. Fix a dataset {(xi,yi)}i=1n satisfying (A1) and (A2). Let T be the termination time of the hard perceptron (HP) on this dataset (well defined by Lemma 5.5), and let δ>0 be the gap defined in (21). Define r:=max{1,T/δ}. If we optimize the loss f as in (1) using GD initialized at W(0)=0 with constant step size η>0, then:
then the transition time τ to the stable region (4) satisfies
τ≤T≤⌊γ24n⌋+1.
(ii) (ε-loss at a fixed iteration T independent of η and ε.) For any ε ∈ (0,1), if
η≥max{2rlog(2rlog(2r)),δ8(K−1),δ2log(εK−1)},
then f(W(T))<ε.
The theorem shows, in particular, that GD can reach ε-loss in a number of iterations that is independent of ε (only the required step size depends on ε).
While the dependence of the step size threshold on n and γ is expected (Crawshaw and Liu, 2026), a natural question is whether the new dependency on δ in Theorem 5.1 is strictly necessary, or if this could be replaced by a uniform threshold depending only on the coarser dataset parameters n and γ. A counterexample shows that this is impossible already in dimension three. Moreover, the same construction shows that the dependence on δ in Theorem 5.1 is essentially sharp.
Theorem 5.2. For every N≥1, there exists ηN>0 such that, for every η≥ηN, there exists a linearly separable dataset Xη with K=2 consisting of three points in R3, each of norm at most 1 and with margin at least 1/26, for which GD initialized at zero with step size η requires more than N iterations to enter the stable region.
Moreover, let δη be the gap (21) of Xη. On the family of datasets Xη:
The hard perceptron dynamics (HP) terminates after T = 1 iteration for all η large enough.
For every fixed c∈(0,1) and large enough η, GD initialized at zero with step size cδη1log(δη2) does not enter the stable region within T=1 iteration.
For every ε∈(0,61) and large enough η, GD initialized at zero with any step size smaller than δη1log(6ε1) does not achieve loss below ε at iteration T=1.
Stated differently: the conditions on η in Theorem 5.1 must involve some property of the dataset X beyond γ and T, already with d=3, n=3 and K=2. We identify δ as such a property, and the second part of Theorem 5.2 shows that if we require GD to enter the stable region by the time the hard perceptron dynamics (HP) terminates, the dependency on δ in Theorem 5.1 is of the correct order. The proof of Theorem 5.2 is postponed to Appendix E.
Remark 5.3. The counterexample in Theorem 5.2 can be modified so that all datasets in the family have the same maximum margin. Let γη be the maximum margin of Xη, and fix a target margin γ0≤γη. Consider the rescaled dataset Xη=sηXη with sη=γ0/γη≤1, which has maximum margin γ0 and preserves the unit norm bound. Under the rescaled step size η=η/sη2≥η, the corresponding GD iterates satisfy W(t)=W(t)/sη, leaving all class scores and loss values along the trajectory unchanged. Since 1/(2η)=sη2/(2η)≤1/(2η), the rescaled trajectory remains outside its stable region for at least as long as the original trajectory, so the same lower bound on the transition time holds.
5.1 The hard perceptron dynamics
In the first part of this section, we show that the hard perceptron dynamics (HP) is obtained by taking the limit η→∞ in the soft perceptron dynamics (SP η).
Lemma 5.4. Consider the (SPη) and (HP) iteration maps given by
Gη(Z)=Z+n1(Y−P(ηZ))⊤XandG∞(Z)=Z+n1(Y−Q(Z))⊤X.
For every Z∈RK×d, it holds that G∞(Z)=limη→∞Gη(Z).
This follows directly from the fact that each row of P(ηZ) converges as η→∞ to the uniform distribution over the maximizers of each score vector, which is Q(Z). We include the proof in Appendix D.
The next lemma shows that the hard perceptron dynamics reaches a perfect classifier in finite time, with an explicit bound on the number of iterations. This is a full-batch multiclass analogue of the classical perceptron convergence theorem (Novikoff, 1962); related multiclass mistake bounds were established by Crammer and Singer (2003).
Lemma 5.5. Under (A1) and (A2), (HP) reaches a perfect classifier (19) in T≤⌊γ24n⌋+1 iterations.
Proof. Observe that the hard perceptron dynamics (HP) is an instance of (GBPD) with H(Z)=n1(Y−Q(Z)), so we can use the results from Section 3. For this system, define the average mistake mass at iteration t as
where we use Q=Q(Z~(t)) here. We argue that the contribution of each data point to the sum is non-positive. Recall that Yik=1 if k=yi and Yik=0 otherwise. Also, from Eq. (18),
Qik=Wi(t)1ifk∈Wi(t),andQik=0otherwise.(25)
By the definition of Wi(t), for every data point xi and every k∈Wi(t), it holds that
⟨z~k(t),xi⟩≥⟨z~yi(t),xi⟩.
Accordingly, for every data point xi, it holds that
This shows that every term in the sum in Eq. (24) is non-positive, and thus
⟨Z~(t),H(Z~(t))⊤X⟩F≤0.
Plugging this back in the perceptron-type inequality from Eq. (23) and rearranging, we obtain
t=0∑T−1S~(t)≤γ2K2,forallT≥1.
We claim that if iterate t is not a perfect classifier, then S~(t)≥2nK1. Combined with the above bound, this shows that the dynamics must terminate in finite time. Let T be the index of the first iterate which is a perfect classifier. Then, the same bound also gives 2nKT≤γ2K2, and so T≤⌊4n/γ2⌋+1, as claimed.
It remains to show that S~(t)≥2nK1 for all iterations t such that there is at least one misclassified point xi0 (that is, Wi0(t)={yi0}). Then
If yi0∈/Wi0(t), then Qi0yi0(Z~(t))=0. Otherwise, Wi0(t)≥2, and hence
Qi0yi0(Z~(t))=Wi0(t)1≤21.
In either case, we obtain S~(t)≥2nK1. This concludes the proof.
5.2 A shadowing property
In the next lemma, we show that when η is sufficiently large, the finite- η trajectory of (SPη) remains close to the limiting trajectory (HP) up to time T. By definition of the termination time, the (HP) dynamics reaches a perfect classifier at time T, with margin at least δ (21). The upcoming shadowing bound implies that the (SPη) dynamics also classifies every data point correctly at time T, with margin at least δ/2.
Recall that the finite- η and limiting scores are given by
sik(t):=⟨zk(t),xi⟩,s~ik(t):=⟨z~k(t),xi⟩.
Lemma 5.6 (Shadowing lemma). Suppose (A1) and (A2) hold. Let T be the termination time of the (HP) dynamics (Lemma 5.5), and let δ>0 be the score gap as defined in Eq. (21). If the step size satisfies η≥max{2rlog(2rlog(2r)),δ8(K−1)}, where r=max{1,T/δ}, then
In the proof of the shadowing lemma, we compare the iterates of (SPη) and (HP). Their iteration maps only differ through the softmax and hardmax terms: the next lemma bounds this difference.
Lemma 5.7. Let η>0 and s,s~∈RK and consider the vectors p=softmax(ηs) and q=hardmax(s~). Define the set of indices W=argmaxl∈{1,…,K}s~l. Then,
∥p−q∥≤2k∈/W∑pk+2η∥s−s~∥.
Proof. Since q=hardmax(s~), by definition of W we have
qk={∣W∣10k∈Wk∈/W.
If W=[K], then q=softmax(ηs~), and the result follows directly since Lip(softmax)≤21 (Lemma D.1). We therefore assume in the remainder that W=[K]. Define m=∑k∈Wpk, and also the following probability vectors
πk={mpk0k∈Wk∈/Wandσk={01−mpkk∈Wk∈/W.
With these definitions, we have p=mπ+(1−m)σ, and so
where in the last step we used that π and σ have disjoint supports, and thus
∥σ−π∥2=∥σ∥2+∥π∥2≤∥σ∥12+∥π∥12=2.
To bound the term ∥π−q∥, observe that both probability vectors are supported only on W. For a vector v∈RK, let vW∈R∣W∣ be the restriction of v to W, indexed by W (that is, (vW)k=vk for k∈W). With this notation, we have
where in the last bound we used that k=l. Thus, if we assume that ω(t)<22δ, then it follows that
ν~ikl(t)−2δ<ν~ikl(t)−2ω(t)≤νikl(t).
Then, since ν~ikl(t)>0, from the definition of δ we have ν~ikl(t)≥δ and so also νikl(t)>2δ. This shows that
ω(t)<22δ⟹νikl(t)>2δ(29)
In particular, if ω(T)<22δ, then since s~iyi(T)−s~ik(T)≥δ for all i∈[n] and k=yi (by definition of δ (21)), we obtain immediately that Wi(T)={yi} and hence that siyi(T)−sik(T)>2δ for all k=yi. Therefore, it suffices to show ω(T)<22δ.
From the definition of the dynamical systems, we have
Let pi(t)=softmax(ηsi(t)) be the i-th row of P(ηZ(t)) and qi(t)=hardmax(s~i(t)) be the i-th row of Q(Z~(t)). By Lemma 5.7, and using Eq. (28), we have
Using this, Eq. (30) and the condition on the step size, we will show inductively that for all 1≤t≤T,
ω(t)≤2(K−1)exp(−η2δ)j=0∑t−1(1+2η)j<22δ.(32)
As a first step, observe that if ω(t)<22δ, then from Eq. (29) we know that for all i∈[n], any k∈/Wi(t) and any l∈Wi(t), it holds that sil(t)−sik(t)>2δ. Therefore, as we can always choose some l∈Wi(t), for all k∈/Wi(t) we have that
which shows the first part. For the second part, we need to show that this is less than 22δ. For this, since we want to show the statement for all 1≤t≤T, it suffices to show that
Using η≥2rlog(2rlog(2r)), Lemma D.2 implies that −η2δ+Tlog(1+2η)<0, so
2(K−1)exp(−η2δ)j=0∑T−1(1+2η)j<η22(K−1).
Since η≥δ8(K−1), this quantity is indeed less than 22δ, as claimed. This concludes the proof.
5.3 Transferring the guarantees back to the finite- η dynamics
The shadowing lemma immediately gives an exponential bound on the loss at time T. This is the key step in deriving the main theorem from the finite-time termination of the hard perceptron dynamics.
Proposition 5.8. Under the setting of Lemma 5.6, if GD is initialized at W(0)=0, then
f(W(T))<(K−1)e−2ηδ.
Proof. For all i∈[n], Lemma 5.6 gives
⟨zyi(T),xi⟩≥⟨zk(T),xi⟩+2δforallk=yi.
Going back to the original variable wk(T)=ηzk(T), we obtain
⟨wyi(T)−wk(T),xi⟩≥2ηδforallk=yi.
This implies that exp(⟨wk(T)−wyi(T),xi⟩)≤exp(−2ηδ) for all k=yi, and so by Eq. (1), the softmax probabilities associated to the correct class satisfy
We now use Proposition 5.8 to prove Theorem 5.1. Accordingly, choosing η so that this bound is less than 1/(2η) gives τ≤T, while choosing it so that the bound is less than ε gives f(W(T))≤ε.
Proof of Theorem 5.1, part (i). The first two conditions on the step size ensure that we can apply Proposition 5.8, and we obtain f(W(T))<(K−1)exp(−2ηδ). Then, to show that τ≤T, it suffices to show that under the third assumption on the step size it holds that (K−1)exp(−2ηδ)<2η1, which is equivalent to showing log(2η(K−1))<2ηδ.
Let x=2ηδ and observe that the condition η≥δ4logδ4(K−1) implies that x≥2logδ4(K−1). Using this together with log(β)<2β for any β>0 we obtain
Proof of Theorem 5.1, part (ii). Again, the first two conditions on the step size ensure that f(W(T))<(K−1)exp(−2ηδ). Then, observe that the condition η≥δ2logεK−1 implies immediately that (K−1)exp(−2ηδ)≤ε, which shows indeed that f(W(T))<ε.
Acknowledgements
We thank Pierre Marion for early discussions about acceleration by large step sizes for binary logistic regression, and Guillaume Wang and Christopher Criscitiello for further helpful conversations. AAM thanks Pontus Giselsson and the organizers for the invitation to the ELLIIT Focus Period on Optimization for Learning at Lund University. AAM is grateful to Michael Crawshaw for insightful discussions on the step-size-independent transition time of binary logistic regression in Lund, which led to the multiclass setting considered here.
We used ChatGPT (August 2026) to sharpen several estimates in our proofs. The tool also produced the counterexample in Appendix E, which we subsequently verified, decomposed, and presented ourselves.
References
N. Agarwal, S. Goel, and C. Zhang. Acceleration via fractal learning rate schedules. In International Conference on Machine Learning, pages 87–99. PMLR, 2021.
K. Ahn, J. Zhang, and S. Sra. Understanding the unstable convergence of gradient descent. In International conference on machine learning, pages 247–257. PMLR, 2022.
J. M. Altschuler and P. A. Parrilo. Acceleration by stepsize hedging: Multi-step descent and the silver stepsize schedule. Journal of the ACM, 72(2):1–38, 2025.
S. Arora, Z. Li, and A. Panigrahi. Understanding gradient descent on the edge of stability in deep learning. In International Conference on Machine Learning, pages 948–1024. PMLR, 2022.
K. Axiotis and M. Sviridenko. Gradient descent converges linearly for logistic regression on separable data. In International Conference on Machine Learning, pages 1302–1319. PMLR, 2023.
H. Bao, S. Sakaue, and Y. Takezawa. Any-stepsize gradient descent for separable data under fenchel-young losses. Advances in Neural Information Processing Systems, 38:73246–73289, 2026.
L. Chen and J. Bruna. Beyond the edge of stability via two-step gradient updates. In International Conference on Machine Learning, pages 4330–4391. PMLR, 2023.
F. Clément and S. Steinerberger. Gradient descent with exponentially increasing stepsizes and restarts. arXiv preprint arXiv:2607.06314, 2026.
J. M. Cohen, S. Kaur, Y. Li, J. Z. Kolter, and A. Talwalkar. Gradient descent on neural networks typically occurs at the edge of stability. arXiv preprint arXiv:2103.00065, 2021.
K. Crammer and Y. Singer. Ultraconservative online algorithms for multiclass problems. Journal of Machine Learning Research, 3(Jan):951–991, 2003.
M. Crawshaw and M. Liu. Tight bounds for logistic regression with large stepsize gradient descent in low dimension. In Proceedings of the Thirty-Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 1575–1610. PMLR, 2026.
M. Crawshaw, B. Woodworth, and M. Liu. Constant stepsize local gd for logistic regression: Acceleration by instability. arXiv preprint arXiv:2506.13974, 2025.
A. Damian, E. Nichani, and J. D. Lee. Self-stabilization: The implicit bias of gradient descent at the edge of stability. arXiv preprint arXiv:2209.15594, 2022.
K. Emmanouilidis, L. MacDonald, S. Tarmoun, and R. Vidal. Sgd at the edge of stability: Stochastic stabilization with large learning rates. arXiv preprint arXiv:2606.30930, 2026.
X. Gong and A. Li. Improved convergence of large stepsize gradient descent for logistic regression. arXiv preprint arXiv:2610.06675, 2026.
B. Grimmer. Provably faster gradient descent via long steps. SIAM Journal on Optimization, 34(3): 2588–2608, 2024.
B. Grimmer, K. Shu, and A. L. Wang. Accelerated objective gap and gradient norm convergence for gradient descent via long steps. INFORMS Journal on Optimization, 7(2):156–169, 2025.
S. Haykin. Neural networks and learning machines, Third Edition. Pearson Education, 2009.
S. Kale, P. Manupriya, P. Marion, F. Bach, and A. Raj. Stretched exponential convergence of (stochastic) gradient descent for separable logistic regression. Transactions on Machine Learning Research, 2026.
A. Lewkowycz, Y. Bahri, E. Dyer, J. Sohl-Dickstein, and G. Gur-Ari. The large learning rate phase of deep learning: the catapult mechanism. arXiv preprint arXiv:2003.02218, 2020.
S. Y. Meng, A. Orvieto, D. Y. Cao, and C. De Sa. Gradient descent on logistic regression with non-separable data and large step sizes. arXiv preprint arXiv:2406.05033, 2024.
A. B. Novikoff. On convergence proofs on perceptrons. In Proceedings of the Symposium on the Mathematical Theory of Automata, pages 615–622, 1962.
H. Ravi, C. Scott, D. Soudry, and Y. Wang. The implicit bias of gradient descent on separable multiclass data. Advances in neural information processing systems, 37:81324–81359, 2024.
F. Rosenblatt. The perceptron: a probabilistic model for information storage and organization in the brain. Psychological review, 65(6):386, 1958.
L. N. Smith and N. Topin. Super-convergence: Very fast training of neural networks using large learning rates. In Artificial intelligence and machine learning for multi-domain operations applications, volume 11006, pages 369–386. SPIE, 2019.
D. Soudry, E. Hoffer, M. S. Nacson, S. Gunasekar, and N. Srebro. The implicit bias of gradient descent on separable data. Journal of Machine Learning Research, 19(70):1–57, 2018.
A. Tyurin. From logistic regression to the perceptron algorithm: Exploring gradient descent with large step sizes. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 20938–20946, 2025.
H. Wen, K. Wen, and J. Teng. Tight transition time bounds for separable logistic regression at the edge of stability. arXiv preprint arXiv:2610.01459, 2026.
J. Wu, V. Braverman, and J. D. Lee. Implicit bias of gradient descent for logistic regression at the edge of stability. Advances in Neural Information Processing Systems, 36:74229–74256, 2023.
J. Wu, P. L. Bartlett, M. Telgarsky, and B. Yu. Large stepsize gradient descent for logistic loss: Non-monotonicity of the loss improves optimization efficiency. In The Thirty Seventh Annual Conference on Learning Theory, pages 5019–5073. PMLR, 2024.
J. Wu, P. Marion, and P. Bartlett. Large stepsizes accelerate gradient descent for regularized logistic regression. Advances in Neural Information Processing Systems, 38:104485–104525, 2026.
R. Zhang, J. Wu, and P. Bartlett. Gradient descent converges arbitrarily fast for logistic regression via large and adaptive stepsizes. In Forty-second International Conference on Machine Learning, 2025.
A Equivalence to logistic regression when K = 2
Consider a binary classification dataset {(xi,yi)}i=1n, where xi∈Rd and yi∈{−1,1}. For v∈Rd, define the binary logistic loss
fbin(v):=n1i=1∑nlog(1+exp(−yi⟨v,xi⟩)).(35)
The corresponding maximum margin is γbin:=max∥v∥≤1mini∈[n]yi⟨v,xi⟩.
For the multiclass problem (1) with K=2, we associate to each label yi∈{1,2} the binary label yi=1 if yi=1 and yi=−1 if yi=2. We denote by γ the multiclass maximum margin from Eq. (3).
Proposition A.1. Let w1,w2 be the rows of W∈R2×d. GD on the multiclass cross-entropy loss (1) with K=2 is equivalent to GD on the binary logistic regression loss (35) under the identifications
v=w1−w2f(W)=fbin(v),ηbin=2η,γbin=2γ.
Moreover, if multiclass GD is initialized at W(0)=0 and we define vt=w1(t)−w2(t), then
w1(t)=2vt,w2(t)=−2vt
for all t≥0, and (vt)t≥0 is the binary logistic GD trajectory with step size ηbin=2η.
Proof. We first show the equivalence of the losses. For K = 2, we have
We next compare the two maximum margins. For any W∈R2×d,
∥w1−w2∥2=2(∥w1∥2+∥w2∥2)−∥w1+w2∥2≤2∥W∥F2.
Thus, ∥W∥F≤1 implies ∥w1−w2∥≤2. Conversely, for any v∈Rd such that ∥v∥≤2, the choice w1=2v, w2=−2v satisfies w1−w2=v and ∥W∥F2=21∥v∥2≤1, so
{w1−w2∣∥W∥F≤1}={v∈Rd∥v∥≤2}.
For K=2, the margin of example i is yi⟨w1−w2,xi⟩. It follows from the previous identity and the definition of γbin that
so we need to compute ∇wjP(W)iyi first. Taking k=yi in Lemma B.1, we obtain
∇wjP(W)iyi=(Yij−P(W)ij)P(W)iyixi.
Plugging this back in Eq. (37), we get
∇wjf(W)=−n1i=1∑n(Yij−P(W)ij)xi.
The result follows by stacking these identities for j∈[K].
Lemma B.3. Let ΔK−1 denote the standard simplex. Then, for all p∈ΔK−1,
0⪯diag(p)−pp⊤⪯2i∈[K]maxpi(1−pi)I.(38)
Proof. Observe that the diagonal elements of diag(p)−pp⊤ are pi(1−pi), while for each row i, the sum of the absolute values of the off-diagonal elements is ∑j=ipipj=pi(1−pi). By the Gershgorin circle theorem, each eigenvalue of diag(p)−pp⊤ lies in at least one interval of the form [0,2pi(1−pi)]. □
We next establish that the Hessian of f is upper bounded in terms of the loss. A proof of this bound also appears in (Emmanouilidis et al., 2026, Lem. C.3); we include the proof for completeness.
Lemma B.4. Under (A1), the loss function f in Eq. (1) satisfies
∇2f(W)⪯2f(W)I
Proof. In the proof of Lemma B.2, for each j∈[K] we obtained
∇wjf(W)=−n1i=1∑n(Yij−P(W)ij)xi.
Using Lemma B.1, it follows that, for every j,k∈[K],
Since this holds for every U∈RK×d, we conclude that ∇2f(W)⪯2f(W)I.
C Additional proofs for Section 4
This section contains the auxiliary results used in Section 4, as well as the proof of Corollary 4.2.
C.1 Loss decay in the stable region
We first relate the average mistake mass (Eq. (5)) to the loss in the stable region.
Lemma C.1. Assume that f(W)<2η1 and η≥2n. Then, S(η1W)≥2Kf(W).
Proof. Apply Lemma 4.6 to obtain S(η1W)≥nK1(1−exp(−nf(W))). Then, since f(W)<2η1 and η≥2n, we have f(W)<n1. Using 1−exp(−x)≥2x for all x∈[0,1], we obtain
S(η1W)≥nK1(1−exp(−nf(W)))≥2Kf(W),
as claimed.
The next result shows that, in the stable region, the gradient norm is bounded below by a constant multiple of the loss. A binary counterpart (under an alternative assumption) is given in (Crawshaw and Liu, 2026, Lem. C.5).
Lemma C.2. Under Assumption (A2), if f(W)<2η1 and η≥2n, then ∥∇f(W)∥F≥2γf(W).
Proof. Recall that Z=η1W and that the soft perceptron dynamics (SPη) is a special case of the general batched perceptron dynamics (GBPD), with Π(Z)=P(ηZ). Hence, Lemma 3.2 gives
⟨W∗,H(Z)⊤X⟩F≥γKS(η1W).(40)
By Lemma B.2,
−∇f(W)=n1(Y−P(W))⊤X=H(Z)⊤X,
where we used W=ηZ. Therefore, Cauchy–Schwarz on the left-hand side of Eq. (40) gives
∥∇f(W)∥F≥⟨W∗,−∇f(W)⟩F≥γKS(η1W),
where we also used ∥W∗∥F≤1 from Assumption (A2).
Then, since f(W)<2η1 and η≥2n, conclude with Lemma C.1, which gives S(η1W)≥2Kf(W).
The following lemma shows that the stable region is forward invariant and establishes the descent inequality used in Subsection 4.4.
Lemma C.3. Consider a twice continuously differentiable convex f:RK×d→R satisfying ∇2f(W)⪯2f(W)I for all W. Let η>0, and define the strict sublevel set Sη={W∈RK×d∣f(W)<2η1}. If W∈Sη, then
f(W−η∇f(W))−f(W)≤−2η∥∇f(W)∥F2.
In particular, this shows that W∈Sη implies W+:=W−η∇f(W)∈Sη, so the sublevel set is forward invariant under GD with step size η.
Proof. Since f is convex, the sublevel set Sη is a convex set. Furthermore, convexity gives 0⪯∇2f(V) for all V and since ∇2f(V)⪯2f(V)I for all V, it follows that ∇f is 1/η-Lipschitz on Sη.
Now, fix W∈Sη, and consider the straight curve C(t)=W−tη∇f(W) with C(0)=W∈Sη and C(1)=W+. Let I be the connected component of C−1(Sη) containing 0. Since Sη is open and C is continuous, every connected component of C−1(Sη) is an open interval, so I is also an open interval. We want to show that I contains [0,1], so that W+∈Sη. Let tˉ=supI and assume for contradiction that tˉ≤1. Since C(t)∈Sη for all t∈[0,tˉ) and ∇f is η1-Lipschitz on Sη, for t∈[0,tˉ) we have that
Since 0≤t<tˉ≤1, this shows that f(C(t))≤f(W)<2η1 for all t∈[0,tˉ). However, by continuity, it also holds that f(C(tˉ))≤f(W)<2η1, which implies that C(tˉ)∈Sη. Thus, tˉ∈I, and since I is open, it follows that supI>tˉ, a contradiction. Therefore, it must be that tˉ>1, which shows that W+=C(1)∈Sη. The conclusion then follows from the descent inequality from Eq. (41) at t=1. □
C.2 Proof of Corollary 4.2
Proof. First, observe that since T≥γ216n, we have η=32γ2T≥2n. Thus, from the first part of Theorem 4.1, we have
τ≤γ28(η+log(4e(K−1)η)).(42)
We want to show that the right-hand side is less than 2T. Observe that the second assumption on T implies η=32γ2T≥2log(4e(K−1)), so
where in the last step we used log(x)≤2x. Therefore, substituting η=32γ2T in Eq. (42) gives
τ≤γ216η=2T.
This establishes the first claim.
We now show the O(1/T2) claim. From part (ii) of Theorem 4.1 applied at T>τ, we have
f(W(T))≤(T−τ)8ηγ2+f(W(τ))11≤(T−τ)ηγ28.
Since we showed τ≤2T and using again η=32γ2T, we obtain
f(W(T))≤Tηγ216=γ4T2512,
as claimed.
D Additional results for Section 5
Proof of Lemma 5.4. It suffices to show that P(ηZ)→Q(Z) as η→∞. For each i∈[n], define the score si:=Zxi∈RK. Since P(ηZ) is a row-softmax matrix (Eq. (1)),
Therefore, if for fixed i and k, there exists an index j such that sij−sik>0, the denominator in Eq. (43) diverges to ∞ and thus limη→∞P(ηZ)ik=0. That is, if the score sik is not maximal among the elements of si, then the corresponding limit is probability 0. Otherwise, sik must be the maximal score, and each index j∈{1,…,K} with equal score sij=sik contributes 1 to the sum in the denominator. Therefore, taking the limit η→∞ in Eq. (43) we obtain the inverse of the count of maximal scores. Combining these two cases, we obtain indeed that limη→∞P(ηZ)=Q(Z).
Lemma D.1. The softmax map is 21-Lipschitz with respect to the Euclidean norm. That is,
∀v,v~∈RK,∥softmax(v)−softmax(v~)∥≤21∥v−v~∥.
Proof. Let P(v)=softmax(v)∈RK be the vector containing the softmax probabilities. The gradient of each component is ∇vjP(v)k=(1{k=j}−P(v)j)P(v)k, and so
By Lemma B.3, we have ∥diag(p)−pp⊤∥≤2maxi∈[K]pi(1−pi). However, since pi(1−pi)≤41 for pi∈[0,1], we conclude that Lip(softmax)≤21.
Lemma D.2. Let T,δ,η>0, and set r:=δT. Assume that either r≤1, or that r>1 and η≥2rlog(2rlog(2r)). Then, it holds that −2ηδ+Tlog(1+2η)<0.
Proof of Lemma D.2. Suppose first that r≤1. Since log(1+u)<u for every u>0, we obtain
log(1+2η)<2η≤2rη.
Using T=rδ, it follows that
Tlog(1+2η)<rδ2rη=2ηδ.
This proves the claim when r≤1. Suppose now that r>1, and define
x:=2rη,L:=log(2rlog(2r)),q(z):=ez−1−rz.
With this notation, observe that the inequality we need to prove is
log(1+rx)=log(1+2η)<2Tηδ=2rη=x,
or exponentiating both sides, 1+rx<ex, which is equivalent to q(x)>0. We do this by first showing that q(L)>0, then showing that x≥L and that q is increasing on [L,∞).
To see that q(L)>0, observe that
q(L)=eL−1−rL=2rlog(2r)−1−rL,
Since log(u)≤u−1 for u>0, taking u=log(2r), gives loglog(2r)≤log(2r)−1. This implies that
which shows that q(L)>0. Additionally, for every z≥L,
q′(z)=ez−r≥eL−r=r(2log(2r)−1)>0,
where the last inequality follows from r>1. Thus q is strictly increasing on [L,∞). The assumption on η implies x=2rη≥L, and so it follows that q(x)≥q(L)>0. As argued before, this implies the claimed inequality.
E A counterexample to uniform transition time bounds in d=3
For the counterexample, it is convenient to work with the binary logistic formulation, since it involves a single parameter vector. Let {(xi,yi)}i=1n be a linearly separable binary classification dataset, with xi∈Rd and yi∈{−1,1}, meaning that there exist w∗∈Rd and γ>0 such that
When K=2, the multiclass formulation is equivalent to binary logistic regression under the identification w=w1−w2, with f(W)=fbin(w) and ηbin=2η (see Appendix A), so the stable-region condition f(W)<2η1 becomes fbin(w)<ηbin1. Similarly, the rows of the K=2 hard perceptron iterate (HP) at time t are zt∞ and −zt∞, and the multiclass gap (21) satisfies δ=2δbin. (In particular, the two perceptron dynamics have the same termination time). Writing η for ηbin below for notational convenience, to prove Theorem 5.2 it suffices to show the following result for binary logistic regression.
Theorem E.1. For every N≥1, there exists ηN>0 such that, for every η≥ηN, there exists a linearly separable dataset Xη of three points in R3, each of norm at most 1 and with margin at least 1/(213), for which GD initialized at zero with step size η requires more than N iterations to enter the stable region.
Moreover, let δη:=δbin(Xη) be the binary gap (46) of Xη. On the family of datasets Xη:
(C1) The hard binary perceptron dynamics (45) terminates after T = 1 iteration if η is large enough.
(C2) For every fixed c∈(0,1) and large enough η, GD initialized at zero with step size cδη1log(δη1) does not enter the stable region within T=1 iteration.
(C3) For every ε∈(0,61) and large enough η, GD initialized at zero with step size smaller than δη1log(6ε1) does not achieve loss below ε at iteration T=1.
The counterexample is obtained in two stages. We first construct a two-dimensional example with two points for which, from a suitable η-dependent initialization, the rescaled GD dynamics have a large- η limit whose rescaled loss remains bounded away from zero. We then embed the construction in three dimensions and add a third, η-dependent point so that one GD step from w0(η)=0 produces the required initialization in the first two coordinates. The third point is chosen to be well classified after this step, so that its subsequent contribution vanishes as η→∞. Then, from the second iterate onward, the three-dimensional dynamics recover the limiting behavior of the two-dimensional construction.
Let q(z):=−ℓ′(z)=1+exp(z)1. GD with step size η>0 then has the update rule
wt+1=wt+nηi=1∑nq(yi⟨wt,xi⟩)yixi.(47)
We prove Theorem E.1 through the sequence of auxiliary lemmas below.
E.1 An auxiliary two-dimensional construction with η-dependent initialization
We begin with the two-dimensional dataset consisting of the points
x+=(a,b),x−=(a,−b),(48)
both with label y+=y−=1, where suitable values for the parameters a,b>0 will be chosen later. The scores of these two points are
For consistency with the construction with three points in R3 later, we use the 1/3 normalization for this auxiliary two-dimensional dynamics. Thus, we consider the auxiliary update
wt+1(η)=wt(η)+3η(q+,t(η)x++q−,t(η)x−),(51)
where we defined q+,t(η) and q−,t(η) as the logistic weights for x+ and x−, that is,
In the counterexample, we want to keep the loss value above the 1/η threshold for a certain number of iterations. The following lemma shows that if a score is roughly logη, then its contribution to the loss is on the order of 1/η. By contrast, the contribution of points with scores much larger than logη vanishes asymptotically.
Lemma E.2. Let m(η)=logη+r(η). Then, as η→∞:
If r(η)→∞, then ηℓ(m(η))→0.
If r(η)→c, then ηℓ(m(η))→e−c.
Proof. Since log(1+z)≤z for all z≥0, we have ℓ(z)≤exp(−z). At the same time, the logistic loss has the self-boundedness property q(z)≤ℓ(z). This holds since 1+zz≤log(1+z) for all z≥0. Thus,
Then, we obtain convergence of the corresponding trajectories over any fixed number of steps.
Lemma E.4. For every fixed t≥0, it holds that limη→∞(ξt(η),vt(η))=(ξ~t,v~t).
Proof. We argue by induction on t. The claim is immediate at t=0 since the two systems start from the same initial point. Now, fix t≥0 and suppose that (ξt(η),vt(η))→(ξ~t,v~t). By the explicit form of Φη, it follows that Φη(ξt(η),vt(η))→Φ~(ξ~t,v~t). Therefore, (ξt+1(η),vt+1(η))→(ξ~t+1,v~t+1), which completes the induction.
We next characterize the limiting behavior of the rescaled loss and derive the corresponding dynamics in the (ρ,v) variables.
Lemma E.5. For every fixed t, the rescaled loss ρt(η) (Eq. (52)) has a limit as η→∞:
ρt(η)→ρ~t:=32e−ξ~tcosh(v~t).
Moreover, the limiting variables (ρ~t,v~t) satisfy
We next characterize a forward invariant region for the (ρ~t,v~t) dynamics.
Lemma E.6. If b>a, there exist v~∗>0,c>0 and R>0 such that the region
R={(ρ~,v~)∣ρ~≥R,v~∗≤∣v~∣≤cρ~}
is invariant under the limiting dynamical system in Eq. (54). Specifically, it suffices to pick v~∗ large enough such that tanh(v~∗)>a2/b2, take c=(b2tanh(v~∗)−a2)/4 and R>0 large enough such that
Proof. Let (ρ~,v~):=(ρ~t,v~t)∈R. We want to show that (ρ~+,v~+):=(ρ~t+1,v~t+1)∈R, too. Let s~=∣v~∣ and s~+=∣v~+∣, and observe that since cosh(⋅) is even and tanh(⋅) is odd, the dynamics becomes
We claim that by the choice of c, it holds that b2tanh(v~∗)>c. Indeed,
b2tanh(v~∗)−c=43b2tanh(v~∗)+a2>0.
Since (ρ~,v~) belongs to R, we have s~≥v~∗ and so b2tanh(s~)≥b2tanh(v~∗)>c by the previous inequality. This shows that b2ρ~tanh(s~)>cρ~≥∣v~∣=s~ (again since the initial point belongs to R), and so
Therefore, since ρ~≥R, in order to show s~+∈[v~∗,cρ~+], it suffices to impose that
R(b2tanh(v~∗)−c)≥v~∗,andb2ρ~≤cρ~+.(56)
We already require R large enough so that the first condition is satisfied. We show that the conditions we imposed also imply that the second condition is satisfied. Using 21ex≤cosh(x)≤ex for all x>0, we obtain
where the third step follows from expression for s~+ from Eq. (55), and the last step uses s~∈[v~∗,cρ~] and ρ~≥R. By the choices of c and v~∗, we have
−a2+b2tanh(v~∗)−2c=2b2tanh(v~∗)−a2>0,
so we can make the right-hand side of Eq. (57) larger by taking a larger R. Given the second condition we impose on R, we obtain both ρ~ρ~+≥cb2, which by Eq. (56) suffices to obtain s~+∈[v~∗,cρ~+], as well as ρ~+≥ρ~≥R, which is the only condition that ρ~+ must satisfy to conclude that (ρ~+,s~+)∈R.
We now choose concrete values of a and b and initialize the limiting dynamics inside the invariant region.
Lemma E.7. Take a=41 and b=21, and initialize Eq. (54) at (ρ~0,v~0)=(80,log(2)). Then,
Proof. First, we use the conditions in Lemma E.6 to pick the constants for defining the invariant region R for the specific choices of b and a. Since a2/b2=1/4, it suffices to have v~∗>tanh−1(41), so we choose v~∗=log(2). This gives c=(b2tanh(v~∗)−a2)/4=7/320. It remains to pick R>0 so that
so we choose R=72. This gives the region R={(ρ~,v~)∣ρ~≥72,∣v~∣∈[log(2),3207ρ~]}. Since (ρ~0,v~0)=(80,log(2))∈R, Lemma E.6 implies that (ρ~t,v~t)∈R for all t≥0.
We now choose the initialization of the finite- η dynamics so that the corresponding limiting dynamics in Eq. (54) starts from (ρ~0,v~0)=(80,log(2)). Since ρ~0=32e−ξ~0cosh(v~0) (by Lemma E.5), we obtain ξ~0=−log(96). Thus, using the definitions in Eq. (49), we choose
w0(η)=(4log96η,2log(2)),
so that (ξ0(η),v0(η))=(ξ~0,v~0).
E.2 A three-dimensional construction from zero initialization
With a=41, b=21, consider now the dataset consisting of three points
with y1=y2=y3=1. Just as in the two-dimensional construction, define
ξt(η)=41wt,1(η)−logη,andvt(η)=21wt,2(η),
and the rescaled loss ρt(η)=ηfbin(wt(η)). We first identify the limiting behavior of (ξt(η),vt(η)) as η→∞, which matches the limiting two-dimensional dynamics (ξ~t,v~t) (with a one-step delay). We also show that the score of the third point remains of order η, so that its contribution to both the GD update and the rescaled loss vanishes as η→∞.
Lemma E.8. Let wt(η) denote the GD iterates on the dataset in Eq. (58), starting from w0(η)=0. Let (ξ~t,v~t) denote the limiting system from the two-dimensional construction (Eq. (53)), initialized at
Proof. Since w0(η)=0, we have q(⟨w0(η),xi⟩)=21 for all i∈{1,2,3} and using the GD update rule wt+1(η)=wt(η)+3η∑i=13q(⟨wt(η),xi⟩)xi, we immediately have
Now, assume that the conditions in Eq. (59) hold at some fixed t. We will show that they also hold at t+1. First, recall that the GD update on fbin is
Additionally, by the second part of the induction hypothesis,
⟨wt(η),x3,η⟩−logη=24η+O(logη)−logη→+∞.
Thus, Lemma E.2 gives ηℓ(⟨wt(η),x3,η⟩)→0. Since q(z)≤ℓ(z), it follows that ηq3(η)→0. Using these limits together with the update rules from Eq. (61), we obtain
where again in the last step we used Eq. (53) with b=21. Therefore,
η→∞lim(ξt+1(η),vt+1(η))=(ξ~t,v~t),
which proves the first condition in Eq. (59) at time t+1. It remains to prove the second condition at time t+1. Taking the inner product of the GD update with x3,η, we have
Since ηq+,t(η) and ηq−,t(η) converge by Eq. (63), while ηq3(η)→0, from Eq. (64), it follows that
⟨wt+1(η),x3,η⟩=⟨wt(η),x3,η⟩+O(1).
Using the second part of the induction hypothesis, we conclude that
⟨wt+1(η),x3,η⟩=24η+O(logη)+O(1)=24η+O(logη).
Thus, both conditions in Eq. (59) hold at time t+1, which completes the induction.
The preceding result gives the required lower bound on the loss over any fixed number of iterations.
Lemma E.9. Let wt(η) denote the GD iterates on the dataset in Eq. (58), starting from w0(η)=0. Then, for every N≥1, there exists ηN>0 such that for all η≥ηN,
fbin(wt(η))>η1forall0≤t≤N.
Proof. We first use Lemma E.8 to control the rescaled loss. For every fixed t≥1,
By Lemma E.7, we have ρ~t≥72 for all t≥0. Therefore, for every fixed t≥1, it holds that ρt(η)→ρ~t−1≥72. Fix N≥1. Since there are only finitely many t∈{1,…,N}, there exists ηN>0 such that ρt(η)>36 for all 1≤t≤N and every η≥ηN. Then, since ρt(η)=ηfbin(wt(η)), we obtain
Finally, at t=0, we have fbin(w0(η))=log(2)>η1 for all sufficiently large η. Thus, increasing ηN if necessary, the conclusion holds for all 0≤t≤N.
E.3 Checking the dataset assumptions
The norm constraints are immediate for the first two points. For the third point,
∥x3,η∥2=(−21+η24log96η)2+(η12log2)2+41→21,
so ∥x3,η∥<1 for all sufficiently large η. To verify linear separability with a lower bounded margin, consider the unit vector w∗:=13(2,0,3). Then, for all sufficiently large η,
The same family also illustrates why the dependence of the step-size threshold on δ cannot be avoided. Recall the dataset family Xη (58) with all labels equal to 1, and let δη denote their corresponding (binary) gaps, as defined in Eq. (46). Starting from the origin, the first iterate of the binary hard perceptron (45) is
Thus, for η large enough, all three scores are positive and the hard perceptron dynamics terminates after one iteration. Its corresponding gap parameter is therefore the minimum score, that is
δη=η1log192η.(65)
E.4.2 Sharpness of the δ-dependency for transitioning to the stable regime (C2)
Now fix the dataset Xη and run GD with a generic step size α>0. The first iterate is
w1α=6α(x1+x2+x3,η)=αz1∞.
Using only the contribution of the second point, we obtain
Since αδη≥0, we have e−αδη∈(0,1]. Using the inequality log(1+x)≥x/2 for x∈[0,1], we obtain a general lower bound valid for any α>0:
fbin(w1α)≥61e−αδη.(66)
To prove the binary claim in Theorem E.1, fix c∈(0,1) and choose the step size α=δηclogδη1. For all sufficiently large η, substituting this α into Eq. (66) gives
fbin(w1α)≥61e−clog(1/δη)=61δηc.
Since c<1 and δη→0, this implies
αfbin(w1α)≥6cδηc−1log(δη1)η→∞∞.
Thus, fbin(w1α)>1/α for all sufficiently large η. Also, the initialization satisfies fbin(w0α)=log2>α1 for all sufficiently large η, meaning GD has not entered the stable region after one iteration. Note that since δη=ηlog(η/192), we have
ηα=clogη−log192logη−loglog(η/192)η→∞c,
so the step size α is indeed of the same scale as the data parameter η.
E.4.3 Sharpness of the δ-dependency for obtaining ε-loss (C3)
Finally, for any ε∈(0,61), if we consider step size α<δη1log(6ε1), then Eq. (66) gives