arXiv:2610.22794cs.LGOct 2026

Manuscript Offprint

arXiv:2610.22794

Ori: Drift-Aware Streaming kk-PCA for Very Low-Rank LLM Training

Xinyu Luo, Jincheng Zhou, Mengbo Wang, Zilin Shen, Nadia Atallah Lanman, Petros Drineas, Bruno Ribeiro, Brian Bullins

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

A prominent family of low-rank LLM optimizers, pioneered by GaLore, performs gradient-subspace projection: at each step, they project the gradient into a low-dimensional subspace and map the update back to the full model. Most existing work either recomputes the gradient subspace at certain intervals, or performs post-hoc adaptation to catch up to the moving subspace. In this work, we explicitly identify in practice the slow, stable manner in which LLM gradient subspaces drift across time. To this end, we propose Ori, a novel low-rank optimizer for training LLMs that captures the shifting principal gradient directions over time to achieve state-of-the-art accuracy under stringent low-rank constraints. Ori employs a streaming k-PCA algorithm inspired by Oja++, whose low per-step cost enables high-frequency, on-the-fly subspace tracking. In practice, Ori reduces the performance gap of the state-of-the-art low-rank optimizers to full-rank optimizers by up to 69.3% on a 1B LLaMA pretraining task, and achieves the best performance on 10 out of 16 task scenarios in Roberta-Base fine-tuning. Together, these contributions allow Ori to further push the performance and efficiency frontiers of gradient-projecting optimizers, narrowing the gap to full-rank training for LLMs. Code can be found at https://anonymous.4open.science/r/0ri-Submission-2132.

1 Introduction

Training large language models (LLMs) under strict memory budgets has motivated a variety of low-rank optimization methods that restrict either the weights or the gradients to a low-dimensional subspace [10, 39, 20]. This broad field is primarily divided into two families. Weight-subspace methods, such as LoRA, adapt the model weights directly [10, 14]. More recently, gradient-subspace methods, pioneered by GaLore [39], project the gradients into a low-rank subspace before the optimizer step. The latter approach and its subsequent works have proven particularly effective, demonstrating superior memory savings and performance by focusing on the dynamics of the optimizer itself [39, 38, 14, 8, 5, 28].

Yet most gradient-subspace methods in this promising family face a core technical challenge: that the principal gradient directions, instead of being static, evolve as the model weights are updated throughout training. Consequently, the success of any such method hinges on how effectively it adapts to this changing subspace. GaLore tackles this by periodically recomputing the entire subspace from scratch via an expensive SVD [39], a process that acts as a “cold restart” and discards prior subspace information. More recent methods, such as Online Subspace Descent (OSD) [15], move

∗^{*}Equal contribution.

1^{1}Department of Computer Science, Purdue University.

2^{2}Purdue Institute for Cancer Research, Purdue University.

3^{3}Department of Comparative Pathobiology, Purdue University.

Preprint.

towards more continuous adaptation by using a secondary, non-convex optimization loop to “catch up” to the moving subspace.

However, existing adaptation strategies may overlook a key empirical observation that we make explicit in this work: the gradient subspace does not jump erratically but, rather, drifts smoothly after warm-up. In other words, the projector at step t is predictably close to that at t−Δtt - \Delta t for small Δt\Delta t (e.g., 20). This slow, structured drift suggests a different perspective. Rather than recomputing the subspace (as in GaLore [39]) or optimizing it with non-convex gradient descent (as in OSD [15]), we can track it with a streaming update that makes small, frequent rotations aligned with the most recent gradients, while also preserving and transferring optimizer statistics across these rotations. In light of these observations, we arrive at a different design problem:

How do we continuously maintain a memory-light, compute-efficient, and stable projector that tracks a drifting gradient subspace?

We thus introduce Ori, a streaming k-PCA-based Oja-style updated low-rank iterative optimizer, designed to exploit the slow-drift regime of LLM gradient subspaces. Rather than treating each sub-

Figure

Figure 1: Trade-off between evaluation perplexity (Y-axis, lower is better) and peak optimizer state memory (X-axis, lower is better) for various low-rank optimizers in different ranks on the 1B LLaMA pre-training task. Bottom-left corner is the ideal region. Ori (*) forms a better Pareto frontier, achieving a superior performance-to-memory trade-off compared to state-of-the-art baselines like GaLore (○) and OSD (□).

space estimation as an independent, “cold-start” problem—as is the case with periodic SVD recomputation in GaLore—Ori treats subspace estimation as a continuous tracking problem. The core innovation of Ori lies in its drift-aware bootstrapping mechanism: we carry over (transfer) the subspace basis from previous steps as the initialization state for the current step. Because of the slow-drift phenomenon, the prior basis provides a suitable starting point that requires only a few lightweight, streaming k-PCA-inspired updates to realign with the instantaneous gradient geometry.

In practice, Ori instantiates this via the Oja++ algorithm [24, 1], which enables high-frequency basis rotations at a per-step cost of only O(dk2)\mathcal{O}(dk^{2}). This approach allows for a warm-start transfer of Adam-style first and second moments between successive bases, ensuring stable optimization dynamics. Beyond computational efficiency, we show that this formulation allows Ori to achieve provable sublinear dynamic regret bounds under drift, providing new theoretical tools and guarantees for tracking fidelity that static recomputation methods lack.

Empirically, Ori narrowly tracks the evolving gradient subspace and converts this tracking fidelity into end-to-end wins where it matters most: very low ranks. Under tight rank budgets, each dimension in the projector is precious, and stale misalignment is especially costly. Empirical results show that Ori reduces the performance gap of state-of-the-art low-rank baselines to the full-rank Adam optimizer by up to 69.3% on the 1B LLaMA pre-training task, where the optimizer state rank is 128 in contrast to the model embedding dimension of 2048. And on Roberta-Base fine-tuning tasks, where the ranks are even lower (8 or 4), Ori achieves superior performance on 10 out of 16 scenarios.

Moreover, Ori achieved this superior performance with one of the lowest computation budgets. See Figure 1 for a performance–memory overview on LLaMA-1B pre-training, where Ori consistently sits on the bottom-left frontier. Through ablation, we observe that (i) increasing the projector-update period degrades performance—quantifying the cost of staleness, and (ii) injecting a small carry-over (via a drift coefficient ρ≈0.99\rho \approx 0.99) improves accuracy—confirming the value of continuity and statistic transfer. Across pre-training and fine-tuning settings, Ori consistently improves the performance–memory trade-off over LoRA, GaLore, and OSD in the low-rank regime, thereby reducing the gap to full-rank Adam. Our primary contributions in this work are as follows:

• We identify and quantify slow gradient subspace drift during LLM training and argue that exploiting its continuity – not merely reacting to it – matters for low-rank optimization.

• We propose Ori, a drift-aware low-rank optimizer that equips gap-free streaming k-PCA with moment transfer to achieve continuous, high-frequency projector updates at negligible cost.

• We provide theoretical support via new dynamic-regret bounds under drift, yielding sublinear regret in the noiseless setting with mild dependence on the consecutive drift parameter.

• We present empirical results showing Ori’s superior performance under stringent rank constraints, with ablations isolating the roles of update frequency and drift-aware continuity.

References (39)