Non-asymptotic implicit bias of logistic regression at early-stage gradient descent dynamics

Han BaoNeurIPS 2026

TL;DR

Classic theory tells us that when you train a linear classifier with gradient descent, its weights eventually point in the "max-margin" direction—offering great generalization—but at an agonizingly slow, logarithmic pace. Yet in practice, models find a pretty good direction almost immediately. This paper resolves the paradox by ditching infinite-time approximations, proving that parameters snap into weak alignment with the optimal direction remarkably fast during the early stages of training.

What Problem Does This Paper Address?

If you train a linear classifier on separable data using exponential or logistic loss, something magical happens: even without explicit regularization, gradient descent pushes the weight vector toward the max-margin direction (the exact same boundary a Support Vector Machine would choose). This phenomenon, known as implicit bias, helps explain why overparameterized models generalize well instead of overfitting.

There is just one catch. Classic theoretical results (notably by Soudry et al.) prove that while the training loss drops at a respectable $O(1/t)$ rate, the angle of the weights aligns with that ideal max-margin direction at a glacial $\widetilde{O}(1/\log^2 t)$ rate. Reaching an alignment error of $\delta$ takes $\widetilde{O}(\exp(\delta^{-1/2}))$ steps—essentially forever for small errors.

Yet, if you actually watch a simulation of gradient descent, the parameter direction swings toward the max-margin vector right at the start of training, long before the weight norm blows up.

Wait—let's look at Figure 1: Simulation showing rapid early-stage parameter alignment compared to slow radial growth

Figure 1: Simulation of gradient descent running with the exponential loss ℓexp(m) := exp(−m): (Left) a training dataset with larger margin; (Right) a training dataset with smaller margin. Each shows time evolution of the training risk L(w(t)), the radial ∥w(t)∥, the parameter alignment ⟨u(t), u∗⟩(where u(t) := w(t)/∥w(t)∥), and the tangential trajectory (i.e., the trajectory of the normalized parameter u(t)) in the loss landscape. In the loss landscapes, the dots are the tangential component u(t), and darker and lighter colors indicate earlier and later t, respectively; u(t) are plotted every 70 and 50 iteration for the left and right cases, respectively; the black and yellow arrows indicate the max-margin direction u∗and the last parameter w(T), respectively. In Appendix F, the unnormalized parameter trajectories w(t) are additionally shown, as well as the quantitative alignment time. The detailed simulation setup is shown there, too. Key observation: compared with the radial growth ∥w(t)∥, the parameter alignment ⟨u(t), u∗⟩saturates significantly faster, which can also be shown in the parameter trajectory since the tangential trajectory is swept within the early stage, depicted by the darker dots.

Why does the math say it’s slow when our eyes say it’s fast? Because prior proofs relied on asymptotic Taylor expansions at $t \to \infty$, hiding all the rapid early-stage action inside big-$O$ remainder terms. This paper sets out to mathematically capture what actually happens at the beginning of training.

Methods

Instead of approximating the weight vector $\mathbf{w}(t)$ at infinity, the author decomposes the parameter dynamics into polar coordinates—tracking the radial component (the length $r(t) = \|\mathbf{w}(t)\|$) and the tangential component (the direction $\mathbf{u}(t) = \mathbf{w}(t)/r(t)$) directly from $t = 0$.

  1. Direct Differential Inequalities: Beginning with continuous-time gradient flow on exponential loss, the author writes down the exact rate of change for the alignment error $V(t) = 1 - \langle \mathbf{u}(t), \mathbf{u}_* \rangle$, avoiding asymptotic expansions altogether.
  2. Dataset Geometry & Temperature Monotonicity: To prove the direction improves quickly, the author bounds the projection of the exponentially weighted data onto the subspace orthogonal to $\mathbf{u}(t)$. Using a clever geometric decomposition and a "temperature monotonicity" property (which relates weighted averages to the simple data mean), they establish a clean, non-asymptotic force pulling $\mathbf{u}(t)$ toward the max-margin vector $\mathbf{u}_*$.
  3. Extensions: The continuous-time exponential loss framework is then extended to logistic loss (via a modified self-bounding gradient property) and discrete-time gradient descent (by carefully bounding discretization errors under a small stepsize).

Datasets

This is a theoretical work. Rather than standard benchmark datasets, the author uses two synthetic 2D linearly separable datasets—one with a large margin and one with a smaller margin—to visually illustrate the loss landscapes and early-stage trajectory dynamics in Figure 1.

Key Insights and Ideas

  • Weak Alignment vs. Perfect Alignment: You don't need to wait for infinity if you're willing to compromise slightly on precision. While perfect alignment ($\delta \to 0$) is bogged down by support vectors late in training, weak alignment—getting within a moderate, dataset-dependent error $\delta$—happens in a flash.
  • Two-Stage Early Dynamics: Early training naturally splits into two distinct phases. First is an escape stage: even if initialized pointing in the completely wrong hemisphere, the weights escape into the right hemisphere in $O(1)$ time. Second is the weak alignment stage, where the direction rapidly correlates with $\mathbf{u}_*$.
Figure 3: The two-stage dynamics: the escape stage quickly moves away from poor initialization, followed by the weak alignment stage achieving ⟨u, u∗⟩≥1 −δ.
  • Beating the Perceptron: Classically, the Perceptron algorithm is guaranteed to find some separating hyperplane with alignment at least $\gamma$ (where $\gamma$ is the dataset margin). Gradient descent’s early-stage weak alignment non-trivially beats this, reaching alignment up to $\sqrt{\gamma}$ when the data mean aligns well with the max-margin vector (e.g., if $\gamma = 0.1$, $\sqrt{\gamma} \approx 0.31$).

Key Results

  • Doubly-Logarithmic Decay: During the early stage, alignment error shrinks at a rate of roughly $C - \log \log t$, meaning weak alignment $V(t) \le \delta$ is achieved in $O(\exp(\exp(-\delta)))$ time—vastly faster than the asymptotic $\widetilde{O}(\exp(\delta^{-1/2}))$ bound for moderate $\delta$.
  • Matching Lower Bounds: The author proves a lower bound of $\Omega(\exp(\exp(-\delta)))$, confirming that this doubly-exponential time characterization is mathematically tight—not an artifact of loose algebra.
  • Discrete-Time & Logistic Loss: For standard discrete gradient descent with a small stepsize $\eta$, escaping bad initialization takes $O(1)$ iterations, and weak alignment takes $O(\eta^{-1}\exp(\exp(-\delta)))$ iterations (also proven tight). The same dynamics hold for logistic regression.

Limitations and Future Work

  • The Error Tolerance Floor: The fast alignment guarantee hits a wall at a dataset-dependent threshold $\bar{\delta}$ (guaranteeing alignment roughly between $\gamma$ and $\sqrt{\gamma}$). In simulations, gradient descent actually gets even closer to $\mathbf{u}_*$ early on than this worst-case geometric bound predicts. Narrowing this gap likely requires probabilistic assumptions on the data distribution rather than pure worst-case geometry.
  • Small Stepsize Requirement: The discrete-time proofs rely on keeping the stepsize small so behavior mimics smooth gradient flow. Recent "Edge of Stability" research shows that aggressively large stepsizes cause early oscillations that actually accelerate alignment; extending this non-asymptotic framework to large stepsizes remains an open question.

Summary updated

Abstract

Gradient descent has been of particular interest in modern machine learning beyond sole focus on optimization because some specific structures emerge through the optimization dynamics. Such behaviors result from optimization even though the learning objective does not explicitly encode the target structure, collectively called implicit bias, often preventing overparametrized models from fitting to spurious patterns. A typical instance is the max-margin implicit bias of a linear classifier, widely established for exponentially tailed loss functions. Even after having a given dataset separated, the parameter vector continues to evolve towards the max-margin direction asymptotically along the gradient descent dynamics. This phenomenon corroborates a frequent empirical observation of ``train longer, generalize better.'' However, the max-margin convergence is an asymptotic phenomenon, and what is worse, this asymptotic convergence rate is significantly slower than convergence in optimization. Even so, the parameter vector along gradient descent dynamics commonly correlates with the max-margin direction positively (though not exactly) within considerably fewer iterations than the asymptotic rate. By shedding another light on this classical yet profound problem, this work aims to understand the mechanism of this early-stage alignment phenomenon. Our theoretical results demonstrate that the parameter vector weakly aligns with the max-margin direction within $O(\exp(\exp(-\delta)))$ iterations, where $\delta>0$ is the permissible alignment error, which is shown to be tight. By tracking the radial and tangential flows, our proof operates on the alignment dynamics directly with dataset geometry and gets rid of the asymptotic expansion, which is a key insight to enabling faster weak alignment.
BibTeX
@inproceedings{bao2026non,
  author = {Han Bao},
  title = {{Non-asymptotic implicit bias of logistic regression at early-stage gradient descent dynamics}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UYEfZQ9sax},
}
Figure