Manuscript Offprint
arXiv:2610.28561Convergence of stochastic gradient descent for learning linear neural networks
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
ABSTRACT. Stochastic gradient descent (SGD) is the cornerstone of modern deep learning, yet its theoretical convergence properties remain poorly understood in non-convex settings. To address this gap, we study SGD dynamics in deep linear neural networks—simplified models that retain key non-convex characteristics while remaining analytically tractable. Building on recent results for gradient descent, we extend convergence guarantees to SGD under regularized squared loss. We establish almost sure boundedness of SGD iterates. Using the framework of asymptotic pseudotrajectories from stochastic approximation theory, our analysis establishes then, for both deterministic and adaptive step-size choices, convergence of SGD to the set of critical points under mild conditions (without relying on Lipschitz properties or whitened data). To our knowledge, this is the first work providing almost sure convergence guarantees for SGD in deep linear networks, bridging the gap between theoretical optimization and practical stochastic training.
1. INTRODUCTION
Deep learning has delivered transformative breakthroughs in recent years, fueling innovations across domains such as computer vision, natural language processing, healthcare, and scientific computing. Central to this progress are iterative optimization methods, particularly stochastic gradient descent (SGD) and its variants, which enable the effective training of highly parameterized models.
Despite SGD’s empirical success in optimizing deep neural networks, its theoretical convergence properties remain only partially understood. This gap is most pronounced in non-convex settings, where the loss landscape is riddled with saddle points and local minima. Yet, SGD consistently navigates these challenges and produces models that generalize well [27, 6].
To bridge theory and practice, researchers often study simplified models such as deep linear neural networks multi-layer architectures composed solely of linear transformations. Although these networks ultimately represent linear mappings, their parameterization introduces non-convexity through matrix factorization. Consequently, they retain many characteristics of deep learning while providing a simplified entry-point for the analysis of optimization algorithms. [24, 2].
A prominent line of work examines optimization dynamics via gradient flow (GF) the continuous-time limit of gradient descent with infinitesimal step sizes. Early studies revealed that depth-induced overparameterization can act as an implicit regularizer in certain situations, accelerating convergence [2]. In particular, [11] and [4] basically showed that, under suitable dimensional assumptions, GF converges to global minima from almost all initializations. These results underscore how architectural properties such as width and depth influence training dynamics.
However, GF is an abstraction and does not capture the behavior of practical algorithms. This motivates the study of discrete-time gradient descent (GD) with finite step sizes. For instance, [5] proved GD convergence for linear residual networks initialized with identity mappings. Later, [3] generalized this to approximately balanced initializations, establishing global convergence under a deficiency margin condition. Extending these earlier results, [13] and [23] provided general convergence guarantees for GD under mild upper bounds on the step sizes, without relying on Lipschitz properties of whitened data.
In practice, stochastic gradient descent is favored over full-batch GD for its computational efficiency on large datasets. Yet, its stochastic nature introduces additional complexities, and most existing convergence results assume bounded gradients or Lipschitz continuity conditions [21, 19, 15, 16, 17, 10, 20, 26]. The Lipschitz gradient property and its variants are fundamental for establishing the descent lemma, which
Date: October 21, 2026.
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
guarantees decrease of the loss function. Moreover, Lipschitz gradient properties are also key to showing boundedness of the second moment of the gradient, see [16, 20] and references therein. In particular, Lipschitz gradient properties are key for most convergence theory of SGD, see also [15, 19] and references therein.
Unfortunately, the gradient of the empirical loss function is not globally Lipschitz for many neural network architectures. This includes deep linear networks when combined with squared loss. Therefore, existing general bounds, such as the ones in [16, 21, 19], are not applicable – unless one shows boundedness of the iterates directly. In fact, existing approaches use Lipschitz gradient properties to actually show boundedness. For this reason, there is a significant gap in the convergence theory of SGD when applied to deep learning scenarios. In order to make progress, it becomes essential to develop techniques for showing boundedness of the iterates without assuming global Lipschitz bounds on the gradient.
This paper addresses this gap by extending the convergence results of [23] from GD to SGD. We analyze deep linear networks trained with a regularized squared loss. Our key theoretical tool is the framework of asymptotic pseudotrajectories (APT) from stochastic approximation theory [7], which connects discrete SGD iterates to continuous-time GF trajectories. Note that the convergence analysis of SGD (in particular, showing boundedness of the iterates) for the unregularized square-loss (as considered in [2, 3, 4, 23] for GF/GD) turned out to be very challenging and is still open. This is the reason why we passed to a regularized loss, see (2) below, for which we are then able to show convergence (as already stated). Moreover, we believe that our analysis provides a blue-print for many steps of the convergence analysis of SGD for the unregularized loss.
Our contributions are threefold:
• We prove the almost sure boundedness of SGD iterates under minimal assumptions (without relying on gradient Lipschitz continuity or uniform data whitening).
• We establish almost sure convergence of SGD to the set of critical points of the squared loss in deep linear networks, showing that SGD inherits GD's convergence behavior under similar conditions.
• We develop a rigorous analytical framework linking SGD dynamics to gradient flow using stochastic approximation tools, offering new insights into stochastic training in deep networks.
To our knowledge, this is the first almost sure convergence result for SGD in deep linear networks in the present setting. Our work narrows the gap between theoretical optimization results and practical stochastic training procedures in deep learning.
where and denotes the Frobenius norm. Defining the product matrix associated to and
it holds .
We introduce the regularized loss
(2) where for parameters and , the regularization term is defined as
where we use the notation .
The gradient flow associated with the regularized loss is given by
For a subset chosen uniformly at random among all subsets of cardinality ( being allowed), we define the corresponding (mini batch) stochastic loss (over the randomly selected data points) as
where and denote the submatrices of and consisting only of the columns indexed by . Then the regularized stochastic loss , and its corresponding stochastic gradient are defined as
At each iteration of stochastic gradient descent (SGD), we select a subset uniformly at random among all subsets of size (with allowed), independently of . It then holds that
The corresponding SGD update for each weight matrix is
(8)
Our goal is to analyze the convergence properties of the mini-batch SGD algorithm (8) for training deep linear networks using the regularized stochastic loss (6).
2.2. Results Summary. Our main result (Theorem 13) shows that under mild conditions on the step size in (8) and the regularization parameter -specifically, -we establish:
• convergence of the SGD iterates to the critical set of ;
• convergence of the regularized loss evaluated along the SGD iterates; and
• validity of these results for both deterministic and adaptive step-size schedules.
The key intermediate results include bounds on the sequence of SGD iterates under both deterministic and adaptive step sizes (Propositions 11 and 12). A crucial component of our analysis is the concept of an asymptotic pseudotrajectory for the gradient flow, which corresponds to the continuous-time counterpart of gradient descent using the full gradient rather than stochastic estimates. The SGD sequence defined by (8) can be viewed as an approximate solution to the gradient flow equation (4). To ensure convergence, we show that the interpolated process (16) constructed from these iterates forms an asymptotic pseudotrajectory for the gradient flow (Proposition 2). This property guarantees that the interpolated process accurately tracks the gradient flow, enabling analysis of the long-term behavior of SGD. Furthermore, Proposition 12 ensures that SGD with non-constant step sizes remains bounded as time tends to infinity.
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
3. PRELIMINARIES
3.1. Key ingredients. In this section we summarize the main theoretical tools used in the derivation of the results in this manuscript. We mostly use stochastic approximation theory as presented in [9, 8], which focuses on the analysis of stochastic processes of the form
Note that to make the comparison to [9, 8] easy, the involved stepsize has index here as in [9, 8], whereas in our setting 8 the corresponding stepsize has index . In (9), is a measurable function that defines the algorithm, the are step sizes, and are random variables. A common approach in this field is to consider a vector field obtained by averaging the function as
where is the random variable (assuming the are identically distributed as ). Then, one re-interprets the discrete process in (9) as an approximation to the solutions of the ODE
This way the stochastic term can be split into a deterministic term and a noise term ,
Taking this into account (9) becomes
The concept of an asymptotic pseudotrajectory (APT) has proven very useful to analyze the long-term behavior of a continuous function through the flow trajectory of a dynamical system, defined for instance via the ODE (10). In order to introduce this concept we recall that a (semi-)flow on some metric space
(later ) is a continuous function , , that satisfies and for all and . We will always use the flow mapping an initialization to the solution , of the ODE (10) at time .
Definition 1 (Asymptotic Pseudotrajectory (APT), [9]). Let be a metric space. An asymptotic pseudo trajectory for a flow is a continuous function that satisfies
for all T > 0.
We will work with the so-called interpolated process of the discrete process in (11) as a candidate for an asymptotic pseudotrajectory, defined for as
where , , for . We define the piecewise constant interpolation and on as
The number of iterations required for time to attain the timestamp t (in the next step) is given by
Under the APT property, for a fixed T > 0 and a sufficiently large t, the interpolated process closely follows the trajectory of the flow induced by the vector field F over the interval .
Proposition 2 stated next provides conditions for the interpolated process (12) of the stochastic process (11) to be an asymptotic pseudotrajectory for the flow induced by the vector field F.
Proposition 2 (Proposition 4.1 in [8]). Let be a continuous globally integrable vector field (i.e., the integral curves are defined on and are uniqueley determined). Consider a discrete process in generated by perturbed with a deterministic or random sequence in defined as
We assume that the stepsizes satisfy and . Suppose that
(1) For all T > 0,
or equivalently
where is as defined in (13).
(2) , or
(3) F is Lipschitz and bounded on a neighborhood of .
Then, the interpolated process X is an asymptotic pseudotrajectory of the flow induced by F.
Remark 3. Inspecting the proof of this proposition in [8] shows that its conclusion remains valid if instead of the assumption that F is globally integrable, we only assume that the trajectories of F exist on and are uniquely determined.
The boundedness property required by the second condition is central to studying the long-term behavior of the process. However, establishing this property for discrete processes is challenging. It is this difficulty that leads most prior work on stochastic processes to simply assume boundedness. Other authors impose the Lipschitz condition from the third condition instead, and use it to derive an almost sure bound on the iterates [21].
In contrast, we will give a careful analysis of the SGD iterates and prove that they remain bounded almost surely, see Section 4.1.
As seen in Proposition 2, the first critical condition for APT is technical. However, Proposition 2 gives no route to establish it. Proposition 5 fills this gap and constitutes a reference tool that helps to show this technical condition. It relies on Robbins-Monro algorithms, also known as Martingale Difference Noise. We first define Robbins-Monro algorithms and then state Proposition 5.
Definition 4 (Robbins-Monro Algorithm [9]). Consider a sequence of positive integers which satisfies and . Let be a continuous map and a process in defined as follows:
where are (deterministic or random) perturbations. Let be a probability space and an increasing sequence of sub- -algebras of .
The stochastic process defined in (14) satisfies the Robbins-Monro or Martingale Difference Noise Condition if the following hold
(a) is a deterministic sequence.
(b) is adapted: is measurable with respect to for each .
(c)
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
Proposition 5 (Proposition 4.2, [9]). Let the process defined in (14) be a Robbins-Monro algorithm. Assume that for some
and
Then with probability one condition (1) in Proposition 2 holds, i.e., for all T > 0,
or equivalently
where is as defined in (13)
Proposition 5 only covers deterministic stepsizes as it uses the Robbins-Monro sequence. Later, in Proposition 7, we discuss additional conditions on the noise and the stepsizes that lead to the conclusion of Proposition 5 with stochastic (adaptive) stepsizes.
In our setting, the vector field F is the negative gradient of the loss function and the noise term is the difference between the stochastic gradient and the full gradient. Within this stochastic approximation framework, Section 4 proves that the stochastic gradient iterations (8) satisfy the Martingale Difference Noise condition. The interpolated discrete SGD process will then define a continuous SGD process. With this at hand, we will establish that the interpolated process of SGD in (8) is an APT for the gradient flow (4).
Lyapunov functions provide another key tool for understanding the stability of the dynamical system (4). The basic characteristics of a Lyapunov function and the notion of an equilibrium point (an important concept for defining a Lyapunov function) are provided in Definitions 16 and 15, respectively, in the Appendix. Lyapunov functions help to determine whether a system converges to its equilibrium point as it evolves over time. As we will see in Section 4, the functional itself is a Lyapunov function, which will be a key ingredient for our convergence analysis.
We proceed by recalling further concepts from [8] that are critical to the understanding of asymptotic pseudotrajectories. For completeness, we provide the definition of a pseudo-orbit in the appendix (Definition 17), describing a particular finite sequence of flow trajectories that is useful in characterizing the flow and the set upon which it is defined. The limit set of an asymptotic pseudotrajectory is given in the next definition.
Definition 6 (Limit Set of an APT). Let be a metric space and let be an asymptotic pseudotrajectory of a semiflow . We define
the set of all limits of convergent sequences , as .
Theorem 18 in the appendix characterizes the limit set of a precompact pseudotrajectory X for a flow , in particular, it indicates that the flow is internally chain transitive (see Definition 17 (2)) on the limit set. Moreover, Proposition 19 in the appendix shows that a Lyapunov function can be constant on a chain internally transitive set. We will see in Section 4 how Theorem 18 and Proposition 19 contribute to deriving the convergence property of SGD.
Proposition 7 below is concerned with random (possibly adaptive) stepsizes. It provides conditions that the noise and the stepsizes must meet for condition (1) in Proposition 2 to hold. Proposition 7 appeared in [8, Remark 4.3], but is explicitly proved in that paper only in the deterministic case. Thus for completeness we provide a proof in Section 6.1.
Proposition 7. Let and be as in Definition 4. Assume that the stepsizes are measurable for all . Suppose that for some the noise satisfies
and the stepsizes satisfy almost surely and
Then the conclusion of Proposition 5 holds, i.e., with probability one, for all T > 0
or equivalently
Corollary 8 is a key tool for the convergence analysis of stochastic approximation. It provides conditions on a Lyapunov function that ensure convergence of an APT. We will use it to prove convergence of to the critical set.
Corollary 8 (Corollary 6.7, [8]). Assume is a smooth Riemannian manifold of dimension . Consider a map and let be the gradient vector field
Further assume
(1) F induces a global flow
(2) X is a precompact asymptotic pseudotrajectory of
(3)
Then consists of equilibria and converges as t tends to .
Condition (1) here means that for any , the differential equation has a unique solution defined for all .
To highlight some of the crucial ingredients to our result and because we need a slightly stronger variant of this corollary (see the remark below), we repeat the proof that can be found in [8], involving a few adaptations and additional details, see Section 6.2.
Remark 9. Corollary 8 remains valid if assumption (1) is replaced by the assumption: For any , there is an such that the differential equation , has a solution defined for all and the solution is unique where it exists (that is, if and are solutions defined on intervals resp. that both contain 0 and if , then on ).
Under this assumption (and using that is continuous) the semiflow map , is continuous, this follows e.g. from [12, Theorem 4.3]. Also the flow properties and are clearly fulfilled. So we obtain indeed a semiflow.
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
3.2. Our setting. Now we adapt some of these analysis tools into our problem setting. The basic training problem of linear neural networks, we are considering here, corresponds to the nonconvex optimization problem of the square loss function with a regularization term. We aim at minimizing the regularized square loss function (2) from Section 2 via stochastic gradient descent. We study the long-term behavior of SGD (8) through the asymptotic properties of the gradient flow equation 4. The key link is that the SGD process (8) approximates the solutions of the gradient flow equation (4).
We denote the flow originating from (4) as . Definition 10 adapts the notion of asymptotic pseudotrajectory (APT) introduced in [8] to the context of learning linear neural networks.
Definition 10. A continuous function is an asymptotic pseudotrajectory for if
for any T > 0 and .
We introduce the noise term
so that the stochastic gradient can be written over iterations as the deterministic gradient plus the noise
We denote by the -algebra generated by , for . Note that this gives rise to a natural filtration of the .
We set , and introduce the interpolated process , as
4. THEORETICAL RESULTS
In this section, we will always consider the SGD iterates defined in (8) for the regularized loss (2) with the regularizer (3). The convergence analysis of the discrete process hinges on proving that its interpolation is an asymptotic pseudotrajectory. We achieve this by showing that meets the conditions of Proposition 2. We start by defining the constants
4.1. Boundedness of SGD iterates. We start by showing boundedness of the SGD iterates both for deterministic and stochastic (adaptive) cases.
4.1.1. Deterministic step sizes. The next proposition guarantees boundedness of the SGD iterates for learning deep linear neural networks with deterministic stepsizes.
Proposition 11. Let and be regularization parameters. Set . If , we set
If , we assume that and set
Let
and schedule the stepsizes as
where is a (deterministic) sequence satisfying . Then the stochastic gradient descent sequence is bounded. More precisely,
The proof of this proposition is given in Section 6.3.
4.1.2. Adaptive step sizes. Proposition 11 employs deterministic stepsizes to provide the boundedness of SGD. Proposition 12 below indicates that SGD run with adaptive stepsizes also remains bounded.
Proposition 12. For as in Proposition 11 and an arbitrary constant , assume that
where is a (deterministic) sequence satisfying . (In the case , the condition means .) Then the stochastic gradient descent sequence is bounded. More precisely,
Note that in practice, one would choose the constant D rather large, so that the (adaptive) first term in the minimum in (22) applies most of the time. The proof of this proposition is given in Section 6.4.
The boundedness of the SGD iterates is crucial, see condition (2) in Proposition 2. It will be shown in Propositions 11 and 12 and is instrumental to show that the interpolated process (16) is an asymptotic pseudotrajectory.
4.2. Convergence of SGD to the set of critical points. This section states our main result on convergence of SGD. It identifies practical step sizes that guarantee convergence of the SGD to the critical set when training linear neural networks.
We denote by
the critical set of and
the Euclidean distance of to Crit( ). The next theorem summarizes the main findings of this chapter.
Theorem 13. Let be a deterministic sequence that satisfies , and , and schedule the stepsizes as in Proposition 11 or as in Proposition 12. Then with probability one, the sequence generated by stochastic gradient descent has the following convergence properties:
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
(1) The sequence of the loss converges.
(2) The gradients converge to zero as .
(3) The Euclidean distance d ( , Crit( )) converges to zero as .
The proof of this theorem is given in Section 6.5. The crucial ingredient is to establish that the interpolated process is an APT for the continuous flow. To this end, we show condition (1) in Proposition 2 by leveraging Proposition 5 for deterministic stepsizes and Proposition 7 for adaptive stepsizes. Moreover, we then exploit Corollary 8 to establish the stated convergence result, also leveraging that is a Lyapunov function.
In contrast to previous works, Theorem 13 directly addresses convergence of SGD in linear neural networks. It avoids the global Lipschitz or bounded-gradient assumptions commonly imposed in SGD convergence theory.
4.3. Discussion about the constants in our results. The following discussion is heuristic and intended only to provide intuition regarding the dependence of the theoretical step-size bounds on the mini-batch size. Precisely, we conclude this section with a heuristic analysis in which we approximate constant B and examine the influence of constants and in the SGD algorithm. The goal is to intuitively compare SGD and GD on specific cases. Assume and . It follows from (17), (18) and (19) that
where constant and
We approximate B by only keeping the leading term in M from the numerator as follows
that is with constant
. Since then the deterministic reads
We now compare SGD and GD in two special cases. In the first, the input data X contains only zeros except for one data point at position i. In the second, X consists of m copies of one data point x.
(1) Let such that , and consider a matrix that contains at column and zeros everywhere else ( ). Then using a single mini batch , we have . Hence, by substituting into (24) and by assuming that the stepsizes of SGD are approximately the same, we get after steps
For the full batch gradient, i.e. , we have , and
Therefore, over the corresponding epoch, the GD stepsize exceeds the effective SGD stepsize . Hence, GD may outperform SGD on such data. Intuitively, progress requires a pass over all data points, and GD completes this pass in one step, while SGD needs many steps for it.
(2) Let , such that , and form matrix with copies of as . For a single mini batch , we have . By assuming the stepsizes of SGD are approximately the same within this epoch, after steps, substituting into (24) yields
In the case of the full batch , (GD), we have and
Here, a single SGD step already covers the whole dataset, and the effective SGD stepsize exceeds the GD stepsize . So on datasets of this kind, SGD may outperform GD.
Overall, these observations suggest that SGD is likely to be more efficient than GD in scenarios where SGD can access the entire data in fewer steps.
5. NUMERICAL EXPERIMENTS
In this section we present numerical experiments illustrating our theoretical findings. We test both deterministic and adaptive step size choices and investigate how sharp the conditions on the maximal step sizes in Theorem 13 are.
Our experiments use a randomly generated dataset, for which we select data points of dimension from a Gaussian distribution of mean zero and variance to form the input data , where . The dimensions of the weight matrices are chosen, for a parameter (determining the (generic) rank of the corresponding product matrix), as
where round(z) rounds the value of z to the nearest integer. The weight matrices are initialized such that has a balancedness constant 0. This is achieved by randomly choosing and orthogonal matrices , , and from the uniform distribution on the respective orthogonal group (by taking SVDs of a Gaussian matrix). The first columns of are then used to form the matrices , for . For any , denotes the rectangular diagonal matrix with ones on the diagonal. Then matrices , and are used to define as
This guarantees that is balanced,
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
The target matrix is also generated randomly by choosing matrices in the same way as above and then setting .
Various values for the regularization parameter and the rank parameter are explored. The constant is set as , and is chosen such that . Recall that the constant in Proposition 11 is given as
The constants and are computed by taking the maximum of and over the actually employed mini-batches of size used during the run of SGD. (Inspecting the proof of Proposition 11 reveals that only these mini-batches are needed.)
We conduct our tests on linear neural networks with depths 3 and 4 of the architecture described above. Our first experiments employ deterministic stepsizes that satisfy the requirements of Theorem 13, i.e., they are scheduled as
where is defined as in Theorem 13 and represents a sequence converging to zero at decay rate .
Figure 1 presents the regularized loss and Frobenius norms of the weight matrices during the training of the linear networks of widths , each optimized via SGD with deterministic step sizes as scheduled in (27). Subfigures 1a and 1c illustrate the evolution of the regularized loss for networks of depth and with corresponding parameter values in (25). These tests validate the convergence of the regularized loss function applied to the SGD iterates under deterministic step sizes. The Frobenius norms of the weight matrices for these networks are reported in Subfigures 1b and 1d. These figures demonstrate that the norms of the SGD iterates remain bounded throughout training. The regularization parameters used in the experiments for Figure 1 are for and for . The parameter is set as , for both and . The resulting step size constants are , for and , for .
In the next experiments, we explore SGD using deterministic step size selections that are not directly derived from the conditions outlined in our theoretical findings. Figure 2 presents the evolution of the regularized loss across networks in the left panel. The right panel displays the Frobenius norm of the weight matrices for each network during training. The step sizes are given by with , and for all three networks, violating the condition . Subfigures 2b and 2d indicate that the SGD iterates still remain bounded, suggesting that the established bound for SGD is not tight.
The second part of the experiments tests SGD with adaptive stepsizes. The regularization parameters remain consistent with those previously described, and the stepsize is scheduled as
for as in Theorem 13 and , .
Plots 3a and 3c in the left panel of Figure 3 display the regularized loss versus iterations for networks of depth 3 and 4 respectively. These validate the convergence of as established in Theorem 13. The right panel of Figure 3 shows the evolution of the Frobenius norm of individual weight matrices during training for networks of depth 3 and 4 on plots 3b and 3d, respectively. In this experiment, the constant is set to 1 for and . The regularization parameters are for , and for . The parameter in (25) is set to 5 for , and 4 for .

(A) Evolution of the regularized loss for a network of depth 3

(c) Evolution of the regularized loss for a network of depth 4

(B) Frobenius norm of the individual weight matrices of a network of depth 3

(D) Frobenius norm of the individual weight matrices of a network of depth 4
FIGURE 1. The left panel illustrates the evolution of the regularized loss functions across networks with deterministic step sizes as specified in (27). The right panel presents the Frobenius norms of individual weight matrices for networks with depths 3 and 4 during training.
Figure 4 displays the training dynamics using a modified adaptive stepsize, differing from (28) and defined as
where . Subfigures 4a and 4c presents the regularized training loss, while Subfigures 4b and 4d display the training norms of the weight matrices. The corresponding parameter values are and for , and for , with for all networks, and .
Figure 5 illustrates the convergence speed for both deterministic and adaptive step sizes. Subfigure 5a presents the relative loss, which is computed by normalizing the regularized loss iterates with their initial value, whereas Subfigure 5b displays the regularized loss for both deterministic (left panel) and
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE

(A) Evolution of the regularized loss for a neural network of depth 3

(c) Evolution of the regularized loss for a network of depth 4

(B) Frobenius norm of the individual weight matrices of a network of depth 3

(D) Frobenius norm of the individual weight matrices of a network of depth 4
FIGURE 2. The left panel displays the evolution of the regularized losses across networks with deterministic stepsizes that do not meet requirements in Theorem 13. The right panel shows the Frobenius norms of individual matrices for networks of depths 2, 3, and 4 during training.
adaptive step sizes (right panel). These plots indicate that the adaptive step sizes described in (27) achieve faster convergence compared to the deterministic step sizes outlined in (27).
Finally, we assess convergence of SGD also for nonlinear neural networks, although these are not covered by our present theory. More precisely, we check whether the conditions established in Theorem 13 for training linear neural networks with SGD could transfer to nonlinear networks. For this purpose, we use a hyperbolic tangent activation function on the last layer, and a linear activation function on the remaining layers. This approach results in the regularized loss function
where is applied componentwise.

(A) Evolution of the regularized loss for a network of depth 3

(c) Evolution of the regularized loss for a network of depth 4

(B) Frobenius norm of the individual weight matrices of a network of depth 3

(D) Frobenius norm of the individual weight matrices of a network of depth 4
FIGURE 3. The left panel illustrates the evolution of the regularized loss across networks with adaptive stepsizes (28). The right panel presents the Frobenius norms of individual weight matrices for networks of depth 3 and 4.
Figure 6 presents the learning behavior of SGD in two settings of nonlinear neural networks. The values of versus iterations are shown in Subfigures 6a and 6c for networks of depth 3 and 4 respectively. Plots 6b and 6d display the norms of the training weights under the deterministic stepsize rule in (27). Figure 6 empirically demonstrate the boundedness of SGD in nonlinear networks and the convergence of under the deterministic stepsizes (27). These suggests that certain theoretical properties established for SGD with deterministic stepsizes in linear networks may extend to nonlinear networks. Furthermore, a comparison of Figure 1 with Figure 6 indicates that similar patterns are observed in the SGD experiments for both linear and nonlinear networks. The values of the regularization parameters , and the rank are consistent with those used in Figure 1.
Figure 7 depicts the behavior of SGD with adaptive stepsizes scheduled as in (28), during the training of nonlinear neural networks. Plots 7a and 7c show that the regularized loss functions for nonlinear networks of depth 3 and 4 converge when applied to SGD iterates. Plots 7b and 7d show that the SGD iterates
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE

(A) Evolution of the regularized losses in the network with depth 3

(C) Evolution of the regularized loss for a network of depth 4

(B) Frobenius norm of the individual weight matrices of a network of depth 3

(D) Frobenius norm of the individual weight matrices of a network of depth 4
FIGURE 4. The left panel shows the evolution of the regularized loss across networks with the modified adaptive step sizes (29). The right panel displays the Frobenius norms of individual weight matrices for networks of depth 2, 3, and 4 during training with the same adaptive step sizes.
remain bounded during the training. The parameters , , and r used in Figure 7 are consistent with those in Figure 3. A comparison of these two figures, indicates that the training trajectories of nonlinear neural networks are similar to those observed in their linear counterparts.

(A) Evolution of the relative loss obtained by normalizing by its initial value under deterministic and adaptive stepsizes
Regularized loss under deterministic stepsizes

Regularized loss under adaptive stepsizes (D=1.0)
(B) Evolution of the regularized loss under deterministic stepsizes (left panel) and adaptive stepsizes with (right panel)
FIGURE 5. Convergence comparison for deterministic versus adaptive stepsizes on a linear network of depth 3 with parameters , , , and mini-batch size .
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE

(A) Evolution of the regularized losses for the network of depth 3

(C) Evolution of the regularized losses for the network of depth 4

(B) Frobenius norm of the individual weight matrices of the network of depth 3

(D) Frobenius norm of the individual weight matrices of the network of depth 4
FIGURE 6. Training nonlinear neural networks: evolution of the regularized loss functions across networks under deterministic step sizes in (27) on the left panel. Frobenius norms of individual weight matrices of the corresponding networks for depth 3, and 4 on the right panel.

(A) Evolution of the regularized losses for the network of depth 3

(C) Evolution of the regularized losses for the network of depth 4

(B) Frobenius norm of the individual weight matrices of the network of depth 3

(D) Frobenius norm of the individual weight matrices of the network of depth 4
FIGURE 7. Training nonlinear neural networks: evolution of the regularized loss functions across networks under adaptive stepsizes in (28) on the left panel. Frobenius norms of individual weight matrices of the corresponding networks for depth 3 and 4 on the right panel.
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
6. PROOFS
6.1. Proof of Proposition 7
Proof. The proof is adapted from the proof of [8, Proposition 4.2] additionally taking into account the randomness of the stepsizes.
Let , let , and define for the truncated step size as the length (i.e., the Lebesgue measure) of the interval . Since is measurable, it follows that is also measurable (use that ). Also, since almost surely the sum of the diverges, it holds almost surely that only finitely many are nonzero. Indeed, we have for and for . (Recall that .) We consider the process defined by
Then the process is a martingale with respect to the filtration . Indeed, obviously is measurable and , where we used that and are measurable.
Recall that by definition with defined in (13). Since the integral is a continuous and piecewise affine function in and the norm is convex, the supremum is attained at a break point, i.e., one of the points . Thus
Now we apply Burkholder's inequality [25, Theorem 6.25] to obtain the estimate
for some constant . To further estimate the upper bound in (31), we use the following consequence of Hölder's inequality valid for any and :
Assuming and setting , , and , inequality (32) applied to the estimate in (31) gives
Note that the involved sums are a.s. finite sums. Since a.s., we obtain
Note that this inequality also holds for q = 2 because in this case it coincides with (31). Next, observe that
(34)
Here, the first and the last equality hold by Tonelli's theorem (or monotone convergence), the third equality holds because is -measurable, and the inequality is due to the assumption .
Now, since by definition of , we obtain (on the a.s. event that the sum of the diverges)
which implies
Combining (33), (34), and (35), we obtain
We conclude that
since by assumption
Given , define the event . Markov's inequality implies that , and taking into account (36) gives
The Borel-Cantelli Lemma implies then that with probability one, for all sufficiently large k we have
Since is arbitrary this shows that
with probability one. Observing that for any we have
we conclude
with probability one. This completes the proof.
6.2. Proof of Corollary 8. We prove Corollary 8 with assumption (1) replaced by the slightly weaker assumptions given in Remark 9.
Proof. The proof strategy leverages Sard's theorem together with Theorem 18 and Proposition 19 in the appendix.
For any initial value x the semiflow is defined on via the gradient flow equation
Since we assume uniqueness of the solutions, the equilibrium points coincide with the critical points of V.
Let be the set of critical points of and let . (Recall that is the set of limit points of .) We note that is compact (by Theorem 18 whose application uses the assumption that is precompact) and since is of class , the set is closed and therefore is compact. The set is also invariant under the semiflow because .
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
Now we consider the restriction of to . Because is invariant under (again by Theorem 18), this restriction defines indeed again a semiflow and obviously is the set of equilibrium points of this restricted semiflow.
Now we claim that (i.e., the restriction of to ) is a Lyapunov function for (wrt. the restricted flow on ). Indeed, by the assumption that the flow trajectories are unique (see Remark 9), it follows that for the map is constant because is a equilibrium. Furthermore, since
for the expression is negative at . Additionally, it is also negative for all because otherwise there would exist a minimal with and then by (37) would be a critical point of . But by assumption (see Remark 9), the trajectory is uniquely determined and hence would constantly be equal to on an interval for some , implying that would constantly be equal to on the interval contradicting the minimality of .
Since the smoothness of satisfies , Sard's theorem [18, Chapter 3, Proposition 1.3]
implies that the Lebesgue measure in of is zero implying that also has Lebesgue measure zero and in particular has empty interior.
To summarize, we have shown that is a compact invariant set in (wrt. the restricted flow), that is a Lyapunov function for and that has empty interior. Thus we can apply Proposition 19 which implies that (which is internally chain transitive by Theorem 18)) is contained in and that is constant. In particular, consists of equilibria.
It now remains to prove that converges. For every sequence of nonnegative real numbers with , the compactness of yields a subsequence of the sequence that converges in . Let be the limit of such a converging subsequence, hence, by definition of . Set and by way of contradiction, let us assume that for some sequence of nonnegative real numbers , with the sequence does not converge. Then there exists a subsequence , and such that
Moreover, by compactness of , the sequence has a subsequence that converges to a point . Given that the restriction of to is constant (as argued above), we have which contradicts (38).
6.3. Proof of Proposition 11
Proof. A key ingredient of this proof is the following technical lemma, which estimates the Frobenius norm of the stochastic gradient with respect to Frobenius of the tuple , and the spectral norm of the mini batch data , .
Lemma 14. Let and . Setting , it holds
Here denotes the operator norm wrt. the 2-norm.
Proof. Recalling , we have
The gradients of and are given by [1, 2, 4]
It follows that
whereby we used the Frobenius norm property for matrices (of matching dimensions) to get the second inequality. Further, using the fact that and we obtain
Substituting the above estimates into (39) gives
This completes the proof.
We now prove Proposition 11 using an induction argument. For , inequality (21) holds trivially since . Let us assume that (21) holds for and prove the statement for . The stochastic gradient descent scheme (8) gives
(42)
where we substituted the gradient of to get the third equation. By using the definition of the stepsize as and the induction hypothesis together with , we obtain
At this point, we distinguish two cases, namely and .
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
We proceed with the first case assuming . Then (43) together with the triangle inequality applied to (42) gives
(44)
where we used the bound of Lemma 14 to get the second inequality, and use the definitions (17) and (18) of and to get the third inequality. We then used to obtain the last inequality. The definition (19) of yields
Substituting this into (44) and using leads to
which proves (21) for in the case where .
For the second case we assume that . Applying the triangle inequality on (42) and then using (43) and the bound in Lemma 14 gives
(46)
where we used (17) and (18) estimating , and , respectively with and to get the last inequality.
We claim that implies
Set . Then and inequality (47) is equivalent to
with .
If then, by assumption, and implies (48). We now consider the case . If then . If then
. Consequently, if
then it holds
which also implies (48). Altogether, we proved our claim that implies (47). Therefore, inequality (46) implies and the induction hypothesis yields
This finishes the proof of Proposition 11.
6.4. Proof of Proposition 12
Proof. The proof is similar to the proof of Proposition 11. We prove the claimed bound
by induction on . The case is clear. Now we assume that the bound holds for and show that this implies the bound for . From equation (42) we have
We note that the definition of the stepsize immediately implies
We now again distinguish the cases and . First we assume . Then by (49),(50) and the triangle inequality, it follows that
which gives the desired bound on . Here we used Lemma 14 together with (17) and (18) to get the second inequality and we used that (by definition of ) and the assumption in the last inequality. Now assume . In this case, by the same reasoning as in the proof of Proposition 11, we have
which by the induction hypothesis gives the desired bound. This completes the proof.
☐
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
6.5. Proof of Theorem 13
Proof. The central argument of the proof is to show that the interpolated process , see (12), is a precompact asymptotic pseudotrajectory of the gradient flow defined via
Corollary 8 then leads to desired convergence properties.
Let us start by showing that the stochastic gradient descent algorithm is a Robbins-Monro algorithm. We recall from equation (12) that in our setup
In the case of deterministic stepsizes, we have so that implies . By the definition of the natural filtration , we have that is adapted, which implies that is adapted as well. Recalling (15), it holds
Altogether, the stochastic gradient descent sequence fulfills the Robbins-Monro requirements given in Definition 4.
We will now prove that the continuous process is a.s. an APT. We start with the case of deterministic step sizes. Proposition 11 indicates that all iterates of SGD remain bounded for all . Therefore, using the definition of , Proposition 11 implies that and are bounded. Hence, forms a bounded sequence as well. This implies that
and
since by assumption. Altogether, the conditions of Proposition 5 are fulfilled for and hence condition (1) in Proposition 2 holds with probability one.
In the case of adaptive stepsizes, we have on the one hand,
On the other hand, the upper bound on of Proposition 12 implies that
Since , inequality (53) implies .
Moreover, inequality (52) yields
Taking expectation gives
The boundedness of the SGD iterates as stated in Proposition 12 implies that
for all and some (deterministic) constant so that for some deterministic constant . Altogether, SGD with adaptive stepsizes satisfies the requirements of Proposition 7 for , implying that also in the case of adaptive stepsizes condition (1) in Proposition 2 holds with probability one.
Using boundedness of the once more, the fulfill condition (2) of Proposition 2. Therefore, almost surely the continuous process is an asymptotic pseudotrajectory of the gradient flow.
We now use Corollary 8 to establish property (1) of Theorem 13. Let us check the assumptions of Corollary 8 with assumption (1) in the sense of Remark 9. The existence and uniqueness requirement follow from Proposition 20. Boundedness of the SGD iterates implies that the closure is compact. Thus we obtain that almost surely is a precompact asymptotic pseudotrajectory, verifying that condition (2) in Corollary 8 holds with probability one. Clearly, is so that condition (3) of Corollary 8 is also satisfied. Hence, converges a.s. as and since interpolates , also converges a.s. as . It also follows from Corollary 8 that the limit set of the asymptotic pseudotrajectory consists of equilibria.
Let us proceed with the proof of property (2) in Theorem 13, i.e., that the sequence of gradients converges a.s. to zero. By contradiction, let us assume that this does not hold. Then there exists and a subsequence such that
By Propositions 11 resp. 12 is bounded and therefore, has a converging subsequence. By Corollary 8, a.s. the limit of this subsequence is an equilibrium, i.e., a critical point, which contradicts (54). This proves that converges to zero with probability 1.
It remains to prove property (3).
For , we denote by the set . This is a closed set. Indeed, by the triangle inequality, if , then this inequality also holds in an open neighborhood of . Let be a compact set with the property that all iterates are in . Such a set exists by Proposition 11 resp. 12. Now suppose that does not converge to zero. Then there exists a positive number and a subsequence such that for all . Since is compact, the continuous map assumes a minimum and by the definition of , we have . But we already know that converges to zero (almost surely) which contradicts . Thus indeed converges to zero almost surely.
7. APPENDIX
In this appendix we collect definitions such as equilibrium points, Lyapunov functions and pseudo-orbit as well as some general results about dynamical systems and asymptotic pseudotrajectories (mainly from [8]) that are used in our proofs.
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
Definition 15 (Equilibrium Point). Let be a flow or semiflow on the metric space . An equilibrium point is a point that satisfies , for all .
Critical points of the loss function are equilibria for the system (4).
Definition 16 (Lyapunov Function). Let be a metric space and let be a compact invariant set of the semiflow . A Lyapunov function for is a continuous function that satisfies:
(1) The function is constant for .
(2) For , the function is strictly decreasing.
If is the set of equilibrium points then V is said to be a strict Lyapunov function and a gradientlike system.
Definition 17 (Pseudo-orbit). Let , and let be a flow or semiflow on the metric space with .
(1) A finite sequence of partial trajectories
that satisfies
is a -pseudo-orbit from to .
(2) If there exists a -pseudo-orbit from to , we write . If for all , then we write . The flow is said to be chain transitive if for every .
(3) A subset that satisfies , for all , is an invariant set.
(4) An internally chain transitive set is an invariant compact set upon which is chain transitive.
Theorem 18 (Theorem 5.7 in [8]). Let M be a metric space.
(1) Let X be an asymptotic pseudotrajectory of such that the image of X has a compact closure in M. Then, the limit set is internally chain transitive.
(2) Let be an internally chain transitive set, and suppose that is locally path connected. Then, there exists an asymptotic pseudotrajectory that satisfies .
Proposition 19 (Proposition 6.4 in [8]). Let be a metric space and be a compact invariant set. Let be a Lyapunov function for and suppose the interior of is empty. Then every internally chain transitive set is contained in and the restriction of to is constant.
The following result about global existence of gradient flow is well-known, cf. e.g. [22, Theorem 4.1]. For completeness we include a proof. Another similar statement and proof can be found in [14, Proposition 2.54].
Proposition 20. Let be a -function and assume that for all . Let . Then the gradient flow
is globally defined in the sense that it has a solution that is defined for all , for some positive . Furthermore is unique everywhere (i.e., it is uniquely determined for all in any interval containing 0 such that a solution exists on ).
Proof. The existence of a solution in an interval and the uniqueness statement follow in the standard way from the Picard-Lindelöf theorem because is of class and hence locally Lipschitz continuous.
Next we show existence for all . Suppose the solution exists in for some . Since
we have as usual
Hence
Since , we obtain
Hence for any component
Thus, for any finite such that the solution exists in , the solution is bounded for . This implies global existence.
8. ACKNOWLEDGEMENTS
HR and UT acknowledge funding by DFG through the CRC "Sparsity and Singular Structures" (SFB 1481) – project number 44204750.
All authors acknowledge funding by DAAD (German Foreign Exchange Service) through the project Understanding stochastic gradient descent in deep learning (grant no: 57417829).
Use of AI: We used ChatGPT to discuss about the proofs of Proposition 7 and Corollary 8. These statements were essentially proved in Benaim's paper [8], but we explain his proofs here again providing a few more details. Similarly, ChatGPT was involved in suggesting a reference and proof for the statement of Proposition 20 (which is essentially Theorem 4.1 in [22] and in finding the references [12] and [14].
REFERENCES
[1] S. Arora, N. Cohen, N. Golowich, and W. Hu. A convergence analysis of gradient descent for deep linear neural networks. In International Conference on Learning Representations (ICLR) 2019, 2018.
[2] S. Arora, N. Cohen, and E. Hazan. On the optimization of deep networks: Implicit acceleration by overparameterization. In International Conference on Machine Learning (ICML), 2018.
[3] S. Arora, S. S. Du, W. Hu, Z. Li, and R. Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. In International Conference on Machine Learning (ICML), 2019.
[4] B. Bah, H. Rauhut, U. Terstiege, and M. Westdickenberg. Learning deep linear neural networks: Riemannian gradient flows and convergence to global minimizers. Information and Inference: A Journal of the IMA, 11(1):307–353, 2022.
[5] P. L. Bartlett, P. M. Long, G. Lugosi, and A. Tsigler. Gradient descent with identity initialization efficiently learns positive definite linear transformations. In International Conference on Machine Learning (ICML), 2018.
[6] M. Belkin, D. Hsu, S. Ma, and S. Mandal. Reconciling modern machine learning and the bias-variance trade-off. Proceedings of the National Academy of Sciences, 116(32):15849–15854, 2019.
[7] M. Benaim. A dynamical system approach to stochastic approximations. SIAM Journal on Control and Optimization, 34(2):437–472, 1996.
[8] M. Benaim. Dynamics of stochastic approximation algorithms. In Seminaire de probabilités XXXIII, pages 1–68. Springer, 1999.
[9] M. Benaim and M. W. Hirsch. Asymptotic pseudotrajectories and chain recurrent flows, with applications. Journal of Dynamics and Differential Equations, 8(1):141–176, 1996.
[10] L. Bottou, F. E. Curtis, and J. Nocedal. Optimization methods for large-scale machine learning. SIAM review, 60(2):223–311, 2018.
[11] Y. Chitour, Z. Liao, and R. Couillet. A geometric approach of gradient descent algorithms in linear neural networks. Mathematical Control & Related Fields, 12(4):1003–1029, 2022.
[12] E. A. Coddington and N. Levinson. Theory of Ordinary Differential Equations. McGraw-Hill, New York, 1955.
[13] O. Elkabetz and N. Cohen. Continuous vs. discrete optimization of deep neural networks. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P. Liang, and J. W. Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 4932–4944. Curran Associates, Inc., 2021.
[14] D. Gallon, A. Jentzen, and F. Lindner. Blow up phenomena for gradient descent optimization methods in the training of artificial neural networks, 2022.
[15] R. Ge, F. Huang, C. Jin, and Y. Yuan. Escaping from saddle points—online stochastic gradient for tensor decomposition. In Conference on learning theory, pages 797–842. PMLR, 2015.
GABIN MAXIME NGUEGNANG, BUBACARR BAH, HOLGER RAUHUT, AND ULRICH TERSTIEGE
[16] S. Ghadimi and G. Lan. Stochastic first- and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 23(4):2341–2368, 2013.
[17] S. Ghadimi and G. Lan. Accelerated gradient methods for nonconvex nonlinear and stochastic programming. Mathematical Programming, 156(1-2):59–99, 2016.
[18] M. Hirsch. Differential Topology. Graduate Texts in Mathematics. Springer New York, 2012.
[19] A. Khaled and P. Richtárik. Better theory for SGD in the nonconvex world. Journal of Machine Learning Research, 23:1–54, 2022.
[20] Y. Lei, T. Hu, G. Li, and K. Tang. Stochastic gradient descent for nonconvex learning without bounded gradient assumptions. IEEE transactions on neural networks and learning systems, 31(10):4394–4400, 2019.
[21] P. Mertikopoulos, N. Hallak, A. Kavis, and V. Cevher. On the almost sure convergence of stochastic gradient descent in non-convex problems. Advances in Neural Information Processing Systems, 33:1117–1128, 2020.
[22] J. W. Neuberger. Sobolev Gradients and Differential Equations, volume 1670 of Lecture Notes in Mathematics. Springer-Verlag, Berlin Heidelberg, second edition, 2010.
[23] G. M. Nguegnang, H. Rauhut, and U. Terstiege. Convergence of gradient descent for learning linear neural networks. Advances in Continuous and Discrete Models, 2024:1–27, 2024.
[24] A. M. Saxe, J. L. McClelland, and S. Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6120, 2014.
[25] D. W. Stroock. Probability Theory, An Analytic View. Cambridge University Press, 3 edition, 2024.
[26] S. Vaswani, F. Bach, and M. Schmidt. Fast and faster convergence of sgd for over-parameterized models and an accelerated perceptron. In The 22nd international conference on artificial intelligence and statistics, pages 1195–1204. PMLR, 2019.
[27] C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning requires rethinking generalization. In International Conference on Learning Representations (ICLR), 2017.