arXiv:2610.26748math.OCOct 2026

Manuscript Offprint

arXiv:2610.26748

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 η\eta can achieve ε\varepsilon optimality gap on the multiclass logistic regression loss in a number of iterations TT that is independent of ε\varepsilon. To do so, the step size η\eta must be chosen large enough as a function of ε\varepsilon (and properties of the linearly separable dataset), while TT is a constant that only depends on the data. The relevant properties of the data include the number of points and their margin (for TT), and one additional quantity (for η\eta) that turns out to be necessary in dimension d≥3d \geq 3. The proofs build on the known fact that, as η→∞\eta \to \infty, suitably rescaled GD becomes the perceptron algorithm, and the latter finds a perfect classifier in TT iterations. A similar claim was shown for two classes in dimension d=2d = 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\eta < 2/L ensures that the loss decreases at every iteration and yields the standard O(1/T)\mathcal{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)\widetilde{\mathcal{O}}(1/T^2) 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(η)\tau = \mathcal{O}(\eta) iterations. Once in the stable region, the loss decreases at every iteration. Then, for an iteration budget TT, they show that choosing η=Θ(T)\eta = \Theta(T) yields an accelerated O~(1/T2)\widetilde{\mathcal{O}}(1/T^2) bound on the final loss. However, since their bound on the transition time τ\tau grows linearly with η\eta, 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 τ\tau required to enter the stable region is bounded independently of η\eta. In addition, they showed that any target loss value ε\varepsilon can be reached within a fixed number of iterations, independent of ε\varepsilon, by taking η\eta 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≥2K \geq 2 be the number of classes and consider a dataset {(xi,yi)}i=1n\{(x_i, y_i)\}_{i=1}^n, where xi∈Rdx_i \in \mathbb{R}^d and yi∈{1,…,K}y_i \in \{1, \ldots, K\}. We consider a linear softmax classifier parameterized by W∈RK×dW \in \mathbb{R}^{K \times d}, whose kkth row is denoted by wk∈Rdw_k \in \mathbb{R}^d. The associated multiclass cross-entropy loss is

f(W):=−1n∑i=1n∑k=1KYiklog⁡(P(W)ik),P(W)ik:=exp⁡(⟨wk,xi⟩)∑j=1Kexp⁡(⟨wj,xi⟩).(1)f(W):=-\frac{1}{n}\sum_{i=1}^{n}\sum_{k=1}^{K}Y_{ik}\log\big(P(W)_{ik}\big),\qquad P(W)_{ik}:=\frac{\exp\big(\langle w_{k},x_{i}\rangle\big)}{\sum_{j=1}^{K}\exp\big(\langle w_{j},x_{i}\rangle\big)}. \tag{1}

Here, ⟨wk,xi⟩\langle w_k, x_i \rangle represents the score of class kk for data point xix_i, and P(W)∈Rn×KP(W) \in \mathbb{R}^{n \times K} is the matrix of row-wise softmax probabilities. Lastly, Y∈Rn×KY \in \mathbb{R}^{n \times K} is the one-hot encoding of the labels, that is,

Yiyi=1,andYik=0forallk≠yi.(2)Y_{i y_{i}}=1,\qquad\mathrm{a n d}\qquad Y_{i k}=0\mathrm{f o r a l l}k\neq y_{i}. \tag{2}

We assume that the dataset is linearly separable and consider full-batch GD on ff with constant step size η>0\eta > 0, whose sequence of iterates {W(t)}t≥0\{W^{(t)}\}_{t \geq 0} is generated by the update rule

W(t+1)=W(t)−η∇f(W(t)),W^{(t+1)}=W^{(t)}-\eta\nabla f(W^{(t)}),

initialized at W(0)=0W^{(0)} = 0.

References (60)