On the Crucial Role of Initialization for Matrix Factorization

Bingcong Li, Liang Zhang, Aryan Mokhtari, Niao He

TL;DR

By replacing standard small random initializations with a simple sketch-based technique called Nyström initialization, this paper shows that Scaled Gradient Descent (ScaledGD) can achieve quadratic or even one-step convergence for low-rank matrix factorization. The authors successfully extend this theory to practical deep learning by introducing NoRA (Nyström low-rank adapters), an efficient, off-the-shelf upgrade to LoRA that boosts finetuning performance across large language and diffusion models.

What Problem Does This Paper Address?

Low-rank matrix factorization is a foundational problem in machine learning, appearing everywhere from collaborative filtering to modern parameter-efficient finetuning (PEFT) like LoRA. The goal is simple: approximate a large matrix $A$ by multiplying two much smaller, low-rank matrices ($XX^\top$ or $XY^\top$).

However, optimizing this is notoriously difficult. The objective function is nonconvex and nonsmooth, meaning standard optimization guarantees fall short. Traditionally, practitioners initialize these matrices with very small random values. The problem? This forces the optimizer to start near a treacherous saddle point (the origin), leading to slow, linear convergence rates.

This paper tackles a fundamental question: Can a smarter initialization strategy fundamentally alter the optimization landscape and accelerate convergence?

Methods

The authors introduce Nyström initialization to bypass the typical saddle-point bottlenecks.

  1. Symmetric Matrix Factorization ($XX^\top \approx A$): Instead of setting $X_0 \approx 0$, they initialize it using a random sketch of the target matrix: $$X_0 = A\Omega$$ where $\Omega$ is a standard Gaussian random matrix.

  2. Asymmetric Matrix Factorization ($XY^\top \approx A$): They break the symmetry by initializing one side with the sketch and the other to zero: $$X_0 = A\Omega, \quad Y_0 = 0$$ To handle the initial $Y_0 = 0$, they introduce a modified first step for ScaledGD.

From Theory to Practice: NoRA

The authors extend this concept to Low-Rank Adaptation (LoRA), which models weight updates during finetuning as $\Delta W = XY^\top$. Because the optimal $\Delta W$ is unknown at the start, they use the pretrained weight matrix $W_0$ as a proxy for the data's geometric structure.

They propose two variants:

  • NoRA: Applies Nyström initialization directly to standard LoRA ($X_0 = W_0\Omega, Y_0 = 0$) optimized with standard optimizers like AdamW.
  • NoRA+: Combines Nyström initialization with a preconditioned ScaledGD optimizer for the adapter weights.

Datasets

The authors validate their approach across an impressive suite of synthetic and real-world benchmarks:

  • Synthetic Data: Used to rigorously verify exact-, over-, and under-parameterized matrix factorization convergence rates.
  • Few-Shot Learning (OPT-1.3B): Evaluated on GLUE and SuperGLUE benchmarks (including SST-2, RTE, BoolQ, CB, ReCoRD, WSC, MultiRC) and SQuAD.
  • Subject-Driven Image Generation (Stable Diffusion v1.4): Evaluated using the DreamBooth protocol on the dog and cat-toy datasets.
  • Commonsense Reasoning (LLaMA-7B & LLaMA2-7B): Evaluated across 8 datasets including HellaSwag, WinoGrande, PIQA, SIQA, ARC-easy, ARC-challenge, and OpenBookQA.
  • Mathematical Reasoning (Gemma-7B): Finetuned on MetaMathQA-100K and evaluated on GSM8K.

Key Insights and Ideas

  • Directional Alignment: The secret sauce of Nyström initialization is that it forces the initial weights to lie entirely within the column space of the target matrix. This completely eliminates the "residual space" right from step one, allowing the optimizer to focus purely on scaling rather than searching for the right directions.
  • Initialization Dictates the Rate: In smooth optimization, initialization usually only changes how long it takes to reach a local neighborhood. Here, changing the initialization changes the nature of the algorithm itself—boosting ScaledGD from a linear convergence rate to a quadratic one.
  • Why it Works for LoRA: By tracking singular value changes during standard LoRA training, the authors discovered that the top singular values undergo the most significant updates. Nyström initialization naturally prioritizes these dominant directions because $W_0\Omega$ inherently preserves the principal components of the pretrained weights.
Singular value changes after LoRA finetuning
  • Deployment Efficiency: Unlike other advanced initialization methods (like PiSSA or OLoRA), NoRA does not require computationally expensive SVD or QR decompositions, nor does it alter the original pretrained weights. This makes it a true drop-in, zero-overhead replacement for standard LoRA.

Key Results

Theoretical Convergence

The theoretical speedups are massive, as summarized in the paper's complexity comparison table:

Table 1: Comparison of complexity for global optimality in (a)symmetric matrix factorization in various settings. Here, EP, OP, and UP are abbreviations for exact-, over- and under- parametrization. ϵ is the prescribed optimality error, and κ denotes the condition number of A. Note that our bounds for UP depict the complexity to near optima; see formal descriptions in Defs. 1 and 2. The “special” initialization in AltGD is still a small initialization, but with more careful designs that will be clear in Sec. 3.1. Works marked with * are designed for another related setting (hence the comparison may not be fair).
  • Asymmetric Problems: Achieving an exact solution drops to one-step convergence ($\mathcal{O}(1)$ iterations) when the learning rate is set to 1.
  • Symmetric Problems: Convergence accelerates from linear to quadratic ($\mathcal{O}(\log \log (1/\epsilon))$), matching the behavior of second-order methods like Newton's method without needing a Hessian matrix.

Downstream Performance

  • Finetuning LLMs: On the OPT-1.3B few-shot learning tasks, NoRA achieved the highest average accuracy (75.0%) outperforming standard LoRA (73.2%), PiSSA (74.1%), and OLoRA (74.0%).
  • Diffusion Models: For subject-driven image generation, NoRA and NoRA+ achieved a 9.6% lower training loss compared to standard LoRA and generated noticeably higher-fidelity images with cleaner facial details.
Generated images from NoRA and NoRA+ with stable-diffusion

Limitations and Future Work

While the theoretical results for pure matrix factorization are watertight, the extension to LoRA relies on an empirical assumption: that the ideal weight update $\Delta W$ shares a similar column space with the pretrained weights $W_0$. While this holds true across their experiments, a formal theoretical bound linking $W_0$ to $\Delta W$ optimization remains open.

Additionally, the authors note that extending these Nyström initialization proofs to more complex tensor factorization and matrix sensing landscapes represents a promising frontier for future optimization research.

Summary updated

BibTeX
@inproceedings{li2025crucial,
  author = {Bingcong Li and Liang Zhang and Aryan Mokhtari and Niao He},
  title = {{On the Crucial Role of Initialization for Matrix Factorization}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=YTEwJaBdh0},
}
Figure