Skip to content

About

Research exposé on sampled sensitivity traces for MetaOptimize

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Sampled sensitivity traces for MetaOptimize

Jasper Jonkhans · Research exposé

How much sensitivity information does an optimizer need to adapt one global learning rate? I tested whether a fixed sample of weight coordinates could replace the full trace without sacrificing final test loss.

Method

Starting from the scalar, Hessian-free Lion+Lion variant of MetaOptimize (Sharifnassab, Salehkaleybar and Sutton, ICML 2025), I draw a set $S$ of $r$ out of $n$ weight coordinates uniformly without replacement, once per run. The trace recurrence is coordinate-wise, so I can maintain $h_t$ only on $S$ and estimate its inner product with the current gradient $g_t$:

$$ \widehat z_t=\frac{n}{r}\sum_{i\in S}h_{t,i}g_{t,i}. $$

Meta-Lion uses this estimate to update the next step's learning rate. If the trace has $m$ sensitivity columns per weight, keeping $r$ rows costs $O(rm)$ state. I implemented and tested $m=1$; backpropagation and Lion's weight and momentum updates remain dense.

Choosing the exponent and sample size

I use $r(n)=\min(n,\lceil k n^\alpha\rceil)$, so the trace state scales as $O(n^\alpha m)$. My square-root rule fixes $r_0=254$ at $n_0=25{,}348$, giving $\alpha=1/2$ and $k=r_0/n_0^{1/2}\approx1.595$. The meta-update interval stays at one step.

To calibrate the rule on a new task, find the smallest $r$ that meets a fixed validation-loss margin against the full trace at several model sizes, using paired runs. Fit $\log r$ against $\log n$ to estimate $\alpha$ (slope) and $\log k$ (intercept), then check the rule at held-out sizes. A cheaper screen uses frozen checkpoints: for fixed products $x_i=h_i g_i$ with nonzero mean, the relative variance is $(1/r-1/n)\rho$, where $\rho=s_x^2/\bar x^2$ and $s_x^2$ uses denominator $n-1$. If $\rho\approx Cn^\beta$ and $r\ll n$, targeting relative RMS error $\varepsilon$ suggests $\alpha\approx\beta$ and $k\approx C/\varepsilon^2$. This sizes the estimator, not the learning system.

Results

Benchmark Paired seeds Sampled entries Final test loss ratio One-sided 95% upper bound Extra optimizer state, full → sampled
Teacher–student regression, 2,048 updates 6 1,689 0.882 0.942 8,962,092 → 20,276 B
CIFAR-10 CNN, 2,048 updates 6 631 1.006 1.035 1,248,604 → 7,580 B
CIFAR-10 ResNet-18, 20 epochs 5 5,333 0.926 descriptive 89,391,708 → 64,004 B

Ratios are geometric means of within-seed sampled/full-trace ratios (MSE for regression, cross-entropy for CIFAR-10). Bounds use a one-sided t interval on paired log ratios. State is persistent optimizer tensor storage beyond base Lion, including indices; it is not peak GPU memory. Per-seed endpoints include all comparison arms; historical ResNet state counts without logs follow the optimizer's tensor layout.

The square-root rule was the lowest-state adaptive configuration tested end to end that met the prespecified 5% loss margin on both six-seed tasks. At the main regression width, it matched the dense Meta-Lion update direction in 90.5% of nonzero comparisons in the frozen-checkpoint screen (quarter-power: 85.0%, same anchor). This supports the choice of $\alpha=1/2$ among the tested budgets; it does not establish an optimal exponent. On ResNet-18 it beat the full trace on final loss in all five seeds, but fixed-rate Lion still had the lowest loss in each.

About

Research exposé on sampled sensitivity traces for MetaOptimize

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors