Closed-form dynamics beyond quadratics
Quadratic functions are the workhorse of the analysis of iterative algorithms such as gradient-based optimization. They lead, in discrete and continuous time, to closed-form dynamics that treat all eigensubspaces of the Hessian matrix independently. This leads to simple math for understanding convergence behaviors (maximal step-size, condition number, acceleration, scaling laws for gradient descent or its stochastic version, etc.).
An important success of the optimization field is to have shown that the same behaviors hold for convex functions, where the analysis now relies on Lyapunov functions rather than closed-form computations (see, e.g., this post on automated proofs), with some extensions to non-convex functions, but only regarding convergence to stationary points.
Going (globally) non-convex is of major interest in different fields, including machine learning for neural networks or matrix factorizations. In this post, I try to answer the following question: What are dynamics that lead to closed form or enough of it to get relevant insights?
Over the years, several have emerged, allowing us to give some nice and explicit intuitive results on the global behavior of gradient descent in certain non-convex cases. This blog post is about them. Note that this complements the analysis of diagonal networks from [1, 2] that we described in an earlier post.

One-hidden layer linear network.
We focus on linear neural networks, with a prediction function , where is the input, is the matrix of input weights, and is the matrix of output weights, with an overall weight matrix . This is a linear model corresponding to multi-task / multi-category classification / multi-label supervised problems, or an auto-encoder for unsupervised learning. Clearly, using the parameterization is not the most efficient for optimization (as we could simply use convex optimization directly on ), but we use it for understanding non-convex dynamics.
Given data matrices and , the empirical risk is
The gradient flow dynamics are then
We denote by the initialization of the dynamics. As first outlined by [3] and used in most subsequence analyses (e.g., [4, 6, 7]), there is an invariant of the dynamics, as
There are several lines of work to go further. I will use a non-chronological presentation and start with the simplest case where singular vectors are aligned, before moving to the real magic first detailed by Kenji Fukumizu in [3].
Aligned initialization and commuting moments
The first set of assumptions that lead to a closed form is, from [4] with proportional to identity, and [5] for this present version:
- Commuting moments: and commute, which is equivalent to aligned singular value decompositions and for matrices with orthonormal columns (that is, ), and non-negative vectors of singular values (this is thus the “economy-size” version of the SVD where and have the same number of columns). We only need to take as big as . This occurs, for example, when (whitened data), or for auto-encoders, where .
- Aligned initialization: and are the singular value decompositions, with with orthonormal columns (which implies that we need to assume ), with singular vectors of aligned with the one of .
Note that throughout the blog post, as done just above, multiplication and divisions of the (singular) vectors of the same size will be considered component-wise.
With these assumptions, throughout the dynamics, it turns out that we keep aligned singular vectors, and thus, if are the vectors of singular values of , we get the coupled ODEs:
If at initialization (for all singular values) with a positive scalar, then this remains true throughout the dynamics, and we get
Insights. We see the sequential learning of each singular values when the initialization scale tends to zero, as then we have
To prove it, we rescale time as and we get

Linear networks with aligned initialization. Plotting the singular values as a function of (rescaled) time , for various initialization scales .
Extension to deeper models. Following [4], we can consider more layers and minimize
Other dynamics. In this simple case, we can easily compare the dynamics of learning for three common algorithms, which all leads to dynamics on singular values in this aligned case:
- Gradient descent on : As seen above . The singular values of characterize the dynamics, with each singular value appearing one by one when is small.
- Gradient descent on starting from zero (e.g., ): . The singular values of characterize the dynamics.
- Muon: this is the new cool algorithm (“stylé” my kids would say). It corresponds to orthogonalizing the matrix updates, and thus, to do sign descent with vanishing step-size on the singular values, that is, until reaching the solution. This leads to , with a conditioning that does not depend on or . No singular values is impacting the dynamics, hence the “automatic” reconditioning, which extends what can be seen for sign descent (see previous post). Note that if we implement Muon directly on , we would obtain instead .

Comparison of three dynamics. Top: singular values , bottom: loss functions as a function of time .
Matrix Riccati equation
The second set of assumptions is:
- White moment matrix: . Thus, the only data matrix left is .
- Balanced initialization: , which implies that throughout the dynamics, we have (because of the invariant).
Note that there are no assumptions regarding the alignments of singular vectors at initialization. We also assume that . See [17] for closed-form expressions with larger width .
Then something magical happens, first outlined by Kenji Fukumizu [3], and then further used in several works (e.g., [7, 17, 18]). Defining , we have
This is now a matrix Riccati equation [8, 9], with a closed form and nice links with several branches of mathematics, such as control (linear-quadratic regulator), probabilistic modelling (Kalman filtering), and machine learning (Oja flow for principal component analysis [10]). In this present post, we will only scratch the surface of this fascinating topic, but a future post will most likely do it justice.
Denoting , we get
We can now analyze this closed-form expression precisely with the following eigenvalue decomposition of
Recovering aligned initialization. We start with aligned initialization (as before, and with the same notations), that is, . By taking and , we get , and for any function , we have , where is the vector of singular values of , leading to
Beyond aligned initialization. When is initialized randomly (and thus with full rank on all subspaces) with balanced initialization and norm proportional to , then, with , we also can prove sequential learning of all singular subspaces. More precisely, if , then, when tends to zero (see proof below the reference section):
- If , . This is the initial phase with no apparent movements, but an alignment of singular vectors, nicely cast as silent alignment by [7].
- When for , we get , the optimal rank approximation of .
- When , , which is the global minimizer of the cost function.
Note that when , we get . Overall, this is exactly sequential learning, with both the singular values and the singular vectors learned from scratch. In the plot below, we see how singular vectors align early in the dynamics when is small, while singular values are learned step-by-step.

Dynamics of linear network learning as a function of rescaled time: components of (left, one curve per component) with their limit as crosses, singular values of (middle), absolute projections of singular vectors of onto the ones of (right). is going from to .
Conclusion
Overall, we obtain a precise behavior for data with an identity covariance matrix, showing that features (singular vector directions) are learned early on, while their weights (singular values) are learned sequentially. This was done using a balanced initialization (see [11] for an extension beyond balanced initialization and large layer width).
However, this study only applies to linear neural networks (without any non-linear activation function). Extensions to the simplest architectures remain an active area of research (see, e.g., [12] and references therein), with in particular similar early alignment behaviors [13, 14]. In addition, matrix product parameterizations also arise in attention architectures through the product of the key and query matrices. As a result, sequential learning phenomena can also be observed in this setting; see [15] for an analysis of sequential learning in linear attention.
Acknowledgements. I would like to thank Raphaël Berthier, Pierre Marion, Loucas Pillaud-Vivien, and Aditya Varre for proofreading this blog post and making good, clarifying suggestions.
References
[1] Blake Woodworth, Suriya Gunasekar, Jason D. Lee, Edward Moroshko, Pedro Savarese, Itay Golan, Daniel Soudry, Nathan Srebro. Kernel and rich regimes in overparametrized models. Conference on Learning Theory, 2020. [2] Scott Pesme, Loucas Pillaud-Vivien, and Nicolas Flammarion. Implicit bias of SGD for diagonal linear networks: a provable benefit of stochasticity. Advances in Neural Information Processing Systems, 2021. [3] Kenji Fukumizu. Effect of batch learning in multilayer neural networks. International Conference on Neural Information Processing, 1998. [4] Andrew M. Saxe, James L. McClelland, Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. International Conference on Learning Representations, 2014. [5] Gauthier Gidel, Francis Bach, and Simon Lacoste-Julien. Implicit Regularization of Discrete Gradient Dynamics in Linear Neural Networks. Advances in Neural Information Processing Systems, 2019. [6] Simon S. Du, Wei Hu, and Jason D. Lee. Algorithmic regularization in learning deep homogeneous models: Layers are automatically balanced. Advances in Neural Information Processing Systems, 2018. [7] Alexander Atanasov, Blake Bordelon, and Cengiz Pehlevan. Neural Networks as Kernel Learners: The Silent Alignment Effect. International Conference on Learning Representations, 2022. [8] Vladimír Kučera. A review of the matrix Riccati equation. Kybernetika, 9.1:42-61, 1973. [9] Richard S. Bucy. Global theory of the Riccati equation. Journal of Computer and System Sciences, 1.4:349-361, 1967. [10] Wei-Yong Yan, Uwe Helmke, and John B. Moore. Global analysis of Oja’s flow for neural networks. IEEE Transactions on Neural Networks, 5.5:674-683, 1994. [11] Aditya Vardhan Varre, Maria-Luiza Vladarean, Loucas Pillaud-Vivien, Nicolas Flammarion. On the spectral bias of two-layer linear networks. Advances in Neural Information Processing Systems, 2023. [12] Alberto Bietti, Joan Bruna, and Loucas Pillaud-Vivien. On learning Gaussian multi-index models with gradient flow. Technical report arXiv:2310.19793, 2023. [13] Hartmut Maennel, Olivier Bousquet, and Sylvain Gelly. Gradient descent quantizes ReLU network features. Technical report arXiv:1803.08367, 2018. [14] Etienne Boursier and Nicolas Flammarion. Early alignment in two-layer networks training is a two-edged sword. Journal of Machine Learning Research 26:1-75, 2025. [15] Yedi Zhang, Aaditya K. Singh, Peter E. Latham, Andrew Saxe. Training Dynamics of In-Context Learning in Linear Attention. International Conference on Machine Learning, 2025. [16] Sibylle Marcotte, Rémi Gribonval, and Gabriel Peyré. Abide by the law and follow the flow: Conservation laws for gradient flows. Advances in Neural Information Processing Systems, 2023. [17] Lukas Braun, Clémentine C. J. Dominé, James E. Fitzgerald, Andrew M. Saxe. Exact learning dynamics of deep linear networks with prior knowledge. Advances in Neural Information Processing Systems, 2022. [18] Sanjeev Arora, Nadav Cohen, Wei Hu, Yuping Luo. Implicit regularization in deep matrix factorization. Advances in Neural Information Processing Systems, 2019.
Proofs
We can rewrite the dynamics as (note that is not positive semidefinite)
The term is a spectral function of which will set to zero all negative eigenvalues and set to all positive ones . We can therefore only consider the positive ones, and consider these terms as identity. Zeros eigenvalues of also lead to decay, this time in , and can be discarded as well in the asymptotic analysis.
The term , with strictly positive eigenvalues, is equivalent to , and we are faced with studying the dynamics of for for a rank- matrix, when tends to zero. We rewrite , and we then have, once in the basis of singular vectors
Case 1. If for all , that is, , then the matrix goes to zero, and thus goes to zero.
Case 2. For , and , then we have
Case 3. For , using the same formula for , with now not tending to zero, we can use the fact that to obtain the desired limit.