Skip to content
9D Labs

Optimization · Research note

Does low rank
have a lifetime?

What an old basis can still capture as training moves on.

The question

Suppose we save sixteen directions. How long can we keep using them?

Training can be cheaper if we work in a smaller space. Rebuilding that space costs work too. We looked at how much of a later update an old basis could still capture.

Figure 01

Take sixteen directions forward

Window schematic
Saved basis
0–100
Test window
100–200
100 steps
Save the basis from the filled window and test it on the outlined window. Each box spans 100 optimizer steps. The squares stand for the sixteen saved directions. The timeline shows example window positions.

What are we keeping?

Rank tells us how many directions we can keep. The basis tells us which ones.

We trained a 7.24-million-parameter language model six times on WikiText-2, pairing three seeds across two weight-decay settings. In each run, we tracked eight matrices and recorded the part of each AdamW update attributable to the optimizer after separating weight decay.

For each 100-step window, we added the recorded updates and took the sixteen leading directions of the sum. Then we used those same directions to measure a later window. Here’s what the recorder saves.

What changes when the updates add up?

Two steps can move strongly in opposite directions and leave very little movement after they add up. We measure the share of squared update size the basis captures, first across individual steps and then after adding those steps.

Figure 02

What survives the sum?

Exact example

The projection keeps the first row.

Step A

2000.5

Step B

−2000.5

The sum

0001
Capture before adding
16/17
Capture after adding
0%

The kept row disappears when the steps are added.

Both steps put 16/17 of their squared energy in the first row. Add the signed matrices and the same projection keeps either none or all of the nonzero sum.

We also ask how much a rank-16 basis could capture if it were fitted to the future window itself. That gives each measure a fair reference for what sixteen fresh directions could keep. See both definitions.

First, we moved the future window

We started from the same 24 old windows in every run and tested progressively later windows. Across the two decay settings, the old basis captured about nine to ten percentage points less net movement at the longest separation than at the shortest.

The future window’s own fresh basis captured less too. Later windows were harder to fit into sixteen directions, even with the benefit of seeing those updates first.

Then we held the future still

We picked the same 24 future windows at every separation and looked backward for bases. Now each older basis had to capture exactly the same updates as the newer one. The drop shrank to 2.71–2.84 percentage points, with small recoveries along the way. Farther-away bases also come from earlier stages of training, so both the stage and the distance matter here.

Figure 03

The decline depends on what you hold fixed

Measured · Rank 16

Same old windows

9.32percentage points less net capture

0%20%40%60%80%1002004008001,600

39.4%held by the old basis

Fresh reference 73.0% · SD 0.09 pp

Same future windows

2.71percentage points less net capture

0%20%40%60%80%1002004008001,600

32.8%held by the old basis

Fresh reference 63.2% · SD 0.23 pp

Old basisFresh reference12.5% random-basis expectation
100 steps
Both panels use the same capture scale. The horizontal axis gives start-to-start steps on a log scale. Thin lines show the three runs in each decay condition. Squares mark the mean, with whiskers for sample SD.

The old basis still captured around 30% of net update energy at 1,600 steps, above the 12.5% expected from a random rank-16 space. At the first measured separation, capture was already below the protocol’s threshold of 80% of the fresh reference. The measurements show partial persistence but leave the crossing time undetermined. See what stays fixed in each comparison.

The same basis tells two stories

At 1,600 steps without weight decay, the same directions capture about 30% of the net movement and 39% of the individual-step energy. Both numbers describe the same updates. They count their energy at different points in the calculation.

Figure 04

One basis keeps two different fractions

Measured · Same future windows
0%20%40%60%80%1002004008001,600
Selected measureFresh references12.5% random-basis expectation
100 steps
See the eight matrices separately

Block 1 · Attention

Net 53.3%
Steps 59.8%

Block 1 · MLP

Net 28.0%
Steps 35.4%

Block 2 · Attention

Net 26.2%
Steps 31.1%

Block 2 · MLP

Net 32.4%
Steps 41.2%

Block 3 · Attention

Net 25.6%
Steps 28.8%

Block 3 · MLP

Net 32.0%
Steps 39.4%

Block 4 · Attention

Net 26.0%
Steps 31.0%

Block 4 · MLP

Net 39.0%
Steps 57.4%

Each matrix averages the same three runs at this separation.

Both measures use the same retained basis and future windows. Each has its own energy denominator and its own best fresh reference. The curves connect the five saved means.

The difference also shows up across matrices. With the future held fixed, net capture fell in all 48 matrix-by-run comparisons. Individual-step capture fell in 25 and rose in 23. Those comparisons describe variation within the same six runs.

What if we keep more directions?

At 1,600 steps apart, moving from rank 8 to 16 to 32 raises net capture from about 17% to 30% to 50% for 100-step windows without decay. With rank held at 16, using a 400-step window brings capture down to about 24%. The longer window changes which updates go into the sum and how many windows we can compare.

Figure 05

Try a different rank or window

Measured · 1,600 steps apart

What to measure

Weight decay

Retained rank

Window length · steps

0%25%50%75%100%817.2%1630.1%3249.5%0%25%50%75%100%817.2%1630.1%3249.5%
Old basisFresh reference
Old basis at rank 16
30.1%
0.33 pp sample SD
Fresh reference
63.2%
Eligible origins per matrix per run
24
Each row uses the same window length.
Explore all 128 ranks and separations

This follow-up sweep uses the same six runs. Fewer windows qualify as the separation grows.

The three ranks are shown at the same separation. Changing the window length changes both the updates being summed and the number of eligible origins.

When would we refresh the basis?

GaLore uses low-rank gradient projections in training, and Q-GaLore adapts when they refresh. WeLore studies how gradient subspaces stabilize. Noel Thomas studies how minibatch noise can look like subspace motion.

Our experiment used ordinary AdamW and measured its recorded updates afterward. To choose a refresh interval, we would train with the retained basis and compare task performance, memory, and total compute against ordinary AdamW, including the cost of rebuilding the basis.

Technical details

Methods and proofs

The definitions, study design, and bounds behind the figures.

What the recorder saves

For an output-oriented tracked matrix Wt∈R128×dW_t\in\mathbb R^{128\times d}, the recorder uses observed floating-point parameter states before and after AdamW. With the actual group multiplier at=1−ηtλta_t=1-\eta_t\lambda_t, it extracts

Dt=atWt−Wt+1.D_t=a_tW_t-W_{t+1}.

The real-arithmetic interpretation is Dt=ηtUtD_t=\eta_tU_t, where UtU_t includes the optimizer moments, bias correction, coordinate rescaling and clipping reflected in the step. Learning rate is already included. These are not raw gradients. Observed-state subtraction and the separate float64 accumulation have numerical error and are checked separately.

For a window, record S=∑tDtS=\sum_t D_t, H=∑tDtDt⊤H=\sum_t D_tD_t^\top, and their norm statistics. Add the individual-step Grams when combining blocks. The Gram of a block sum is a different object. The projection is on the 128-dimensional left axis after the declared orientation. Attention and MLP output matrices are transposed into that convention where needed.

Without decay, S=Wb−WeS=W_b-W_e, the negative of the endpoint displacement. With decay, an unweighted sum is not the full displacement. The exact endpoint contribution uses future decay products

We=(∏k=be−1ak)Wb−∑t=be−1(∏k=t+1e−1ak)Dt.W_e=\left(\prod_{k=b}^{e-1}a_k\right)W_b-\sum_{t=b}^{e-1}\left(\prod_{k=t+1}^{e-1}a_k\right)D_t.

The main plots use the unweighted sum of the recorded non-decay contributions.

How we measure capture

The old projector PP is the orthogonal projector onto the leading rr left singular directions of the old window sum. Both future measurements use that same projector

Cnet(P)=∥PS∥F2∥S∥F2,Cstep(P)=tr⁡(PH)tr⁡(H).C_{\rm net}(P)=\frac{\|PS\|_F^2}{\|S\|_F^2},\qquad C_{\rm step}(P)=\frac{\operatorname{tr}(PH)}{\operatorname{tr}(H)}.

Net capture is undefined when S=0S=0. Step capture is undefined when tr⁡(H)=0\operatorname{tr}(H)=0. The recorded cohort has no such undefined cases. The fresh net reference uses a top singular subspace of the future SS. The fresh step reference uses a top eigenspace of future HH. Each optimizes its own rank-constrained energy objective. Neither reference is available prospectively.

The isotropic expectation is r/128r/128, by rotational symmetry of a uniformly random rank-rr orthogonal projector against a fixed nonzero target. It is a reference expectation, not a threshold of task usefulness. The experiment also preserves sampled random-projector controls. Main values average window fractions within a matrix and then average matrices within each run. They are not energy-pooled fractions or ratios of aggregated means.

Two ways to compare windows

The primary comparison uses rank 16, 100-step windows and old starts 0,100,…,23000,100,\ldots,2300. For start-to-start separation L∈{100,200,400,800,1600}L\in\{100,200,400,800,1600\}, the future starts at b+Lb+L. All five comparisons use the same 24 old origins per matrix per run. Both the future target and its denominator may change with LL.

The predeclared secondary comparison fixes future starts 1600,1700,…,39001600,1700,\ldots,3900 and chooses old starts f−Lf-L. The future matrices, energies and fresh references are identical across separations. Different older windows nevertheless come from different training stages. This is not a stationary causal intervention on basis age.

Windows do not overlap at any declared separation. A separation of 100 for two 100-step windows means adjacent windows, not a 100-step empty gap. The fixed-future design was added to protocol v2 before the cohort began, not selected after inspecting its results. Neither contrast should be subtracted from the other to claim a percentage of decline caused by age.

The six training runs

The cohort contains six 4,000-step runs of one 7.24-million-parameter GPT-style model, width 128, four layers and four attention heads. WikiText-2 raw v1 is packed into sequences of length 128, batch size 16. AdamW uses learning rate 0.0005, no dropout, global clipping norm 1 and weight decay either 0 or 0.1. The three seed families are 2101, 2102 and 2103. Initial-state and sampled-offset hashes establish the pairing across decay conditions.

Training is float32 with TF32 disabled. Recorder subtraction and sufficient-statistic accumulation use float64. Eight output matrices are tracked, attention and MLP projections in each of four layers. Forty base blocks per run preserve 100-step sums, individual-step Grams, norm statistics and diagnostics. Instantaneous raw-gradient spectra and changes within a 100-step block are not measured.

The six runs used B200 GPUs. Capture measures how well a basis represents the recorded updates. Testing loss, memory, and speed would require training with the retained basis.

The independent unit is a complete training run. Each decay condition has three seed values, a mean, and a descriptive sample standard deviation. The matrices, windows, ranks, and separations reuse those trajectories, so they do not count as independent replications.

The cancellation example and bounds

Two rank-one matrices can add to rank two, for example diag⁡(1,0)+diag⁡(0,1)=I2\operatorname{diag}(1,0)+\operatorname{diag}(0,1)=I_2. Low rank of each summand does not imply that all summands share one support. Conversely, if every increment has its columns in a fixed rank-rr space, every finite sum stays in that space. The recording recurrence alone cannot force finite expiry.

In figure 2, P=diag⁡(1,0)P=\operatorname{diag}(1,0) and D1=diag⁡(2,1/2)D_1=\operatorname{diag}(2,1/2). Taking D2=diag⁡(−2,1/2)D_2=\operatorname{diag}(-2,1/2) gives net capture 0 and step capture 16/1716/17. Taking D2=diag⁡(2,−1/2)D_2=\operatorname{diag}(2,-1/2) gives net capture 1 with the same step capture. Both sums are nonzero. The example shows how the two measures can disagree even when step capture stays fixed.

Let nn be the number of increments and M=S/nM=S/n their mean. Expanding the centered Gram matrices gives

H−SS⊤/n=∑t(Dt−M)(Dt−M)⊤⪰0.H-SS^\top/n=\sum_t(D_t-M)(D_t-M)^\top\succeq0.

Project onto the orthogonal complement of PP and take the trace to bound the leaked energy of the sum by ntr⁡((I−P)H)n\operatorname{tr}((I-P)H). Divide by ∥S∥F2\|S\|_F^2 when the sum is nonzero to get

1−Cnet(P)≤min⁡ ⁣(1,1−Cstep(P)χ),χ=∥S∥F2ntr⁡(H).1-C_{\rm net}(P)\leq\min\!\left(1,\frac{1-C_{\rm step}(P)}{\chi}\right),\quad\chi=\frac{\|S\|_F^2}{n\operatorname{tr}(H)}.

Strong cancellation can make χ\chi small and the bound uninformative. To bound capture in a future window, we also need assumptions about how much its individual updates leak and how strongly they cancel.

The full rank and window sweep

The predeclared rank presets are 8, 16 and 32, with windows 100, 200 and 400 and eligible nonoverlapping separations. The expanded sweep is post hoc and evaluates all left ranks 1 through 128 and every eligible 100-step-grid separation from the same saved recordings. It adds no GPU training or independent cohort.

The main explorer uses all available origins, not the fixed 24-origin designs in figure 3. With forty base blocks, window length ww and separation LL, the eligible count is 40−w/100−L/100+140-w/100-L/100+1, provided L≥wL\geq w and the count is positive. At separation 1,600, counts are 24, 23 and 21 for the three window lengths. The longest eligible separation has one origin per matrix per run.

Empty cells indicate ineligible comparisons. Near-tie counts pool eligible old matrix windows across all six runs for the selected window length and rank, regardless of the displayed separation. Full rank has no rank cutoff.