Abstract: We study gradient descent (GD) dynamics on logistic regression problems with large, constant step sizes. For linearly-separable data, it is known that GD converges to the minimizer with arbitrarily large step sizes, a property which no longer holds when the problem is not separable. In fact, the behaviour can be much more complex -- a sequence of period-doubling bifurcations begins at the critical step size $2/\lambda$, where $\lambda$ is the largest eigenvalue of the Hessian at the solution. Using a smaller-than-critical step size guarantees convergence if initialized nearby the solution: but does this suffice globally? In one dimension, we show that a step size less than $1/\lambda$ suffices for global convergence. However, for all step sizes between $1/\lambda$ and the critical step size $2/\lambda$, one can construct a dataset such that GD converges to a stable cycle. In higher dimensions, this is actually possible even for step sizes less than $1/\lambda$. Our results show that although local convergence is guaranteed for all step sizes less than the critical step size, global convergence is not, and GD may instead converge to a cycle depending on the initialization.
Introduction
While logistic regression is often viewed as a well-behaved optimization problem with guaranteed convergence, this research reveals a chaotic side to the algorithm. When data is non-separable and step sizes are large, gradient descent (GD) dynamics can spiral into complex cycles and even total chaos. This behavior challenges the standard assumption in optimization theory that a step size $\eta < 2/L$ (where $L$ is the smoothness constant) always guarantees convergence.
The Stability Gap in Non-Separable Data
In linearly separable regimes, GD is surprisingly robust, often converging even with massive step sizes. However, real-world data is rarely perfectly separable. In the non-separable regime, the optimal solution $w^*$ is finite. Classical dynamical systems theory suggests that $w^*$ becomes unstable if the step size exceeds the critical limit $2/\lambda$, where $\lambda$ is the largest eigenvalue of the Hessian at the solution.
This paper investigates the "gap" between the conservative $2/L$ limit and the critical $2/\lambda$ limit. The authors treat GD as a discrete-time nonlinear dynamical system, combining theoretical proofs with bifurcation analysis to map how behavior changes as $\eta$ increases.
Key Insights: The Route to Chaos
The research demonstrates a "cascade" of period-doubling bifurcations. As $\eta$ increases beyond $2/\lambda$, the system moves from a 2-cycle to a 4-cycle, eventually reaching a chaotic state where iterates appear random. This is empirically demonstrated on "natural" non-separable datasets like liver-disorders and heart from the LIBSVM repository.
One significant finding is the "ReLU in the Large" property. These chaotic dynamics are not unique to logistic loss; they apply to any loss function that behaves like a ReLU at infinity—flat on one side and growing linearly on the other. The cycles are often maintained by "outliers" in the data that provide a massive gradient "kick," slingshotting the iterate back into a cycle and preventing it from settling at the optimum.
Local Stability vs. Global Convergence
A critical takeaway is that local stability does not imply global convergence. Even if a step size is small enough to ensure convergence when starting near the solution, GD can get trapped in a stable cycle if initialized further away.
In one dimension, global convergence is guaranteed if $\eta \le 1/\lambda$. However, for any $\eta$ between $1/\lambda$ and $2/\lambda$, a dataset can be constructed where GD converges to a stable cycle. In higher dimensions ($d > 1$), the situation is more precarious: stable cycles can exist even for step sizes smaller than $1/\lambda$.
Conclusion and Future Work
This work provides a counter-example to current "Edge of Stability" (EoS) theories in deep learning, showing cases where the Hessian's largest eigenvalue stays strictly above $2/\eta$ while the loss stops decreasing.
While the paper identifies $1/\lambda$ as a key threshold, $\lambda$ depends on the unknown solution $w^*$, making it difficult for practitioners to use as a direct rule. Future research may explore how data normalization techniques, such as LayerNorm, might suppress the gradient "kicks" identified here, potentially explaining their stabilizing effects in deep learning training.
Summary updated