The late-stage training dynamics of (stochastic) subgradient descent on homogeneous neural networks

Sholom Schechtman, Nicolas Schreuder

Abstract

In deep learning, models with significantly more parameters than training samples often generalize remarkably well, a phenomenon attributed to the implicit bias of optimization algorithms. While previous research established that gradient descent on smooth networks acts as a margin maximizer, real-world applications typically involve nonsmooth activation functions like ReLU and stochastic gradient descent (SGD). This paper provides a rigorous mathematical framework to prove that the late-stage dynamics of constant-step SGD on nonsmooth, homogeneous neural networks converge toward the critical points of the classification margin, bridging the gap between theoretical ideals and practical optimization.

Introduction

A central mystery in deep learning is why overparameterized models do not simply memorize noise but instead learn generalizable patterns. The concept of implicit bias suggests that the optimization process itself—specifically the path taken by algorithms like Stochastic Gradient Descent (SGD)—inherently favors "simple" solutions with high margins.

Existing literature, such as the landmark work by Lyu and Li (2020), demonstrated that for smooth networks, gradient descent eventually maximizes the classification margin. However, these proofs often rely on differentiability and deterministic updates. In practice, neural networks utilize nonsmooth ReLU activations and stochastic mini-batch updates. This paper by Sholom Schechtman and Nicolas Schreuder extends margin maximization theory into these more realistic territories, proving that the implicit bias toward margin maximization persists even under the noise of SGD and the nonsmoothness of ReLU.

Theoretical Framework: Conservative Fields and Nonsmoothness

Because ReLU networks are not differentiable everywhere, standard gradient-based analysis is insufficient. The authors employ the framework of conservative set-valued fields to analyze the dynamics. This approach accounts for the specific behavior of backpropagation in nonsmooth settings, treating the algorithm's output as a predictable field even when a traditional gradient does not exist.

The analysis focuses on "positively homogeneous" networks. A function $f$ is positively homogeneous of degree $L$ if $f(cx) = c^L f(x)$ for any $c > 0$. Many modern architectures without bias terms satisfy this property, allowing the weights to be decomposed into two components:

  1. Direction: The unit vector of the weights ($w/\|w\|$).
  2. Magnitude: The norm of the weights (|w|).

Methodology: From Discrete Jumps to Continuous Flows

The authors interpret the discrete, noisy updates of SGD as a "noisy" version of a continuous flow. By utilizing tools from stochastic approximation theory, they demonstrate that the noise introduced by random mini-batch selection eventually averages out.

Crucially, they show that the normalized SGD iterates behave like an Euler-like discretization of a gradient flow. As the training progresses, the weight norm grows, which has a stabilizing effect on the weight direction. Even with a constant learning rate $\gamma$, the effective step-size for the direction component decreases as the norm increases, allowing the direction to settle into a stable state.

Key Insights into Late-Stage Dynamics

1. Logarithmic Norm Growth

The paper confirms that during the late stages of training—after the model has achieved correct classification—the norm of the weights grows at a logarithmic rate (|w_k| ~ \log k). This slow growth is essential for the stabilization of the weight direction.

2. Effective Step-Size Reduction

As the weight magnitude increases, the impact of each SGD update on the weight direction diminishes. This inherent mechanism mimics a decaying learning rate, even when the practitioner uses a constant step-size, facilitating convergence to a margin-maximizing solution.

3. Backpropagation as a Conservative Field

While the Clarke subgradient is a common tool in nonsmooth analysis, it can be mathematically unwieldy. The authors highlight that the actual output of the backpropagation algorithm behaves as a conservative field, which is sufficient to guarantee that the optimization trajectory remains well-behaved.

Main Results

The primary contribution of the research is Theorem 5, which proves that under the assumption of "separability" (the existence of a state where the network correctly classifies all training data), the normalized weight directions converge to the set of Karush-Kuhn-Tucker (KKT) points of the margin maximization problem.

Furthermore, while the core proof focuses on exponential and logistic losses, the authors extend these findings to a broader class of "exponential-type" loss functions. This establishes a robust theoretical foundation for why SGD serves as an implicit margin maximizer across various settings.

Discussion and Limitations

While this work represents a significant step forward, it operates under specific constraints:

  • Separability Assumption: The analysis focuses on the "late-stage" dynamics, assuming the network has already reached a state of correct classification. It does not address the "early-stage" dynamics of how the model initially learns to separate the data.
  • Homogeneity: The requirement for positive homogeneity excludes architectures with explicit bias terms or certain types of normalization, though many models can be mathematically reformulated to fit this constraint.
  • Constant Step-Size: The focus remains on constant-step SGD. While common in practice, the mathematical proofs for convergence in this regime are more complex than those for decaying step-sizes.

Conclusion

Schechtman and Schreuder provide the first major proof extending the discrete dynamics of margin maximization to nonsmooth and stochastic settings simultaneously. By showing that SGD inherently acts as a margin maximizer in ReLU networks, this research clarifies why deep learning models achieve high generalization performance despite their immense complexity. Future work may extend these insights to non-homogeneous architectures and the initial phases of training.

Summary updated

BibTeX
@inproceedings{schechtman2025late,
  author = {Sholom Schechtman and Nicolas Schreuder},
  title = {{The late-stage training dynamics of (stochastic) subgradient descent on homogeneous neural networks}},
  booktitle = {Conference on Learning Theory},
  year = {2025},
}
Figure